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

role "nextcloud" does not exist #324

Open
yuriry opened this issue May 12, 2024 · 2 comments
Open

role "nextcloud" does not exist #324

yuriry opened this issue May 12, 2024 · 2 comments

Comments

@yuriry
Copy link

yuriry commented May 12, 2024

A question about docs/services/database.md:

When I run docker compose exec postgres psql -U nextcloud -d nextcloud, I get error: service "postgres" is not running.

When I change postgres to database-pgsql, I get error: FATAL: role "nextcloud" does not exist.

When I change -U nextcloud to -U postgres, I can connect to the database. And when I run select * from pg_user;, I get only one row with usename postgres.

Is my setup incorrect, or is it a typo in documentation?

@juliusknorr
Copy link
Owner

Did you change your setup in the .env file to use postgres instead of the default mysql? The postgres container will only be used then, any users would only get created during installation of the Nextcloud container

@yuriry
Copy link
Author

yuriry commented May 13, 2024

Yes, I ran docker compose down -v, then changed the .env file, then docker compose up -d nextcloud
It looks like the service to connect to is database-pgsql, but it has no nextcloud role, only postgres.

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

2 participants