Oh. Ok. Noted on the Google Map API key license now. Sorry I was ignorant earlier thinking it was free ... :)
traccar-linux-arm-6.4.zip
That should work.
Not sure if this is still a java version issue.
pi@home-server:~ $ java -version
openjdk version "17.0.12" 2024-07-16
OpenJDK Runtime Environment (build 17.0.12+7-Raspbian-2deb11u1rpt1)
OpenJDK Client VM (build 17.0.12+7-Raspbian-2deb11u1rpt1, mixed mode, emulated-client)
pi@home-server:~ $
I have completely uninstalled traccar:
Stop systemd service
sudo systemctl stop traccar
Remove systemd service
sudo systemctl disable traccar
sudo rm /etc/systemd/system/traccar.service
sudo systemctl daemon-reload
Remove traccar directory
sudo rm -R /opt/traccar
Then re-installed:sudo ./traccar.run
sudo systemctl start traccar
But I get this error:
* traccar.service - traccar
Loaded: loaded (/etc/systemd/system/traccar.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2024-08-16 19:52:02 BST; 5s ago
Process: 2360 ExecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml (code=exited, status=203/EXEC)
Main PID: 2360 (code=exited, status=203/EXEC)
CPU: 4ms
Aug 16 19:52:12 home-server systemd[1]: traccar.service: Scheduled restart job, restart counter is at 4.
Aug 16 19:52:12 home-server systemd[1]: Stopped traccar.
Aug 16 19:52:12 home-server systemd[1]: Started traccar.
Aug 16 19:52:12 home-server systemd[2385]: traccar.service: Failed to execute /opt/traccar/jre/bin/java: No such file or directory
Aug 16 19:52:12 home-server systemd[2385]: traccar.service: Failed at step EXEC spawning /opt/traccar/jre/bin/java: No such file or directory
Aug 16 19:52:12 home-server systemd[1]: traccar.service: Main process exited, code=exited, status=203/EXEC
Aug 16 19:52:12 home-server systemd[1]: traccar.service: Failed with result 'exit-code'.
Aug 16 19:52:23 home-server systemd[1]: traccar.service: Scheduled restart job, restart counter is at 5.
Aug 16 19:52:23 home-server systemd[1]: Stopped traccar.
Aug 16 19:52:23 home-server systemd[1]: Started traccar.
Aug 16 19:52:23 home-server systemd[1]: traccar.service: Main process exited, code=exited, status=203/EXEC
Aug 16 19:52:23 home-server systemd[1]: traccar.service: Failed with result 'exit-code'.
~
~
~
~
[1]+ Stopped sudo systemctl status traccar
sudo apt remove --purge default-jre
sudo apt remove --purge default-jdk
sudo apt autoremove -y
root@RPi4B8GB:/home/pi# java -version
bash: java: command not found
wget https://github.com/traccar/traccar/releases/download/v6.4/traccar-linux-arm-6.4.zip
unzip traccar-linux-arm-6.4.zip
sudo ./traccar.run
sudo su
root@RPi4B8GB:/home/pi# /opt/traccar/jre/bin/java -version
openjdk version "21.0.4" 2024-07-16 LTS
OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.4+7 (build 21.0.4+7-LTS, mixed mode)
root@RPi4B8GB:/home/pi# systemctl start traccar
root@RPi4B8GB:/home/pi# systemctl status traccar
● traccar.service - traccar
Loaded: loaded (/etc/systemd/system/traccar.service; enabled; preset: enabled)
Active: active (running) since Fri 2024-08-16 20:51:36 EAT; 2h 19min ago
Main PID: 853 (java)
Tasks: 55 (limit: 8730)
CGroup: /system.slice/traccar.service
└─853 /opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml
Aug 16 20:51:36 RPi4B8GB systemd[1]: Started traccar.service - traccar.
Aug 16 20:53:35 RPi4B8GB traccar[853]: Database is up to date, no changesets to execute
Aug 16 20:53:35 RPi4B8GB traccar[853]: UPDATE SUMMARY
Aug 16 20:53:35 RPi4B8GB traccar[853]: Run: 0
Aug 16 20:53:35 RPi4B8GB traccar[853]: Previously run: 49
Aug 16 20:53:35 RPi4B8GB traccar[853]: Filtered out: 0
Aug 16 20:53:35 RPi4B8GB traccar[853]: -------------------------------
Aug 16 20:53:35 RPi4B8GB traccar[853]: Total change sets: 49
root@RPi4B8GB:/home/pi#
bristol406 do this:
cd /opt/traccar
/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml
pi@home-server:/opt/traccar $
/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml
-bash: /opt/traccar/jre/bin/java: No such file or directory
pi@home-server:/opt/traccar $
But there is such file, right? You need to check why your OS doesn't think there's a file. Possibly permissions issue or something. Also you have to run it as root.
Then it means traccar is not installed.
Is this not the installation ?
pi@home-server:/opt/traccar $ ls
conf data jre lib logs schema templates tracker-server.jar web
pi@home-server:/opt/traccar $
I thought that traccar automatically ran as root. If it doesn't how do I force it ?
We're talking about running the command manually.
pi@home-server:/opt/traccar $ sudo /opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml
sudo: unable to execute /opt/traccar/jre/bin/java: No such file or directory
pi@home-server:/opt/traccar $
I guess it must be permissions issue but it was jus a standard installation
ls -al /opt/traccar/jre/bin/java
??
And which installer did you download?