Skip to main content

Рестарт Simple One Prod https://service.umserv.ru/

Переход на ВМ в Lancloud

Host umserv-so-prod
        Hostname 10.2.0.112
        Proxyjump umserv-zbx

Проверка логов

 docker ps -a | grep Restarting
 docker inspect b75d7732bce5
 docker logs b75d7732bce5

Логи контейнеров в состоянии Restarted показываю ошибку в БД

{"lv":"info","tg":"IndicationCalculator","caller":"indication-calc/cmd/calc.go:44","data":{"msg":"Starting (build 2025-03-18T11:44:00+0000)"},"t":1758621235}
{"lv":"info","tg":"IndicationCalculator","caller":"service/pg/pgconn.go:74","data":{"msg":"Database `master` connection established."},"t":1758621235}
{"lv":"info","tg":"IndicationCalculator","caller":"transport/grpcclient/client.go:30","data":{"msg":"GRPC client connected to \"monolith-mediator:80\""},"t":1758621235}
{"lv":"info","tg":"IndicationCalculator","caller":"transport/grpcclient/client.go:30","data":{"msg":"GRPC client connected to \"dot-walking:80\""},"t":1758621235}
{"lv":"error","tg":"IndicationCalculator","caller":"service/indicator/repository.go:257","data":{"msg":"indicator GetUniqueTableIds error: failed to connect to `user=simple_user database=simple_indc_db`: 172.19.0.25:5432 (postgres): server error: FATAL: the database system is shutting down (SQLSTATE 57P03)"},"t":1758621235}
{"lv":"error","tg":"IndicationCalculator","caller":"indication-calc/cmd/calc.go:48","data":{"msg":"stopped app due to: dynamicConnectorConfigurator.UpdateConnector: Update connector : {\"error_code\":400,\"message\":\"Connector configuration is invalid and contains the following 1 error(s):\\nError while validating connector config: FATAL: the database system is shutting down\\nYou can also find the above list of errors at the endpoint `/connector-plugins/{connectorType}/config/validate`\"}"},"t":1758621235}

Есть скрипты перезапуска всех сервисов.

/opt/simpleone-1.27/down.sh
/opt/simpleone-1.27/up.sh

Для перезапуска выполнить команды

cd /opt/simpleone-1.27
./down.sh && ./up.sh