-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
traccar on raspberry pi #106
Comments
OK, so by following the treatment described in issue #89 - "Wrapper problems", I think I have enabled the server to run .
But the database appears empty when browsing to the device on through the web interface. Also there is no data in the logfile:
I know that the gps unit is configured correctly becuase netcat gives the following:
Do I have some permission problems or something? I ask about permission problems because running the command above as the local user crashes out with permission erorrs. Any ideas how I might get the service running and how to ensure that data is collected by the service? I still receive the errors identified on my first post when trying th start the service eg:
|
Well, first of all, 32 bit edition won't work as linux daemon, because it is for x86 processor... you still can run it manually. Permissions problem is because it is installed in /opt directory, which has write permissions only for root user, so application is probably trying to create log file and failing because regular user can't create files there... you can try to set write permission for your user on /opt/traccar recursively. I'll make ARM installer for you to try... |
Here is a build for armhf architecture - https://docs.google.com/open?id=0B2GwK26geA9eckp6c205eFQzdlU Please let me if it works fine... |
Thank you for such a fast build... but no luck :( removed per the readme.txt as instructed... then installed using the new install package per sudo sh ./traccar.run Segmentation fault now...
Can start the front end manually again per the second post, but am not collecting data in the log file or database Any other ideas? Would you like more data from my system? attaching "uname -a" in case it helps...
Let me know, Tim |
Looks like Java Service Wrapper that I am using to make traccar run as a Linux daemon is not compatible with your Linux distribution... The only option left is to run it manually as you mentioned in second post, just fix user permissions. ...or you can try install different raspberry pi Linux distribution. |
Thanks Anton, Just upon doing more reading, I suspect that my instance of java runtime is designed is for soft float (armel implementation rather than armhf). Maybe I can have a crack using a different implementation... Anyway, OK. Do you have any ideas why traccar is not recieving the monitoring events? As you have seen, I can start the system manually, but traccar is not collecting data - see my second post. Tim |
Here is armel version - https://docs.google.com/open?id=0B2GwK26geA9eR0t1UTlfVk4wSDA Meanwhile I'll test data from your second post... |
OK, My error on the data collection issue, sorry. I failed to update the configuration file for the meitrack protocol. I can run manually as you have indicated, or maybe change to the hard float implementation. Nevertheless, this appears to be an issue in OS version and compatibility with the wrapper. Thank you for your help. Tim |
Have you tried armel version? |
Not yet. Let me I'm away at the moment; let me get back to you |
Here is ARM installer that should work on both architectures - https://docs.google.com/file/d/0B2GwK26geA9eTHZEa0NiLTlqbXc/edit?usp=sharing |
you have to install the binutils to fix this error:
|
Thanks 1sthandy, binutils certainly addressed the readelf issue. Sadly Anton, the Segmentation fault issue on the wrapper seems to persist - even with with the special ARM build that you sent me. I've also changed java versions to the more recent java 8. per the below.
Issue is now:
Is there any logging that I can send you that might help? No urgency as the system obviously runs manually! |
Are you using armhf system? It is not compatible with Java Server Wrapper (which is third party module that I use), so it won't work. Only way is to run Traccar manually or from init scripts. |
Great, yes on the armhf platform. No problems, this is as we discussed some months ago. Completely understand. Thanks Anton. |
Hi, sorry for digging, but I have found that Java Service Wrapper (I haven't found any mention about Java Server Wrapper) have armhf binaries now. Does it mean, that it will work on Rpi without any problems? |
They always had armhf version, but it is not compatible with Raspberry Pi. See following stackoverflow answer: |
So it's possible to recompile JSW for mine RPi and noone mentioned it before, and it's good news :) And when it wouldn't work even after recompile I would just have to run traccar manually after every boot and it would stay as terminal window, am I right? |
You can always run Traccar manually. If you want to recompile JSW please share the result so other people can benefit as well. |
Yup, that's what I wanted to do :) just when I succed. And small info for |
Hi,
Trying to run traccar on a raspberry pi (32 bit ARM processor). JRE is installed OK (openJDK). 32 bit traccar installation is used.
However upon entering the following command:
Response is:
JRE is installed OK - using openJDK. installed java using: apt-get install openjdk-6-jre libjna-java
Any ideas?
Tim
The text was updated successfully, but these errors were encountered: