со словами database is shutting down, при этом открытые коннекты спокойно себе работают. Сопровождается вот таким трейсом. База запущена в докере, данные примонтированы в домашней папке, помогает перезапуск контейнера (создан с флагом —rm). Сталкивался ли кто-нибудь с такой проблемой?
Traceback (most recent call last):
File "/home/rocky/.local/share/virtualenvs/polybot-F9NTGz3-/lib/python3.7/site-packages/peewee.py", line 3768, in _create_connection
return self._connect(self.database, **self.connect_kwargs)
File "/home/rocky/.local/share/virtualenvs/polybot-F9NTGz3-/lib/python3.7/site-packages/peewee.py", line 4164, in _connect
conn = psycopg2.connect(database=database, **kwargs)
File "/home/rocky/.local/share/virtualenvs/polybot-F9NTGz3-/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: FATAL: the database system is shutting down
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rocky/dev/py/polybot/scheduler.py", line 45, in update_current_weeks
db.connect()
File "/home/rocky/.local/share/virtualenvs/polybot-F9NTGz3-/lib/python3.7/site-packages/peewee.py", line 3738, in connect
self._local.conn = self._create_connection()
File "/home/rocky/.local/share/virtualenvs/polybot-F9NTGz3-/lib/python3.7/site-packages/peewee.py", line 3768, in _create_connection
return self._connect(self.database, **self.connect_kwargs)
File "/home/rocky/.local/share/virtualenvs/polybot-F9NTGz3-/lib/python3.7/site-packages/peewee.py", line 3656, in __exit__
reraise(new_type, new_type(*exc_args), traceback)
File "/home/rocky/.local/share/virtualenvs/polybot-F9NTGz3-/lib/python3.7/site-packages/peewee.py", line 135, in reraise
raise value.with_traceback(tb)
File "/home/rocky/.local/share/virtualenvs/polybot-F9NTGz3-/lib/python3.7/site-packages/peewee.py", line 3768, in _create_connection
return self._connect(self.database, **self.connect_kwargs)
File "/home/rocky/.local/share/virtualenvs/polybot-F9NTGz3-/lib/python3.7/site-packages/peewee.py", line 4164, in _connect
conn = psycopg2.connect(database=database, **kwargs)
File "/home/rocky/.local/share/virtualenvs/polybot-F9NTGz3-/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
peewee.OperationalError: FATAL: the database system is shutting down
Зачем такую портянку сюда, скидывай листинг логов на гигабайт сразу
Ну и зачем базу в докере
Обсуждают сегодня