I
Immich2y ago
ben

502 bad gateway on proxy container

I can't seem to open the proxy container logs, it just shuts down immediately. I am using unraid, also the web interface responds with 502 bad gateway. Trying to read the logs of the proxy container gives: Error response from daemon: configured logging driver does not support reading All other containers seem to be fine.
12 Replies
ben
benOP2y ago
My setup: Compose file:
version: "3.8"

services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:release
entrypoint: ["/bin/sh", "./start-server.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- .env
depends_on:
# - redis
# - database
- typesense
restart: always

immich-microservices:
container_name: immich_microservices
image: ghcr.io/immich-app/immich-server:release
entrypoint: ["/bin/sh", "./start-microservices.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- .env
depends_on:
# - redis
# - database
- typesense
restart: always

immich-machine-learning:
container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:release
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- model-cache:/cache
env_file:
- .env
restart: always

immich-web:
container_name: immich_web
image: ghcr.io/immich-app/immich-web:release
entrypoint: ["/bin/sh", "./entrypoint.sh"]
env_file:
- .env
restart: always

typesense:
container_name: immich_typesense
image: typesense/typesense:0.24.0
environment:
- TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
- TYPESENSE_DATA_DIR=/data
logging:
driver: none
volumes:
- tsdata:/data
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: ghcr.io/immich-app/immich-proxy:release
environment:
# Make sure these values get passed through from the env file
- IMMICH_SERVER_URL
- IMMICH_WEB_URL
ports:
- 2283:8080
logging:
driver: none
depends_on:
- immich-server
restart: always

volumes:
# pgdata:
model-cache:
tsdata:
version: "3.8"

services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:release
entrypoint: ["/bin/sh", "./start-server.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- .env
depends_on:
# - redis
# - database
- typesense
restart: always

immich-microservices:
container_name: immich_microservices
image: ghcr.io/immich-app/immich-server:release
entrypoint: ["/bin/sh", "./start-microservices.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- .env
depends_on:
# - redis
# - database
- typesense
restart: always

immich-machine-learning:
container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:release
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- model-cache:/cache
env_file:
- .env
restart: always

immich-web:
container_name: immich_web
image: ghcr.io/immich-app/immich-web:release
entrypoint: ["/bin/sh", "./entrypoint.sh"]
env_file:
- .env
restart: always

typesense:
container_name: immich_typesense
image: typesense/typesense:0.24.0
environment:
- TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
- TYPESENSE_DATA_DIR=/data
logging:
driver: none
volumes:
- tsdata:/data
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: ghcr.io/immich-app/immich-proxy:release
environment:
# Make sure these values get passed through from the env file
- IMMICH_SERVER_URL
- IMMICH_WEB_URL
ports:
- 2283:8080
logging:
driver: none
depends_on:
- immich-server
restart: always

volumes:
# pgdata:
model-cache:
tsdata:
bo0tzz
bo0tzz2y ago
The proxy's logs are disabled by this part
logging:
driver: none
logging:
driver: none
because they almost never have anything noteworthy in them But if you remove that section you'll be able to view the logs
ben
benOP2y ago
Env:
DB_HOSTNAME=xxx
DB_USERNAME=xxx
DB_PASSWORD=xxx
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=xxx
UPLOAD_LOCATION=/mnt/user/Media/immich
PUBLIC_LOGIN_PAGE_MESSAGE=
IMMICH_WEB_URL=https://photo.imben.it
IMMICH_SERVER_URL=https://imich.imben.it
IMMICH_MACHINE_LEARNING_URL=https://ml.imich.imben.it
IMMICH_API_URL_EXTERNAL=https://photo.imben.it
DB_HOSTNAME=xxx
DB_USERNAME=xxx
DB_PASSWORD=xxx
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=xxx
UPLOAD_LOCATION=/mnt/user/Media/immich
PUBLIC_LOGIN_PAGE_MESSAGE=
IMMICH_WEB_URL=https://photo.imben.it
IMMICH_SERVER_URL=https://imich.imben.it
IMMICH_MACHINE_LEARNING_URL=https://ml.imich.imben.it
IMMICH_API_URL_EXTERNAL=https://photo.imben.it
bo0tzz
bo0tzz2y ago
IMMICH_WEB_URL=https://photo.imben.it IMMICH_SERVER_URL=https://imich.imben.it IMMICH_MACHINE_LEARNING_URL=https://ml.imich.imben.it
You should leave this as the defaults unless you know what you're doing
ben
benOP2y ago
could this be related to the 502?
bo0tzz
bo0tzz2y ago
Yes, it is
ben
benOP2y ago
I would like to have all of that behind a reverse proxy and use it from phones alright
bo0tzz
bo0tzz2y ago
All of those variables are just internal (unless you have a very custom setup, which you don't) You can just point your reverse proxy at immich_proxy
ben
benOP2y ago
very custom setup as in running containers on different machines I assume
bo0tzz
bo0tzz2y ago
Yeah stuff like that
ben
benOP2y ago
indeed, thanks a lot
No description
ben
benOP2y ago
not sure what kind of permissions you have on this server, but maybe consider adding a solved tag for the #help-desk-support so it's easier to filter and search through them

Did you find this page helpful?