Installer: PostgreSQL username and/or password not valid
I tried version 4.5.3, 4.5.2 and 4.5.0 with the same issue: I want to install owncloud with a postresql database, the user and database name are "owncloud", password contains only letters ([a-z,A-Z]), and the database host is NOT localhost.
I can log in with the user on the database, but the owncloud installer says "PostgreSQL username and/or password not valid".
AFAIK we had reports in the past that database name and user name are not allowed to be the same. I have no clue about the cause, but you maybe want to give it a try as a workaround.
no, another username didn't work either. We'll user MySQL :(
summoning pg-master @eMerzh ;-) THX
LOL @DeepDiver1975 :p @telepath do you have a "special" host like with anything other than alphanum dot or underscore?
the username/pwd message apear with any connection problem... btw we might want to change that as well...
We try to connect to the postgres DB... that might be the problem... because i bet that you postgres db isn't accessible from a remote ....( which is quite healthy)
The problem is that we have to connect to a DB... at least a maintenance DB... so maybe we want to try the postgres db, then the database specified by the user (that we usually create during the install) .... if both fail, we display a message... what do you think?
The database host contains hyphens (-), but is accessible, other apps are working fine in the same configuration.
I've try to make a fix here...
if someone want to review it :p
#867
@telepath Can you test PRs of @eMerzh ? THX
I'm happy to test pgsql install - I get the null value error on initial db creation/admin user setup: Feb 21 20:24:49 boxen postgres[25360]: [2-1] ERROR: null value in column "configvalue" violates not-null constraint Feb 21 20:24:49 boxen postgres[25360]: [2-2] STATEMENT: EXECUTE mdb2_statement_pgsql_300ed37956fb15e38fa5025721c475ce2ba54cc2d1 ('media', 'types', NULL)
Will the patch of @eMerzh be merged to 5.x soon? This issue is preventing me from using OwnCloud. Thanks