Unable to start traccar 4.13 on our server.

Here are the details, Please help

2021-07-28 21:37:28  INFO: HikariPool-1 - Starting...
2021-07-28 21:37:28  WARN: Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.
2021-07-28 21:37:29  INFO: HikariPool-1 - Start completed.
2021-07-28 21:37:29  INFO: Clearing database change log checksums
2021-07-28 21:37:29  INFO: Successfully acquired change log lock
2021-07-28 21:37:29  INFO: Successfully released change log lock
2021-07-28 21:37:29  INFO: Successfully acquired change log lock
2021-07-28 21:37:29  INFO: Cannot load service: liquibase.parser.ChangeLogParser: liquibase.parser.core.json.JsonChangeLogParser Unable to get public no-arg constructor
2021-07-28 21:37:29  INFO: Cannot load service: liquibase.parser.ChangeLogParser: liquibase.parser.core.yaml.YamlChangeLogParser Unable to get public no-arg constructor
2021-07-28 21:37:30  INFO: Reading from traccar.DATABASECHANGELOG
2021-07-28 21:37:31  INFO: Reading from traccar.DATABASECHANGELOG
2021-07-28 21:37:31  INFO: Cannot load service: liquibase.hub.HubService: Provider liquibase.hub.core.StandardHubService could not be instantiated
2021-07-28 21:37:31  INFO: Successfully released change log lock
2021-07-28 21:37:32  INFO: Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system instability.
2021-07-28 21:37:33  INFO: Operating system name: Linux version: 3.10.0-1127.18.2.el7.x86_64 architecture: amd64
2021-07-28 21:37:33  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: ojdkbuild version: 11.0.8+10-LTS
2021-07-28 21:37:33  INFO: Memory limit heap: 2934mb non-heap: 0mb
2021-07-28 21:37:33  INFO: Character encoding: UTF-8 charset: UTF-8
2021-07-28 21:37:33  INFO: Version: 4.13
2021-07-28 21:37:33  INFO: Starting server...
2021-07-28 21:37:33  WARN: Port 5118 is disabled due to conflict
2021-07-28 21:37:33  WARN: Port 5107 is disabled due to conflict
...
2021-07-28 21:37:34  WARN: Port 5115 is disabled due to conflict
2021-07-28 21:37:34  WARN: Port 5051 is disabled due to conflict
2021-07-28 21:37:34  WARN: Port 5053 is disabled due to conflict
2021-07-28 21:37:34  WARN: Port 5094 is disabled due to conflict
2021-07-28 21:37:34  WARN: Port 5137 is disabled due to conflict
2021-07-28 21:37:34  WARN: Port 5056 is disabled due to conflict
2021-07-28 21:37:34  INFO: jetty-10.0.3; built: 2021-05-20T21:15:05.272Z; git: 60d766fc285ea66840ebc5be4598d43ec325055d; jvm 11.0.8+10-LTS
2021-07-28 21:37:34  WARN: Web server start failed - Address already in use - BindException (... < WebServer:201 < Main:128 < *:106)
2021-07-28 21:37:34  INFO: Health check enabled with period 480000
Anton Tananaev3 years ago

My guess is that you are trying to start a second instance of Traccar.

Anton I have stopped the traccar service with following command

sudo systemctl stop traccar.service

Then i have started the traccar service with following command

sudo systemctl start traccar.service

Anton Tananaev3 years ago

Have you checked that the process actually stopped? Check the process list.

Hi Anton i have solved the port error. Now No error is coming is my server is running fine please help

tracker-server.log file runs fine

2021-07-30 16:20:25  INFO: HikariPool-1 - Starting...
2021-07-30 16:20:25  WARN: Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.
2021-07-30 16:20:25  INFO: HikariPool-1 - Start completed.
2021-07-30 16:20:26  INFO: Clearing database change log checksums
2021-07-30 16:20:26  INFO: Successfully acquired change log lock
2021-07-30 16:20:26  INFO: Successfully released change log lock
2021-07-30 16:20:26  INFO: Successfully acquired change log lock
2021-07-30 16:20:26  INFO: Cannot load service: liquibase.parser.ChangeLogParser: liquibase.parser.core.json.JsonChangeLogParser Unable to get public no-arg constructor
2021-07-30 16:20:26  INFO: Cannot load service: liquibase.parser.ChangeLogParser: liquibase.parser.core.yaml.YamlChangeLogParser Unable to get public no-arg constructor
2021-07-30 16:20:29  INFO: Reading from traccar.DATABASECHANGELOG
2021-07-30 16:20:29  INFO: Reading from traccar.DATABASECHANGELOG
2021-07-30 16:20:29  INFO: Cannot load service: liquibase.hub.HubService: Provider liquibase.hub.core.StandardHubService could not be instantiated
2021-07-30 16:20:29  INFO: Successfully released change log lock
2021-07-30 16:20:31  INFO: Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system instability.
2021-07-30 16:20:32  INFO: Operating system name: Linux version: 3.10.0-1127.18.2.el7.x86_64 architecture: amd64
2021-07-30 16:20:32  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: ojdkbuild version: 11.0.8+10-LTS
2021-07-30 16:20:32  INFO: Memory limit heap: 2934mb non-heap: 0m

wrapper.log.20210730 File has some problem

INFO|wrapper|Service traccar|21-07-30 16:18:58|waitpid 6479 9
INFO|wrapper|Service traccar|21-07-30 16:18:58|exit code posix process: 9 application: 0

Please help.

Anton Tananaev3 years ago

Where did you get wrapper from? Traccar 4.13 doesn't use it.

Zenon Panoussis3 years ago

It's only 8 conflicting ports out of almost 200, so there might actually be services running on them.

Hemant:
Stop traccar, make absolutely sure it's not running, then try lsof -nP -i tcp. Do you see any of the ports "disabled due to conflict" in the list? If so, edit traccar/conf/default.xml and comment out those ports (<!-- before and --> after), then restart traccar. As long as traccar starts after those other services you only get a warning and you have no problem, but if traccar would start before those other services, those other services will then fail to start.

Anton:
There are some very obvious port conflicts in traccar's client port range, the worst being 5060. I think it would make sense in some future major release to move the port range up to the high unregistered ports, e.g. 55xxx or so. Another possibility would be to fingerprint the protocols and let them all come in on the same port, which could then be registered with IANA. Fingerprinting them all is a lot of work, but there are people out there inventing a new protocol every day, and you tend to add half a dozen or so in every minor release, so at this rate traccar will soon hit 65535 protocols and run out of ports.

Anton Tananaev3 years ago

We added about 200 in 10 years, so we will run out of ports in about 3000 years, if my calculations are correct. I understand that it was probably not a good idea to pick low numbers for ports, but changing will cause more problems than it would solve.