Installing on Debian 9

unky5 years ago

Hello
Here is my Debian system version: "Debian GNU/Linux 9"
I have downloaded installation file for Linux: traccar-linux-64-4.8.zip
After execution file: traccar.run my Traccar server was installed in directory: /opt/traccar/
Service file "traccar.service" was also created in directory: /etc/systemd/system/

Then I have tried to start service: sudo systemctl start traccar.service
And after that nothing has happened and service was not started. After short investigetion I have tried to start traccar manually:

/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml

and the I have got message:
cannot execute binary file. Invalid executable file.
Then i have change directory to

/opt/traccar/jre/bin/

and I have tried to execut java manually and it seems that binary java file is not exectuable for Debian.
What is wrong with my installation?

Anton Tananaev5 years ago

What do you get if you run this:

uname -a
unky5 years ago

Here it is:

Linux WHS 4.9.0-8-686-pae #1 SMP Debian 4.9.130-2 (2018-10-27) i686 GNU/Linux
Anton Tananaev5 years ago

So, you are trying to install 64 bit version of Traccar onto a 32 bit operating system. Obviously, it's not going to work.

unky5 years ago

Ups...I thought this is 64bit Debian Version. Is this 32bit?

unky5 years ago

Is there possible to install traccar 4.8 on 32bit Debian OS?

Anton Tananaev5 years ago

You can just use Java version that comes with the system.

unky5 years ago

Here is my java:

OpenJDK Runtime Environment (build 1.8.0_242-8u242-b08-1~deb9u1-b08)
OpenJDK Server VM (build 25.242-b08, mixed mode)

Is it OK?