Try to run it directly like this:
https://www.traccar.org/manual-installation/
And see what error you get.
sudo java -jar /opt/traccar/tracker-server.jar conf/traccar.xml
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
Running Changeset: changelog-4.0-clean::changelog-4.0-clean::author
Running Changeset: changelog-4.0-clean::changelog-4.0-clean-common::author
Running Changeset: changelog-3.3::changelog-3.3::author
Running Changeset: changelog-3.5::changelog-3.5::author
Running Changeset: changelog-3.6::changelog-3.6::author
Running Changeset: changelog-3.7::changelog-3.7::author
Running Changeset: changelog-3.7::changelog-3.7-notmssql::author
Running Changeset: changelog-3.8::changelog-3.8::author
Running Changeset: changelog-3.9::changelog-3.9::author
Running Changeset: changelog-3.10::changelog-3.10::author
Running Changeset: changelog-3.10::changelog-3.10-notmssql::author
Running Changeset: changelog-3.10::changelog-3.10-mssql::author
Running Changeset: changelog-3.10::changelog-3.7-mssql::author
Running Changeset: changelog-3.11::changelog-3.11::author
Running Changeset: changelog-3.12::changelog-3.12::author
Running Changeset: changelog-3.12::changelog-3.12-notmssql::author
Running Changeset: changelog-3.12::changelog-3.12-pgsql::author
Running Changeset: changelog-3.14::changelog-3.14::author
Running Changeset: changelog-3.15::changelog-3.15::author
Running Changeset: changelog-3.16::changelog-3.16::author
Running Changeset: changelog-3.17::changelog-3.3-admin::author
Running Changeset: changelog-3.17::changelog-3.17::author
Running Changeset: changelog-4.0::changelog-4.0-pre::author
Running Changeset: changelog-4.0::changelog-4.0-common::author
Running Changeset: changelog-4.0::changelog-4.0-pg::author
Running Changeset: changelog-4.0::changelog-4.0::author
Running Changeset: changelog-4.0::changelog-4.0-renaming::author
Running Changeset: changelog-4.1::changelog-4.1-mssql::author
Running Changeset: changelog-4.7::changelog-4.7::author
Running Changeset: changelog-4.9::changelog-4.9::author
Running Changeset: changelog-4.10::changelog-4.10::author
Running Changeset: changelog-4.11::changelog-4.11::author
Running Changeset: changelog-4.13::changelog-4.13::author
Running Changeset: changelog-4.15::changelog-4.15::author
Running Changeset: changelog-5.0::changelog-5.0::author
Running Changeset: changelog-5.1::changelog-5.1::author
Running Changeset: changelog-5.2::changelog-5.2::author
Running Changeset: changelog-5.3::changelog-5.3::author
Running Changeset: changelog-5.4::changelog-5.4::author
Running Changeset: changelog-5.5::changelog-5.5::author
Running Changeset: changelog-5.6::changelog-5.6::author
Running Changeset: changelog-5.7::changelog-5.7::author
UPDATE SUMMARY
Run: 42
Previously run: 0
Filtered out: 0
-------------------------------
Total change sets: 42
Liquibase: Update has been successful.
But then it hangs. So I stopped it with ctrl-C and checked the log files and got the below:
2023-05-09 13:25:05 INFO: ChangeSet changelog-5.7::changelog-5.7::author ran successfully in 31ms
2023-05-09 13:25:05 INFO: UPDATE SUMMARY
2023-05-09 13:25:05 INFO: Run: 42
2023-05-09 13:25:05 INFO: Previously run: 0
2023-05-09 13:25:05 INFO: Filtered out: 0
2023-05-09 13:25:05 INFO: -------------------------------
2023-05-09 13:25:05 INFO: Total change sets: 42
2023-05-09 13:25:05 INFO: Update summary generated
2023-05-09 13:25:05 INFO: Update command completed successfully.
2023-05-09 13:25:05 INFO: Successfully released change log lock
2023-05-09 13:25:05 INFO: Successfully released change log lock
2023-05-09 13:25:05 INFO: Command execution complete
2023-05-09 13:25:06 INFO: jetty-10.0.15; built: 2023-04-11T17:25:14.480Z; git: 68017dbd00236bb7e187330d7585a059610f661d; jvm 11.0.18+10-post-Ubuntu-0ubuntu122.04
2023-05-09 13:25:06 INFO: Started o.t.w.@333a44f2{/,null,AVAILABLE}
2023-05-09 13:25:06 INFO: Session workerName=node0
2023-05-09 13:25:06 WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2023-05-09 13:25:07 INFO: Started o.e.j.s.ServletContextHandler@27b7204{/,null,AVAILABLE}
2023-05-09 13:25:07 INFO: Started ServerConnector@52b30054{HTTP/1.1, (http/1.1)}{0.0.0.0:8082}
2023-05-09 13:25:07 INFO: Started Server@652b3733{STARTING}[10.0.15,sto=0] @5288ms
Then tried to start the server or check the status and I got:
sudo systemctl start traccar.service
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Try running it using the Java provided with Traccar. I suspect you have installed a wrong architecture.
Using offline java? how do I do that?
/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml
I get this error, which probably related to my docker setup on Mac M1, even tho I'm running all of this in an Ubuntu image:
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
But in order for me to fix this, I need to edit the Dockerfile of the program, but I couldn’t find it.
Hi,
After following the installation steps, when running the server using the given command:
service traccar start
it errors out with
traccar: unrecognized service
So I ran the server using this:
sudo systemctl start traccar.service
However, when checking the status, I see that it failed.
Also my logs folder is empty, so not sure where it's going wrong.
I checked the exit code with
echo $?
after starting the server and I get code 1.Any suggestions?