Skip to content

No DB connection because occ config:system:get doesn't always return a proper value #46

@DrMurx

Description

@DrMurx

Describe the bug

If Nextcloud's database config is done via environment variables (possible with variables named NC_<cfgvalue>, see PR 3966), occ config:system:get does not respect this and cloud_py_api can't connect to the database.

I opened a Nextcloud bug on this subject because I think the occ command should reliably return the configuration, but one could still argue that occ config:system:get should only complement the functionality of occ config:system:set and only operate on the config.php. Therefore you might want to explore other options on your side.

To Reproduce

See instructions in nextcloud/server#36126

Expected behavior

Working database connection, regardless of how it is configured.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions