I
Immich2y ago
Destro

not sure how this happened

this error keeps spaming in the console and immich is not accessible at all [Nest] 11044 - 05/07/2023, 4:55:41 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (9)... Error: connect ECONNREFUSED 127.0.0.1:5432 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16) [Nest] 11044 - 05/07/2023, 4:55:41 PM ERROR [ExceptionHandler] connect ECONNREFUSED 127.0.0.1:5432 Error: connect ECONNREFUSED 127.0.0.1:5432 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
16 Replies
Destro
DestroOP2y ago
prior to the error this is in the console prior [Nest] 11228 - 05/07/2023, 4:58:46 PM LOG [NestFactory] Starting Nest application... [Nest] 11228 - 05/07/2023, 4:58:46 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +87ms [Nest] 11228 - 05/07/2023, 4:58:46 PM LOG [InstanceLoader] BullModule dependencies initialized +1ms [Nest] 11228 - 05/07/2023, 4:58:46 PM LOG [InstanceLoader] DownloadModule dependencies initialized +0ms [Nest] 11228 - 05/07/2023, 4:58:46 PM LOG [InstanceLoader] ConfigHostModule dependencies initialized +1ms [Nest] 11228 - 05/07/2023, 4:58:46 PM LOG [InstanceLoader] DiscoveryModule dependencies initialized +1ms [Nest] 11228 - 05/07/2023, 4:58:46 PM LOG [InstanceLoader] ConfigModule dependencies initialized +9ms [Nest] 11228 - 05/07/2023, 4:58:46 PM LOG [InstanceLoader] ScheduleModule dependencies initialized +1ms [Nest] 11228 - 05/07/2023, 4:58:46 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms [Nest] 11228 - 05/07/2023, 4:58:46 PM LOG [InstanceLoader] BullModule dependencies initialized +1ms
matthinc
matthinc2y ago
Looks like it can't access the database. You can try restarting the server docker-compose restart immich-server. If that doesn't help, use docker-compose ps to check whether the DB is running.
Destro
DestroOP2y ago
i have tried restarting its very odd cause nothing changed in the past few days
matthinc
matthinc2y ago
Do you use docker-compose or Portainer?
Destro
DestroOP2y ago
cli
matthinc
matthinc2y ago
Do you see this line? immich_postgres ... Up
No description
Destro
DestroOP2y ago
imma just delete it all and try a reinstall keeping configs
matthinc
matthinc2y ago
It might be worth investigating the root-cause. This is definitely not normal behavior and could happen again
Destro
DestroOP2y ago
yer i had been running everything fine until recently the other issue i posted about a few days ago and now this one
matthinc
matthinc2y ago
They're probably unrelated
Destro
DestroOP2y ago
oh yer definitely unrelated
matthinc
matthinc2y ago
Can you check?
Destro
DestroOP2y ago
my install doesnt show that way postgres is running as its own container and yes is running
matthinc
matthinc2y ago
What did you use for installing?
Destro
DestroOP2y ago
can i pm you ?
matthinc
matthinc2y ago
Sure

Did you find this page helpful?