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

Installation with Postgres Fails With Authentication Error #15986

Closed
miakramer opened this issue Jun 17, 2019 · 6 comments
Closed

Installation with Postgres Fails With Authentication Error #15986

miakramer opened this issue Jun 17, 2019 · 6 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info stale Ticket or PR with no recent activity

Comments

@miakramer
Copy link

Steps to reproduce

  1. Install PostgreSQL from repositories
  2. Create db user and database, with appropriate permissions
  3. Copy nextcloud files to the appropriate location
  4. Run occ maintenance:install

Expected behaviour

Nextcloud should be installed.

Actual behaviour

Installation failed with the following message:

Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[08006] [7] FATAL:  password authentication failed for user "nextcloud"
FATAL:  password authentication failed for user "nextcloud"

Note that password authentication was allowed, and I was able to log in manually to the nextcloud database with the nextcloud user with sudo -u www-data psql -U nextcloud nextcloud using the password.

Server configuration

OS: Armbian (based on Ubuntu 18.04)

Server: Odroid HC1 (modified XU4), ARMv7 8-core big.LITTLE

Database: PostgreSQL 10.8 (Ubuntu 10.8-0ubuntu0.18.04.1)

PHP version: 7.2.19-0ubuntu0.18.04.1

Nextcloud version: 16.0.1

Updated from an older Nextcloud/ownCloud or fresh install: Fresh Install

Where did you install Nextcloud from: Official download

@miakramer miakramer added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jun 17, 2019
@kesselb
Copy link
Contributor

kesselb commented Jun 17, 2019

How do you call occ maintenance:install?

@miakramer
Copy link
Author

I called it with:

sudo -u www-data php occ maintenance:install --database "pgsql" --database-name "nextcloud" --database-user "nextcloud" --database-pass "{database pass}" --admin-user "miakramer" --admin-pass "{admin pass}" --data-dir "/data/www/nextcloud/data"

@kesselb
Copy link
Contributor

kesselb commented Jun 17, 2019

Mind to try this patch #15187?

@miakramer
Copy link
Author

No luck, still gives the same error.

@miakramer
Copy link
Author

However, I was able to use the web installer. The request times out after filling out the information, but running (my database name is nextcloud and db user is nextcloud):

GRANT ALL PRIVILEGES ON DATABASE nextcloud TO nextcloud;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO nextcloud;

Worked, and I have now successfully logged in.

@ghost
Copy link

ghost commented Jul 20, 2019

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

@ghost ghost added the stale Ticket or PR with no recent activity label Jul 20, 2019
@ghost ghost closed this as completed Aug 3, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info stale Ticket or PR with no recent activity
Projects
None yet
Development

No branches or pull requests

2 participants