I
Immich•2y ago
PizzaSauce77

Can't setup Immich

After a week of trying and failing im getting "500 Error ECONNREFUSED", I'm using docker and Portainer and the stack has been successfully been deployed but I'm not able to access the WEB UI, the Immich web log is showing the following line "Listening on 0.0.0.0:3000 [hooks.server.ts]:handleError connect ECONNREFUSED 192.168.64.8:3001" Please help, it's driving me crazy!!!
66 Replies
bo0tzz
bo0tzz•2y ago
Can you post your docker-compose.yml and .env? What do the immich server logs say?
PizzaSauce77
PizzaSauce77OP•2y ago
BTW, I'm not using any Reverse Proxy service
bo0tzz
bo0tzz•2y ago
Unable to connect to the database. error: password authentication failed for user "postgres"
Daniel
Daniel•2y ago
How is your env file called?
bo0tzz
bo0tzz•2y ago
If this is a completely new instance (with nothing uploaded yet), try running docker compose down -v && docker compose up -d to clear out the database volume and let it set up from scratch again Ah, I see you've set this manually on your postgres container
environment:
POSTGRES_PASSWORD: 123456
POSTGRES_USER: abc
POSTGRES_DB: immich_db
environment:
POSTGRES_PASSWORD: 123456
POSTGRES_USER: abc
POSTGRES_DB: immich_db
You don't need to change that - the ${} entries mean they automatically get taken from your env file Try fixing that then running the command I gave above
PizzaSauce77
PizzaSauce77OP•2y ago
ahh, my bad should I redeploy the the stack with default values ?
bo0tzz
bo0tzz•2y ago
That works too
PizzaSauce77
PizzaSauce77OP•2y ago
should I change '${UPLOAD_LOCATION}' in docker-compose.yml or will it also take it from .env
bo0tzz
bo0tzz•2y ago
You shouldn't need to change the docker-compose.yml at all
PizzaSauce77
PizzaSauce77OP•2y ago
okay, let me deploy it again then I'll update you
PizzaSauce77
PizzaSauce77OP•2y ago
so i redeployed the stack and I've literally changed nothing in docker-compose.yml EXCEPT .env to stack.env still same error and in the env file i only changed API and Upload Location... here's my compose and env files...
bo0tzz
bo0tzz•2y ago
Did you delete the pgdata volume?
PizzaSauce77
PizzaSauce77OP•2y ago
where do you find that i'm using Portainer I removed the entire stack
bo0tzz
bo0tzz•2y ago
idk, I don't use portainer. I imagine it should have a volumes section somewhere?
schuhbacca
schuhbacca•2y ago
It has a section on the left menu called volumes
PizzaSauce77
PizzaSauce77OP•2y ago
Yeah I delete all the volumes I had, and redeployed the stack
Daniel
Daniel•2y ago
Those do not look like server logs
PizzaSauce77
PizzaSauce77OP•2y ago
it certainly is 😄
Daniel
Daniel•2y ago
What do the logs of the typesense container look like?
Daniel
Daniel•2y ago
Did you delete the tsdata volume as well?
PizzaSauce77
PizzaSauce77OP•2y ago
Yes, I deleted all volumes related to Immich Does it have anything to do with Nginx ? I mean installing Immich because i haven't touched Nginx yet
Daniel
Daniel•2y ago
I don't think so. The typesense container is failing to start because of some file system errors What did you do to redeploy the stack?
PizzaSauce77
PizzaSauce77OP•2y ago
I removed the entire stack, then I also removed the volumes related to immich, them i installed (redeployed) immich normally what method would you suggest for deep cleaning any files or volume which may be left behind I'm thinking of reinstalling the entire OS, which is a bit annoying but it should help?
Daniel
Daniel•2y ago
Tbh I don't have experience with portainer, so not sure how stuff works there :/ This sounds a bit radical lol
PizzaSauce77
PizzaSauce77OP•2y ago
well I only made home server as a hobby and to learn new stuff, and it's fairly new setup so its not ridiculous Getting into homelab is super fun but it can be annoying sometimes
Daniel
Daniel•2y ago
Yes, that's understandable... So the "tsdata" volume specifically, you deleted too?
Alex Tran
Alex Tran•2y ago
Can you go to the command line and run docker volume ls?
PizzaSauce77
PizzaSauce77OP•2y ago
yes
PizzaSauce77
PizzaSauce77OP•2y ago
No description
Daniel
Daniel•2y ago
If you've got a cli it becomes a lot easier... Could you bring down the stack again and then run docker ps -a?
PizzaSauce77
PizzaSauce77OP•2y ago
No description
Daniel
Daniel•2y ago
Ok, docker volume ls is probably unchanged, right?
PizzaSauce77
PizzaSauce77OP•2y ago
No description
PizzaSauce77
PizzaSauce77OP•2y ago
yes !?
Daniel
Daniel•2y ago
Yep, k Could you run docker volume prune? And confirm with 'y'
PizzaSauce77
PizzaSauce77OP•2y ago
No description
PizzaSauce77
PizzaSauce77OP•2y ago
yep
Daniel
Daniel•2y ago
Oh, so this hasn't deleted the immich volumes Could you try docker volume rm immich_pgdata then? And if that works, same for the other immich volumes
PizzaSauce77
PizzaSauce77OP•2y ago
No description
PizzaSauce77
PizzaSauce77OP•2y ago
did it worked ?
Daniel
Daniel•2y ago
You can check with docker volume ls again But it looks like it, yes
PizzaSauce77
PizzaSauce77OP•2y ago
yes I checked, it's gone now
Daniel
Daniel•2y ago
Then do the same for the other two :)
PizzaSauce77
PizzaSauce77OP•2y ago
which 2
Daniel
Daniel•2y ago
You can also just pass both in the same command immich_model-cache and immich_tsdata
PizzaSauce77
PizzaSauce77OP•2y ago
No description
Daniel
Daniel•2y ago
Just to make sure, could you run docker volume inspect fac[TAB FOR COMPLETION] and confirm that this volume doesn't belong to immich?
PizzaSauce77
PizzaSauce77OP•2y ago
doesn't look like it
PizzaSauce77
PizzaSauce77OP•2y ago
No description
Daniel
Daniel•2y ago
Yep, looks very unused tbh Should have been pruned but whatever, let's just ignore it Then I guess you can try bringing the stack up again Did it work?
Alex Tran
Alex Tran•2y ago
We should really careful asking the use running this command because it can remove volumes of stopped containers that is not related to Immich
Daniel
Daniel•2y ago
We did an ls before, so I considered it safe enough But yeah, probably just removing the affected volumes would be better (Which we ended up doing anyways, because they didn't get pruned lol)
PizzaSauce77
PizzaSauce77OP•2y ago
sorry for the late reply, I've been busy lately just for sanity check I installed Docker on my Windows PC and installed Immich on it and BAM It Worked! and it gave me a bit confidence so I nuked the OS on my server and reinstalled Debian on it I tired installing Immich on it and it gave me same old error '500' 😦 I also tried Fedora and same error @Alex thoughts ?
Alex Tran
Alex Tran•2y ago
Logs?
PizzaSauce77
PizzaSauce77OP•2y ago
which container logs ?
Alex Tran
Alex Tran•2y ago
server would be helpful
Alex Tran
Alex Tran•2y ago
Ah you server doesn't seem to support Typesense I belive the CPU doesn't support AVX instruction
PizzaSauce77
PizzaSauce77OP•2y ago
ahh, yes it's a pretty old CPU (Pentium 5800), I never thought about it! I will be upgrading my homelab hardware soon, then i'll try meanwhile THANK YOU for your help!
Alex Tran
Alex Tran•2y ago
No problem! Cheer!
PizzaSauce77
PizzaSauce77OP•2y ago
what is this thingy ?
No description
PizzaSauce77
PizzaSauce77OP•2y ago
on iOS
Alex Tran
Alex Tran•2y ago
Status

Did you find this page helpful?