crusemm Posted July 21, 2023 Share Posted July 21, 2023 When setting up Immich following this guide and this guide. I get an error when I start Immich: [Nest] 602 - 07/21/2023, 2:20:12 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (6)... error: password authentication failed for user "postgres" at Parser.parseErrorMessage (/app/immich/server/node_modules/pg-protocol/dist/parser.js:287:98) at Parser.handlePacket (/app/immich/server/node_modules/pg-protocol/dist/parser.js:126:29) at Parser.parse (/app/immich/server/node_modules/pg-protocol/dist/parser.js:39:38) at Socket.<anonymous> (/app/immich/server/node_modules/pg-protocol/dist/index.js:11:42) at Socket.emit (node:events:514:28) at addChunk (node:internal/streams/readable:324:12) at readableAddChunk (node:internal/streams/readable:297:9) at Readable.push (node:internal/streams/readable:234:10) at TCP.onStreamRead (node:internal/stream_base_commons:190:23) My Immich setup has this postgres has this: I have verified the passwords are the same. Not sure where the error is. Any help would be greatly appreciated. Quote Link to comment
Kilrah Posted July 21, 2023 Share Posted July 21, 2023 (edited) Did you run the postgres container before setting the user and password how you wanted them? These are only used on the very first run, changing them later won't do anything. Edited July 21, 2023 by Kilrah Quote Link to comment
crusemm Posted July 21, 2023 Author Share Posted July 21, 2023 Yes, I setup redis and postgres prior to. I have removed all three, set them up in redis->postgres->immich order and still have the issue. I can try again though. Quote Link to comment
Kilrah Posted July 21, 2023 Share Posted July 21, 2023 Removing the container doesn't change anything, it's the appdata folder for it you need to remove. Stop container, delete this container's appdata folder, start it again - then you should have what you set in the template. Quote Link to comment
crusemm Posted July 21, 2023 Author Share Posted July 21, 2023 Kilrah, just so I understand, your saying stop all three containers, remove them, delete their appdata files, then reload all three and start over again? or I only need to do that for the Immich docker? Quote Link to comment
Kilrah Posted July 21, 2023 Share Posted July 21, 2023 If you have problems logging into the database, only for the database container. Quote Link to comment
crusemm Posted July 21, 2023 Author Share Posted July 21, 2023 using Krusader, cannot delete the postgres appdata folder Quote Link to comment
Solution Kilrah Posted July 21, 2023 Solution Share Posted July 21, 2023 (edited) Did you stop that container? Also Dynamix File Manager plugin i.e. file manager built into unraid may be preferable. Edited July 21, 2023 by Kilrah Quote Link to comment
crusemm Posted July 21, 2023 Author Share Posted July 21, 2023 (edited) that appears to have worked Thanks for all the help Edited July 21, 2023 by crusemm Quote Link to comment
ShadowVlican Posted October 14, 2023 Share Posted October 14, 2023 thanks for this thread! i also had the same problem i completely removed postgres14 and its appdata, and set it up correctly now immich is loading properly Quote Link to comment
Watever Posted December 21, 2023 Share Posted December 21, 2023 On 10/13/2023 at 10:48 PM, ShadowVlican said: thanks for this thread! i also had the same problem i completely removed postgres14 and its appdata, and set it up correctly now immich is loading properly Have you lose all the data on the database ? That's what I am worry now. I updated Immich and it started doing connection problem. But I don't want to lose the data either... Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.