Auto stop traccar.service

Oleksandr4 years ago

Hello, please help, after starting the service after 3 minutes it stops itself and writes such an error

● traccar.service - traccar
   Loaded: loaded (/etc/systemd/system/traccar.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2020-10-25 19:00:58 UTC; 2min 48s ago
  Process: 1381 ExecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml (code=exited, status=1/FAILURE)
 Main PID: 1381 (code=exited, status=1/FAILURE)

Oct 25 19:00:58 ubuntu-s-1vcpu-1gb-fra1-01 traccar[1381]:         at liquibase.lockservice.StandardLockService.waitForLock(StandardLockService.java:230)
Oct 25 19:00:58 ubuntu-s-1vcpu-1gb-fra1-01 traccar[1381]:         at liquibase.Liquibase.clearCheckSums(Liquibase.java:1442)
Oct 25 19:00:58 ubuntu-s-1vcpu-1gb-fra1-01 traccar[1381]:         at org.traccar.database.DataManager.initDatabaseSchema(DataManager.java:310)
Oct 25 19:00:58 ubuntu-s-1vcpu-1gb-fra1-01 traccar[1381]:         at org.traccar.database.DataManager.<init>(DataManager.java:90)
Oct 25 19:00:58 ubuntu-s-1vcpu-1gb-fra1-01 traccar[1381]:         at org.traccar.Context.init(Context.java:389)
Oct 25 19:00:58 ubuntu-s-1vcpu-1gb-fra1-01 traccar[1381]:         at org.traccar.Main.run(Main.java:110)
Oct 25 19:00:58 ubuntu-s-1vcpu-1gb-fra1-01 traccar[1381]:         ... 1 more
Oct 25 19:00:58 ubuntu-s-1vcpu-1gb-fra1-01 systemd[1]: traccar.service: Main process exited, code=exited, status=1/FAILURE
Oct 25 19:00:58 ubuntu-s-1vcpu-1gb-fra1-01 systemd[1]: traccar.service: Unit entered failed state.
Oct 25 19:00:58 ubuntu-s-1vcpu-1gb-fra1-01 systemd[1]: traccar.service: Failed with result 'exit-code'.
Anton Tananaev4 years ago

Looks like your database is locked. There are multiple threads about it, including solutions.