I
Immichβ€’5mo ago
Greg

nginx

thank
51 Replies
Immich
Immichβ€’5mo 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
GregOPβ€’5mo ago
Hello I have problem with exposing immich through npm proxy manager 504 error
icedragon2002002
icedragon2002002β€’5mo ago
first question. is npm and immich on the same docker network
Daniel
Danielβ€’5mo ago
To answer this it'd be helpful if we had all the information I already asked for in #immich but we still didn't get πŸ™ƒ
Greg
GregOPβ€’5mo ago
how to check it?
icedragon2002002
icedragon2002002β€’5mo ago
Daniel has a point and needs all the details that were discussed in the other chat but ill give you the commands first you need to list off your docker networks thats
docker network ls
docker network ls
but please fill in the rest of the details that were asked by Daneil and the other staff
Greg
GregOPβ€’5mo ago
1468052112af immich_default bridge local 3d9d66dddc15 matrix_net bridge local bb1838a4a22f nginx-pm_default bridge local looks same
icedragon2002002
icedragon2002002β€’5mo ago
so no they are likely not on the same docker network
Greg
GregOPβ€’5mo ago
different network id
icedragon2002002
icedragon2002002β€’5mo ago
you can do a
docker network inspect immich_default
docker network inspect immich_default
this will tell us whats on that network and then
docker network inspect nginx-pm_default
docker network inspect nginx-pm_default
and then
docker network inspect matrix_net
docker network inspect matrix_net
Daniel
Danielβ€’5mo ago
If only there was a way to just see the compose file :)))
icedragon2002002
icedragon2002002β€’5mo ago
and what daniel said your compose file would be very valuable here
Greg
GregOPβ€’5mo ago
Paste.to
Encrypted note on Paste.to
Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.
icedragon2002002
icedragon2002002β€’5mo ago
and your compose file?
Greg
GregOPβ€’5mo ago
my com pose yml:
Greg
GregOPβ€’5mo ago
Paste.to
Encrypted note on Paste.to
Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.
Daniel
Danielβ€’5mo ago
Oh let me guess. Did you enter 192.168.x.x in NPM for the ip address?
Greg
GregOPβ€’5mo ago
yes
Greg
GregOPβ€’5mo ago
No description
icedragon2002002
icedragon2002002β€’5mo ago
what OS are you running all this in?
Daniel
Danielβ€’5mo ago
Yeah so this won't work
Greg
GregOPβ€’5mo ago
ubuntu 22 lts
Daniel
Danielβ€’5mo ago
Docker containers cannot access the host's network interface
icedragon2002002
icedragon2002002β€’5mo ago
Christian Lempa
YouTube
Docker Networking Tutorial, ALL Network Types explained!
Docker Networking Tutorial where I explain all network types, that you need to know! I show you how and when you should use the different network types and what you need to consider. Based on the official Documentation: https://docs.docker.com/network/ #Docker #DockerNetworking #HomeLab Kubernetes Tutorial: https://youtu.be/glFE28QT1HI Get sta...
icedragon2002002
icedragon2002002β€’5mo ago
NetworkChuck
YouTube
Docker networking is CRAZY!! (you NEED to learn it)
Don’t leave yourself unprotected, get the best protection by checking out BitDefender Premium Security at the link below. https://bit.ly/BitdefenderNC Today you are going to explore the mysterious world of Docker networking. From the default bridge to the blackhole of none. NetworkChuck is going to help you navigate this fascinating technolog...
Greg
GregOPβ€’5mo ago
some of my proxies works like that, i dont know why
Daniel
Danielβ€’5mo ago
What you want is add immich_server to the proxy network and then use http://immich_server:2283 in NPM They cannot (unless you do weird docker networking stuff)
icedragon2002002
icedragon2002002β€’5mo ago
docker networking is a bit weird if you have little to no experience with virtualization
Greg
GregOPβ€’5mo ago
No description
Greg
GregOPβ€’5mo ago
like that?
icedragon2002002
icedragon2002002β€’5mo ago
and even if you did have that experience its not all useful when comparing it to docker yes once you get immich on the same docker network as npm
Greg
GregOPβ€’5mo ago
still not working
Daniel
Danielβ€’5mo ago
Yeah I was about to say. Containerization and virtualization are different enough that it doesn't really help you much πŸ˜… I think learning the docker basics is doable though
Greg
GregOPβ€’5mo ago
No description
Greg
GregOPβ€’5mo ago
EVEN WORSE NOW
Daniel
Danielβ€’5mo ago
You have a DNS issue That's not related to anything we've just done lol
Greg
GregOPβ€’5mo ago
how to fix that?
Daniel
Danielβ€’5mo ago
How do I fix my car?
icedragon2002002
icedragon2002002β€’5mo ago
go watch those vidoes I just shared with you you gotta understand what you are working with before you go off deploying stuff let alone trying to fix it
Greg
GregOPβ€’5mo ago
ok, thx 502 Bad Gateway now
icedragon2002002
icedragon2002002β€’5mo ago
to give you a bit of a leg up. I append this at the end of all my docker containers
networks:
default:
name: <your docker network name goes here>
external: true
networks:
default:
name: <your docker network name goes here>
external: true
Greg
GregOPβ€’5mo ago
should I have mutual network to all stuff I want to expose?
icedragon2002002
icedragon2002002β€’5mo ago
yes and no just depends on the use case. but generally if you want the containers to be able to talk to one another they have to be on the same network
Greg
GregOPβ€’5mo ago
ok
icedragon2002002
icedragon2002002β€’5mo ago
you can create one manually if you would like. this way you know what to put into your compose file
docker network create <name of network>
docker network create <name of network>
Greg
GregOPβ€’5mo ago
thx I will watch first that vids
icedragon2002002
icedragon2002002β€’5mo ago
then append at the end of each of your docker compose files
networks:
default:
name: <that network name you just created>
external: true
networks:
default:
name: <that network name you just created>
external: true
good. networkchuck explains what the difference is between the default docker network and one that you create. hes also very energizing lol
Greg
GregOPβ€’5mo ago
I learned, that I can run npm with host network to simplify things But I cant fin docker-compose of my npm jc21/nginx-proxy-manager latest 9c3f57826a5d 16 months ago 843MB I ran docker up proxy manager and it looks like clean setup I dont know where last configs are stored
icedragon2002002
icedragon2002002β€’5mo ago
wouldnt suggest doing host
Greg
GregOPβ€’5mo ago
I know, i dont even know how to do that I mean i compsed it with host network name, but i do not know how to check it I think I need more basic knwledge about how docker works I still have bad gateway in immich app https://photos.7u.pl/ these videos are to fast for me to understand this Do you guys have good docker networks explainer with images and graphs?
icedragon2002002
icedragon2002002β€’5mo ago
I've given you the inspect commands above. that will let you see what docker containers you have on which network
docker network create
docker network create
will create a docker network with what ever name you give it And I've given you the network bit you would need to add to your compose files so you can attach your container to whatever docker network you create You could also use the
docker network connect
docker network connect
command to manually connect a container to a specified network It all boils down to knowing the docker cli, the file structure between the docker container and host, and docker networking and how that works

Did you find this page helpful?