Is Traccar service running?
Hi Anton
It runs - for example it came up saying that it was running with PID:19697
When I look at running processes, it says:
19697 root 20 0 12592 2364 1800 S 0.0 0.2 0:00.07 wrapper
I try to go to the website: http://192.168.1.223:8082/ and I get error - connection refused. If I then look back at my processes, 19697 is still running.
Eventually it seems to stop running, because when I try to do a restart a bit later from the command line, it tells me that traccar isn't running.
Does that help?
Pete
What are the hardware specs?
Not sure if this is enough:
= OS/Debian information ================================================================================ Distributor ID: raspbian Description: Raspbian GNU/Linux 7 (wheezy) Release: 7.11 Codename: wheezy ================================================================================ = OpenMediaVault information ================================================================================ Release: 1.19 Codename: Kralizec ================================================================================ = Date ================================================================================ Thu Oct 6 20:11:10 AEDT 2016 ================================================================================ = Hostname ================================================================================ raspberrypi ================================================================================ = Locale ================================================================================ en_GB.UTF-8 ================================================================================ = System information ================================================================================ Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux top - 20:10:50 up 3 min, 0 users, load average: 0.20, 0.21, 0.10 Tasks: 116 total, 1 running, 115 sleeping, 0 stopped, 0 zombie %Cpu(s): 8.0 us, 4.4 sy, 0.0 ni, 85.4 id, 1.8 wa, 0.0 hi, 0.3 si, 0.0 st KiB Mem: 996736 total, 217048 used, 779688 free, 15912 buffers KiB Swap: 102396 total, 0 used, 102396 free, 106440 cached
1GB RAM should be enough.
I have raspberry pi 2 with 0,5GB RAM where is installed current raspbian
after installing and changing in default.xml one line
<entry key='web.path'>/var/www/html</entry>
service seems to me running see
pi@luzicka:/opt/traccar $ sudo service traccar status
â traccar.service - LSB: yajsw wrapper for Traccar
Loaded: loaded (/etc/init.d/traccar)
Active: active (running) since Thu 2017-02-02 16:32:07 UTC; 1min 41s ago
Process: 692 ExecStop=/etc/init.d/traccar stop (code=exited, status=0/SUCCESS)
Process: 4340 ExecStart=/etc/init.d/traccar start (code=exited, status=0/SUCCESS)
Main PID: 4352 (java)
CGroup: /system.slice/traccar.service
ââ4352 java -Dwrapper.pidfile=/run/wrapper.traccar.pid -Dwrapper.service=true -Dwrapper.visible=false -Djna_tmpdir=/opt/traccar/tmp -jar /opt/tr...
ââ4367 java -classpath /opt/traccar/wrapperApp.jar:/opt/traccar/tracker-server.jar:/opt/traccar/lib/log4j-1.2.17.jar:/opt/traccar/lib/joda-time-...
Feb 02 16:32:02 luzicka traccar[4340]: Feb 02, 2017 4:32:02 PM org.rzo.yajsw.os.posix.PosixService getPid
Feb 02 16:32:02 luzicka traccar[4340]: INFO: wrapper pid file: /run/wrapper.traccar.pid
Feb 02 16:32:04 luzicka traccar[4340]: Feb 02, 2017 4:32:04 PM org.rzo.yajsw.os.posix.PosixService getPid
Feb 02 16:32:04 luzicka traccar[4340]: INFO: wrapper pid file: /run/wrapper.traccar.pid
Feb 02 16:32:06 luzicka traccar[4340]: Feb 02, 2017 4:32:06 PM org.rzo.yajsw.os.posix.PosixService getPid
Feb 02 16:32:06 luzicka traccar[4340]: INFO: wrapper pid file: /run/wrapper.traccar.pid
Feb 02 16:32:06 luzicka traccar[4340]: Feb 02, 2017 4:32:06 PM org.rzo.yajsw.os.posix.PosixService getPid
Feb 02 16:32:06 luzicka traccar[4340]: INFO: wrapper pid file: /run/wrapper.traccar.pid
Feb 02 16:32:06 luzicka traccar[4340]: Service traccar started
Feb 02 16:32:07 luzicka systemd[1]: Started LSB: yajsw wrapper for Traccar.
pi@luzicka:/opt/traccar $ lynx localhost:8082
Looking up 'localhost' first
Looking up localhost first
Looking up localhost:8082
Making HTTP connection to localhost:8082
Alert!: Unable to connect to remote host.
lynx: Can't access startfile http://localhost:8082/
but even lynx can't reach it. after few minutes traccar die
pi@luzicka:/opt/traccar $ sudo service traccar status
â traccar.service - LSB: yajsw wrapper for Traccar
Loaded: loaded (/etc/init.d/traccar)
Active: inactive (dead) since Thu 2017-02-02 16:38:20 UTC; 5min ago
it's look i ha ve to use bigger HW isn't?
Fanda
You should check logs.
I looks this is problematic part of wrapper log:
Caused by: liquibase.exception.LockException: Could not acquire change log lock. Currently locked by..my raspberry
It looks like the database table got locked because the process was terminated. Now you need to manually unlock it or re-create the database.
can you please describe to me what to type to command line to clear database?
I wasn't hurry during installation I just follow your instructions so type
sudo ./traccar.run
and after
sudo /opt/traccar/bin/startDaemon.sh
all process finished fine
thank you
If you are using default H2 database, you can just remove the file to clear the database. You will lose all the data.
I removed log lock by
./bin/stopDaemon.sh ./bin/uninstallDaemon.sh
then rm data/* and log/*
set up
wrapper.startup.timeout = 220 wrapper.shutdown.timeout = 100 wrapper.ping.timeout = 60
in conf/wrapper.conf.default
reboot
./bin/installDaemon.sh
OK
./bin/startDaemon.sh
OK
now log wrote
WARNING|wrapper|Service traccar|17-02-08 12:04:22|YAJSW: yajsw-beta-12.07 WARNING|wrapper|Service traccar|17-02-08 12:04:22|OS : Linux/4.1.19+/arm WARNING|wrapper|Service traccar|17-02-08 12:04:22|JVM : Oracle Corporation/1.8.0_65//usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/32 INFO|wrapper|Service traccar|17-02-08 12:04:25|exec:"java" "-classpath" "/opt/traccar/wrapperApp.jar:/opt/traccar/tracker-server.jar:/opt/traccar/lib/log4j-1.2.17.jar:/opt/traccar/lib/joda-time-2.9.6.jar:/opt/traccar/lib/h2-1.4.193.jar:/opt/traccar/lib/mysql-connector-java-5.1.40.jar:/opt/traccar/lib/postgresql-9.4.1212.jre7.jar:/opt/traccar/lib/mssql-jdbc-6.1.0.jre7.jar:/opt/traccar/lib/HikariCP-java7-2.4.9.jar:/opt/traccar/lib/slf4j-api-1.7.21.jar:/opt/traccar/lib/netty-3.10.6.Final.jar:/opt/traccar/lib/async-http-client-1.9.40.jar:/opt/traccar/lib/slf4j-simple-1.7.21.jar:/opt/traccar/lib/javax.json-1.0.4.jar:/opt/traccar/lib/jetty-server-9.2.19.v20160908.jar:/opt/traccar/lib/javax.servlet-api-3.1.0.jar:/opt/traccar/lib/jetty-http-9.2.19.v20160908.jar:/opt/traccar/lib/jetty-io-9.2.19.v20160908.jar:/opt/traccar/lib/jetty-servlet-9.2.19.v20160908.jar:/opt/traccar/lib/jetty-security-9.2.19.v20160908.jar:/opt/traccar/lib/jetty-webapp-9.2.19.v20160908.jar:/opt/traccar/lib/jetty-xml-9.2.19.v20160908.jar:/opt/traccar/lib/jetty-jndi-9.2.19.v20160908.jar:/opt/traccar/lib/jetty-util-9.2.19.v20160908.jar:/opt/traccar/lib/websocket-server-9.2.19.v20160908.jar:/opt/traccar/lib/websocket-common-9.2.19.v20160908.jar:/opt/traccar/lib/websocket-api-9.2.19.v20160908.jar:/opt/traccar/lib/websocket-client-9.2.19.v20160908.jar:/opt/traccar/lib/websocket-servlet-9.2.19.v20160908.jar:/opt/traccar/lib/jersey-container-servlet-2.24.jar:/opt/traccar/lib/jersey-container-servlet-core-2.24.jar:/opt/traccar/lib/javax.inject-2.5.0-b05.jar:/opt/traccar/lib/jersey-common-2.24.jar:/opt/traccar/lib/javax.annotation-api-1.2.jar:/opt/traccar/lib/jersey-guava-2.24.jar:/opt/traccar/lib/hk2-api-2.5.0-b05.jar:/opt/traccar/lib/hk2-utils-2.5.0-b05.jar:/opt/traccar/lib/aopalliance-repackaged-2.5.0-b05.jar:/opt/traccar/lib/hk2-locator-2.5.0-b05.jar:/opt/traccar/lib/javassist-3.20.0-GA.jar:/opt/traccar/lib/osgi-resource-locator-1.0.1.jar:/opt/traccar/lib/jersey-server-2.24.jar:/opt/traccar/lib/jersey-client-2.24.jar:/opt/traccar/lib/jersey-media-jaxb-2.24.jar:/opt/traccar/lib/validation-api-1.1.0.Final.jar:/opt/traccar/lib/javax.ws.rs-api-2.0.1.jar:/opt/traccar/lib/jersey-media-json-jackson-2.24.jar:/opt/traccar/lib/jersey-entity-filtering-2.24.jar:/opt/traccar/lib/jackson-jaxrs-base-2.5.4.jar:/opt/traccar/lib/jackson-core-2.5.4.jar:/opt/traccar/lib/jackson-databind-2.5.4.jar:/opt/traccar/lib/jackson-jaxrs-json-provider-2.5.4.jar:/opt/traccar/lib/jackson-module-jaxb-annotations-2.5.4.jar:/opt/traccar/lib/jackson-annotations-2.5.4.jar:/opt/traccar/lib/liquibase-core-3.5.3.jar:/opt/traccar/lib/snakeyaml-1.17.jar:/opt/traccar/lib/mail-1.4.7.jar:/opt/traccar/lib/activation-1.1.jar:/opt/traccar/lib/jxls-2.3.0.jar:/opt/traccar/lib/commons-jexl-2.1.1.jar:/opt/traccar/lib/commons-logging-1.1.1.jar:/opt/traccar/lib/commons-beanutils-1.9.2.jar:/opt/traccar/lib/jcl-over-slf4j-1.7.12.jar:/opt/traccar/lib/logback-core-1.1.3.jar:/opt/traccar/lib/jxls-poi-1.0.11.jar:/opt/traccar/lib/poi-3.14.jar:/opt/traccar/lib/commons-codec-1.10.jar:/opt/traccar/lib/poi-ooxml-3.14.jar:/opt/traccar/lib/poi-ooxml-schemas-3.14.jar:/opt/traccar/lib/xmlbeans-2.6.0.jar:/opt/traccar/lib/stax-api-1.0.1.jar:/opt/traccar/lib/curvesapi-1.03.jar:/opt/traccar/lib/velocity-1.7.jar:/opt/traccar/lib/commons-collections-3.2.1.jar:/opt/traccar/lib/commons-lang-2.4.jar" "-Dfile.encoding=UTF-8" "-Xrs" "-Dwrapper.service=true" "-Dwrapper.console.visible=false" "-Dwrapper.port=15003" "-Dwrapper.key=-801225126304536014" "-Dwrapper.teeName=-801225126304536014$1486555461731" "-Dwrapper.tmp.path=/opt/traccar/tmp" "-Djna_tmpdir=/opt/traccar/tmp" "-Dwrapper.config=/opt/traccar/conf/wrapper.conf" "-Dwrapper.visible=false" "-Dwrapper.pidfile=/run/wrapper.traccar.pid" "org.rzo.yajsw.app.WrapperJVMMain" INFO|wrapper|Service traccar|17-02-08 12:04:25|posix_spawn pid 1185 INFO|wrapper|Service traccar|17-02-08 12:04:25|started process 1185 INFO|wrapper|Service traccar|17-02-08 12:04:26|started process with pid 1185 INFO|1185/0|Service traccar|17-02-08 12:04:44|[INFO] StandardFileSystemManager - Using "/tmp/vfs_cache" as temporary files store. WARNING|1185/0|Service traccar|17-02-08 12:04:55|startup of java application timed out. if this is due to server overload consider increasing wrapper.startup.timeout INFO|1185/0|Service traccar|17-02-08 12:04:56|[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Started.
and
2017-02-08 12:04:55 INFO: Operating system name: Linux version: 4.1.19+ architecture: arm 2017-02-08 12:04:55 INFO: Java runtime name: Java HotSpot(TM) Client VM vendor: Oracle Corporation version: 25.65-b01 2017-02-08 12:04:55 INFO: Memory limit heap: 106mb non-heap: 0mb 2017-02-08 12:04:55 INFO: Character encoding: UTF-8 charset: UTF-8 2017-02-08 12:04:55 INFO: Version: 3.9-SNAPSHOT
but not run
/opt/traccar $ sudo service traccar status â traccar.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead)
any idea please how to start trackcar please?
As you can see from the log, it still timed out.
Hey all,
I've been trying to get traccar to run on my Raspberry Pi (v2). The ip address of the Pi is 192.168.1.223
I followed the following steps from a website to install it:
I can't access it from my browser, I get an error - connection refused page.
I've checked the traccar and wrapper logs, can't see anything amiss.
Tried turning off firewalls in router and windows, no joy. The Raspberry Pi runs nginx - do I need to change anything there?
Any help appreciated.
Pete