bash: /opt/traccar/jre/bin/java : impossible d’exécuter le fichier binaire : Erreur de format pour the content of traccar.xml file. 18 08:58:53 ubuntu systemd: rvice: Failed with result /opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml 18 08:58:53 ubuntu systemd: rvice: Unit entered failed state. 18 08:58:53 ubuntu systemd: rvice: Main process exited, code=e 18 08:58:53 ubuntu systemd: rvice: Failed at step EXEC spaw The traccar config path is /opt/traccar/conf To change the default.xml: 18082. 18 08:58:53 ubuntu systemd: Started traccar. since port 8082 is used by others, i modified it. Main PID: 5214 (code=exited, status=203/EXEC) Process: 5214 ExecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf bash: /opt/traccar/jre/bin/java : impossible d’exécuter le fichier binaire : Erreur de format pour save traccar.xml fil and i restart my server but tje probleme is persist systemctl start systemctl status traccarĪctive: failed (Result: exit-code) since ven. 17 15:57:06 ubuntu systemd: rvice: Failed with result /opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml 17 15:57:06 ubuntu systemd: rvice: Unit entered failed state. 17 15:57:06 ubuntu systemd: rvice: Main process exited, code=e 17 15:57:06 ubuntu systemd: Started traccar. Loaded: loaded (/etc/systemd/system/rvice enabled vendor preset:Īctive: failed (Result: exit-code) since jeu. Vi /usr/local/etc/nginx/conf.d/Īccess_log /var/log/ Įrror_log /var/log/ is the screen log ps ax | grep traccarĤ86 pts/1 S+ 0:00 grep -color=auto traccarĢ062 pts/1 T 0:00 vi ps ax | grep traccarĤ89 pts/1 R+ 0:00 grep -color=auto traccarĢ062 pts/1 T 0:00 vi systemctl status traccar Include /usr/local/etc/nginx/conf.d/*.conf # Load config files from the /etc/nginx/conf.d directory #* And strip down the config file and add the include statement at the end to make it easier to handle various server blocks: did it well as Linux Ubuntu Desktop 20.10 also did well. Note that my Raspberry Pi 4 is a 64 bit machine, indeed with ARM architecture but traccar linux 4.12.
In the meanwhile I picked up already some basic Linux commands. * Create a configuration directory to make managing individual server blocks easier Therefore I installed this morning Linux Ubuntu 20.10 Desktop again on my RPI and in a while I will install Traccar ARM 4.12. In Traccar system Jetty is used to serve the following main components: Web API. It is used in many popular products and frameworks. Jetty is a stable and mature implementation of Java HTTP server and Servlet container. Jdbc:mysql://127.0.0.1:3306/traccardb?allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=ANSI_QUOTESĮcho 'traccar_enable="YES"' > /etc/rc.confĮcho 'nginx_enable="YES"' > /etc/rc.conf Traccar system includes an embedded Jetty web server. #* And modify the database configuration: Vi /usr/local/www/traccar/conf/traccar.xml Sed -i '' -e 's/\/opt/\/usr\/local\/www/g' /usr/local/www/traccar/conf/traccar.xml By default Traccar Server uses embedded H2 database. Start_cmd="/usr/sbin/daemon -p $pidfile -u $traccar_user $command $command_args > $traccar_stdout 2> $traccar_stderr" © 2023 Google LLC Install Traccar Server Linux Demonstration - Ubuntusudo apt-get install unzipsudo apt-get install python-software-propertiessudo apt-get install software-pro. Required_files="$traccar_root/conf/traccar.xml" : $Ĭommand_args="-jar $traccar_root/tracker-server.jar $traccar_root/conf/traccar.xml" # Add the following lines to /etc/rc.conf to enable `traccar': Sh n -noexec -target /usr/local/www/traccar GRANT ALL PRIVILEGES ON `traccardb`.* TO Then quit out of the mysql interface:
#* And create the database traccardb and make the traccaruser the owner:ĬREATE DATABASE IF NOT EXISTS `traccardb` However, in this review, I have listed one Linux hosting and one. On the other hand, if you run Traccar on a Windows hosting, you would have to get expensive specs add-ons to make sure that Traccar runs smoothly. It will perform smoothly even on weaker hardware specs on Linux. #* Then create the user traccaruser for the databaseĬREATE USER IDENTIFIED BY 'SuperSecretPassword' Thus, I am going to recommend hosting Traccar on a Linux server. * Change the ownership of the traccar directory to traccar user:Ĭhown traccar:traccar /usr/local/www/traccarĮcho 'mysql_enable="YES"' > /etc/rc.conf Pw useradd traccar -c Traccar -m -d /home/traccar -g traccar -s /bin/sh Traccar is implemented in Java, so it can be used on any platform that supports Java virtual machine. Pkg install openjdk-jre maven3 mysql-connector-java git unzip Updated by Daniel Curtis over 8 years ago This is a guide for installing the Traccar GPS tracking server on FreeBSD 9.