Сбой в работе Traccar (Synolodgy - Container Mananger)

kaket07a year ago

Здравствуйте.
Работало все штатно, но не сразу заметил, что произошла проблема.
Прошу помощи в рении вопроса:

2023-10-28 14:51:14  INFO: [T49d1def4] id: 9172791997, time: 2023-10-28 14:51:07, lat: 55.52780, lon: 37.58500, course: 14.0
2023-10-28 14:51:14  INFO: [T49d1def4: h02 > 172.17.0.1] 2a48512c393137323739313939372c56342c56312c323032333130323831343531313323
2023-10-28 14:52:51  WARN: Scheduled reports error - connect timed out - SocketTimeoutException (...)
2023-10-28 14:56:51  WARN: Scheduled reports error - connect timed out - SocketTimeoutException (...)
2023-10-28 14:56:57  INFO: [T49d1def4] disconnected
2023-10-28 14:57:27  WARN: Event save error - connect timed out - SocketTimeoutException (...)
2023-10-28 14:57:51  WARN: Scheduled reports error - connect timed out - SocketTimeoutException (...)
2023-10-28 14:57:57  WARN: Update device status error - connect timed out - SocketTimeoutException (...)
2023-10-28 14:58:51  WARN: Scheduled reports error - connect timed out - SocketTimeoutException (...)
2023-10-28 14:59:51  WARN: Scheduled reports error - connect timed out - SocketTimeoutException (...)
2023-10-28 15:00:21  WARN: Database error - connect timed out - SocketTimeoutException (...)
2023-10-28 15:00:51  WARN: Scheduled reports error - connect timed out - SocketTimeoutException (...)

После перезапуска физического устройства по расписанию, контейнер постоянно завершает работу:

2023-10-28 22:04:51  WARN: Scheduled reports error - connect timed out - SocketTimeoutException (...)
2023-10-28 22:05:16  INFO: Stopping server...
2023-10-29 01:58:06  INFO: Operating system name: Linux version: 4.4.302+ architecture: amd64
2023-10-29 01:58:07  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Alpine version: 11.0.20+8-alpine-r0
2023-10-29 01:58:07  INFO: Memory limit heap: 989mb non-heap: 0mb
2023-10-29 01:58:07  INFO: Character encoding: UTF-8 charset: UTF-8
2023-10-29 01:58:07  INFO: Version: 5.9
2023-10-29 01:58:07  INFO: Starting server...
2023-10-29 01:58:08  INFO: HikariPool-1 - Starting...
2023-10-29 01:59:45 ERROR: HikariPool-1 - Exception during pool initialization. - connect timed out - SocketTimeoutException (... < DatabaseModule:79 < <gener:-1 < *:-1 < ... < MainModule:126 < ...)
2023-10-29 01:59:45 ERROR: Main method error - connect timed out - SocketTimeoutException (... < DatabaseModule:79 < <gener:-1 < *:-1 < ... < MainModule:126 < ...)
2023-10-29 01:59:55  INFO: Operating system name: Linux version: 4.4.302+ architecture: amd64
2023-10-29 01:59:55  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Alpine version: 11.0.20+8-alpine-r0
2023-10-29 01:59:55  INFO: Memory limit heap: 989mb non-heap: 0mb
2023-10-29 01:59:55  INFO: Character encoding: UTF-8 charset: UTF-8
2023-10-29 01:59:55  INFO: Version: 5.9
2023-10-29 01:59:55  INFO: Starting server...
2023-10-29 01:59:55  INFO: HikariPool-1 - Starting...
2023-10-29 02:01:31 ERROR: HikariPool-1 - Exception during pool initialization. - connect timed out - SocketTimeoutException (... < DatabaseModule:79 < <gener:-1 < *:-1 < ... < MainModule:126 < ...)
2023-10-29 02:01:31 ERROR: Main method error - connect timed out - SocketTimeoutException (... < DatabaseModule:79 < <gener:-1 < *:-1 < ... < MainModule:126 < ...)
2023-10-29 02:01:41  INFO: Operating system name: Linux version: 4.4.302+ architecture: amd64
2023-10-29 02:01:41  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Alpine version: 11.0.20+8-alpine-r0
2023-10-29 02:01:41  INFO: Memory limit heap: 989mb non-heap: 0mb
2023-10-29 02:01:41  INFO: Character encoding: UTF-8 charset: UTF-8

Часть кода плохо вставляется, ссылка на сам лог

kaket07a year ago

Информация из лога контейнера:

traccar-traccar-latest
date,stream,content
"2023/10/29 13:05:50,stdout,	... 44 more"
"2023/10/29 13:05:50,stdout,	at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:63)"
"2023/10/29 13:05:50,stdout,	at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:153)"
"2023/10/29 13:05:50,stdout,	at java.base/java.net.Socket.connect(Socket.java:609)"
"2023/10/29 13:05:50,stdout,	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)"
"2023/10/29 13:05:50,stdout,	at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)"
"2023/10/29 13:05:50,stdout,	at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)"
"2023/10/29 13:05:50,stdout,	at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)"
"2023/10/29 13:05:50,stdout,	at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)"
"2023/10/29 13:05:50,stdout,Caused by: java.net.SocketTimeoutException: connect timed out"
Anton Tananaeva year ago

База данных недоступна у вас.

kaket07a year ago

Спасибо. Смог разобраться. Включился брандмауэр, заблокировал порт для доступа из вне.