Closed poperigby closed 1 week ago
Does it work without vpnconfinement? It looks like it might be failing on line 86 in your port update script, so try to introduce a sleep of 5-10 seconds before that line in case the webui is simply not up yet.
I have the same issue using transmission, will provide more detailed info/logs at a later date.
Does it work without vpnconfinement?
I'm not sure how to test this, because these two services wouldn't work without running in a VPN connection.
It looks like it might be failing on line 86 in your port update script, so try to introduce a sleep of 5-10 seconds before that line in case the webui is simply not up yet.
It's already waiting 10 seconds before it first starts, but maybe I should remove the set pipefail
so it's more robust?
The VPN netns service fails at boot seemingly because the internet is unreachable when Wireguard tries to resolve the address. 0fc1023446e906094fef69ccd6991d8659b34d42 should fix this by waiting for the internet to be reachable before activating Wireguard.
Let me know if this commit fixes the issue :)
After my very scientific test of two reboots after updating, I think I can confirm that this fixed the issue. Thanks!
Two of my systemd services that are VPN confined are failing when my server first boots up, but when they're restarted, they run fine.
This is my configuration file that contains those services: https://codeberg.org/PopeRigby/nixos/src/commit/b0863bde5522b5019cb80e4c061adb2e34ae03d6/systems/x86_64-linux/haddock/services/media/qbittorrent.nix
The services in question are
update-map-ip
andqbittorrent-protonvpn-port-update
.The first one fails with this:
The second fails with this:
This is the script that
qbittorrent-protonvpn-port-update
is using: https://codeberg.org/PopeRigby/nixos/src/commit/b0863bde5522b5019cb80e4c061adb2e34ae03d6/packages/qbittorrent-protonvpn-port-update/default.nix