Skip to content

Advanced connection string in config.php is misparsed #631

@Alphakilo

Description

@Alphakilo

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Requirements

Have a PostgreSQL database that requires TLS connections.

pg_hba.conf:

hostssl    nextcloud    nextcloud       x.x.x.x/32          scram-sha-256

Steps to reproduce

  1. Add the connection string to the config.php: 'dbhost' => 'db.example.org;sslmode=verify-ca;sslrootcert=/etc/ssl/certs/ca-certificates.crt;dbname=nextcloud'
  2. Attempt to start notify_client

Expected behaviour

notify_client parses the string, connects to the database and starts.

Actual behaviour

notify_client exits non-zero with the following error message:

Error:   × Failed to connect to database: error communicating with database: failed to lookup address information: Name does not resolve
  ├─▶ error communicating with database: failed to lookup address information: Name does not resolve
  ╰─▶ failed to lookup address information: Name does not resolve

Server configuration

Web server: Apache

Database: PostgreSQL 16

PHP version: 8.2

Nextcloud version: 31.0.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions