You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have no idea if this is an issue with my config, but hoopsnake does not wait for the network to be available and exhausts all retries before the network finally comes up.
I fixed this by adding a wants to the unit like so:
May 03 18:19:51 offsite-backup systemd[1]: hoopsnake.service: Scheduled restart job, restart counter is at 2.
May 03 18:19:51 offsite-backup systemd[1]: Started Hoopsnake initrd ssh server.
May 03 18:19:51 offsite-backup hoopsnake-start[546]: + exec /nix/store/l2b0c200naiaps7v2xi460jp9q68157s-hoopsnake-0.0.0/bin/hoopsnake -name remote-unlock -tsnetVerbose=true -tags=tag:hoopsna>
May 03 18:19:51 offsite-backup hoopsnake-start[546]: 2025/05/03 18:19:51 could not setup a tsnet server: could not mint auth key: minting a tailscale pre-authenticated key for tags [tag:hoop>
May 03 18:19:51 offsite-backup systemd[1]: hoopsnake.service: Main process exited, code=exited, status=1/FAILURE
May 03 18:19:51 offsite-backup systemd[1]: hoopsnake.service: Failed with result 'exit-code'.
May 03 18:19:51 offsite-backup systemd[1]: Started Dispatch Password Requests to Console.
May 03 18:19:51 offsite-backup systemd-tty-ask-password-agent[573]: Starting password query on /dev/tty1.
May 03 18:19:51 offsite-backup systemd[1]: hoopsnake.service: Scheduled restart job, restart counter is at 3.
May 03 18:19:51 offsite-backup systemd[1]: Started Hoopsnake initrd ssh server.
May 03 18:19:51 offsite-backup hoopsnake-start[575]: + exec /nix/store/l2b0c200naiaps7v2xi460jp9q68157s-hoopsnake-0.0.0/bin/hoopsnake -name remote-unlock -tsnetVerbose=true -tags=tag:hoopsna>
May 03 18:19:51 offsite-backup hoopsnake-start[575]: 2025/05/03 18:19:51 could not setup a tsnet server: could not mint auth key: minting a tailscale pre-authenticated key for tags [tag:hoop>
May 03 18:19:51 offsite-backup systemd[1]: hoopsnake.service: Main process exited, code=exited, status=1/FAILURE
May 03 18:19:51 offsite-backup systemd[1]: hoopsnake.service: Failed with result 'exit-code'.
May 03 18:19:52 offsite-backup systemd[1]: hoopsnake.service: Scheduled restart job, restart counter is at 4.
May 03 18:19:52 offsite-backup systemd[1]: Started Hoopsnake initrd ssh server.
May 03 18:19:52 offsite-backup hoopsnake-start[585]: + exec /nix/store/l2b0c200naiaps7v2xi460jp9q68157s-hoopsnake-0.0.0/bin/hoopsnake -name remote-unlock -tsnetVerbose=true -tags=tag:hoopsna>
May 03 18:19:52 offsite-backup hoopsnake-start[585]: 2025/05/03 18:19:52 could not setup a tsnet server: could not mint auth key: minting a tailscale pre-authenticated key for tags [tag:hoop>
May 03 18:19:52 offsite-backup systemd[1]: hoopsnake.service: Main process exited, code=exited, status=1/FAILURE
May 03 18:19:52 offsite-backup systemd[1]: hoopsnake.service: Failed with result 'exit-code'.
May 03 18:19:52 offsite-backup systemd[1]: hoopsnake.service: Scheduled restart job, restart counter is at 5.
May 03 18:19:52 offsite-backup systemd[1]: hoopsnake.service: Start request repeated too quickly.
May 03 18:19:52 offsite-backup systemd[1]: hoopsnake.service: Failed with result 'exit-code'.
May 03 18:19:52 offsite-backup systemd[1]: Failed to start Hoopsnake initrd ssh server.
May 03 18:19:54 offsite-backup kernel: igb 0000:03:00.0 eno1: igb: eno1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
after (works flawlessly):
May 03 18:30:38 offsite-backup kernel: igb 0000:03:00.0 eno1: igb: eno1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
May 03 18:30:38 offsite-backup systemd-networkd[275]: eno1: Gained carrier
May 03 18:30:38 offsite-backup systemd-networkd[275]: eno1: DHCPv4 address 192.168.1.3/24, gateway 192.168.1.1 acquired from 192.168.1.1
May 03 18:30:38 offsite-backup sshd-session[548]: Accepted publickey for root from 192.168.1.100 port 48696 ssh2: ED25519 SHA256:dDJHoJ+uDp6mmfvkfryg3dc9KO8vH4CWc9smECmSwaQ
May 03 18:30:38 offsite-backup sshd-session[548]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
May 03 18:30:38 offsite-backup sshd-session[548]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
May 03 18:30:39 offsite-backup systemd-networkd[275]: eno1: Gained IPv6LL
May 03 18:30:39 offsite-backup systemd[1]: Finished Wait for Network to be Configured.
May 03 18:30:39 offsite-backup systemd[1]: Reached target Network is Online.
May 03 18:30:39 offsite-backup systemd[1]: Started Hoopsnake initrd ssh server.
May 03 18:30:39 offsite-backup hoopsnake-start[553]: + exec /nix/store/l2b0c200naiaps7v2xi460jp9q68157s-hoopsnake-0.0.0/bin/hoopsnake -name remote-unlock -tsnetVerbose=true -tags=tag:hoopsna>
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 [v1] using fake (no-op) tun device
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 [v1] using fake (no-op) OS network configurator
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 [v1] using fake (no-op) DNS configurator
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 dns: using dns.noopManager
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 link state: interfaces.State{defaultRoute=eno1 ifs={eno1:[192.168.1.3/24 2003:e3:bf26:4200:ec4:7aff:fe07:426c/64 fd2c>
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 onPortUpdate(port=58518, network=udp6)
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 [v1] warning: fakeRouter.UpdateMagicsockPort: not implemented.
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 onPortUpdate(port=55322, network=udp4)
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 [v1] warning: fakeRouter.UpdateMagicsockPort: not implemented.
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 [v1] magicsock: peermtu: peer MTU status is false
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 magicsock: disco key = d:c6072cafb1ec697a
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 Creating WireGuard device...
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 Bringing WireGuard device up...
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 wg: [v2] UDP bind has been updated
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 wg: [v2] Interface state was Down, requested Up, now Up
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 Bringing router up...
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 wg: [v2] Routine: receive incoming receiveDERP - started
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 wg: [v2] Routine: receive incoming mkReceiveFunc - started
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 [v1] warning: fakeRouter.Up: not implemented.
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 Clearing router settings...
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 [v1] warning: fakeRouter.Set: not implemented.
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 Starting network monitor...
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 Engine created.
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 wg: [v2] Routine: receive incoming mkReceiveFunc - started
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 pm: migrating "_daemon" profile to new format
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 logpolicy: using system state directory "/var/lib/tailscale"
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 [v1] netmap packet filter: (not ready yet)
May 03 18:30:42 offsite-backup hoopsnake-start[553]: 2025/05/03 18:30:42 tsnet starting with hostname "remote-unlock", varRoot "/tmp/.config/tsnet-hoopsnake"
From what I understand about systemd (which isn't a lot 😂 ), this is expected and you need a wants or requires. So probably it makes sense for you to add this (or a similar fix) to the module.
Thanks again for your work!
P.S.: additionally, the retries should probably be a little less fast :)
The text was updated successfully, but these errors were encountered:
Hm, so investigating this and looking through various systemd docs, it sounds like the after=["network-online.target"] we do should be sufficient. The wants clause should only indicate that the referenced unit needs to get started and is only necessary for units that would not get started otherwise - but network-online really really ought to be started.
Does your nixos configuration include anything that disables initrd networking?
Hm, you are right, that's how I understand the docs as well when reading them again now.
No, initrd networking is enabled and the only difference between the two configs that belong to the logs is the snippet I posted above. 🤷
Uh oh!
There was an error while loading. Please reload this page.
Hi, great project!
I have no idea if this is an issue with my config, but hoopsnake does not wait for the network to be available and exhausts all retries before the network finally comes up.
I fixed this by adding a
wants
to the unit like so:before (does not work, starts too early):
after (works flawlessly):
From what I understand about systemd (which isn't a lot 😂 ), this is expected and you need a
wants
orrequires
. So probably it makes sense for you to add this (or a similar fix) to the module.Thanks again for your work!
P.S.: additionally, the retries should probably be a little less fast :)
The text was updated successfully, but these errors were encountered: