Server won't start

jamel 3 years ago

Hey,
My server was working fine but suddenly is stop working
this is my logs :

2022-12-08 16:58:12  INFO: Operating system name: Linux version: 5.4.0-135-generic architecture: amd64
2022-12-08 16:58:15  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Eclipse Adoptium version: 17.0.4+8
2022-12-08 16:58:16  INFO: Memory limit heap: 1942mb non-heap: 0mb
2022-12-08 16:58:17  INFO: Character encoding: UTF-8 charset: UTF-8
2022-12-08 16:58:17  INFO: Version: 5.4
2022-12-08 16:58:17  INFO: Starting server...
2022-12-08 16:58:21  INFO: HikariPool-1 - Starting...
2022-12-08 16:58:34  INFO: HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@36a7abe1
2022-12-08 16:58:35  INFO: HikariPool-1 - Start completed.
2022-12-08 16:58:43  INFO: Set default schema name to public
2022-12-08 16:58:43  INFO: Clearing database change log checksums
2022-12-08 16:58:47  INFO: Waiting for changelog lock....
2022-12-08 16:58:58  INFO: Waiting for changelog lock....
...
2022-12-08 17:00:47  INFO: Waiting for changelog lock....
2022-12-08 17:00:59  INFO: Waiting for changelog lock....
Anton Tananaev 3 years ago

I recommend searching because this has been discussed a countless number of times.

jamel 3 years ago

i already added the Java heap size and nothing is changing .

Anton Tananaev 3 years ago

It has nothing to do with Java heap size.

jamel 3 years ago

So what is the problem?
please help !

Anton Tananaev 3 years ago

Your database is locked. Again, this has been discussed many many times and if you search, you will easily find the solution.

jamel 3 years ago

Hey
i changed the locked attribute to false

update DATABASECHANGELOGLOCK set locked = false;

the server is started but i get 503 Service Unavailable in the ui

jamel 3 years ago

the application is restarting abnormal

jamel 3 years ago

I got this error

Dec 08 20:40:04 vps-fec626e1 systemd[1]: traccar.service: Failed with result 'watchdog'.
Anton Tananaev 3 years ago

What is abnormal about it? If you want some help, you should provide details.

jamel 3 years ago

my server is restarting every 2 minutes there is this error in the log file

error - Connection refused - ConnectException (... < JsonGeocoder:126 < NotificationManager:99 < *:126 < BaseEventHandler:40 < ...)

and also this error in systemctl status

traccar.service: Failed with result 'watchdog'.
Anton Tananaev 3 years ago

That error in the log has nothing to do with server restarting.

jamel 3 years ago

I got 503 Service Unavailable in the ui

Anton Tananaev 3 years ago

That doesn't give us any useful information about the root cause. If you don't plan to provide more details, we won't be able to help.

jamel 3 years ago

I set web.disableHealthCheck to false and now it has been 10min without restarting