My guess is that you don't have enough resources.
Hi Anton,
i see that some people are running it without problems.
https://www.traccar.org/forums/topic/raspberry-pi-server/#post-27216
Do you think i can play with the java max heap and initial size?:
Starting with version 4.1, YAJSW is no longer used, so you change the java heap size by adding following to the start script:
-Xmx to specify the maximum heap size
-Xms to specify the initial Java heap size
On Linux the start script can be typically found at /etc/systemd/system/traccar.service:
ExecStart=/opt/traccar/jre/bin/java -Xmx1G -jar tracker-server.jar conf/traccar.xml
If i would like to set the both Xmx and Xms can i do this in one line:
ExecStart=/opt/traccar/jre/bin/java -Xmx450MB -Xms400Mb -jar tracker-server.jar conf/traccar.xml
?
Greets Sava
I have found something very similar to my issue.So it is probably because of the Pi Zero Armv6 architecture, although the issue is with grafana:
I’ve seen this error too. The error is a result of trying to use your ARMv7 binary on ARMv6. All the quad-core Pi’s (2, 3 and 3+) are v7 while the single-core (A, B, and Zero) are v6. Installation works fine since Raspbian is “armhf”, however the binary will get a SIGKILL due to illegal instructions.
Could you please make the binary ARMv6 compatible to allow use on all Raspberry Pi’s? It’s as easy as adding GOARM=6 to your build environment. I believe the performance won’t be affected much (as all of Raspbian, the official Pi OS, is built that way). The former fg2it binaries were built that way too, however he has discontinued updates after official binaries for ARM became available.
If you can find ARMv6 OpenJDK distribution, we can integrate it. For now you can just use local Java instead of bundled one.
Is it compatible with jlink?
it should be ,based on this post:
https://www.azul.com/the-incredible-shrinking-java-platform/
You can try to compile installer using this build script:
https://github.com/traccar/traccar/blob/master/setup/package.sh
If everything works well, we can include it.
Hi Anton,
i have installed the 4.0 version,without doing any changes.And it runs perfectly, using the standart :
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-2~deb9u1-b13)
OpenJDK Client VM (build 25.181-b13, mixed mode)
So my question, what exactly changed in the 4.1 onwards in terms armv6 architecture?Is it only ARMv7 binary and higher supported?
I will look into your suggestion.
Greets Sava
We include JRE with installer now. That's the difference.
Hi Anton,
thx for the feedback.I have downloaded the latest version and started it without the integrated JRE, but with the Azul:
OpenJDK Runtime Environment (Zulu Embedded 8.25.0.76-linux-aarch32hf) (build 1.8.0_152-b76)
OpenJDK Client VM (Zulu Embedded 8.25.0.76-linux-aarch32hf) (build 25.152-b76, mixed mode, Evaluation)
It works perfectly!
Thank you very much!
Greets Sava
How can I do this. I have
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b01-1+rpi1-b01)
OpenJDK Client VM (build 25.212-b01, mixed mode)
Installed on my PI Zero, yet still I am getting
Apr 6 09:02:27 raspberrypi systemd[1]: traccar.service: Failed with result 'signal'.
Please help!
I have managed to start the server successfully by coping my java folder to the /opt/traccar/jdk folder and overwriting it.
However, with the server running and after a netstat -an I don't see any active connections in the LISTENING state on 8082.
No errors reported in syslog.
Any ideas?
Thanks
Have you checked Traccar logs?
Hi guys,
i have some problems starting the traccar service on pi zero running raspbian strech lite.
This is what i get.Probably because pi zero is armv6,i do not know.Any suggestions?
Regards Sava