Change Port

mc8 years ago

Hi

Port 8080 is taken by other app, I changed to Port 5999 and updated the config file by
<entry key='web.port'>5999</entry>

localhost:5999 not working also 8080 before, Firewall set to open port 5999

Thank you

Malkit Singh8 years ago

have you restarted service after changing the port? Also as you mentioned in another comment that Traccar server stops after few seconds, your server must be in running condition to serve web requests.

Anton Tananaev8 years ago

By default port is 8082, not 8080.

mc8 years ago

Hi,

Mr. Anton my mistake 8080 clicking mistake here , its port 8082. As Mr Malkit says web. yes the server is windows 2008 R2 web server. . I didn't restart the server after installing because in your installation video says instead restart the server we can start traccar server manually.

I will uninstall and install again , thank you

mc8 years ago

I uninstalled all, and installed again , Server restarted but sam problem.

Service stops after few seconds and Chrome error message as below :

This site can’t be reached

localhost refused to connect.
Search Google for localhost 8082
ERR_CONNECTION_REFUSED

Anton Tananaev8 years ago

Have you checked logs?

mc8 years ago

This is the log when trying to start the service and stops after few seconds

2017-04-15 00:50:30  INFO: Operating system name: Windows Server 2008 R2 version: 6.1 architecture: amd64
2017-04-15 00:50:30  INFO: Java runtime name: Java HotSpot(TM) 64-Bit Server VM vendor: Oracle Corporation version: 25.121-b13
2017-04-15 00:50:30  INFO: Memory limit heap: 1801mb non-heap: 0mb
2017-04-15 00:50:30  INFO: Character encoding: UTF-8 charset: UTF-8
2017-04-15 00:50:30  INFO: Version: 3.11-SNAPSHOT

The CPU is Intel i3 , logs indicated amd64

Anton Tananaev8 years ago

You should check ALL log files, not just one.

mc8 years ago

that's onlogs in logs files,

on wrapper logs I am seeing java throws.

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

if the log too long, you can delete the repl

Anton Tananaev8 years ago

As you can see from the log, you already have some other process using port 5002. That's the issue.

mc8 years ago

is fresh installed server after ransom virus attack. I will see what's process using 5002

mc8 years ago
mc8 years ago

I tried to block port 5002, all server crashed, i restarted. now port 5002 is blocked , I am not able to see whip app was on that port. I will change all ports manually to other locations .

Is this ok ?

Anton Tananaev8 years ago

Yes, you can change ports if you want.

mc8 years ago

I found the source of the problem (i think)

wrapperW.bat creates error
WINDOWS CANNOT FIND "-jar" MAKE SURE YOU TYPED THE NAME CORECTLY AND TRY AGAIN