Service does not start anymore

Sérgio Soares6 years ago

Hello,

i have made traccar instalation on windows and everything was working well.

Now the service does not start.

This is my log file:

WARNING|wrapper|Service traccar|17-12-12 20:19:18|YAJSW: yajsw-stable-12.09
WARNING|wrapper|Service traccar|17-12-12 20:19:18|OS   : Windows 10/10.0/amd64
WARNING|wrapper|Service traccar|17-12-12 20:19:18|JVM  : Oracle Corporation/1.8.0_152/C:\Program Files\Java\jre1.8.0_152/64
INFO|wrapper|Service traccar|17-12-12 20:19:18|start delay: 0
INFO|wrapper|Service traccar|17-12-12 20:19:18|started process with pid 6760
INFO|6760/0|Service traccar|17-12-12 20:19:20|[INFO] StandardFileSystemManager - Using "C:\WINDOWS\TEMP\vfs_cache" as temporary files store.
INFO|6760/0|Service traccar|17-12-12 20:19:21|[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
INFO|6760/0|Service traccar|17-12-12 20:19:21|[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
INFO|6760/0|Service traccar|17-12-12 20:19:21|INFO 12/12/17 8:19 PM: liquibase: Clearing database change log checksums
INFO|6760/0|Service traccar|17-12-12 20:19:21|INFO 12/12/17 8:19 PM: liquibase: Successfully acquired change log lock
INFO|6760/0|Service traccar|17-12-12 20:19:21|INFO 12/12/17 8:19 PM: liquibase: Successfully released change log lock
INFO|6760/0|Service traccar|17-12-12 20:19:21|INFO 12/12/17 8:19 PM: liquibase: Successfully acquired change log lock
INFO|6760/0|Service traccar|17-12-12 20:19:22|INFO 12/12/17 8:19 PM: liquibase: Reading from PUBLIC.DATABASECHANGELOG
INFO|6760/0|Service traccar|17-12-12 20:19:22|INFO 12/12/17 8:19 PM: liquibase: Reading from PUBLIC.DATABASECHANGELOG
INFO|6760/0|Service traccar|17-12-12 20:19:22|INFO 12/12/17 8:19 PM: liquibase: ./schema/changelog-master.xml: changelog-3.8::changelog-3.8-dropuniquetoken::author: Change set changelog-3.8::changelog-3.8-dropuniquetoken::author failed, but failOnError was false.  Error: Constraint "UK_USER_TOKEN" not found; SQL statement:
INFO|6760/0|Service traccar|17-12-12 20:19:22|ALTER TABLE PUBLIC.users DROP CONSTRAINT uk_user_token [90057-196] [Failed SQL: ALTER TABLE PUBLIC.users DROP CONSTRAINT uk_user_token]
INFO|6760/0|Service traccar|17-12-12 20:19:22|INFO 12/12/17 8:19 PM: liquibase: Successfully released change log lock
INFO|6760/0|Service traccar|17-12-12 20:19:22|[main] INFO org.eclipse.jetty.util.log - Logging initialized @3856ms
INFO|6760/0|Service traccar|17-12-12 20:19:23|[main] INFO org.eclipse.jetty.server.Server - jetty-9.2.22.v20170606
INFO|6760/0|Service traccar|17-12-12 20:19:24|[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@7945b206{/api,null,AVAILABLE}
INFO|6760/0|Service traccar|17-12-12 20:19:24|[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.t.w.@6436e181{/,null,AVAILABLE}
INFO|6760/0|Service traccar|17-12-12 20:19:24|[main] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@65ef48f2{HTTP/1.1}{0.0.0.0:8082}
INFO|6760/0|Service traccar|17-12-12 20:19:24|[main] INFO org.eclipse.jetty.server.Server - Started @5403ms
INFO|wrapper|Service traccar|17-12-12 20:54:37|Win service stop - timeout: 30000
INFO|wrapper|Service traccar|17-12-12 20:54:37|Win service wrapper.control -> stopping application
INFO|wrapper|Service traccar|17-12-12 20:54:37|stopping process with pid/timeout 6760 45000
INFO|6760/0|Service traccar|17-12-12 20:54:38|wrapper manager received stop command
INFO|6760/0|Service traccar|17-12-12 20:54:38|[Thread-13] INFO org.eclipse.jetty.server.ServerConnector - Stopped ServerConnector@65ef48f2{HTTP/1.1}{0.0.0.0:8082}
INFO|6760/0|Service traccar|17-12-12 20:54:38|[Thread-13] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.t.w.@6436e181{/,null,UNAVAILABLE}
INFO|6760/0|Service traccar|17-12-12 20:54:38|[Thread-13] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@7945b206{/api,null,UNAVAILABLE}
INFO|wrapper|Service traccar|17-12-12 20:54:39|process exit code: 0
INFO|wrapper|Service traccar|17-12-12 20:54:39|Win service stop - after shutdown
INFO|wrapper|Service traccar|17-12-12 20:54:39|Win service stop - before notify
INFO|wrapper|Service traccar|17-12-12 20:54:39|Win service terminated
Anton Tananaev6 years ago

Usually it means lack of resources on the server.

Sérgio Soares6 years ago

Hello Anton,

thank you very much for your time.

Can, by chance, be another cause? I'm certain that i have the right resources.

By the way...this happened after a Windows 10 make an update and restart.

Cheers.

Anton Tananaev6 years ago

I don't think so. How much free memory do you have on the server and how many active devices and users do you have?

Sérgio Soares6 years ago

I have 1,4GB of memory available

Only have two users - the admin and another user created by me - and just one device because i'm just making a trial of Traccar to see how it works (and i must tell you that that it works very well and i'm very impressed!). But now i have this problem.

Also, i do not see the service running on the windows Services Window, even after making a new restart.

Anton Tananaev6 years ago

I guess memory shouldn't be an issue in that case. Not sure what else can be the problem. Sometimes the issue is with Java, but in that case service usually stops straight away.

I would recommend to run Traccar manually and see if there are any issues:

https://www.traccar.org/manual-installation/

Sérgio Soares6 years ago

Ok Anton...i will try and give feedback.

Sérgio Soares6 years ago

Hello Anton,

i have manually run Traccar.

command:

java -jar "c:\Program Files\Traccar\tracker-server.jar" "c:\Program Files\Traccar\conf\traccar.xml"  (this is in Windows 10 System)

result:

Exception in thread "main" java.io.FileNotFoundException: .\conf\default.xml (The system cannot find the path specified)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at org.traccar.Config.load(Config.java:37)
        at org.traccar.Context.init(Context.java:269)
        at org.traccar.Main.main(Main.java:35)
Anton Tananaev6 years ago

You need to run it from Traccar folder, or fix all paths in the config files.

Paulo Docto6 years ago

Hi, I have this error I just changed the db from traccar.xml

Java runtime name: Java HotSpot(TM) 64-Bit Server VM vendor: Oracle Corporation version: 25.181-b13
2018-08-11 22:51:36  INFO: Memory limit heap: 1707mb non-heap: 0mb
2018-08-11 22:51:36  INFO: Character encoding: UTF-8 charset: UTF-8
2018-08-11 22:51:36  INFO: Version: 3.17-SNAPSHOT

the service does not start
I'm using 3.17
Thank you

Anton Tananaev6 years ago

Where's the error? I don't see any.

Paulo Docto6 years ago

That is the last message in the log fike and the traccar service does not start

Anton Tananaev6 years ago

If service doesn't start, you should be looking at wrapper log file.

Paulo Docto6 years ago

Thank you. Read the error messages and was able to resolve

More power to you Anton and your team. Thank you

Haim Rodrik4 years ago

Paulo, How you did solve the problem. Please share and save similar tickets. looks many users have the same problem, including me.