kutt icon indicating copy to clipboard operation
kutt copied to clipboard

password authentication failed for user (1st startup)

Open kwschnei opened this issue 4 years ago • 6 comments

Using the stock docker-compose.yml file and only the described minimal edits to .env, first startup fails with the following error:

kutt_1 | Using environment: production postgres_1 | 2021-10-18 00:26:34.089 UTC [29] FATAL: password authentication failed for user "user" postgres_1 | 2021-10-18 00:26:34.089 UTC [29] DETAIL: Password does not match for user "user". postgres_1 | Connection matched pg_hba.conf line 99: "host all all all md5" kutt_1 | error: password authentication failed for user "user" kutt_1 | at Parser.parseErrorMessage (/usr/src/app/node_modules/pg-protocol/src/parser.ts:325:11) kutt_1 | at Parser.handlePacket (/usr/src/app/node_modules/pg-protocol/src/parser.ts:154:21) kutt_1 | at Parser.parse (/usr/src/app/node_modules/pg-protocol/src/parser.ts:106:30) kutt_1 | at Socket. (/usr/src/app/node_modules/pg-protocol/src/index.ts:7:48) kutt_1 | at Socket.emit (events.js:314:20) kutt_1 | at Socket.EventEmitter.emit (domain.js:483:12) kutt_1 | at addChunk (_stream_readable.js:297:12) kutt_1 | at readableAddChunk (_stream_readable.js:272:9) kutt_1 | at Socket.Readable.push (_stream_readable.js:213:10) kutt_1 | at TCP.onStreamRead (internal/stream_base_commons.js:188:23) kutt_1 | npm ERR! code ELIFECYCLE kutt_1 | npm ERR! errno 1 kutt_1 | npm ERR! [email protected] migrate: knex migrate:latest --env production kutt_1 | npm ERR! Exit status 1 kutt_1 | npm ERR! kutt_1 | npm ERR! Failed at the [email protected] migrate script. kutt_1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. kutt_1 | kutt_1 | npm ERR! A complete log of this run can be found in: kutt_1 | npm ERR! /root/.npm/_logs/2021-10-18T00_26_34_129Z-debug.log kutt_1 | npm ERR! code ELIFECYCLE kutt_1 | npm ERR! errno 1 kutt_1 | npm ERR! [email protected] start: npm run migrate && cross-env NODE_ENV=production node production-server/server.js kutt_1 | npm ERR! Exit status 1 kutt_1 | npm ERR! kutt_1 | npm ERR! Failed at the [email protected] start script. kutt_1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. kutt_1 | kutt_1 | npm ERR! A complete log of this run can be found in: kutt_1 | npm ERR! /root/.npm/_logs/2021-10-18T00_26_34_148Z-debug.log kutt_kutt_1 exited with code 1

kwschnei avatar Oct 18 '21 00:10 kwschnei

I have the same exact issue. Did you ever find a solution?

kpatdev avatar Feb 22 '22 20:02 kpatdev

No - I gave up and switched to Polr.

kwschnei avatar Feb 22 '22 20:02 kwschnei

No - I gave up and switched to Polr.

I'm gonna give Polr a go then. Since this is not working and I can't find anything to fix this lol.

kpatdev avatar Feb 22 '22 20:02 kpatdev

Thanks for the tip on polr.. I also could not net Kutt to accept new users... so I gave up too.. The project seems dead anyway..

Ritbit avatar Jun 22 '22 07:06 Ritbit

I think your Postgres credentials are wrong. Make sure you have created users with correct access on your database first and then update .env with your database's credentials.

poeti8 avatar Sep 04 '22 05:09 poeti8

@poeti8 Yes this worked for me, when using docker compose the password are set in the compose file and not in the .env file

imadmoussa1 avatar Oct 06 '22 10:10 imadmoussa1