Password authentication failed for user "kittyuser"

Hi there,

Trying to run “kitty-items-js” by following its instruction on “kitty-items” GitHub page:

However, there seems to be an error related to password authentication ( see below ):


flow-kitty-items@0.0.1 start:dev
tsnd --respawn src/index.ts

[INFO] 01:28:04 ts-node-dev ver. 1.1.1 (using ts-node ver. 9.1.1, typescript ver. 4.1.2)
error error: password authentication failed for user “kittyuser”
at Parser.parseErrorMessage (kitty-items/kitty-items-js/node_modules/pg-protocol/src/parser.ts:357:11)
at Parser.handlePacket (kitty-items/kitty-items-js/node_modules/pg-protocol/src/parser.ts:186:21)
at Parser.parse (kitty-items/kitty-items-js/node_modules/pg-protocol/src/parser.ts:101:30)
at Socket. (/kitty-items/kitty-items-js/node_modules/pg-protocol/src/index.ts:7:48)
at Socket.emit (node:events:378:20)
at addChunk (node:internal/streams/readable:313:12)
at readableAddChunk (node:internal/streams/readable:288:9)
at Socket.Readable.push (node:internal/streams/readable:227:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
length: 105,
severity: ‘FATAL’,
code: ‘28P01’,
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: ‘auth.c’,
line: ‘329’,
routine: ‘auth_failed’
}


When you look at “docker-compose.yml”, the environment is as below:


environment:
  - POSTGRES_DB=kittyitems
  - POSTGRES_USER=kittyuser
  - POSTGRES_PASSWORD=kittypassword

Any advises would be appreciated. Thanks!

I think it may be caused by postgres_db set-up on Windows. Perhaps the port “5432” is being used by other programs.

Anyone who has similar experience on Windows? Please kindly share the solution.

Thanks!

1 Like

Thank you! This solution works for me!