-
-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [Immich] Unable to connect to the database #996
Comments
I had this same issue too, thanks for reporting |
The image is deprecated it means we need to switch to a new one that doesn't have embedded postgres so the database will be lost... And the new postgres add-on must be downloaded and used for immich to work. This is quite inconvenient but the way the image on which my add-on is based is now defined |
Thanks for the quick response. Seems to somewhat be working now, the web gui works for a 15 seconds or so and then crashes and gets this error on the web interface:
If i then wait another 10 seconds or so and refresh the normal immich interface comes up and then repeats. These are the errors from the logs and the errors will loop
If i leave it looping for 5 minutes it eventually spits this out as well:
Any help would be greatly appreciated |
Thanks, that must be a bug with the new image ; I'll try to look as soon as possible |
@alexbelgium I an getting error of below error on startup
looking into code, I see in database setup file still assigns a unix username 'postgres' which does not exists if we don't have postgres in image, how do we create database at first place? Eventually database setup fails and addon does not start even for external postgres. |
I'll try something in a newly pushed test version |
v5 tested to work on my system |
Thanks for the quick response. |
@alexbelgium |
@alexbelgium I see /data/machine-learning is created and given UID permission (in folders.sh) but immich is checking /config/machine-learning (default path).
|
Pushed ; please let me know |
Thanks. That Error is gone now. but still it is not working. now i am not sure if it is issue in addon or base image or HW ( i am running rpi4 - 2G RAM, 4G swap on SSD - cpu consumption is 1 core 100% while jobs are running).
|
Hi, the requirement is at least 4go ram it seems… https://documentation.immich.app/docs/install/requirements ; perhaps you could ask in the immich GitHub repo otherwise |
Thank you very much for helping out. On parallel I tried installing immich using docker compose outside HA (on same HW) and it is working fine with machine learning things working too. (Now Home Assistant complains about I am running other software outside HA in docker but I can ignore that) Update: found a place where it should be added. Raised an issue in that repo Increase worker timout |
Yes, nicely seen! We can also modify the files through my dockerfile (with a sed command for example) but it's true that modifying the upstream container the best solution ! |
we will export the |
Thanks @hydazz, that makes sense. |
Thanks @hydazz for merging it. Thanks a ton both you. |
Thanks very much! Rebuild ongoing! New env are set as optional with default values of 1 worker and 120 seconds |
Perfect. It works with all ML features. 🎉 |
Thanks ! Then as both issues from this element (redis and ml) are confirmed working I'll close it! Thanks to all |
Description
Any help would be greatly appreciated
Installed Immich addon using the default settings
sql server cant connect durring install
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?
Then later on this loops
[Nest] 727 - 09/20/2023, 1:40:12 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...
Error: connect ECONNREFUSED 172.30.32.1:5432
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
It is highly recommended to use a minimum Redis version of 6.2.0
Current: 6.0.16
See full logs attached
Reproduction steps
Addon Logs
The text was updated successfully, but these errors were encountered: