Server auto shut down

m.owais8 years ago

Hello

I have installed traccar server 3.9 on an Ubuntu VPS with specs: (14 GB RAM, 4 cores, 1TB hard disk)

I am using only 1 to 2 devices for testing at the moment and i am getting server shutdowns randomly even if no device is connected. I have already increased the java heap to 1024 MB and disabled the geocoding lookups in xml file.

The wrapper log contents are :

INFO|17738/0|Service traccar|17-04-04 15:05:26|Missing wrapper ping within timeout of 30000
WARNING|17738/0|Service traccar|17-04-04 15:05:28|ping between java application and wrapper timed out. if this this is due to server overload consider increasing wrapper.ping.timeout
INFO|17738/0|Service traccar|17-04-04 15:05:31|wrapper manager received stop command
INFO|17738/0|Service traccar|17-04-04 15:05:32|[Thread-14] INFO org.eclipse.jetty.server.ServerConnector - Stopped ServerConnector@443faa85{HTTP/1.1}{0.0.0.0:8082}
INFO|17738/0|Service traccar|17-04-04 15:05:33|[Thread-14] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@1fd9893c{/api,null,UNAVAILABLE}

Any suggestion on what to change ?

Regards

Owais

Anton Tananaev8 years ago

Are there any other services on your server? What JVM are you using?

m.owais8 years ago

There are no other services installed apart from a web based basic server monitoring service.

The JVM installed is Oracle one (followed the steps from an installation related post). Other posts suggest Oracle JVM may cause problems. Which one you recommend for Traccar 3.9 and 3.10 if i upgrade later?

# java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

# whereis java
java: /usr/bin/java /usr/share/java /usr/lib/jvm/java-8-oracle/bin/java /usr/lib
/jvm/java-8-oracle/jre/bin/java /usr/share/man/man1/java.1.gz
Anton Tananaev8 years ago

There have been problems with Oracle VM on Linux before. I would recommend to use default JRE package for your distro:

apt-get install default-jre
c5note8 years ago

I have the same problem, have you solved?

m.owais8 years ago

I have done as Anton suggested. I will test it for a few days and let you know how it goes.

Phil8 years ago

Hi Anton,

I also had the same problem but my server is Windows Server box.

When I try to start the service it returns an error 1053: Service did not respond to the start or control request in a timely fashion.

Kindly please help as I am unable to bring it up again

The logs are as follows:

