traccar AWS deployment issue.

Yana5 years ago
● traccar.service - traccar
   Loaded: loaded (/etc/systemd/system/traccar.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2020-05-03 09:48:19 UTC; 1min 59s ago
  Process: 30931 ExecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml (code=exited, status=1/FAILURE)
 Main PID: 30931 (code=exited, status=1/FAILURE)

May 03 09:48:19 yana-01 traccar[30931]:         at com.mysql.cj.protocol.a.NativeProtocol.checkErrorMessage(NativeProtocol.java:
May 03 09:48:19 yana-01 traccar[30931]:         at com.mysql.cj.protocol.a.NativeProtocol.checkErrorMessage(NativeProtocol.java:
May 03 09:48:19 yana-01 traccar[30931]:         at com.mysql.cj.protocol.a.NativeAuthenticationProvider.proceedHandshakeWithPlug
May 03 09:48:19 yana-01 traccar[30931]:         at com.mysql.cj.protocol.a.NativeAuthenticationProvider.connect(NativeAuthentica
May 03 09:48:19 yana-01 traccar[30931]:         at com.mysql.cj.protocol.a.NativeProtocol.connect(NativeProtocol.java:1340)
May 03 09:48:19 yana-01 traccar[30931]:         at com.mysql.cj.NativeSession.connect(NativeSession.java:157)
May 03 09:48:19 yana-01 traccar[30931]:         at com.mysql.cj.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:850)
May 03 09:48:19 yana-01 traccar[30931]:         ... 16 more
May 03 09:48:19 yana-01 systemd[1]: traccar.service: Main process exited, code=exited, status=1/FAILURE
May 03 09:48:19 yana-01 systemd[1]: traccar.service: Failed with result 'exit-code'.

I have downloaded the traccar 4.8 and successfully set up everything. Traccar service failed with the above error. Any helps appreciated.

thank you

Yana5 years ago

My traccar-server.log file returns

2020-05-03 09:36:03  INFO: HikariPool-1 - Starting...
2020-05-03 09:36:03  WARN: Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.
2020-05-03 09:36:09 ERROR: HikariPool-1 - Exception during pool initialization. - Access denied for user 'root'@'localhost' - CJException (... < DataManager:139 < *:89 < Context:292 < Main:110 < ...)
2020-05-03 09:36:09 ERROR: Main method error - Access denied for user 'root'@'localhost' - CJException (... < DataManager:139 < *:89 < Context:292 < Main:110 < ...)
2020-05-03 09:36:39  INFO: HikariPool-1 - Starting...
2020-05-03 09:36:39  WARN: Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.
2020-05-03 09:36:45 ERROR: HikariPool-1 - Exception during pool initialization. - Access denied for user 'root'@'localhost' - CJException (... < DataManager:139 < *:89 < Context:292 < Main:110 < ...)
2020-05-03 09:36:45 ERROR: Main method error - Access denied for user 'root'@'localhost' - CJException (... < DataManager:139 < *:89 < Context:292 < Main:110 < ...)
2020-05-03 09:37:28  INFO: HikariPool-1 - Starting...
2020-05-03 09:37:28  WARN: Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.
2020-05-03 09:37:34 ERROR: HikariPool-1 - Exception during pool initialization. - Access denied for user 'root'@'localhost' - CJException (... < DataManager:139 < *:89 < Context:292 < Main:110 < ...)
2020-05-03 09:37:34 ERROR: Main method error - Access denied for user 'root'@'localhost' - CJException (... < DataManager:139 < *:89 < Context:292 < Main:110 < ...)
2020-05-03 09:48:13  INFO: HikariPool-1 - Starting...
2020-05-03 09:48:13  WARN: Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.
2020-05-03 09:48:19 ERROR: HikariPool-1 - Exception during pool initialization. - Access denied for user 'root'@'localhost' - CJException (... < DataManager:139 < *:89 < Context:292 < Main:110 < ...)
2020-05-03 09:48:19 ERROR: Main method error - Access denied for user 'root'@'localhost' - CJException (... < DataManager:139 < *:89 < Context:292 < Main:110 < ...)
Yana5 years ago

Everything fine now after reviewing digitalocean deployment documentation of traccar.

link: https://www.traccar.org/install-digitalocean/