core icon indicating copy to clipboard operation
core copied to clipboard

Installer: PostgreSQL username and/or password not valid

Open telepath opened this issue 14 years ago • 10 comments

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".

telepath avatar Dec 02 '12 11:12 telepath

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.

DeepDiver1975 avatar Dec 03 '12 10:12 DeepDiver1975

no, another username didn't work either. We'll user MySQL :(

telepath avatar Dec 12 '12 21:12 telepath

summoning pg-master @eMerzh ;-) THX

DeepDiver1975 avatar Dec 12 '12 22:12 DeepDiver1975

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)

eMerzh avatar Dec 12 '12 22:12 eMerzh

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?

eMerzh avatar Dec 12 '12 23:12 eMerzh

The database host contains hyphens (-), but is accessible, other apps are working fine in the same configuration.

telepath avatar Dec 12 '12 23:12 telepath

I've try to make a fix here...

if someone want to review it :p

#867

eMerzh avatar Dec 13 '12 18:12 eMerzh

@telepath Can you test PRs of @eMerzh ? THX

DeepDiver1975 avatar Dec 17 '12 10:12 DeepDiver1975

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)

gessel avatar Feb 22 '13 15:02 gessel

Will the patch of @eMerzh be merged to 5.x soon? This issue is preventing me from using OwnCloud. Thanks

markstahler avatar Mar 21 '13 14:03 markstahler