Uh oh!
There was an error while loading. Please reload this page.
handle postgres setup when we cant connect as admin - #497
Conversation
mention-bot
commented
Jul 21, 2016
@icewind1991, thanks for your PR! By analyzing the annotation information on this pull request, we identified @bartv2, @DeepDiver1975 and @nickvergessen to be potential reviewers |
963c0e8 behaves like the current release as described in #482: First, a connection attempt is made to database "postgres" instead of the one of Nextcloud which obviously fails. Next a connection attempt using correct database and database username is made but fails due to a wrong password besides the one filed in the wizard's form is definitely correct. The error message is where at least |
andreas-p
commented
Aug 4, 2016
Testing with 10 beta, I found the behaviour even more problematic. I've set up a postgres database upfront with full access granted to , including a specific pg_hba.conf entry, which should be sufficient for all nextcloud server access patterns. First, the setup tries to connect using the www-data to the database (1xssl, 1x nonssl), then it tries to connect using the to the postgres database. Both is wrong, it obviously should connect to using , nothing else (at least as a first attempt). |
rullzer
commented
Aug 8, 2016
Moved to NC11 since it is against master |
LukasReschke
commented
Aug 27, 2016
@icewind1991 Any comments on above remarks? |
nebulade
commented
Sep 6, 2016
Ran into the same issue with our Cloudron app, where the database and db user are already pre-setup. Using that patch only worked by also adding to the |
nebulade
commented
Sep 6, 2016
Most likely |
963c0e8 to
787f0e5Compareicewind1991
commented
Sep 6, 2016
It now sets the dbname explicitly |
Running 787f0e5 the error messages shown above and in #482 can no longer be seen. Also, The first connection attempt is still made to database 787f0e5 on Arch Linux x86_64, PostgreSQL 9.5.4, Apache 2.4.23, PHP 7.0.11 via mod_php. |
MorrisJobke
commented
Dec 1, 2016
@rullzer Would be nice to get this in - I will try to test this today too ;) |
787f0e5 to
5365c1aCompareMorrisJobke
commented
Dec 5, 2016
Rebased ontop of master ;) |
MorrisJobke
commented
Dec 5, 2016
I tested this and setup via postgres works fine 👍 |
MorrisJobke
commented
Dec 5, 2016
@rullzer@nickvergessen Mind to review this one here? It's not a huge diff: https://github.com/nextcloud/server/pull/497/files?w=1 |
@karlitschek We need more people testing postgres or we should kill the support for it. I would vote for only go for one nice solution instead of 4 different ones that only work half of the time 🙈 We have 3,7% Postgres users as per survey server |
karlitschek
commented
Dec 5, 2016
hmm. not sure it is realistic to drop support. Maybe we should ask in the forum for more testers? |
MorrisJobke
commented
Dec 5, 2016
We are should then check out how to get more traction on the postgres side. Because this is here sind end of July. But maybe something like the Nginx guys also happen for the postgres support :) |
MorrisJobke
commented
Dec 5, 2016
@Threeseven Thanks for the feedback 👍 |
andreas-p
commented
Dec 6, 2016
I'd consider dropping postgres support as a major drawback, please drop thinking about it... |
LukasReschke
commented
Dec 7, 2016
#1793 is another PGSQL issue that seems rather critical… |
…options feat: advanced deploy options

Fixes#482
@pmattern can you check if this fixes the problem for you?