traccar service cannot be executed normally.

arthur10 months ago

I installed traccar on CentOS according to the document at https://www.traccar.org/install-digitalocean/. When executing traccar service, the mysql table is generated, but traccar service cannot be executed normally. Can someone please help me?
Download and extract the installer package
Execute traccar.run file

sudo ./traccar.run

Start systemd service

sudo systemctl start traccar
[root@iZj6c7b8cg52hq2yie2lo1Z ~]# sudo systemctl status traccar.service
● traccar.service - traccar
   Loaded: loaded (/etc/systemd/system/traccar.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2024-01-26 09:08:51 CST; 48s ago
 Main PID: 7828 (java)
   CGroup: /system.slice/traccar.service
           └─7828 /opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml

Jan 26 09:08:57 iZj6c7b8cg52hq2yie2lo1Z traccar[7828]: Running Changeset: changelog-5.9::changelog-5.9::author
Jan 26 09:08:57 iZj6c7b8cg52hq2yie2lo1Z traccar[7828]: Running Changeset: changelog-5.10::changelog-5.10::author
Jan 26 09:08:57 iZj6c7b8cg52hq2yie2lo1Z traccar[7828]: Running Changeset: changelog-5.11::changelog-5.11::author
Jan 26 09:08:57 iZj6c7b8cg52hq2yie2lo1Z traccar[7828]: UPDATE SUMMARY
Jan 26 09:08:57 iZj6c7b8cg52hq2yie2lo1Z traccar[7828]: Run:                         46
Jan 26 09:08:57 iZj6c7b8cg52hq2yie2lo1Z traccar[7828]: Previously run:               0
Jan 26 09:08:57 iZj6c7b8cg52hq2yie2lo1Z traccar[7828]: Filtered out:                 0
Jan 26 09:08:57 iZj6c7b8cg52hq2yie2lo1Z traccar[7828]: -------------------------------
Jan 26 09:08:57 iZj6c7b8cg52hq2yie2lo1Z traccar[7828]: Total change sets:           46
Jan 26 09:08:57 iZj6c7b8cg52hq2yie2lo1Z traccar[7828]: Liquibase: Update has been successful. Rows affected: 47
[root@iZj6c7b8cg52hq2yie2lo1Z ~]# netstat -anpt | grep 8082
tcp6       0      0 :::8082                 :::*                    LISTEN      7828/java  
Anton Tananaev10 months ago
  1. What is the issue exactly?
  2. Have you checked logs?
arthur10 months ago
2024-01-26 09:08:57  INFO: Table tc_commands_queue created
2024-01-26 09:08:57  INFO: Foreign key constraint added to tc_commands_queue (deviceid)
2024-01-26 09:08:57  INFO: Index idx_commands_queue_deviceid created
2024-01-26 09:08:57  INFO: ChangeSet changelog-5.4::changelog-5.4::author ran successfully in 82ms
2024-01-26 09:08:57  INFO: Column tc_commands_queue.description dropped
2024-01-26 09:08:57  INFO: ChangeSet changelog-5.5::changelog-5.5::author ran successfully in 3ms
2024-01-26 09:08:57  INFO: Columns motionstreak(BOOLEAN) added to tc_devices
2024-01-26 09:08:57  INFO: Table tc_reports created
2024-01-26 09:08:57  INFO: Foreign key constraint added to tc_reports (calendarid)
2024-01-26 09:08:57  INFO: Table tc_user_report created
2024-01-26 09:08:57  INFO: Foreign key constraint added to tc_user_report (userid)
2024-01-26 09:08:57  INFO: Foreign key constraint added to tc_user_report (reportid)
2024-01-26 09:08:57  INFO: Table tc_group_report created
2024-01-26 09:08:57  INFO: Foreign key constraint added to tc_group_report (groupid)
2024-01-26 09:08:57  INFO: Foreign key constraint added to tc_group_report (reportid)
2024-01-26 09:08:57  INFO: Table tc_device_report created
2024-01-26 09:08:57  INFO: Foreign key constraint added to tc_device_report (deviceid)
2024-01-26 09:08:57  INFO: Foreign key constraint added to tc_device_report (reportid)
2024-01-26 09:08:57  INFO: ChangeSet changelog-5.6::changelog-5.6::author ran successfully in 23ms
2024-01-26 09:08:57  INFO: Columns commandid(INT) added to tc_notifications
2024-01-26 09:08:57  INFO: Foreign key constraint added to tc_notifications (commandid)
2024-01-26 09:08:57  INFO: ChangeSet changelog-5.7::changelog-5.7::author ran successfully in 12ms
2024-01-26 09:08:57  INFO: Column tc_devices.geofenceids dropped
2024-01-26 09:08:57  INFO: Columns geofenceids(VARCHAR(128)) added to tc_positions
2024-01-26 09:08:57  INFO: ChangeSet changelog-5.8::changelog-5.8::author ran successfully in 31ms
2024-01-26 09:08:57  INFO: Columns calendarid(INT) added to tc_devices
2024-01-26 09:08:57  INFO: Foreign key constraint added to tc_devices (calendarid)
2024-01-26 09:08:57  INFO: ChangeSet changelog-5.9::changelog-5.9::author ran successfully in 28ms
2024-01-26 09:08:57  INFO: Columns totpkey(VARCHAR(64)) added to tc_users
2024-01-26 09:08:57  INFO: ChangeSet changelog-5.10::changelog-5.10::author ran successfully in 7ms
2024-01-26 09:08:57  INFO: Columns temporary(BOOLEAN) added to tc_users
2024-01-26 09:08:57  INFO: ChangeSet changelog-5.11::changelog-5.11::author ran successfully in 16ms
2024-01-26 09:08:57  INFO: UPDATE SUMMARY
2024-01-26 09:08:57  INFO: Run:                         46
2024-01-26 09:08:57  INFO: Previously run:               0
2024-01-26 09:08:57  INFO: Filtered out:                 0
2024-01-26 09:08:57  INFO: -------------------------------
2024-01-26 09:08:57  INFO: Total change sets:           46

2024-01-26 09:08:57  INFO: Update summary generated
2024-01-26 09:08:57  INFO: Update command completed successfully.
2024-01-26 09:08:57  INFO: Successfully released change log lock
2024-01-26 09:08:57  INFO: Command execution complete
2024-01-26 09:08:59  INFO: jetty-11.0.19; built: 2023-12-15T20:54:39.802Z; git: f781e475c8fa9e9c8ce18b1eaa03110d510f905f; jvm 17.0.6+10
2024-01-26 09:08:59  INFO: Started o.t.w.@426de330{/,null,AVAILABLE}
2024-01-26 09:08:59  INFO: Session workerName=node0
2024-01-26 09:08:59  WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2024-01-26 09:09:00  INFO: Started o.e.j.s.ServletContextHandler@7d181ff9{/,null,AVAILABLE}
2024-01-26 09:09:00  INFO: Started ServerConnector@2d80597f{HTTP/1.1, (http/1.1)}{0.0.0.0:8082}
2024-01-26 09:09:00  INFO: Started Server@5458017d{STARTING}[11.0.19,sto=0] @8724ms
2024-01-26 09:09:00  INFO: Health check enabled with period 480000
Anton Tananaev10 months ago

Everything looks normal to me.

arthur10 months ago

JAVA occupies port 8082, what should I do?

Anton Tananaev10 months ago

What is the problem with that?