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". Hint: Some lines were ellipsized, use -l to show in will wipe everything and start over using your instructions.This morning the system was still running. Jan 23 16:59:04 traccar: WARNING: All illegal acce. Jan 23 16:59:04 traccar: WARNING: Use -illegal-ac. Jan 23 16:59:04 traccar: WARNING: Please consider. Jan 23 16:59:04 traccar: WARNING: Illegal reflecti. Jan 23 16:59:04 traccar: WARNING: An illegal refle. Jan 23 16:58:58 systemd: Started traccar. └─1121 /opt/traccar/jre/bin/java -jar tracker-server.jar conf/trac. Loaded: loaded (/etc/systemd/system/rvice enabled vendor preset:Īctive: active (running) since Thu 16:58:58 CST 13s ago Use the latest release when using the master branch for development. Make sure you have a compatible version of Traccar installed. Now you can just replace the file in your Traccar installation and restart the service for changes to take affect. are the results of what you suggested: /# sudo systemctl restart rviceĬT-5ef7f4e3 /# sudo systemctl status rvice It will automatically download all dependencies and generate tracker-server.jar in the target subfolder.Any help proceeding to the next step would be really appreciated! "sudo: /opt/traccar/bin/startDaemon.sh: command not found" (this appears to be the command for versions < 4.1 via and I figure it is worth a try.) "sudo: /opt/traccar/bin/traccar: command not found " This ultimately results in "Complete!" - which makes me think it has successfully installed. (This can be changed to several other common Linux operating systems if it makes installing easier). I am attempting to install Traccar v4.7 on a system running CentOS 7. I am new to using a VPS, and linux in general.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |