I
Immich3mo ago
Greg

Problem with reverse proxy

I am using nginxproxymanager as reverse proxy and I have this error when I try to make my photos public 502 Bad Gateway
31 Replies
Immich
Immich3mo ago
:wave: Hey @Greg, 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. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time). 2. :blue_square: read applicable release notes. 3. :blue_square: reviewed the FAQs for known issues. 4. :blue_square: reviewed Github for known issues. 5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy). 6. :blue_square: 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.
Greg
GregOP3mo ago
No description
Greg
GregOP3mo ago
this is my network config
Doozy
Doozy3mo ago
is your forward port in npm 2283? and make sure your hostname is the name of your container
Greg
GregOP3mo ago
yes
Greg
GregOP3mo ago
No description
NoMachine
NoMachine3mo ago
why localhost? if you are running npm in a container, unless both Immich and npm are using host network, localhost won't work you should be using the name of the immich server
Greg
GregOP3mo ago
this is my visual studio code It can proxy correctly immich to my dev device
NoMachine
NoMachine3mo ago
provide your immich and npm compose files, and your npm configuration.
Greg
GregOP3mo ago
services: app: image: 'jc21/nginx-proxy-manager:latest' restart: unless-stopped ports: # These ports are in format <host-port>:<container-port> - '80:80' # Public HTTP Port - '443:443' # Public HTTPS Port - '81:81' # Admin Web Port # Add any other Stream port you want to expose # - '21:21' # FTP environment: # Uncomment this if you want to change the location of # the SQLite DB file within the container # DB_SQLITE_FILE: "/data/database.sqlite" # Uncomment this if IPv6 is not enabled on your host # DISABLE_IPV6: 'true' volumes: - ./data:/data - ./letsencrypt:/etc/letsencrypt networks: default: external: true name: npm
Greg
GregOP3mo ago
No description
Doozy
Doozy3mo ago
Try putting the local ip of the machine instead if port 2283 is published and that should work
Greg
GregOP3mo ago
I tried 0.0.0.0, localhost, 127... 192.168.... I tried everything I know With this immich service I have always 502 error Any ideas how can I inspect it from inside? Logs from npm dont tell me anything usefull
NoMachine
NoMachine3mo ago
use immich-server instead
Greg
GregOP3mo ago
What do you mean?
NoMachine
NoMachine3mo ago
instead of IP / hostname
Greg
GregOP3mo ago
is this unsolvable problem?
Zeus
Zeus3mo ago
Of course not. It’s not really related to immich at all, though
NoMachine
NoMachine3mo ago
did you try what I told you?
Greg
GregOP3mo ago
Can you explain what do you mean? Can you point me part of docs that explain this? I need to expose this service outside through reverse proxy through htps protocol
NoMachine
NoMachine3mo ago
I cannot, since this is a problem with how you configured your nginx proxy, has nothing to do with Immich. all I'm telling you is to use immich-server in the Hostname/IP field, instead 127.0.0.1, is not that dificult to understand...
Greg
GregOP3mo ago
No description
Greg
GregOP3mo ago
Oh you mean this Thank you, that works! but I cant reset passsword now it is insane this cli is not working properly I mean reset-admin-password command can I levae empty password? I am pressing enter and nothing happends only ctrl-c can escape this
Greg
GregOP3mo ago
No description
Greg
GregOP3mo ago
I put password, press enter and it does nothing Then I need to terminate this using ctrl-c What is wrong with this cli Where is source code of this?
NoMachine
NoMachine3mo ago
if you don't enter a password it will generate a random one. the cli works fine
Found Admin:
- ID=56c0c99c-2edb-4d54-8f1e-5a1a7d684697
- OAuth ID=
- Email=admin@admin.com
- Name=admin
? Please choose a new password (optional) admin
The admin password has been updated.
Found Admin:
- ID=56c0c99c-2edb-4d54-8f1e-5a1a7d684697
- OAuth ID=
- Email=admin@admin.com
- Name=admin
? Please choose a new password (optional) admin
The admin password has been updated.
Greg
GregOP3mo ago
No description
No description
No description
Greg
GregOP3mo ago
I have a problem with resseting password from docker cli when I press enter it is not executing it I need to exit ctrl-z or ctrl-c something is not working fine can i push new password with cli command? this cli cannot read my input how to terminate it when i type whole password? enter doesnt work
Greg
GregOP3mo ago
NoMachine
NoMachine3mo ago
to run it with exec you have to use a tty docker exec -it ......
Greg
GregOP3mo ago
can you help me construtc the command? docker exec -it immich_server /bin/sh ok sudo docker exec -it ad45774cae32 immich-admin reset-admin-password This command worked for me

Did you find this page helpful?