Traccr on raspberian/raspberry pi model b: Segmentation fault and

spel9 years ago

Hello,

I habe a problem to run traccar on a raspberry PI, model B.

the versions:

Linux rasp0 4.1.13+ #826 PREEMPT Fri Nov 13 20:13:22 GMT 2015 armv6l GNU/Linux

java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)

installed: traccar-linux-arm-3.3.zip


root@rasp0:/home/pi# ./traccar.run
Verifying archive integrity... All good.
Uncompressing traccar 100%
Detected Ubuntu or Debian:
The traccar daemon is already installed.


root@rasp0:/home/pi# /opt/traccar/bin/traccar start
Starting traccar...
Segmentation fault
Waiting for traccar..................
WARNING: traccar may have failed to start.
root@rasp0:/home/pi#


Thank you for help!
Sorry for my english.

Christoph

Anton Tananaev9 years ago

Please read following thread:

https://github.com/tananaev/traccar/issues/106

spel9 years ago

Hello Anton,

thanks for answer! - I am not the linux expert and I do not understand the problem. Is the Java Service Wrapper the reason? On Google Drive there are no files.

thanks!

spel9 years ago

This start the server:

java -jar tracker-server.jar conf/traccar.xml

Anton Tananaev9 years ago

Yes, you can always manually start server from terminal using that command.

spel9 years ago

Okay thanks a lot!

Is is possible to start automatically? I start with SSH/putty. When I closed the console then the server is not reachable..

Anton Tananaev9 years ago

You can probably write some init script. That's what Java Service Wrapper is for, but it doesn't always work on Raspberry PI.

spel9 years ago

Okay...

I think I can not write a script...

Works it on Raspberry PI 2?

Anton Tananaev9 years ago

I don't have any version to try, so I don't know.

spel9 years ago

Hello,

it is possible to start with a cronjob:

http://www.forum-raspberrypi.de/Thread-tutorial-tracking-server-mit-traccar

I write "@reboot java -jar tracker-server.jar opt/traccar/conf/traccar.xml".

But the server does not start.

Thanks for help.

spel

Anton Tananaev9 years ago

You need to use full paths for jar and configuration files.