Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up Postgres database on first install doesn't input details correctly #257

Closed
2fst4u opened this issue Aug 15, 2022 · 7 comments
Closed

Comments

@2fst4u
Copy link

2fst4u commented Aug 15, 2022

linuxserver.io


Expected Behavior

Inputting postgres database details on the first boot should correctly pass details to the config.php file.

Current Behavior

Inputting postgres database details on the first boot results in the NextCloud administrator account details being used as the postgres user, and the postgres database name gets "oc_" appended to the front. These details are verified in the config.php file and need to be manually fixed.

Steps to Reproduce

  1. Create postgres database instance
  2. Start linuxserver/docker-nextcloud instance fresh
  3. Input postgres details
  4. After clicking "install" NextCloud will not load as the information is wrong.
  5. Manually edit the config.php file and note the details for postgres are wrong.

Environment

OS: Ubuntu 21.10 and Ubuntu 22.04 as the host
CPU architecture: arm64
How docker service was installed: via kubernetes as a StatefulSet

Command used to create docker container (run/create/compose/screenshot)

Kubernetes statefulset on K3S

Docker logs

Nil logs of this event.

I have tried this twice on different occasions and it has stumped me. I'm not sure if it's an upstream NextCloud issue or if it's specific to this container.

@github-actions
Copy link

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@2fst4u
Copy link
Author

2fst4u commented Sep 14, 2022

Bump

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@nemchik
Copy link
Member

nemchik commented Oct 19, 2022

Can you test with the new image released today?

docker pull ghcr.io/linuxserver/nextcloud:25.0.0-ls206

@alejandro-angulo
Copy link

I'm experiencing the same issue on version 25.0.1-ls211. I think none of the environment variables listed in the "Auto configuration via environment variables" section here are being respected.

I was using nextcloud-maintained docker image and those environment variables worked there (I didn't see a message in the web UI warning me about using sqlite and I was able to set an admin username/password). I guess this is something specific to their docker image and not the app itself.

@j0nnymoe
Copy link
Member

Our container isn't configurable via env variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants