server does not start after server reboot

Paulo Docto6 years ago

Hi,
I'm using 3.15 version with postgres.
Initially, server is working and added devices successfully, I restarted the server become 1 of the devices cannot seem to online.
When I restarted the OS server, it did not start and gave this error messages.

NG|wrapper|Service traccar|18-08-13 22:31:20|YAJSW: yajsw-stable-12.11
WARNING|wrapper|Service traccar|18-08-13 22:31:20|OS   : Windows Server 2008 R2/6.1/amd64
WARNING|wrapper|Service traccar|18-08-13 22:31:20|JVM  : Oracle Corporation/1.8.0_181/C:\Program Files\Java\jre1.8.0_181/64
INFO|wrapper|Service traccar|18-08-13 22:31:20|start delay: 0
INFO|wrapper|Service traccar|18-08-13 22:31:21|started process with pid 1912
INFO|1912/0|Service traccar|18-08-13 22:31:23|[INFO] StandardFileSystemManager - Using "C:\Windows\TEMP\vfs_cache" as temporary files store.
INFO|1912/0|Service traccar|18-08-13 22:31:24|java.lang.reflect.InvocationTargetException
INFO|1912/0|Service traccar|18-08-13 22:31:24|	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO|1912/0|Service traccar|18-08-13 22:31:24|	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO|1912/0|Service traccar|18-08-13 22:31:24|	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO|1912/0|Service traccar|18-08-13 22:31:24|	at java.lang.reflect.Method.invoke(Unknown Source)
INFO|1912/0|Service traccar|18-08-13 22:31:24|	at org.rzo.yajsw.app.WrapperJVMMain.executeMain(WrapperJVMMain.java:60)
INFO|1912/0|Service traccar|18-08-13 22:31:24|	at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:43)
INFO|1912/0|Service traccar|18-08-13 22:31:24|Caused by: java.lang.ClassNotFoundException: org.postgresql.Drive
INFO|1912/0|Service traccar|18-08-13 22:31:24|	at java.net.URLClassLoader.findClass(Unknown Source)
INFO|1912/0|Service traccar|18-08-13 22:31:24|	at java.lang.ClassLoader.loadClass(Unknown Source)
INFO|1912/0|Service traccar|18-08-13 22:31:24|	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
INFO|1912/0|Service traccar|18-08-13 22:31:24|	at java.lang.ClassLoader.loadClass(Unknown Source)
INFO|1912/0|Service traccar|18-08-13 22:31:24|	at java.lang.Class.forName0(Native Method)
INFO|1912/0|Service traccar|18-08-13 22:31:24|	at java.lang.Class.forName(Unknown Source)
INFO|1912/0|Service traccar|18-08-13 22:31:24|	at org.traccar.database.DataManager.initDatabase(DataManager.java:114)
INFO|1912/0|Service traccar|18-08-13 22:31:24|	at org.traccar.database.DataManager.<init>(DataManager.java:86)
INFO|1912/0|Service traccar|18-08-13 22:31:24|	at org.traccar.Context.init(Context.java:333)
INFO|1912/0|Service traccar|18-08-13 22:31:24|	at org.traccar.Main.main(Main.java:35)
INFO|1912/0|Service traccar|18-08-13 22:31:24|	... 6 more
INFO|wrapper|Service traccar|18-08-13 22:31:24|calling onStop
INFO|wrapper|Service traccar|18-08-13 22:31:24|Win service stop - timeout: 30000
INFO|wrapper|Service traccar|18-08-13 22:31:24|Win service wrapper.control -> stopping application
INFO|wrapper|Service traccar|18-08-13 22:31:24|Win service stop - after shutdown
INFO|wrapper|Service traccar|18-08-13 22:31:24|Win service stop - before notify
INFO|wrapper|Service traccar|18-08-13 22:31:24|Win service terminated

Please help thank you.

Anton Tananaev6 years ago

It should be org.postgresql.Driver, not org.postgresql.Drive.

Paulo Docto6 years ago

Thank you. Maybe I was exhausted and ovelooked small things.