Skip to content

Installation with Postgres Fails With Authentication Error #15986

@miakramer

Description

@miakramer

Steps to reproduce

  1. Install PostgreSQL from repositories
  2. Create db user and database, with appropriate permissions
  3. Copy nextcloud files to the appropriate location
  4. Run occ maintenance:install

Expected behaviour

Nextcloud should be installed.

Actual behaviour

Installation failed with the following message:

Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[08006] [7] FATAL:  password authentication failed for user "nextcloud"
FATAL:  password authentication failed for user "nextcloud"

Note that password authentication was allowed, and I was able to log in manually to the nextcloud database with the nextcloud user with sudo -u www-data psql -U nextcloud nextcloud using the password.

Server configuration

OS: Armbian (based on Ubuntu 18.04)

Server: Odroid HC1 (modified XU4), ARMv7 8-core big.LITTLE

Database: PostgreSQL 10.8 (Ubuntu 10.8-0ubuntu0.18.04.1)

PHP version: 7.2.19-0ubuntu0.18.04.1

Nextcloud version: 16.0.1

Updated from an older Nextcloud/ownCloud or fresh install: Fresh Install

Where did you install Nextcloud from: Official download

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbugneeds infostaleTicket or PR with no recent activity

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions