Skip to content

PostgreSQL: faulty database connection upon completing installation wizard #482

@pmattern

Description

@pmattern

Using PostgreSQL the first database connection upon completing the installation wizard ("Finish setup") is faulty both in current master checkouts and 9.0.53.

Both 020a2a6 and 9.0.53 first try to connect to database "postgres" instead of their dedicated one according to the PostgreSQL server's logs. As for the Git checkout this results in failure and a warning
nextcloud_postgres-installation-credentials_020a2a6
In 9.0.5{3,2} the installation wizard of which still needs the vendor specific "psql" driver an attempt to connect to database "postgres" is made as well but it's followed by some other connection attempt and the resulting warning is
nextcloud_postgres-installation-credentials_9 0 52
Unlike the findings with branch master this isn't reproducible 100% but happens most of the time, so far I failed to figure out the exact conditions.
Both times config.php is written but incomplete, in particular dbpassword and installed are missing. The correct dedicated database of Nextcloud is filed in dbname, though.

Arch Linux x86_64, hence PostgreSQL 9.5.3, PHP 7.0.8 and Apache 2.4.23 using the PHP module. Database server on an other host than the one running Apache / Nextcloud, credentials definitely valid as verified by invoking psql from the latter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions