Hallo zusammen!
Ich habe ein recht ähnliches Problem, dass ich inzwischen ein wenig eingrenzen konnte.
Am 16.09. lief ein Watchtower-Update und erzeugte folgende Meldungen:
time="2023-09-16T01:00:16Z" level=info msg="Watchtower 1.5.3"
time="2023-09-16T01:00:16Z" level=info msg="Using no notifications"
time="2023-09-16T01:00:16Z" level=info msg="Checking all containers (except explicitly disabled with label)"
time="2023-09-16T01:00:16Z" level=info msg="Running a one time update."
time="2023-09-16T01:00:16Z" level=warning msg="Failed to retrieve container image info: Error: No such image: sha256:f01e3f25e17c9476fa922c17f80ad19adc06a8e4d3b59b43673652d2c2d2476d"
time="2023-09-16T01:00:54Z" level=info msg="Found new postgres:latest image (a373cbdcfe8b)"
time="2023-09-16T01:00:59Z" level=warning msg="Could not do a head request for \"jbarlow83/ocrmypdf:latest\", falling back to regular pull." container=/jbarlow83-ocrmypdf1 image="jbarlow83/ocrmypdf:latest"
time="2023-09-16T01:00:59Z" level=warning msg="Reason: container image info missing" container=/jbarlow83-ocrmypdf1 image="jbarlow83/ocrmypdf:latest"
time="2023-09-16T01:01:58Z" level=info msg="Found new jbarlow83/ocrmypdf:latest image (1e465a7d168c)"
time="2023-09-16T01:01:58Z" level=info msg="Unable to update container \"/jbarlow83-ocrmypdf1\": no available image info. Proceeding to next."
time="2023-09-16T01:01:58Z" level=info msg="Stopping /Paperless-NGX-DB-BAK (6999f1624992) with SIGTERM"
time="2023-09-16T01:02:16Z" level=info msg="Creating /Paperless-NGX-DB-BAK"
time="2023-09-16T01:02:24Z" level=info msg="Removing image 69e765e8cdbe"
time="2023-09-16T01:02:26Z" level=info msg="Session done" Failed=0 Scanned=8 Updated=1 notify=no
time="2023-09-16T01:02:26Z" level=info msg="Waiting for the notification goroutine to finish" notify=no
Nach Sichtung der Log Files unter /docker/paperlessngx/data/log konnte ich eingrenzen, dass Paperless-NGX offenbar seit dieser Zeit nicht mehr läuft. Zumindest wurden seit dem keine mail.logs mehr erzeugt. Im nächsten paperless.log vom 19.09. heißt es:
[2023-09-19 09:05:00,351] [ERROR] [paperless.handlers] Setting PaperlessTask started failed
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py", line 301, in _cursor
return self._prepare_cursor(self.create_cursor(name))
File "/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/django/db/backends/postgresql/base.py", line 269, in create_cursor
cursor = self.connection.cursor()
psycopg2.InterfaceError: connection already closed
Im Paperless Portainer Stack Log wiederholt sich nun folgender Inhalt:
Paperless-ngx docker container starting...
Creating directory /tmp/paperless
Adjusting permissions of paperless files. This may take a while.
Waiting for PostgreSQL to start...
Waiting for Redis...
Connected to Redis broker.
Apply database migrations...
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py", line 282, in ensure_connection
self.connect()
File "/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py", line 263, in connect
self.connection = self.get_new_connection(conn_params)
File "/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/django/db/backends/postgresql/base.py", line 215, in get_new_connection
connection = Database.connect(**conn_params)
File "/usr/local/lib/python3.9/site-packages/psycopg2/__init__.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: could not translate host name "db" to address: Name or service not known
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/paperless/src/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 440, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 402, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 448, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 96, in wrapped
res = handle_func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/django/core/management/commands/migrate.py", line 114, in handle
executor = MigrationExecutor(connection, self.migration_progress_callback)
File "/usr/local/lib/python3.9/site-packages/django/db/migrations/executor.py", line 18, in __init__
self.loader = MigrationLoader(self.connection)
File "/usr/local/lib/python3.9/site-packages/django/db/migrations/loader.py", line 58, in __init__
self.build_graph()
File "/usr/local/lib/python3.9/site-packages/django/db/migrations/loader.py", line 235, in build_graph
self.applied_migrations = recorder.applied_migrations()
File "/usr/local/lib/python3.9/site-packages/django/db/migrations/recorder.py", line 81, in applied_migrations
if self.has_table():
File "/usr/local/lib/python3.9/site-packages/django/db/migrations/recorder.py", line 57, in has_table
with self.connection.cursor() as cursor:
File "/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py", line 323, in cursor
return self._cursor()
File "/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py", line 299, in _cursor
self.ensure_connection()
File "/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py", line 282, in ensure_connection
self.connect()
File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 91, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py", line 282, in ensure_connection
self.connect()
File "/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py", line 263, in connect
self.connection = self.get_new_connection(conn_params)
File "/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/django/db/backends/postgresql/base.py", line 215, in get_new_connection
connection = Database.connect(**conn_params)
File "/usr/local/lib/python3.9/site-packages/psycopg2/__init__.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
django.db.utils.OperationalError: could not translate host name "db" to address: Name or service not known
Beim Aufruf meiner Paperless Adresse erhalte ich die Meldung:
Es tut uns Leid die von Ihnen gesuchte Seite konnte nicht gefunden werden.
Leider bin ich ziemlich ratlos worin das Problem genau besteht und wie ich es gefixt bekomme. Ich hoffe hier durch eure geballte Kompetenz schnell zu einer Lösung zu finden in der Hoffnung nicht alles neu aufsetzen zu müssen.
Vielen Dank im Voraus.
Stephan