Fehlermeldung Postgres: Rebuild all objects in this database

Ich habe nach einem docker compose pull und den anschließenden Start (docker compose start) eine Fehlermeldung erhalten.

Kann mir bitte jemand helfen, wie ich den Fehler beheben kann ?

docker-compose.yml

version: „3.4“
services:
broker:
image: Docker Hub Container Image Library | App Containerization
restart: unless-stopped
volumes:
- redisdata:/data

db:
image: Docker Hub Container Image Library | App Containerization
restart: unless-stopped
volumes:
- ../pgdata:/var/lib/postgresql/data
environment:
POSTGRES_DB: paperless
POSTGRES_USER: paperless
POSTGRES_PASSWORD: paperless

webserver:
image: Package paperless-ngx · GitHub
restart: unless-stopped
depends_on:
- db
- broker
ports:
- 9000:8000
healthcheck:
test: [„CMD“, „curl“, „-fs“, „-S“, „–max-time“, „2“, „http://localhost:8000“]
interval: 30s
timeout: 10s
retries: 5
volumes:
- ../data:/usr/src/paperless/data
- ../media:/usr/src/paperless/media
- ../export:/usr/src/paperless/export
- /volume1/scaninput:/usr/src/paperless/consume
env_file: docker-compose.env
environment:
PAPERLESS_REDIS: redis://broker:6379

Log

WARN[0000] /volume1/Docker/paperless-ngx/config/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 4/4
:check_mark: Network paperless_default Created 6.9s
:check_mark: Container paperless-broker-1 Created 32.0s
:check_mark: Container paperless-db-1 Created 32.0s
:check_mark: Container paperless-webserver-1 Created 0.4s
Attaching to broker-1, db-1, webserver-1
db-1 |
db-1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
db-1 |
db-1 | 2025-09-11 08:11:32.618 UTC [1] LOG: starting PostgreSQL 16.10 (Debian 16.10-1.pgdg13+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit
db-1 | 2025-09-11 08:11:32.619 UTC [1] LOG: listening on IPv4 address „0.0.0.0“, port 5432
db-1 | 2025-09-11 08:11:32.619 UTC [1] LOG: listening on IPv6 address „::“, port 5432
db-1 | 2025-09-11 08:11:32.763 UTC [1] LOG: listening on Unix socket „/var/run/postgresql/.s.PGSQL.5432“
db-1 | 2025-09-11 08:11:32.915 UTC [28] LOG: database system was shut down at 2025-09-11 08:09:21 UTC
db-1 | 2025-09-11 08:11:33.027 UTC [1] LOG: database system is ready to accept connections
broker-1 | 1:C 11 Sep 2025 08:11:33.122 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
broker-1 | 1:C 11 Sep 2025 08:11:33.122 # Redis version=7.0.15, bits=64, commit=00000000, modified=0, pid=1, just started
broker-1 | 1:C 11 Sep 2025 08:11:33.122 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
broker-1 | 1:M 11 Sep 2025 08:11:33.123 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
broker-1 | 1:M 11 Sep 2025 08:11:33.123 # Server can’t set maximum open files to 10032 because of OS error: Operation not permitted.
broker-1 | 1:M 11 Sep 2025 08:11:33.123 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase ‚ulimit -n‘.
broker-1 | 1:M 11 Sep 2025 08:11:33.123 * monotonic clock: POSIX clock_gettime
broker-1 | 1:M 11 Sep 2025 08:11:33.123 * Running mode=standalone, port=6379.
broker-1 | 1:M 11 Sep 2025 08:11:33.123 # Server initialized
broker-1 | 1:M 11 Sep 2025 08:11:33.123 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see vm.max_map_count growing steadily when vm.overcommit_memory is 2 · Issue #1328 · jemalloc/jemalloc · GitHub. To fix this issue add ‚vm.overcommit_memory = 1‘ to /etc/sysctl.conf and then reboot or run the command ‚sysctl vm.overcommit_memory=1‘ for this to take effect.
broker-1 | 1:M 11 Sep 2025 08:11:33.124 * Loading RDB produced by version 7.0.15
broker-1 | 1:M 11 Sep 2025 08:11:33.124 * RDB age 132 seconds
broker-1 | 1:M 11 Sep 2025 08:11:33.124 * RDB memory usage when created 1.10 Mb
broker-1 | 1:M 11 Sep 2025 08:11:33.124 * Done loading RDB, keys loaded: 6, keys expired: 0.
broker-1 | 1:M 11 Sep 2025 08:11:33.124 * DB loaded from disk: 0.000 seconds
broker-1 | 1:M 11 Sep 2025 08:11:33.124 * Ready to accept connections
webserver-1 | [init-start] paperless-ngx docker container starting…
webserver-1 | [init-start] paperless-ngx docker container starting init as root
webserver-1 | [env-init] Checking for environment from files
webserver-1 | [env-init] No *_FILE environment found
webserver-1 | [init-redis-wait] Waiting for Redis to report ready
webserver-1 | [init-tesseract-langs] Checking if additional teseract languages needed
webserver-1 | [init-db-wait] Waiting for postgresql to report ready
webserver-1 | Installing languages…
webserver-1 | [init-db-wait] Waiting for PostgreSQL to start…
webserver-1 | [init-user] No UID changes for paperless
webserver-1 | [init-user] Mapping GID for paperless to 100
webserver-1 | [init-folders] Running with root privileges, adjusting directories and permissions
webserver-1 | mkdir: created directory ‚/tmp/paperless‘
webserver-1 | changed ownership of ‚/tmp/paperless‘ from root:root to paperless:paperless
webserver-1 | Waiting for Redis…
webserver-1 | Connected to Redis broker.
webserver-1 | [init-redis-wait] Redis ready
webserver-1 | [init-tesseract-langs] Installing package tesseract-ocr-nld…
webserver-1 | [init-tesseract-langs] Installed tesseract-ocr-nld
webserver-1 | [init-tesseract-langs] Additional packages installed
webserver-1 | Connected to PostgreSQL
webserver-1 | [init-db-wait] Database is ready
webserver-1 | [init-migrations] Apply database migrations…
db-1 | 2025-09-11 08:11:43.097 UTC [33] WARNING: database „paperless“ has a collation version mismatch
db-1 | 2025-09-11 08:11:43.097 UTC [33] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
db-1 | 2025-09-11 08:11:43.097 UTC [33] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE paperless REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
webserver-1 | Operations to perform:
webserver-1 | Apply all migrations: account, admin, auditlog, auth, authtoken, contenttypes, django_celery_results, documents, guardian, mfa, paperless, paperless_mail, sessions, socialaccount
webserver-1 | Running migrations:
webserver-1 | No migrations to apply.
webserver-1 | [init-superuser] Not creating superuser
webserver-1 | [init-checks] Running Django checks
db-1 | 2025-09-11 08:11:46.845 UTC [34] WARNING: database „paperless“ has a collation version mismatch
db-1 | 2025-09-11 08:11:46.845 UTC [34] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
db-1 | 2025-09-11 08:11:46.845 UTC [34] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE paperless REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
webserver-1 | System check identified no issues (0 silenced).
webserver-1 | [custom-init] /custom-cont-init.d doesn’t exist, nothing to do
webserver-1 | [init-complete] paperless-ngx docker container init completed in 12 seconds
webserver-1 | [init-complete] Starting services
webserver-1 | [svc-flower] Checking if we should start flower…
webserver-1 | [svc-flower] Not starting flower
webserver-1 | [INFO] Starting granian (main PID: 313)
webserver-1 | [INFO] Listening at: http://:::8000
webserver-1 | [INFO] Spawning worker-1 with PID: 333
webserver-1 | celery beat v5.5.3 (immunity) is starting.
webserver-1 | [2025-09-11 10:11:51,253] [INFO] [paperless.asgi] [init] Paperless-ngx version: v2.18.4
db-1 | 2025-09-11 08:11:51.293 UTC [35] WARNING: database „paperless“ has a collation version mismatch
db-1 | 2025-09-11 08:11:51.293 UTC [35] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
db-1 | 2025-09-11 08:11:51.293 UTC [35] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE paperless REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
webserver-1 | [2025-09-11 10:11:51,299] [INFO] [paperless.management.consumer] Using inotify to watch directory for changes: /usr/src/paperless/consume
db-1 | 2025-09-11 08:11:51.535 UTC [36] WARNING: database „paperless“ has a collation version mismatch
db-1 | 2025-09-11 08:11:51.535 UTC [36] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
db-1 | 2025-09-11 08:11:51.535 UTC [36] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE paperless REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
db-1 | 2025-09-11 08:11:51.606 UTC [37] WARNING: database „paperless“ has a collation version mismatch
db-1 | 2025-09-11 08:11:51.606 UTC [37] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
db-1 | 2025-09-11 08:11:51.606 UTC [37] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE paperless REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
webserver-1 | __ - … __ - _
webserver-1 | LocalTime → 2025-09-11 10:11:51
webserver-1 | Configuration →
webserver-1 | . broker → redis://broker:6379//
webserver-1 | . loader → celery.loaders.app.AppLoader
webserver-1 | . scheduler → celery.beat.PersistentScheduler
webserver-1 | . db → /usr/src/paperless/data/celerybeat-schedule.db
webserver-1 | . logfile → [stderr]@%INFO
webserver-1 | . maxinterval → 5.00 minutes (300s)
webserver-1 | [2025-09-11 10:11:51,694] [INFO] [celery.beat] beat: Starting…
webserver-1 |
webserver-1 | -------------- celery@48763df12bb1 v5.5.3 (immunity)
webserver-1 | — ***** -----
webserver-1 | – ******* ---- Linux-6.6.x-x86_64-with-glibc2.36 2025-09-11 10:11:51
webserver-1 | - *** — * —
webserver-1 | - ** ---------- [config]
webserver-1 | - ** ---------- .> app: paperless:0x7fa8a6778260
webserver-1 | - ** ---------- .> transport: redis://broker:6379//
webserver-1 | - ** ---------- .> results:
webserver-1 | - *** — * — .> concurrency: 1 (prefork)
webserver-1 | – ******* ---- .> task events: ON
webserver-1 | — ***** -----
webserver-1 | -------------- [queues]
webserver-1 | .> celery exchange=celery(direct) key=celery
webserver-1 |
webserver-1 |
webserver-1 | [tasks]
webserver-1 | . documents.bulk_edit.delete
webserver-1 | . documents.signals.handlers.send_webhook
webserver-1 | . documents.tasks.bulk_update_documents
webserver-1 | . documents.tasks.check_scheduled_workflows
webserver-1 | . documents.tasks.consume_file
webserver-1 | . documents.tasks.empty_trash
webserver-1 | . documents.tasks.index_optimize
webserver-1 | . documents.tasks.sanity_check
webserver-1 | . documents.tasks.train_classifier
webserver-1 | . documents.tasks.update_document_content_maybe_archive_file
webserver-1 | . paperless_mail.mail.apply_mail_action
webserver-1 | . paperless_mail.mail.error_callback
webserver-1 | . paperless_mail.tasks.process_mail_accounts
webserver-1 |
webserver-1 | [2025-09-11 10:11:51,828] [INFO] [celery.worker.consumer.connection] Connected to redis://broker:6379//
webserver-1 | [2025-09-11 10:11:51,836] [INFO] [celery.beat] Scheduler: Sending due task Check all e-mail accounts (paperless_mail.tasks.process_mail_accounts)
webserver-1 | [2025-09-11 10:11:51,840] [INFO] [celery.apps.worker] celery@48763df12bb1 ready.
webserver-1 | [2025-09-11 10:11:51,843] [INFO] [celery.worker.strategy] Task paperless_mail.tasks.process_mail_accounts[14a21a09-fe3c-46ef-b9c0-be2e3513662f] received
db-1 | 2025-09-11 08:11:51.942 UTC [38] WARNING: database „paperless“ has a collation version mismatch
db-1 | 2025-09-11 08:11:51.942 UTC [38] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
db-1 | 2025-09-11 08:11:51.942 UTC [38] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE paperless REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
db-1 | 2025-09-11 08:11:51.953 UTC [39] WARNING: database „paperless“ has a collation version mismatch
db-1 | 2025-09-11 08:11:51.953 UTC [39] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
db-1 | 2025-09-11 08:11:51.953 UTC [39] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE paperless REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
webserver-1 | [2025-09-11 10:11:52,044] [INFO] [celery.app.trace] Task paperless_mail.tasks.process_mail_accounts[14a21a09-fe3c-46ef-b9c0-be2e3513662f] succeeded in 0.11058705672621727s: ‚No new documents were added.‘
db-1 | 2025-09-11 08:11:52.051 UTC [40] WARNING: database „paperless“ has a collation version mismatch
db-1 | 2025-09-11 08:11:52.051 UTC [40] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
db-1 | 2025-09-11 08:11:52.051 UTC [40] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE paperless REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
db-1 | 2025-09-11 08:11:53.108 UTC [41] WARNING: database „template1“ has a collation version mismatch
db-1 | 2025-09-11 08:11:53.108 UTC [41] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
db-1 | 2025-09-11 08:11:53.108 UTC [41] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE template1 REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
db-1 | 2025-09-11 08:12:13.050 UTC [42] WARNING: database „paperless“ has a collation version mismatch
db-1 | 2025-09-11 08:12:13.050 UTC [42] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
db-1 | 2025-09-11 08:12:13.050 UTC [42] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE paperless REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
db-1 | 2025-09-11 08:12:33.220 UTC [43] WARNING: database „postgres“ has a collation version mismatch
db-1 | 2025-09-11 08:12:33.220 UTC [43] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
db-1 | 2025-09-11 08:12:33.220 UTC [43] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE postgres REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
db-1 | 2025-09-11 08:12:53.060 UTC [44] WARNING: database „template1“ has a collation version mismatch
db-1 | 2025-09-11 08:12:53.060 UTC [44] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
db-1 | 2025-09-11 08:12:53.060 UTC [44] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE template1 REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
db-1 | 2025-09-11 08:13:13.070 UTC [45] WARNING: database „paperless“ has a collation version mismatch
db-1 | 2025-09-11 08:13:13.070 UTC [45] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
db-1 | 2025-09-11 08:13:13.070 UTC [45] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE paperless REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
db-1 | 2025-09-11 08:13:33.051 UTC [46] WARNING: database „postgres“ has a collation version mismatch
db-1 | 2025-09-11 08:13:33.051 UTC [46] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
db-1 | 2025-09-11 08:13:33.051 UTC [46] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE postgres REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
db-1 | 2025-09-11 08:13:53.078 UTC [47] WARNING: database „template1“ has a collation version mismatch
db-1 | 2025-09-11 08:13:53.078 UTC [47] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
db-1 | 2025-09-11 08:13:53.078 UTC [47] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE template1 REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
Gracefully stopping… (press Ctrl+C again to force)

db-1 | 2025-09-11 08:12:53.060 UTC [44] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE template1 REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
db-1 | 2025-09-11 08:13:13.070 UTC [45] WARNING: database „paperless“ has a collation version mismatch
db-1 | 2025-09-11 08:13:13.070 UTC [45] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
db-1 | 2025-09-11 08:13:13.070 UTC [45] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE paperless REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.

  PAPERLESS_DBHOST: db

Hi,

Schau dir mal diesen Beitrag und die Lösung von gio an:

Scheint die SuFu wohl defekt zu sein ^^

Im Beitrag relativ weit unten die Befehle verwenden.

Hallo Jake,

Vielen Dank ! Ich konnte den Fehler dank deiner Hilfe und dem Beitrag fixen.

Dieses Thema wurde automatisch 7 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.