2025/01/21 10:40:22 stdout django.db.utils.OperationalError: [Errno -2] Name or service not known
2025/01/21 10:40:22 stdout raise e.OperationalError(str(last_exc))
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/psycopg/_conninfo_attempts.py", line 50, in conninfo_attempts
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout attempts = conninfo_attempts(params)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/psycopg/connection.py", line 98, in connect
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout connection = self.Database.connect(**conn_params)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/db/backends/postgresql/base.py", line 332, in get_new_connection
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout return func(*args, **kwargs)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout self.connection = self.get_new_connection(conn_params)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/db/backends/base/base.py", line 256, in connect
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout return func(*args, **kwargs)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner
2025/01/21 10:40:22 stdout self.connect()
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/db/backends/base/base.py", line 279, in ensure_connection
2025/01/21 10:40:22 stdout raise dj_exc_value.with_traceback(traceback) from exc_value
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/db/utils.py", line 91, in __exit__
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout with self.wrap_database_errors:
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/db/backends/base/base.py", line 278, in ensure_connection
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout return func(*args, **kwargs)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner
2025/01/21 10:40:22 stdout self.ensure_connection()
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/db/backends/base/base.py", line 296, in _cursor
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout return self._cursor()
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/db/backends/base/base.py", line 320, in cursor
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout return func(*args, **kwargs)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout with self.connection.cursor() as cursor:
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/db/migrations/recorder.py", line 63, in has_table
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout if self.has_table():
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/db/migrations/recorder.py", line 89, in applied_migrations
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout self.applied_migrations = recorder.applied_migrations()
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/db/migrations/loader.py", line 235, in build_graph
2025/01/21 10:40:22 stdout self.build_graph()
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/db/migrations/loader.py", line 58, in __init__
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout self.loader = MigrationLoader(self.connection)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/db/migrations/executor.py", line 18, in __init__
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout executor = MigrationExecutor(connection, self.migration_progress_callback)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/core/management/commands/migrate.py", line 118, in handle
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout res = handle_func(*args, **kwargs)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/core/management/base.py", line 107, in wrapper
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout output = self.handle(*args, **options)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/core/management/base.py", line 459, in execute
2025/01/21 10:40:22 stdout self.execute(*args, **cmd_options)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/core/management/base.py", line 413, in run_from_argv
2025/01/21 10:40:22 stdout self.fetch_command(subcommand).run_from_argv(self.argv)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/core/management/__init__.py", line 436, in execute
2025/01/21 10:40:22 stdout utility.execute()
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
2025/01/21 10:40:22 stdout execute_from_command_line(sys.argv)
2025/01/21 10:40:22 stdout File "/usr/src/paperless/src/manage.py", line 10, in <module>
2025/01/21 10:40:22 stdout Traceback (most recent call last):
2025/01/21 10:40:22 stdout
2025/01/21 10:40:22 stdout The above exception was the direct cause of the following exception:
2025/01/21 10:40:22 stdout
2025/01/21 10:40:22 stdout psycopg.OperationalError: [Errno -2] Name or service not known
2025/01/21 10:40:22 stdout raise e.OperationalError(str(last_exc))
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/psycopg/_conninfo_attempts.py", line 50, in conninfo_attempts
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout attempts = conninfo_attempts(params)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/psycopg/connection.py", line 98, in connect
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout connection = self.Database.connect(**conn_params)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/db/backends/postgresql/base.py", line 332, in get_new_connection
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout return func(*args, **kwargs)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout self.connection = self.get_new_connection(conn_params)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/db/backends/base/base.py", line 256, in connect
2025/01/21 10:40:22 stdout ^^^^^^^^^^^^^^^^^^^^^
2025/01/21 10:40:22 stdout return func(*args, **kwargs)
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner
2025/01/21 10:40:22 stdout self.connect()
2025/01/21 10:40:22 stdout File "/usr/local/lib/python3.12/site-packages/django/db/backends/base/base.py", line 279, in ensure_connection
2025/01/21 10:40:22 stdout Traceback (most recent call last):
2025/01/21 10:40:15 stdout Apply database migrations...
2025/01/21 10:40:15 stdout Connected to Redis broker.
2025/01/21 10:40:15 stdout Waiting for Redis...
2025/01/21 10:40:14 stdout Connected to PostgreSQL
2025/01/21 10:40:14 stdout Waiting for PostgreSQL to start...
2025/01/21 10:40:13 stdout Adjusting permissions of paperless files. This may take a while.
2025/01/21 10:40:13 stdout Creating directory scratch directory /tmp/paperless
2025/01/21 10:40:13 stdout Package tesseract-ocr-deu already installed!
2025/01/21 10:40:13 stdout Package tesseract-ocr-eng already installed!
2025/01/21 10:40:13 stdout Installing languages...
2025/01/21 10:40:13 stdout Paperless-ngx docker container starting...