2017-03-29 14:31:02  INFO: [002C4852] connected
2017-03-29 14:31:02 DEBUG: [002C4852: 5055 < 196.207.44.203] HEX: 474554203f69643d3734303834392674696d657374616d703d31343839333136303633266c61743d2d32362e33303532333438266c6f6e3d32382e343531383931372673706565643d302e302662656172696e673d302e3026616c7469747564653d302e3026626174743d36302e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420362e302e313b20534d2d4739333046204275696c642f4d4d4232394b290d0a4163636570742d456e636f64696e673a20677a69700d0a782d75702d76667a612d69643a2036353530310d0a486f73743a20747261636b2e746f6d747261636b732e636f2e7a613a353035350d0a43616368652d436f6e74726f6c3a206d61782d6167653d300d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a0d0a
2017-03-29 14:31:25  INFO: [337BE8C7] connected
2017-03-29 14:31:25 DEBUG: [337BE8C7: 5055 < 196.207.44.203] HEX: 474554203f69643d3734303834392674696d657374616d703d31343839333136303633266c61743d2d32362e33303532333438266c6f6e3d32382e343531383931372673706565643d302e302662656172696e673d302e3026616c7469747564653d302e3026626174743d36302e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420362e302e313b20534d2d4739333046204275696c642f4d4d4232394b290d0a4163636570742d456e636f64696e673a20677a69700d0a782d75702d76667a612d69643a2036353530310d0a486f73743a20747261636b2e746f6d747261636b732e636f2e7a613a353035350d0a43616368652d436f6e74726f6c3a206d61782d6167653d300d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a0d0a
2017-03-29 14:31:25  WARN: Unknown device - 740849 (196.207.44.203)
2017-03-29 14:31:25 DEBUG: [337BE8C7: 5055 > 196.207.44.203] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-03-29 14:32:14  INFO: [337BE8C7] disconnected
2017-03-29 14:32:37  WARN: Unknown device - 740849 (196.207.44.203)
2017-03-29 14:32:37 DEBUG: [002C4852: 5055 > 196.207.44.203] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-03-29 14:32:49  INFO: [002C4852] disconnected
2017-03-29 14:33:01  INFO: [B0ED0E27] connected
2017-03-29 14:33:01 DEBUG: [B0ED0E27: 5055 < 196.207.44.203] HEX: 474554203f69643d3734303834392674696d657374616d703d31343839333136303633266c61743d2d32362e33303532333438266c6f6e3d32382e343531383931372673706565643d302e302662656172696e673d302e3026616c7469747564653d302e3026626174743d36302e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420362e302e313b20534d2d4739333046204275696c642f4d4d4232394b290d0a4163636570742d456e636f64696e673a20677a69700d0a782d75702d76667a612d69643a2036353530310d0a486f73743a20747261636b2e746f6d747261636b732e636f2e7a613a353035350d0a43616368652d436f6e74726f6c3a206d61782d6167653d300d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a0d0a
2017-03-29 14:33:01  WARN: Unknown device - 740849 (196.207.44.203)
2017-03-29 14:33:01 DEBUG: [B0ED0E27: 5055 > 196.207.44.203] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-03-29 14:33:32  INFO: [B0ED0E27] disconnected
2017-03-29 14:34:12  INFO: [DB863AC5] connected
2017-03-29 14:34:12 DEBUG: [DB863AC5: 5055 < 196.207.44.203] HEX: 474554203f69643d3734303834392674696d657374616d703d31343839333136303633266c61743d2d32362e33303532333438266c6f6e3d32382e343531383931372673706565643d302e302662656172696e673d302e3026616c7469747564653d302e3026626174743d36302e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420362e302e313b20534d2d4739333046204275696c642f4d4d4232394b290d0a4163636570742d456e636f64696e673a20677a69700d0a782d75702d76667a612d69643a2036353530310d0a486f73743a20747261636b2e746f6d747261636b732e636f2e7a613a353035350d0a43616368652d436f6e74726f6c3a206d61782d6167653d300d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a0d0a
2017-03-29 14:34:12  WARN: Unknown device - 740849 (196.207.44.203)
2017-03-29 14:34:12 DEBUG: [DB863AC5: 5055 > 196.207.44.203] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-03-29 14:34:12  INFO: Shutting down server...
2017-03-29 14:34:42  INFO: [DB863AC5] disconnected
2017-03-29 14:35:01  INFO: [C3857D81] disconnected
2017-03-29 14:35:01  INFO: [D1278F21] disconnected
2017-03-29 14:35:01  INFO: [191BD519] disconnected
2017-03-29 14:35:01  INFO: [9458405F] disconnected
Anton Tananaev8 years ago

@Phil, you are looking at the wrong log file.

m.owais8 years ago

I removed oracle JVM and replaced with open JDK 1.8.0_121 and also upgraded to traccar server 3.10.

It ran well for about a week and after that had the same problem as before so i guess its not a JVM issue. Any suggestion on how to troubleshoot further ?

INFO|1981/0|Service traccar|17-04-17 04:05:02|Missing wrapper ping within timeout of 30000
WARNING|1981/0|Service traccar|17-04-17 04:05:08|ping between java application and wrapper timed out. if this this is due to server overload consider increasing wrapper.ping.timeout
INFO|1981/0|Service traccar|17-04-17 04:05:09|wrapper manager received stop command
FINEST|1981/0|Service traccar|17-04-17 04:05:11|[Thread-13] INFO org.eclipse.jetty.server.ServerConnector - Stopped ServerConnector@ef718de{HTTP/1.1}{0.0.0.0:8082}
FINEST|1981/0|Service traccar|17-04-17 04:05:12|[Thread-13] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@7645f03e{/api,null,UNAVAILABLE}
Anton Tananaev8 years ago

I think it can only indicate one problem - lack of resources.

m.owais8 years ago

Can you have a look at the server remotely ?

Anton Tananaev8 years ago

I can have a quick look.

m.owais8 years ago

I sent you the login details on your email. Let me know if you find any issues.