Proxy issues?
adriano@adriano-MS-7846:~/Documents/immich-app$ docker-compose pull && docker-compose up -d
Pulling immich-web ... done
Pulling redis ... done
Pulling database ... done
Pulling immich-machine-learning ... done
Pulling immich-microservices ... done
Pulling immich-server ... done
Pulling immich-proxy ... done
Recreating immich-app_immich-web_1 ... done
Recreating immich_postgres ... done
Recreating immich_redis ... done
Creating immich-app_immich-server_1 ... done
Creating immich-app_immich-microservices_1 ...
Creating immich-app_immich-machine-learning_1 ... done
Creating immich_proxy ...
Creating immich_proxy ... error
Creating immich-app_immich-microservices_1 ... done
ERROR: for immich_proxy Cannot start service immich-proxy: driver failed programming external connectivity on endpoint immich_proxy (043d3dec1e029e3bca573d54e9962d796529f78f0c5ecd8e22ddcb254aa0dd9b): Error starting userland proxy: listen tcp4 0.0.0.0:2283: bind: address already in use
ERROR: for immich-proxy Cannot start service immich-proxy: driver failed programming external connectivity on endpoint immich_proxy (043d3dec1e029e3bca573d54e9962d796529f78f0c5ecd8e22ddcb254aa0dd9b): Error starting userland proxy: listen tcp4 0.0.0.0:2283: bind: address already in use
ERROR: Encountered errors while bringing up the project.
40 Replies
Error starting userland proxy: listen tcp4 0.0.0.0:2283: bind: address already in useYou already have something bound on that port, probably another immich instance
How could I find out/ kill that instance
docker ps
adriano@adriano-MS-7846:~/Documents/immich-app$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
03706af1e468 altran1502/immich-machine-learning:release "/bin/sh ./entrypoin…" 5 minutes ago Restarting (2) 18 seconds ago immich-app_immich-machine-learning_1
44394c8ba419 altran1502/immich-server:release "/bin/sh ./start-mic…" 5 minutes ago Restarting (1) 52 seconds ago immich-app_immich-microservices_1
077e2d3c9662 altran1502/immich-server:release "/bin/sh ./start-ser…" 5 minutes ago Restarting (1) 50 seconds ago immich-app_immich-server_1
0fd305d3890d postgres:14 "docker-entrypoint.s…" 5 minutes ago Up 5 minutes 5432/tcp immich_postgres
89809c539598 altran1502/immich-web:release "/bin/sh ./entrypoin…" 5 minutes ago Up 5 minutes 3000/tcp immich-app_immich-web_1
264368c6443b redis:6.2 "docker-entrypoint.s…" 5 minutes ago Up 5 minutes 6379/tcp immich_redis

