@EVOSandru6

По какой причине могла дать сбой база — terminating connection because of crash of another server process?

Добрый день.

Столкнулся с проблемой, отвалилось соединение с БД, открыл лог:
/var/log/postgres/postgres-12-main.log
И увидел следующие логи:

terminating connection because of crash of another server process

The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.

In a moment you should be able to reconnect to the database and repeat your command.

postgres@database_name WARNING: terminating connection because of crash of another server process


cat /var/log/syslog | grep postgres  > /var/log/syslog_psql


Oct 29 10:04:52 www postgresql@12-main[2737628]: Cluster is not running.
Oct 29 10:04:52 www systemd[1]: postgresql@12-main.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Oct 29 10:04:52 www systemd[1]: postgresql@12-main.service: Failed with result 'exit-code'.


Системный лог:
https://pastebin.com/R0KY3FND

С чем может быть связано подобное поведение?
  • Вопрос задан
  • 1624 просмотра
Решения вопроса 1
Melkij
@Melkij
PostgreSQL DBA
Кончилось место на диске, OOM, или даже segfault при очень большом везении. Найдите в логе базы подробности, они будут перед всеми "terminating connection because of crash of another server process"
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы