IncusOS suddenly inaccessible due to WireGuard MTU issue

Everything was working fine up until ~2 hours ago. I’m guessing it did the update to incus 7.7? But I don’t have autoreboot enabled.

In any case I stopped being able to access anything, even through my direct wireguard tunnel configured at the IncusOS networking level. Again, everything was working fine.

I’m working on being able to see what the desktop is showing.

Trying any incus commands (including incus admin os system fallback-listener edit) shows Error: Get "https://<my-incus-domain>/1.0": EOF. Trying to connect to the UI gets into a loop where the browser status shows “Connected to…” and flashes “TLS Handshake finished” every so often, and eventually fails, showing PR_END_OF_FILE_ERROR in firefox and NS_ERROR_NET_RESET in the devtools.

What should I do? Is my server bricked? I don’t understand what happened.

Upon further examination, it seems this is at least only mostly true for my admin machine, the server does seem to be running, but I still can’t access it. Running system upgrades currently

Had a similar problem: After restarting IncusOS via the webUI, I could not access the webUI anymore and all my vms stopped running. Power cycling the incusOS host seemed to solve the problem for me. Maybe you can try that?

Hi, yes, sorry to hear, this is all after doing a power cycle though.

But it really seems like everything is working except my admin machine connection at the moment, so it might just be smth outdated on my end. Currently waiting on some cpp library to finish updating. I’m hoping it will resolve after I power cycle my machine as well. If not I’ll try power cycling the host again, and report here in any case.

Still, this never happened before on prior updates, and I didn’t see anything about it in the changelog. And I assumed 7.7 would be a reboot-required update! Been getting a lot of those recently, and this happened at some point between 4-2.5 hours ago, and the update came out like 41.5 hours ago, so I don’t get the timing of it.

I do see now (that the cpp library is done building) that I didn’t locally update my incus from 7.6 to 7.7, that doesn’t explain the timing but maybe that contributed? Still, I’m not sure why that would affect the web UI

I finished the updates, restarted my machine, cycled the wireguard connection, the problem still reproduced. I did a power cycle again, twice now, and both times my instances aren’t even coming up this time.

My server is officially down.

I do get a warning during startup about a failure in DNS, which is expected in my case as I run my DNS resolver as an instance on Incus, but that’s normal. It still says System is ready version=202611271720 , usually after this it spins up the instances and handles DNS correctly from there, could some security patch in 7.7 perhaps be the reason why?

In any case my server is currently unoperational, please help.

Attaching a screencap of the desktop, please excuse my crude censoring:

Again, these are all expected, and go away when the instances are running and I do an IncusOS update check.

Ok, did some more checking, the instances are coming up, I have user connection issues due to a netbird issue I can’t treat because I no longer have admin access to my own server it seems.

To clarify, I connect both over the web ui with the mTLS cert as well as over a wireguard tunnel as documented here Network - IncusOS documentation . IIRC, the way I have it set up is that IncusOS only listens on the internal network (which I (used to?) connect to via wireguard) so as not to expose public access.

So thinking on it some more, I think it’s possible that everything works except the wireguard integration.

Update, I saw I can boot from the previous version in System recovery - IncusOS documentation , so I did:

However, the behavior was exactly the same.

Trying to access the fallback listener leads to exactly the same behavior as trying to access the normal port (as described in my initial post).

Should I not have made my IncusOS accessible only over wireguard? I thought that’s a really stable part of the system. And indeed, I can access all my internal network IPs over wireguard, I can even ping IncusOS’s internal IP, I just can’t connect to it.

Is it possible this is somehow because I have IncusOS configured only to listen on the internal address? Is that bad practice?

Is there any way to tell what went wrong here? I don’t have loki/graphana set up yet, so I have no way of accessing Incus/OS’s logs without admin access.

Why would it still fail on the previous version?

What should be done? What can be done? The only thing I can think of is some kind of hotfix ( System recovery - IncusOS documentation ), but I’m not even sure what it would do. I don’t think resetting my DNS + IncusOS hostname would change anything, I have IP access over WireGuard already, and I can’t imagine what 7.7 might’ve changed that made my DNS setup start failing.

Any idea what’s happening?

Switching back to 202611271720 in the meanwhile.

Do you know the MTU setting on the server and client side of the Wireguard tunnel? The symptoms sound a lot like a bad MTU configuration causing larger packets to be silently dropped.

At minimum show ip link show on the client side, so we can tell the MTU size there and then do some basic troubleshooting to see if this would be the issue. If it is, forcing a low MTU on the client may be enough to get you back online until you find a valid value on both ends to avoid such problems.

Hi, tysm, was in transit, back now.

$ ip link show wg0
10: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/none 

I’m not sure if this is strange-looking? state UNKNOWN and link/none seem funky.

However, yes! Setting my client-side MTU to 1280 sorted it out, I got my connection back :face_exhaling: Everything’s back online, thank you so so much <3

Insofar as setting a valid value on the IncusOS end, should I set anything on wireguard.mtu? Currently it’s unset. Should anything else be done?

In any case thank you so so much <3

Yeah, we’re going to be pushing an update which will have it default to 1280 (lowest valid) and then have folks bring it up if needed. It defaults to 1500 on the IncusOS side, though the MSS set by the client should make that less important.

Your client running with 1420 is usually fine for both IPv4 and IPv6 connections on a regular internet service with an MTU of 1500. If you’re on a DSL service using PPPoE, this may be 8 bytes too high with 1412 then being the value that will do IPv4 and IPv6 without any drops.

If you’re having your internet traffic go through another tunnel (like a global VPN or enterprise VPN) and then running the Wireguard to IncusOS on top of that, then you definitely need a much lower MTU to account for that setup.

Hmm it was specifically over my mobile hotspot, maybe that’s why. I’ll experiment with higher MTUs on different networks, and remember in the future that random EOF stuff might tie to a too-high MTU. To clarify, there’s no drawbacks to having it set to 1280 other than slightly more requests/lower throughput?

In any case this is wonderful, marking as solved. Don’t suppose there’s anything to really do about it on your side other than maybe add a heuristic for detecting this sort of problem and showing at least a warning at the CLI level or something, could be helpful for people who haven’t dealt with MTU problems before (like me :sweat_smile:).

In any case tysm again <3

Yeah, no real good way to detect this kind of thing at the application level as all the MTU handling and TCP retry stuff happens at the kernel level. What we’ll be doing is lowering the default Wireguard MTU to 1280 in IncusOS and have the documentation include some recommendations around Wireguard MTU.