Installation problem on Armbian buster

Almotra4 years ago

Hello,
I am trying to install traccar on armbian buster.
I type :

wget https://github.com/tananaev/traccar/releases/download/v4.7/traccar-linux-arm-4.7.zip
unzip traccar-linux-arm-4.7.zip
rm traccar-linux-arm-4.7.zip
sudo ./traccar.run
sudo reboot

After reboot I have nothing on my-ip: 8082
Can someone tell me if I made a mistake?

cordially
Alex

Anton Tananaev4 years ago

Have you do any troubleshooting?

Almotra4 years ago

No, and I don't know how to do it.
Can you confirm that my installation procedure is correct?

Almotra4 years ago

traccar does not start, and I am nothing in opt / traccar / data.
How to find out where the problem comes from.

Anton Tananaev4 years ago

Try running it manually and see if it gives any errors.

Almotra4 years ago

Can you tell me how to start it manually, and how to know if there are errors?
I'm French, I use google translation and it's a bit complicated to understand.

Almotra4 years ago

Hello,
When I type the command sudo systemctl status traccar.service
I have this result:

root@arm-64:~# sudo systemctl status traccar.service
● traccar.service - traccar
   Loaded: loaded (/etc/systemd/system/traccar.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2020-02-21 16:40:22 UTC; 53s ago
  Process: 923 ExecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml (code=exited, status=203/EXEC)
 Main PID: 923 (code=exited, status=203/EXEC)

Feb 21 16:40:22 arm-64 systemd[1]: Started traccar.
Feb 21 16:40:22 arm-64 systemd[923]: traccar.service: Failed to execute command: No such file or directory
Feb 21 16:40:22 arm-64 systemd[923]: traccar.service: Failed at step EXEC spawning /opt/traccar/jre/bin/java: No such file or directory
Feb 21 16:40:22 arm-64 systemd[1]: traccar.service: Main process exited, code=exited, status=203/EXEC
Feb 21 16:40:22 arm-64 systemd[1]: traccar.service: Failed with result 'exit-code'.

Can someone tell me what to do?

Almotra4 years ago

Please
someone has a solution ????

Anton Tananaev4 years ago

As I said, try running it manually.

Almotra4 years ago

Thank, but how to do it ???

Anton Tananaev4 years ago

You run the same command that the systemd service runs, but from the command line.

Almotra4 years ago

thank you but what command ???

Anton Tananaev4 years ago

I think I provided enough information to troubleshoot the issue, assuming you have some basic knowledge and do some research. If you want someone to hold your hand through the process, we also provide paid support.

Almotra4 years ago

I have searched for a long time, but no one gives concrete answers.
I have nothing in the logs and nothing in opt / traccar / data.
I would just like to know how to translate the above startup error and what command to launch it manually.

The java version included in the install file traccar-linux-arm-4.7.zip, is 32-bit.
Alternatives to fix:

  1. You need to use manual install https://www.traccar.org/manual-installation/
  2. Ask Anton to make a arm64 version.... Please!
  3. Or do as I did: install the distros own java package: "apt install default-jre-headless"
    then delete the file /opt/traccar/jre/bin/java
    symlink /usr/bin/java to opt/traccar/jre/bin/java: "ln -s /usr/bin/java /opt/traccar/jre/bin/java"

It should now work as intended.