Traccar not running - unknown why - wrapper inc - help?

daniel thomas8 years ago

Dear traccar
I have followed your guide and setup traccar on a win10 machine. localhost:8082 returns a connection error and looking at 'services' traccar seems to start and then terminate.

I have the wrapper log file here;

...
INFO|5892/0|Service traccar|17-12-18 13:27:25|[main] INFO org.eclipse.jetty.util.log - Logging initialized @3444ms
INFO|5892/0|Service traccar|17-12-18 13:27:25|java.lang.reflect.InvocationTargetException
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at java.lang.reflect.Method.invoke(Unknown Source)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at org.rzo.yajsw.app.WrapperJVMMain.executeMain(WrapperJVMMain.java:60)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:43)
INFO|5892/0|Service traccar|17-12-18 13:27:25|Caused by: org.jboss.netty.channel.ChannelException: Failed to bind to: 0.0.0.0/0.0.0.0:5040
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at org.traccar.TrackerServer.start(TrackerServer.java:117)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at org.traccar.ServerManager.start(ServerManager.java:81)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at org.traccar.Main.main(Main.java:38)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	... 6 more
INFO|5892/0|Service traccar|17-12-18 13:27:25|Caused by: java.net.BindException: Address already in use: bind
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at sun.nio.ch.Net.bind0(Native Method)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at sun.nio.ch.Net.bind(Unknown Source)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at sun.nio.ch.Net.bind(Unknown Source)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
INFO|5892/0|Service traccar|17-12-18 13:27:25|	at java.lang.Thread.run(Unknown Source)
INFO|wrapper|Service traccar|17-12-18 13:27:26|calling onStop
INFO|wrapper|Service traccar|17-12-18 13:27:26|Win service stop - timeout: 30000
INFO|wrapper|Service traccar|17-12-18 13:27:26|Win service wrapper.control -> stopping application
INFO|wrapper|Service traccar|17-12-18 13:27:26|Win service stop - after shutdown
INFO|wrapper|Service traccar|17-12-18 13:27:26|Win service stop - before notify
INFO|wrapper|Service traccar|17-12-18 13:27:26|Win service terminated

Look forward to any help on how to move forward.
Thank you

Anton Tananaev8 years ago

You have a port conflict with some other process.

Reza Sarafrazjoo8 years ago

How can resolve this problem?

daniel thomas8 years ago

Thanks for the feedback,

Using TCPview and netstat from dos i have checked and nothing is using a port 8082
I have also opened the port 8082 in the firewall to ensure this wasnt an issue.

Can anybody help as to why it doesnt work?

Thank you

Anton Tananaev8 years ago

I'm not sure why you are checking port 8082 when log clearly shows that conflict is with port 5040.