I dont really know what to look for but I don't think I see any duplicate items
I don't either. Could it be something outside of docker? Or it might be some messed up state, a reboot might help then.
So I have power cycled my system a couple times since I started getting this issue
did you mean restart the instance or the server
The server
Okay yeah that has been done
Can you post your docker-compose.yml?
anything I should hide before I post?
version: "3.8"
services:
immich-server:
image: altran1502/immich-server:release
entrypoint: ["/bin/sh", "./start-server.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- .env
environment:
- NODE_ENV=production
depends_on:
- redis
- database
restart: always
immich-microservices:
image: altran1502/immich-server:release
entrypoint: ["/bin/sh", "./start-microservices.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- .env
environment:
- NODE_ENV=production
depends_on:
- redis
- database
restart: always
immich-machine-learning:
image: altran1502/immich-machine-learning:release
entrypoint: ["/bin/sh", "./entrypoint.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- .env
environment:
- NODE_ENV=production
depends_on:
- database
restart: always
immich-web:
image: altran1502/immich-web:release
entrypoint: ["/bin/sh", "./entrypoint.sh"]
env_file:
- .env
restart: always
redis:
container_name: immich_redis
image: redis:6.2
restart: always
database:
container_name: immich_postgres
image: postgres:14
env_file:
- .env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
PG_DATA: /var/lib/postgresql/data
volumes:
- pgdata:/var/lib/postgresql/data
restart: always
immich-proxy:
container_name: immich_proxy
image: altran1502/immich-proxy:release
ports:
- 2283:8080
logging:
driver: none
depends_on:
- immich-server
restart: always
volumes:
pgdata:
Why does this feel like none of my personal stuff like locations and what not are in this file
Cause they're in the .env
Oh okay thanks
Nothing strange in this, so I'm all out of ideas 🤔
Anything I should look for in my env?
.env
Probably not
interesting, so lets say theres no foreseeable solution, if I were to kill this container delete it, start a new one install immich again etc. (Firstly I am assuming I can drop my file location of media in and it should take that all) but yeah you think that would fix it? Last case scenario
Maybe an issue with my Tailscale?
use netstat -tulpn | grep 2283
and also you can just change it to another port too by binding it to e.g. 2284
.

Shows 2 hits
just try docker ps -a and send the output here

adriano@adriano-MS-7846:~/Documents/immich-app$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fe3b03963f60 altran1502/immich-proxy:release "/docker-entrypoint.…" 2 hours ago Created immich_proxy
bc8f29be2f82 altran1502/immich-server:release "/bin/sh ./start-mic…" 2 hours ago Restarting (1) 26 seconds ago immich-app_immich-microservices_1
cb39487f8145 altran1502/immich-machine-learning:release "/bin/sh ./entrypoin…" 2 hours ago Restarting (2) 13 seconds ago immich-app_immich-machine-learning_1
a369b7d6a6ef altran1502/immich-server:release "/bin/sh ./start-ser…" 2 hours ago Up 1 second 3001/tcp immich-app_immich-server_1
08ca7f466a62 postgres:14 "docker-entrypoint.s…" 2 hours ago Up 2 hours 5432/tcp immich_postgres
83fc5ffce162 redis:6.2 "docker-entrypoint.s…" 2 hours ago Up 2 hours 6379/tcp immich_redis
d73de92b85cb altran1502/immich-web:release "/bin/sh ./entrypoin…" 2 hours ago Up 2 hours 3000/tcp immich-app_immich-web_1
docker stop fe3b03963f60 bc8f29be2f82 cb39487f8145 a369b7d6a6ef 08ca7f466a62 83fc5ffce162 d73de92b85cb
docker rm fe3b03963f60 bc8f29be2f82 cb39487f8145 a369b7d6a6ef 08ca7f466a62 83fc5ffce162 d73de92b85cb
maybe do this and then do your docker-compose up again?`
still seems to be doing the same thing
hhow would I go about binding it to a different address
just change the 2883 to 2284
this is in the yml right
yes
okay thanks will try this and report back
right
but still I would try to find out what is running on port 2283 then
maybe try this one at last to find it out
sudo netstat --all --program | grep '2283'
or
sudo lsof -i tcp:2283

Looks like 2 docker instances
if I am reading that correctly
did you do this before docker-compose up and making sure no immich container runs?
no the docker container is running with 2284 and I am assuming I didnt kill whatever was running on 2283
well some docker container seems to run on 2283. I guess maybe a restart of your server would help if nothing
otherwise just keep it on 2284
I am pretty sure I did that right but its not resolving to anything when I hit that port

image: altran1502/immich-server:release
entrypoint: ["/bin/sh", "./start-microservices.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- .env
environment:
- NODE_ENV=production
depends_on:
- redis
- database
restart: always
immich-machine-learning:
image: altran1502/immich-machine-learning:release
entrypoint: ["/bin/sh", "./entrypoint.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- .env
environment:
- NODE_ENV=production
depends_on:
- database
restart: always
immich-web:
image: altran1502/immich-web:release
entrypoint: ["/bin/sh", "./entrypoint.sh"]
env_file:
- .env
restart: always
redis:
container_name: immich_redis
image: redis:6.2
restart: always
database:
container_name: immich_postgres
image: postgres:14
env_file:
- .env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
PG_DATA: /var/lib/postgresql/data
volumes:
- pgdata:/var/lib/postgresql/data
restart: always
immich-proxy:
container_name: immich_proxy
image: altran1502/immich-proxy:release
ports:
- 2284:8080
logging:
driver: none
depends_on:
- immich-server
restart: always
volumes:
pgdata:
I assume I did this right ^