[GH-ISSUE #234] Starting postgresql container failing with auth method error #127

Closed
opened 2026-02-26 09:36:44 +03:00 by kerem · 0 comments
Owner

Originally created by @ShockwaveNN on GitHub (Mar 24, 2020).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/234

Originally assigned to: @agolybev on GitHub.

  1. Start db container with this command:
docker-compose up onlyoffice-postgresql

Result is:

Attaching to onlyoffice-postgresql
onlyoffice-postgresql             | Error: Database is uninitialized and superuser password is not specified.
onlyoffice-postgresql             |        You must specify POSTGRES_PASSWORD to a non-empty value for the
onlyoffice-postgresql             |        superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
onlyoffice-postgresql             | 
onlyoffice-postgresql             |        You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
onlyoffice-postgresql             |        connections without a password. This is *not* recommended.
onlyoffice-postgresql             | 
onlyoffice-postgresql             |        See PostgreSQL documentation about "trust":
onlyoffice-postgresql             |        https://www.postgresql.org/docs/current/auth-trust.html

Solution mentioned in error.
This happened after until update of postgresql images. See more details here:
https://github.com/docker-library/postgres/issues/681

DocumentServer Docker tag: 5.5.0

Host Operating System: Ubuntu 18.04

Originally created by @ShockwaveNN on GitHub (Mar 24, 2020). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/234 Originally assigned to: @agolybev on GitHub. 1. Start db container with this command: ``` docker-compose up onlyoffice-postgresql ``` Result is: ``` Attaching to onlyoffice-postgresql onlyoffice-postgresql | Error: Database is uninitialized and superuser password is not specified. onlyoffice-postgresql | You must specify POSTGRES_PASSWORD to a non-empty value for the onlyoffice-postgresql | superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run". onlyoffice-postgresql | onlyoffice-postgresql | You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all onlyoffice-postgresql | connections without a password. This is *not* recommended. onlyoffice-postgresql | onlyoffice-postgresql | See PostgreSQL documentation about "trust": onlyoffice-postgresql | https://www.postgresql.org/docs/current/auth-trust.html ``` Solution mentioned in error. This happened after until update of postgresql images. See more details here: https://github.com/docker-library/postgres/issues/681 **DocumentServer Docker tag:** 5.5.0 **Host Operating System:** Ubuntu 18.04
kerem 2026-02-26 09:36:44 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#127
No description provided.