error server

Josea year ago
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>503 Service Unavailable</title> </head><body> <h1>Service Unavailable</h1> <p>The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.</p> <hr> <address>Apache/2.4.55 (Ubuntu) Server at xxxxxxxxx.com Port 443</address> </body></html>

my server suddenly started to give this error when accessing the web! i have three servers and only 1 is giving this problem. i have already restarted the services and nothing! thanks!

Anton Tananaeva year ago

Have you checked logs?

Josea year ago
2023-08-21 23:22:06  INFO: Operating system name: Linux version: 5.15.0-79-generic architecture: amd64
2023-08-21 23:22:06  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Eclipse Adoptium version: 17.0.6+10
2023-08-21 23:22:06  INFO: Memory limit heap: 232mb non-heap: 0mb
2023-08-21 23:22:06  INFO: Character encoding: UTF-8 charset: UTF-8
2023-08-21 23:22:06  INFO: Version: 5.6
2023-08-21 23:22:06  INFO: Starting server...
2023-08-21 23:22:07  INFO: HikariPool-1 - Starting...
2023-08-21 23:22:07  WARN: Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.
2023-08-21 23:22:13 ERROR: HikariPool-1 - Exception during pool initialization. - Connection refused - ConnectException (... < DatabaseModule:79 < <gener:-1 < *:-1 < ... < Main:126 < ...)
2023-08-21 23:22:13 ERROR: Main method error - Connection refused - ConnectException (... < DatabaseModule:79 < <gener:-1 < *:-1 < ... < Main:126 < ...)
2023-08-21 23:22:27  INFO: Operating system name: Linux version: 5.15.0-79-generic architecture: amd64
2023-08-21 23:22:27  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Eclipse Adoptium version: 17.0.6+10
2023-08-21 23:22:27  INFO: Memory limit heap: 232mb non-heap: 0mb
2023-08-21 23:22:27  INFO: Character encoding: UTF-8 charset: UTF-8
2023-08-21 23:22:27  INFO: Version: 5.6
2023-08-21 23:22:27  INFO: Starting server...
2023-08-21 23:22:28  INFO: HikariPool-1 - Starting...
2023-08-21 23:22:29  WARN: Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.
2023-08-21 23:22:34 ERROR: HikariPool-1 - Exception during pool initialization. - Connection refused - ConnectException (... < DatabaseModule:79 < <gener:-1 < *:-1 < ... < Main:126 < ...)
2023-08-21 23:22:34 ERROR: Main method error - Connection refused - ConnectException (... < DatabaseModule:79 < <gener:-1 < *:-1 < ... < Main:126 < ...)
2023-08-21 23:22:49  INFO: Operating system name: Linux version: 5.15.0-79-generic architecture: amd64
2023-08-21 23:22:49  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Eclipse Adoptium version: 17.0.6+10
2023-08-21 23:22:49  INFO: Memory limit heap: 232mb non-heap: 0mb
2023-08-21 23:22:49  INFO: Character encoding: UTF-8 charset: UTF-8
2023-08-21 23:22:49  INFO: Version: 5.6
2023-08-21 23:22:49  INFO: Starting server...
2023-08-21 23:22:50  INFO: HikariPool-1 - Starting...
2023-08-21 23:22:51  WARN: Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.
Anton Tananaeva year ago

As you can see, Traccar cannot connect to your database.

Josea year ago
xxxxx@ubuntuxxxxxxxxxxxx:~# curl http://localhost:8082
curl: (7) Failed to connect to localhost port 8082 after 0 ms: Connection refused

I have been trying for days to figure out how to fix this, I have restarted the droplet, I have restarted apache, I have restarted the traccar service. can you give me some guidance? apparently the backend is down and I have no idea what happened or how to fix it.

Anton Tananaeva year ago

I already told you exactly what's wrong, but it seems like you completely ignored it.