Domain

Hello. I have a immich setup with ngnix as a reverse proxy and authelia. When i visit immich with the local ip i get to the login screen. but if i visit the domain, login with authelia the redirectet to immich i get the Welcome Screen with Getting Startet. It thinks i am the first user on the setup but i am not. How to fix this? Thanks for the help.
35 Replies
Immich
Immich5mo ago
:wave: Hey @linux_typ, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :blue_square: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :blue_square: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed. Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
bo0tzz
bo0tzz5mo ago
Did you read the bot's message?
linux_typ
linux_typOP5mo ago
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
- /mnt/nas/:/mnt/nas:ro
env_file:
- .env
ports:
- 2283:2283
depends_on:
- redis
- database
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
# 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
- /mnt/nas/:/mnt/nas:ro
- model-cache:/cache
env_file:
- .env
restart: always

redis:
container_name: immich_redis
image: redis:6.2
restart: always

database:
container_name: immich_postgres
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
env_file:
- .env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
PG_DATA: /var/lib/postgresql/data
# ports:
# - 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
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
- /mnt/nas/:/mnt/nas:ro
env_file:
- .env
ports:
- 2283:2283
depends_on:
- redis
- database
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
# 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
- /mnt/nas/:/mnt/nas:ro
- model-cache:/cache
env_file:
- .env
restart: always

redis:
container_name: immich_redis
image: redis:6.2
restart: always

database:
container_name: immich_postgres
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
env_file:
- .env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
PG_DATA: /var/lib/postgresql/data
# ports:
# - 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
restart: always


volumes:
pgdata:
model-cache:
tsdata:
Immich
Immich5mo ago
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
bo0tzz
bo0tzz5mo ago
What's the address you're using to access Immich, what does your reverse proxy config look like, etc?
linux_typ
linux_typOP5mo ago
No description
linux_typ
linux_typOP5mo ago
In Advanced
linux_typ
linux_typOP5mo ago
Is there some setting to disable this screen? How is it even possible to get there if multiple users are registerred on the server?
bo0tzz
bo0tzz5mo ago
There is no setting, it only shows up on a new instance without an admin user Could it be that you have two Immich instances running somehow?
linux_typ
linux_typOP5mo ago
No i definitely dont have to instances running.
bo0tzz
bo0tzz5mo ago
Can you post the output of docker ps -a?
linux_typ
linux_typOP5mo ago
docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 9e502724ee31 ghcr.io/immich-app/immich-machine-learning:release "tini -- ./start.sh" 8 days ago Up 8 days (healthy) immich_machine_learning b7b4949ce0be ghcr.io/immich-app/immich-server:release "tini -- /bin/bash s…" 8 days ago Up 8 days (healthy) 0.0.0.0:2283->2283/tcp, :::2283->2283/tcp immich_server 15095e32d773 redis:6.2 "docker-entrypoint.s…" 9 days ago Up 8 days 6379/tcp immich_redis 56213b3f9cc9 tensorchord/pgvecto-rs:pg14-v0.2.0 "docker-entrypoint.s…" 3 months ago Up 8 days 5432/tcp immich_postgres 41e845424fbf prom/node-exporter "/bin/node_exporter" 10 months ago Up 8 days 0.0.0.0:9100->9100/tcp, :::9100->9100/tcp nodeexporter_node-exporter_1 ba925eea24e5 portainer/agent:2.19.1 "./agent" 10 months ago Up 8 days 0.0.0.0:9001->9001/tcp, :::9001->9001/tcp portainer_agent 5116bb6855fd mauricenino/dashdot:latest "docker-entrypoint.s…" 10 months ago Up 8 days 0.0.0.0:83->3001/tcp, :::83->3001/tcp dashdot_dash_1 bf25da14c9a2 mauricenino/dashdot "docker-entrypoint.s…" 10 months ago Exited (1) 10 months ago beautiful_rubin
bo0tzz
bo0tzz5mo ago
Can you share some full screenshots of what you're seeing, and also your authelia settings?
linux_typ
linux_typOP5mo ago
No description
Zeus
Zeus5mo ago
(Please include the address bar in the screenshots as well )
linux_typ
linux_typOP5mo ago
No description
linux_typ
linux_typOP5mo ago
i dont quite know what you mean by that but heres the ip of the server
bo0tzz
bo0tzz5mo ago
Like what you're seeing in the browser etc
linux_typ
linux_typOP5mo ago
No description
linux_typ
linux_typOP5mo ago
No description
linux_typ
linux_typOP5mo ago
after login:
linux_typ
linux_typOP5mo ago
No description
linux_typ
linux_typOP5mo ago
and with the ip in the local network:
linux_typ
linux_typOP5mo ago
No description
bo0tzz
bo0tzz5mo ago
Those addresses don't look like they match the config you shared earlier. And idk authelia, but that bit of settings you shared doesn't look like the full story
linux_typ
linux_typOP5mo ago
sadly i cant possibly share all the authelia config. What config do you mean?
bo0tzz
bo0tzz5mo ago
Presumably it'll have redirect URLs configured and such?
linux_typ
linux_typOP5mo ago
Thats in the advanced config of Ngnix. Theres the following line:
linux_typ
linux_typOP5mo ago
No description
Zeus
Zeus5mo ago
Can you please remove all authelia stuff and see if that works with NPM?
linux_typ
linux_typOP5mo ago
I just did and without Authelia it works. But as soon as i paste in all the config in the advanced tab i have the authelia login page and then i get redirected to the admin registration page
linux_typ
linux_typOP5mo ago
No description
bo0tzz
bo0tzz5mo ago
Then clearly there's something wrong with your authelia config
linux_typ
linux_typOP5mo ago
yea i probably get redirected to the wrong address but multiple questions: how is it even possible to access this page? And what would be the correct redirect? ok so i think i fixed the problem. With this in the authelea redirect it works: location / { proxy_pass http://192.168.1.217:2283; # Redirect to your app's backend

Did you find this page helpful?