Traccar server not running

Phil8 years ago

Hi Anton,

I've installed Traccar on my Windows Server.

The back end service seems to be running but whenever I try to access it on the web browser it times out and return an error saying that localhost not accessible.

Whenever I try to restart the server and the service itself - it takes time to start but eventually starts. However the same problem still persists.

Please help

Phil8 years ago
WARNING|wrapper|Service traccar|17-03-17 11:04:42|YAJSW: yajsw-beta-12.07
WARNING|wrapper|Service traccar|17-03-17 11:04:42|OS   : Windows Server 2012 R2/6.3/amd64
WARNING|wrapper|Service traccar|17-03-17 11:04:42|JVM  : Oracle Corporation/1.8.0_111/C:\Java\jre-1.8.0_111/64
INFO|wrapper|Service traccar|17-03-17 11:04:44|start delay: 0
INFO|wrapper|Service traccar|17-03-17 11:04:46|started process with pid 3392
INFO|3392/0|Service traccar|17-03-17 11:04:57|[INFO] StandardFileSystemManager - Using "C:\Windows\TEMP\vfs_cache" as temporary files store.
INFO|3392/0|Service traccar|17-03-17 11:05:10|[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Started.
INFO|3392/0|Service traccar|17-03-17 11:05:27|INFO 3/17/17 11:05 AM: liquibase: Clearing database change log checksums
INFO|3392/0|Service traccar|17-03-17 11:05:28|INFO 3/17/17 11:05 AM: liquibase: Waiting for changelog lock....
...
INFO|3392/0|Service traccar|17-03-17 11:10:08|INFO 3/17/17 11:10 AM: liquibase: Waiting for changelog lock....
INFO|3392/0|Service traccar|17-03-17 11:10:18|INFO 3/17/17 11:10 AM: liquibase: Waiting for changelog lock....
INFO|3392/0|Service traccar|17-03-17 11:10:28|java.lang.reflect.InvocationTargetException
INFO|3392/0|Service traccar|17-03-17 11:10:28|	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO|3392/0|Service traccar|17-03-17 11:10:28|	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO|3392/0|Service traccar|17-03-17 11:10:28|	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO|3392/0|Service traccar|17-03-17 11:10:28|	at java.lang.reflect.Method.invoke(Unknown Source)
INFO|3392/0|Service traccar|17-03-17 11:10:28|	at org.rzo.yajsw.app.WrapperJVMMain.executeMain(WrapperJVMMain.java:60)
INFO|3392/0|Service traccar|17-03-17 11:10:28|	at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:43)
INFO|3392/0|Service traccar|17-03-17 11:10:28|Caused by: liquibase.exception.LockException: Could not acquire change log lock.  Currently locked by tomtracksads (197.96.139.238) since 3/14/17 5:40 PM
INFO|3392/0|Service traccar|17-03-17 11:10:28|	at liquibase.lockservice.StandardLockService.waitForLock(StandardLockService.java:190)
INFO|3392/0|Service traccar|17-03-17 11:10:28|	at liquibase.Liquibase.clearCheckSums(Liquibase.java:1335)
INFO|3392/0|Service traccar|17-03-17 11:10:28|	at org.traccar.database.DataManager.initDatabaseSchema(DataManager.java:140)
INFO|3392/0|Service traccar|17-03-17 11:10:28|	at org.traccar.database.DataManager.<init>(DataManager.java:68)
INFO|3392/0|Service traccar|17-03-17 11:10:28|	at org.traccar.Context.init(Context.java:176)
INFO|3392/0|Service traccar|17-03-17 11:10:28|	at org.traccar.Main.main(Main.java:35)
INFO|3392/0|Service traccar|17-03-17 11:10:28|	... 6 more
INFO|wrapper|Service traccar|17-03-17 11:10:29|calling onStop
INFO|wrapper|Service traccar|17-03-17 11:10:29|Win service stop - timeout: 30000
INFO|wrapper|Service traccar|17-03-17 11:10:29|Win service wrapper.control -> stopping application
INFO|wrapper|Service traccar|17-03-17 11:10:29|Win service stop - after shutdown
INFO|wrapper|Service traccar|17-03-17 11:10:29|Win service stop - before notify
INFO|wrapper|Service traccar|17-03-17 11:10:29|Win service terminated
WARNING|wrapper|Service traccar|17-03-17 11:14:20|YAJSW: yajsw-beta-12.07
WARNING|wrapper|Service traccar|17-03-17 11:14:20|OS   : Windows Server 2012 R2/6.3/amd64
WARNING|wrapper|Service traccar|17-03-17 11:14:20|JVM  : Oracle Corporation/1.8.0_111/C:\Java\jre-1.8.0_111/64
WARNING|wrapper|Service traccar|17-03-17 11:14:54|YAJSW: yajsw-beta-12.07
WARNING|wrapper|Service traccar|17-03-17 11:14:54|OS   : Windows Server 2012 R2/6.3/amd64
WARNING|wrapper|Service traccar|17-03-17 11:14:54|JVM  : Oracle Corporation/1.8.0_111/C:\Java\jre-1.8.0_111/64
INFO|wrapper|Service traccar|17-03-17 11:14:56|start delay: 0
INFO|wrapper|Service traccar|17-03-17 11:14:59|started process with pid 3604
INFO|3604/0|Service traccar|17-03-17 11:15:08|[INFO] StandardFileSystemManager - Using "C:\Windows\TEMP\vfs_cache" as temporary files store.
INFO|3604/0|Service traccar|17-03-17 11:15:19|[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Started.
INFO|3604/0|Service traccar|17-03-17 11:15:30|INFO 3/17/17 11:15 AM: liquibase: Clearing database change log checksums
INFO|3604/0|Service traccar|17-03-17 11:15:31|INFO 3/17/17 11:15 AM: liquibase: Waiting for changelog lock....
Phil8 years ago

Latest Log:

INFO|3604/0|Service traccar|17-03-17 11:15:30|INFO 3/17/17 11:15 AM: liquibase: Clearing database change log checksums
INFO|3604/0|Service traccar|17-03-17 11:15:31|INFO 3/17/17 11:15 AM: liquibase: Waiting for changelog lock....
INFO|3604/0|Service traccar|17-03-17 11:15:41|INFO 3/17/17 11:15 AM: liquibase: Waiting for changelog lock....
INFO|3604/0|Service traccar|17-03-17 11:15:51|INFO 3/17/17 11:15 AM: liquibase: Waiting for changelog lock....
INFO|3604/0|Service traccar|17-03-17 11:16:01|INFO 3/17/17 11:16 AM: liquibase: Waiting for changelog lock....
Anton Tananaev8 years ago

Your database is locked. Usually it means that you stopped the service during schema migration.

Options:

  1. Restore from backup and do upgrade again.
  2. Remove database and start from scratch.
  3. Manually repair database. Only if you have enough technical expertise to do it.
Phil8 years ago

Hi Anton,

Thank you for the feedback

If I choose option 2. Romoving the database and starting from scratch. Do I simple delete the database file and restart the service? If yes, which database file exactly?

Anton Tananaev8 years ago

Yes, data files are in the "data" folder.