I
Immich2y ago
denzel

Cannot start immich on Asustor NAS

Hello everyone, I want to run immich on my Asustor LOCKERSTOR 6 Gen2 (AS6706T) NAS. First it seemed like there is an issue with typesense, so I disabled typsense in the .env file and deleted the container from the docker-compose.yml. When I start the container, I get some error messages about the duplicate key. I was posting that already in reddit: https://www.reddit.com/r/immich/comments/14s7nzc/cannot_get_immich_started_due_to_docker/ I attached my docker-compose and my env file Thank you and best regards
reddit
r/immich - Cannot get immich started due to docker
1 vote and 12 comments so far on Reddit
59 Replies
Alex Tran
Alex Tran2y ago
Hello, can you try docker-compose down -v
denzel
denzelOP2y ago
unknown shorthand flag: 'V' in -V
Alex Tran
Alex Tran2y ago
and then docker-compose up sorry lowercase -v And restore the original docker-compose file except the typesense container that get commented out if you can
denzel
denzelOP2y ago
I will do original docker-compose file and in the .env I will set TYPESENSE_ENABLED=false
Alex Tran
Alex Tran2y ago
yes and commented out Typesense if fine as well
denzel
denzelOP2y ago
Get the same error message
Alex Tran
Alex Tran2y ago
what is the log of the server container?
denzel
denzelOP2y ago
immich_server
Alex Tran
Alex Tran2y ago
now access the web
denzel
denzelOP2y ago
Wanted to access over: http://192.168.1.100:2283/ No website shows: Hmmm… can't reach this page 192.168.1.100 took too long to respond immich_web shows: Listening on 0.0.0.0:3000
Alex Tran
Alex Tran2y ago
that is internal port the proxy is mapped to port 2283 so the traffic is routed correctly between the containers what is your output of docker ps
denzel
denzelOP2y ago
docker ps
Alex Tran
Alex Tran2y ago
can you curl http://your-ip:2283
denzel
denzelOP2y ago
Are there 2 containers running?
Alex Tran
Alex Tran2y ago
the entry point is different for that image
denzel
denzelOP2y ago
OK curl takes forever
Alex Tran
Alex Tran2y ago
hmm which mean it cannot reach the proxy
denzel
denzelOP2y ago
Works with 127.0.0.1
Alex Tran
Alex Tran2y ago
with the port?
denzel
denzelOP2y ago
yes
Alex Tran
Alex Tran2y ago
can you show the result?
denzel
denzelOP2y ago
Had to cancel: curl http://192.168.1.100:2283/ Then: curl http://127.0.0.1:2283/ Result:
Alex Tran
Alex Tran2y ago
perhaps you have firewall that blocks port 2283
denzel
denzelOP2y ago
I'm not aware of any firewall. I have only Traefik, but now I'm accessing local, so that shouldn't interfere I could try another port
Alex Tran
Alex Tran2y ago
yeah try use a different port than 2283
denzel
denzelOP2y ago
Same result, with 127.0.0.1 it works with 192.168.1.100 it doesn't
Alex Tran
Alex Tran2y ago
pretty strange there can you do ip -c a
denzel
denzelOP2y ago
At least I'm not the only one who finds that strange 😅 Is the syntax correct?
denzel
denzelOP2y ago
It doesn't show
Alex Tran
Alex Tran2y ago
maybe ipconfig
denzel
denzelOP2y ago
ip a works:
Alex Tran
Alex Tran2y ago
yeah it looks correct with 192.168.1.100 I am not sure what happened here
denzel
denzelOP2y ago
I'm pretty sure it's the Asustor NAS, they have some weird stuff 😅
Alex Tran
Alex Tran2y ago
which port did you change from 2283 to?
denzel
denzelOP2y ago
36346:8080 Totally random
Alex Tran
Alex Tran2y ago
try 52283
denzel
denzelOP2y ago
I will try
denzel
denzelOP2y ago
That's something different now:
No description
denzel
denzelOP2y ago
immich_postgres still has the same error:
Alex Tran
Alex Tran2y ago
ok so you can access it now what is your current docker-compose file?
denzel
denzelOP2y ago
Yes, now I can access. Docker-compose is the original from github with changed port to 52283:8080 I still don't understand why port 52283 suddenly works, but thank you so much!
Alex Tran
Alex Tran2y ago
We are still haveing issue with the database thought, right? I think Ausustor might have blocked a certain range of the ports
denzel
denzelOP2y ago
Yes, the immich_postgres still returns the following logs:
Alex Tran
Alex Tran2y ago
what is your current docker-compose file looks like?
denzel
denzelOP2y ago
docker-compose looks like this:
denzel
denzelOP2y ago
What is funny, I changed the compose (added volume immich_redis_data for redis), after I started I cannot reach immich anymore. Changed it back to the old version, same behavior. So it seems a little random that we could access before
Alex Tran
Alex Tran2y ago
try to use the original docker compose and just remove typesense then perform docker-compose down -v to remove all containers and volume that associated with this docker-compose file then perform docker-compose pull and docker-compose up again
denzel
denzelOP2y ago
And change the port to 52283?
Alex Tran
Alex Tran2y ago
yes
denzel
denzelOP2y ago
Did that, website doesn't return anything at http://192.168.1.100:52283 but returns immich at http://127.0.0.1:52283
Alex Tran
Alex Tran2y ago
what is http://192.168.1.100:52283/api/server-info?
denzel
denzelOP2y ago
immich_postgres has the following logs
denzel
denzelOP2y ago
Nothing either
Alex Tran
Alex Tran2y ago
I think as long as the server can connect to the database that should be fine how about using 127.0.0.1?
denzel
denzelOP2y ago
root@myServer:/volume1/Docker/immich # curl http://127.0.0.1:52283/api/server-info {"statusCode":401,"message":"Authentication required","error":"Unauthorized"}
Alex Tran
Alex Tran2y ago
ah so it can hit the server and the server can run just fine you will have to figure out what happened with ausustor >.<
denzel
denzelOP2y ago
How am I doing that? Ticket at Asustor?
Alex Tran
Alex Tran2y ago
probably
denzel
denzelOP2y ago
OK, thank you very much Alex. I will get in touch with Asustor I always thought docker is docker, but makes sense that the host system can interfere

Did you find this page helpful?