![]() ![]() When I look into the rvice file I see indeed the following:Ĭan I just change the rvice and save it?Īnd which is the correct path to be used? (usr/bin/java or usr/share/java?)Īnd of course I have to save the modified file somewhere else in case I will do in future another traccar download installation. (In the meanwhile I have given the commands:īoth were successful but did not change anything in the "sudo systemctl start traccar" command) Now the question is: which one is the correct path to the non-self-installed java? To my opinion that gives 2 locations: (the last one probably is not an application launcher?)Īs you know I installed one package my selves and, I guess, the other one probably was included in the traccar download. ![]() Java: /usr/bin/java /usr/share/java /usr/share/man/man1/java.1.gz (OR, just "java" instead of the whole path to /opt/traccar/jre/bin/ or whatever your whereis java command returns) Try both if the first doesn't work please. If you replace the ExecStart line with the result from "whereis java" and leave the rest of the line intact, it might work. It's in /etc/systemd/system/rvice.ĮxecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml Secondly, please check the systemd script for traccar. It's probably different than the one in /opt/traccar/jre/bin. Please check, as root, "whereis java" <- This command should tell you where your java executable is. But nevermind, since you already reinstalled, it's not an issue. Shit luck :) You could have replaced the password hash in the database directly, but I'm not sure which hashing scheme is used. But that will take another (couple of?) day(s?). So that will leave only the option to start an init script I gues. Therefore I started the tracker-server.jar file manually by means of the (self installed) java launcher.Īnd the "sudo systemctl enable traccar" does not work either to start automatically at reboot. The "sudo systemctl start traccar" command does not work. How come? Is it because I closed the Terminal while it was still systemctl is-active traccar Some remarkable issues: the traccar system remains in the "actvating" mode. I have no experience (yet) with init scripts or the use of systemd therefore I studied the sysytemctl commands today. I am happy that all steps I made before are now understandable to me and especially repeatable. Therefore I installed java with the following command:Īfter this I could install the traccar server again by means sudo java -jar /opt/traccar/tracker-server.jar /opt/traccar/conf/traccar.xml Therefore I installed Linux Desktop Ubuntu 20.10 again.Īfter the usual instructions, the outcome was that in the correct folder (/opt/traccar/jre/bin) the java command was not found. (The system kept remembering me with the wrong password). After login in with admin, admin, I made a typing error in the password and logged out.Īfter various trials, I decided to install the traccar server again. I was also able to restart the server (manually) after a restart of my Raspberry.Īfter that I made a "big mistake". The latest source code from master branches is not guaranteed. For other repositories check the Traccar organization on GitHub. Below you can find links to the main repos. Each project and app has its own dedicated repository. All repositories are public and hosted on GitHub. The source code of our React.js app is inside /modern folder.This morning the system was still running. Traccar uses Git repositories to manage the source code. The Dockerfile is placed in /frontend folder that contains both old and /modern web app interfaces. Here the structure of the project The Server Dockerfile The Frontend (React App) Dockerfile Rather, while it’s possible with docker why not taking advantage of docker-compose to run the frontend and the backend in dev or production mode with a single line. I decided to not use any specific IDE as the documentation suggests to build the dependencies and run the project. now opened client in mobile, enter details, but it always stop or stuck in Location update, even i already enabled GPS and all, also gps position is able to use by other app fine. The frontend isn’t fully complete at the date of the publication of the current article, but it’s very interesting taking into consideration the advantages offered by React.js. enabled the 'All traffic' in security group, now abale to access my server using myserverip:8082. The backend is written in Java, a modern frontend (web app) that was recently developed in React.js has been implemented, it might replace the classic interface in the future. ![]() Traccar is an awesome open source GPS tracking platform. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |