-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
PostgreSQL: faulty database connection upon completing installation wizard #482
Comments
cc @icewind1991 |
I'm experiencing the same issue deploying on a virtual machine on Amazon EC2. I can login to Postgresql instance from the same vm and create tables, but nextcloud installer(from web and command line) says that credentials are not valid. On command line I tried with option "-vvv" to get more info but I got the same message. The installation with mysql works as expected. These the versions on my VM: Thanks! |
+1 |
There seems to be a small remnant. Right upon clicking the wizard's
in the PostgreSQL server's log, where the database name is wrong but the other credentials are correct. Arch Linux x64-64, Apache 2.4.25, PHP 7.1.1, PostgreSQL 9.6.1, Nextcloud b5990b7. |
This is a postgres error unrelated to nextcloud. You use an ip address to connect to postgres which is not allowed in the |
The finding has exactly nothing to do with |
@pmattern |
Using PostgreSQL the first database connection upon completing the installation wizard ("Finish setup") is faulty both in current master checkouts and 9.0.53.
Both 020a2a6 and 9.0.53 first try to connect to database "postgres" instead of their dedicated one according to the PostgreSQL server's logs. As for the Git checkout this results in failure and a warning
![nextcloud_postgres-installation-credentials_020a2a6](https://cloud.githubusercontent.com/assets/9860801/17004196/3ab63984-4ed4-11e6-879b-7c463bb20a0d.png)
![nextcloud_postgres-installation-credentials_9 0 52](https://cloud.githubusercontent.com/assets/9860801/17004204/43f7c35a-4ed4-11e6-90d9-b9cc6aa7c224.png)
In 9.0.5{3,2} the installation wizard of which still needs the vendor specific "psql" driver an attempt to connect to database "postgres" is made as well but it's followed by some other connection attempt and the resulting warning is
Unlike the findings with branch master this isn't reproducible 100% but happens most of the time, so far I failed to figure out the exact conditions.
Both times
config.php
is written but incomplete, in particulardbpassword
andinstalled
are missing. The correct dedicated database of Nextcloud is filed indbname
, though.Arch Linux x86_64, hence PostgreSQL 9.5.3, PHP 7.0.8 and Apache 2.4.23 using the PHP module. Database server on an other host than the one running Apache / Nextcloud, credentials definitely valid as verified by invoking
psql
from the latter.The text was updated successfully, but these errors were encountered: