Server Stops when accessed the web UI

kuma9 years ago

I've installed traccar on cent-OS 6(64bit OS,JDK & Traccar) server. Then configured it to use Mysql as the DB server. The tables are created automatically. Tracar service keeps running until I access web UI by port 8082. The Web interface works for a while(arround 10sec) and then the whole traccar service gets stopped and never starts back until I make a manual start. Even I cant find anything in the log file. What should I do in order to debug and gets things working.

wrapper.log content

STATUS | wrapper  | 2016/05/04 22:36:58 | --> Wrapper Started as Daemon
STATUS | wrapper  | 2016/05/04 22:36:58 | Java Service Wrapper Community Edition 64-bit 3.5.28
STATUS | wrapper  | 2016/05/04 22:36:58 |   Copyright (C) 1999-2016 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper  | 2016/05/04 22:36:58 |     http://wrapper.tanukisoftware.com
STATUS | wrapper  | 2016/05/04 22:36:58 | 
STATUS | wrapper  | 2016/05/04 22:36:59 | Launching a JVM...
INFO   | jvm 1    | 2016/05/04 22:36:59 | WrapperManager: Initializing...
INFO   | jvm 1    | 2016/05/04 22:37:00 | [MLog-Init-Reporter] INFO com.mchange.v2.log.MLog - MLog clients using slf4j logging.
INFO   | jvm 1    | 2016/05/04 22:37:00 | [WrapperSimpleAppMain] INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10]
INFO   | jvm 1    | 2016/05/04 22:37:02 | INFO 5/4/16 9:37 PM: liquibase: Clearing database change log checksums
INFO   | jvm 1    | 2016/05/04 22:37:03 | INFO 5/4/16 9:37 PM: liquibase: Successfully acquired change log lock
INFO   | jvm 1    | 2016/05/04 22:37:03 | INFO 5/4/16 9:37 PM: liquibase: Successfully released change log lock
INFO   | jvm 1    | 2016/05/04 22:37:03 | INFO 5/4/16 9:37 PM: liquibase: Successfully acquired change log lock
INFO   | jvm 1    | 2016/05/04 22:37:06 | INFO 5/4/16 9:37 PM: liquibase: Reading from trkdb.DATABASECHANGELOG
INFO   | jvm 1    | 2016/05/04 22:37:06 | INFO 5/4/16 9:37 PM: liquibase: Reading from trkdb.DATABASECHANGELOG
INFO   | jvm 1    | 2016/05/04 22:37:06 | INFO 5/4/16 9:37 PM: liquibase: Successfully released change log lock
INFO   | jvm 1    | 2016/05/04 22:37:07 | [WrapperSimpleAppMain] INFO com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> 1hjbzgv9gyp6eth1fasjka|14cb6b96, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> 1hjbzgv9gyp6eth1fasjka|14cb6b96, idleConnectionTestPeriod -> 600, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://127.0.0.1:3306/trkdb?allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=ANSI_QUOTES, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, preferredTestQuery -> null, privilegeSpawnedThreads -> false, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> true, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]
INFO   | jvm 1    | 2016/05/04 22:37:07 | [WrapperSimpleAppMain] INFO org.eclipse.jetty.util.log - Logging initialized @8070ms
INFO   | jvm 1    | 2016/05/04 22:37:08 | [WrapperSimpleAppMain] INFO org.eclipse.jetty.server.Server - jetty-9.2.15.v20160210
INFO   | jvm 1    | 2016/05/04 22:37:10 | [WrapperSimpleAppMain] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@5a5b3c15{/api,null,AVAILABLE}
INFO   | jvm 1    | 2016/05/04 22:37:10 | [WrapperSimpleAppMain] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@6a9fdcbf{HTTP/1.1}{0.0.0.0:8082}
INFO   | jvm 1    | 2016/05/04 22:37:10 | [WrapperSimpleAppMain] INFO org.eclipse.jetty.server.Server - Started @11316ms
Anton Tananaev9 years ago

What are the server specs? Are you sure Traccar process is stopped?

kuma9 years ago

Server specs as in log is as below

2016-05-04 20:53:26  INFO: Operating system name: Linux version: 2.6.32-042stab108.8 architecture: amd64
2016-05-04 20:53:26  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 24.95-b01
2016-05-04 20:53:26  INFO: Memory limit heap: 123mb non-heap: 214mb
2016-05-04 20:53:26  INFO: Character encoding: UTF-8 charset: UTF-8
2016-05-04 20:53:26  INFO: Version: 3.5-SNAPSHOT
2016-05-04 20:53:34  INFO: Starting server...
2016-05-04 21:36:59  INFO: Operating system name: Linux version: 2.6.32-042stab108.8 architecture: amd64
2016-05-04 21:36:59  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 24.95-b01
2016-05-04 21:36:59  INFO: Memory limit heap: 123mb non-heap: 214mb
2016-05-04 21:36:59  INFO: Character encoding: UTF-8 charset: UTF-8
2016-05-04 21:36:59  INFO: Version: 3.5-SNAPSHOT
2016-05-04 21:37:08  INFO: Starting server...

When i do "service --status-all" it says "traccar is running" and once I access the web UI and run the same command, it says the "traccar is stopped"

is there anyway to work with this?

Anton Tananaev9 years ago

Why are you checking service status? Check actual process status.

kuma9 years ago

Thanks for your support. The process is not there after the service is stopped. is there any other error log that i need to check other than the ones posted above

Anton Tananaev9 years ago

No, there are no other logs. Maybe you can check standard system log.

kuma9 years ago

What about reinstalling the traccar again. Will it help me. I have no idea how to solve this issue and I'm an amateur to linux.

Anton Tananaev9 years ago

I don't think it would help. What are the hardware specs of your server?

kuma9 years ago

Its a VPS server and have 2 cpu cores and 256MBb ram

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU L5630 @ 2.13GHz
stepping : 2
microcode : 21
cpu MHz : 2133.313
cache size : 12288 KB

Anton Tananaev9 years ago

Are you serious about 256 MB of RAM? I would recommend at least 1 GB.

kuma9 years ago

Its just for testing and it runs without any GUI. Dose it have anything with traccar?

Anton Tananaev9 years ago

Traccar is written in Java and consumes a lot of memory. It might be possible to optimize it to run on 512 MB, but I think 256 MB is not enough.