I
Immich•2y ago
Xzeta

How to update immich through portainer in proxmox

I'm having trouble updating to latest immich with portainer something about no route to host. Am i missing a setup or something?
No description
58 Replies
Onelots.
Onelots.•2y ago
Er No route to host Are u sure your DNS IS okay ?
Xzeta
XzetaOP•2y ago
Wdym It's in my local home server
jrasm91
jrasm91•2y ago
Looks like a network failure. Does it continue to happen now if you try it again? Can you access https://ghcr.io/v2 (404 page) on another machine on the same network? Can you access it from the portainer machine via curl, wget, etc.?
Onelots.
Onelots.•2y ago
Yes but from this server, like says jrasm, Can you Access internet ? What is the reply of curl https://ghcr.io/ ?
Xzeta
XzetaOP•2y ago
On my phone I see the 404 page Let me try in a sec
Xzeta
XzetaOP•2y ago
@Onelots.
No description
Onelots.
Onelots.•2y ago
UH
jrasm91
jrasm91•2y ago
Do you have some firewall preventing connection from the container? What OS are you running this on?
ProCloudSurfer
ProCloudSurfer•2y ago
also if no firewall on the machine I would run a "traceroute google.com" and "traceroute 8.8.8.8" and see how far you are getting, its either something wrong with your network or your DNS if your traceroute makes it to 8.8.8.8 but not google.com you probably have a DNS issue, if the traceroute cant make it to either definitely a networking/firewall issue
Xzeta
XzetaOP•2y ago
I think Debian I also used this script if that helps https://tteck.github.io/Proxmox/
Proxmox VE Helper Scripts | Scripts for Streamlining Your Homelab w...
Scripts for Streamlining Your Homelab with Proxmox VE
ProCloudSurfer
ProCloudSurfer•2y ago
oh yeah and for windows the command is tracert lol do you have portainer running in a VM or LXC container? or on the PVE host itself
Xzeta
XzetaOP•2y ago
lxc
Xzeta
XzetaOP•2y ago
No description
Xzeta
XzetaOP•2y ago
is it easier to run in a vm
ProCloudSurfer
ProCloudSurfer•2y ago
yes I run my docker environment in a VM for that reason, and OOF 3000+ ms to your first hop is very bad so looks like networking
Xzeta
XzetaOP•2y ago
hmm is it cuz its in an lxc? my home server is wired with the router
ProCloudSurfer
ProCloudSurfer•2y ago
and that traceroute was from within LXC itself? or was it from the docker container? cause if docker.local is pointing to the IP of the LXC container itself, it is looping or has a bad gateway it looks like, itself should not be a hop
Xzeta
XzetaOP•2y ago
yea in the lxc container that has docker portainer stuff
ProCloudSurfer
ProCloudSurfer•2y ago
hmm, what is result of "ip route" command
Xzeta
XzetaOP•2y ago
this?
No description
ProCloudSurfer
ProCloudSurfer•2y ago
so assuming 192.168.1.1 is your router, the default gateway looks normal, what looks super interesting to me is the route for 192.168.0.0/15, as this looks incorrect for me cause the largest possible space for the 192.168 private IP subnetwork is 192.168.0.0/16, so /15 is possibly including random public IPs
ProCloudSurfer
ProCloudSurfer•2y ago
so I am not sure if that would actually break anything as you can see here it would includie 192.169.0.0/16 as well by adding the /15, which is technnically not correct from what I understand
No description
Xzeta
XzetaOP•2y ago
No description
ProCloudSurfer
ProCloudSurfer•2y ago
ahh that is why, is there a reason you need /15?
Xzeta
XzetaOP•2y ago
I was following a youtube tutorial so should it be /16 ?
ProCloudSurfer
ProCloudSurfer•2y ago
change that to /16, which technically it doesnt even have to be that big, if you connect to other VPN gateways or stuff like that ever using the whole /16 could probably break that my bet would be your actual subnet size/netmask for your LAN network is more like 191.168.1.0/24, which is 192.168.1.1-192.168.1.254
Xzeta
XzetaOP•2y ago
updated
No description
ProCloudSurfer
ProCloudSurfer•2y ago
nice networking is weird and that could possibly help with whatever was going on, if you have a windows computer connected to the same router you can find out what your subnet/netmask actually is using ipconfig command
Xzeta
XzetaOP•2y ago
this part?
No description
ProCloudSurfer
ProCloudSurfer•2y ago
this is what mine looks like, the subnet mask 255.255.255.0 translates to /24 so I would set 192.168.88.100/24 as an LXC IP
No description
Xzeta
XzetaOP•2y ago
did i mess up setting up proxmox?
ProCloudSurfer
ProCloudSurfer•2y ago
yessir so everything you have configured as a /15, I myself personally would change to /24
Xzeta
XzetaOP•2y ago
oh from 16 to 24 then
ProCloudSurfer
ProCloudSurfer•2y ago
also try setting your container to /24 just to test for now yes it is possible having a broken route due to the /15 and subnet not matching your routers network is breaking connectivity for your container and depending on what kind of router you are using you can log in and configure this subnet as well but most people do use /24 subnets which translates to 255.255.255.0 subnet mask
Xzeta
XzetaOP•2y ago
alright changed it
ProCloudSurfer
ProCloudSurfer•2y ago
now to test ping google.com curl https://ghcr.io/
GitHub
GitHub Packages: Your packages, at home with their code
With GitHub Packages you can safely publish and consume packages within your organization or with the entire world.
Xzeta
XzetaOP•2y ago
same issue 😦
No description
Xzeta
XzetaOP•2y ago
i see this
No description
Xzeta
XzetaOP•2y ago
maybe il lreboot
ProCloudSurfer
ProCloudSurfer•2y ago
dang, and that is interesting, maybe ipv6 is working and ipv4 is not? yes reboot would be good to try lol also make sure you can ping 192.168.1.1 since that is your gateway lol your issue could be directly illustrating how ipv6 basically eliminates NAT issues, since every device in the world can have a unique ip with ipv6
Xzeta
XzetaOP•2y ago
uh
No description
ProCloudSurfer
ProCloudSurfer•2y ago
so that would be the root cause of the issue here, if you can regain connectivity with your gateway it will solve the issue
Xzeta
XzetaOP•2y ago
what is NAT. I'm not really tech savy in networking
ProCloudSurfer
ProCloudSurfer•2y ago
is it possible another device in your network could have gotten a IP from your router that is the same? which would be an ip conflict Network Address Translation, it is the main way IPV4 addressed devices can communicate with the internet/outside networks
Xzeta
XzetaOP•2y ago
should i just change it the url then?
ProCloudSurfer
ProCloudSurfer•2y ago
it can get very complicated lol do the command traceroute 192.168.1.1 just to see what it shows
Xzeta
XzetaOP•2y ago
No description
ProCloudSurfer
ProCloudSurfer•2y ago
hmm so its going the right direction, it should be hitting 192.168.1.1 using its .182 IP, I do know the 3000ms thing is basically the packets are looping within the device since they cant get out and then timing out around 3000ms
ProCloudSurfer
ProCloudSurfer•2y ago
i guess make sure your proxmox host network settings are correct as well
No description
ProCloudSurfer
ProCloudSurfer•2y ago
I wouldnt have thought that would affect the containers/VMs though since it is a bridge but worth making sure its correct to your router/gateway settings subnet mask 255.255.255.0 = /24 at end is really all you gotta remember lol dont worry abut the networking jargon, subnet mask is a fancy way of saying the size of a network (what range of IPs?)
Xzeta
XzetaOP•2y ago
No description
ProCloudSurfer
ProCloudSurfer•2y ago
aha, so is your router/gateway actually 192.168.1.254? (last IP of the /24 range instead of first, sometimes it is configured this way) you can check using ipconfig from your windows machine but I am willing to bet it is yeah if your proxmox has internet and all that but that container does not, you should change gateway to 192.168.1.254
Xzeta
XzetaOP•2y ago
oh til curl isnt showing an error anymore thanks so much @ProCloudSurfer updated immich now
ProCloudSurfer
ProCloudSurfer•2y ago
hooray!! np glad to hear
Xzeta
XzetaOP•2y ago
wellp til my actually gateway @ProCloudSurfer so on your setup, u run immich through docker too?
ProCloudSurfer
ProCloudSurfer•2y ago
sorry just saw this, yes running immich using a plain old docker compose file, I do use portainer for a nice GUI view of everything but configuring text file for the docker compose felt like the easiest way with immich's multi container setup
Onelots.
Onelots.•2y ago
It's better to use portainer only to monitor or have a pretty gui But the best practice is to use docker compose
Onelots.
Onelots.•2y ago
No description

Did you find this page helpful?