Wireguard fails after reboot (2.8.0)
-
Everytime I reboot, Wireguard is the only package that fails to start and will not start even after pressing the action button on the service status on the home page. The only way to get it started is to reinstall the package. I'm nmot sure when this started happening, as I don't need to reboot often.
-
@Buffalo0207 Same here. It helps to enable the gateways by hand and then restart WireGuard.
-
Are you able to test 2.8.1-beta?
-
@stephenw10 I updated to 2.8.1-beta, but the same issue occurs. I have uploaded my log, in case this helps. PHP_errors.txt
-
Hmm you see those errors continually? Only when WG is enabled?
These were systems that were upgraded to 2.8.0?
-
@stephenw10 I have been getting those errors since I upgraded to 2.8.0. I think it was you I spoke to before in another post from about roughly 4 months ago and I think you stated that they were not anything to worry about - they should have been hidden errors of something. They continually show up - everytime i log in to the UI, even after deleting them.
The errors still appear even when I have stopped WG, though, having manually stopped WG, the restart button works to start up WG. It looks like when WG fails after a reboot, this is the only time I need to install the WG package.
Does that help?
-
They would not be a concern if they appeared once after upgrading. But if they are being continually logged that's problem. Likely something did not upgrade correctly. Usually I would suspect Wireguard itself but you have reinstalled it multiple times.
What other packages do you have installed there? -
@stephenw10 Here is the list of all the packages I have installed...
- acme
- Avahi - not enabled as I have recently installed mDNS-Bridge
- Cron
- mDNS-Bridge
- nut
- pfBlockerNG-devel
- Service_Watchdog
- sudo
- System_Patches
- Wireguard
Except for Avahi, all other packages are enabled and configured and seem to be working ok.
In case you need this info too, here are all the services that I have running...
- dpinger
- kea-dhcp4
- kea-dhcp6
- mdns-bridge
- miniupnpd
- ntpd
- nut
- pfb_dnsbl
- pfb_filter
- radvd
- sshd
- syslog
- unbound
14 - wireguard
Would you like me to send you my configuration file download?
-
Do you see any errors when you reinstall WG?
If you look in /conf you should see the pkg_log file for fro the last install.
-
@Buffalo0207 Try restarting dpinger followed by starting wireguard.
-
@Misterb Thanks - that semi worked. Although WG still stops after a reboot, by restarting dpinger, I no longer need to reinstall the WG package as the 'restart service' tab works.
-
@stephenw10 The only errors I see are the php errors.
-
Hmm, when it stops and fails to start when you try to start it manually do you see anything logged then?
I can't replicate that on anything I have here.
Try running
pkg upgrade
and see if it offers any upgrades. Something may not have upgraded. -
@stephenw10 When it stops and fails to start and then I try to start it manually there are no new pkg_log files. The WG pkg_log file remains on the date 13/08/25. Even when I reinstall the WG package, the log remains the same.
I did, however, get the following error...
check_upgrade: "Updating repositories metadata" returned error code 1 @ 2025-08-16 00:22:12
BTW - yesterday, I reinstalled all 10 packages, in case something hadn't installed correctly.
-
Yes you won't see anything in the pkg_log, that only covers the pkg install, but I'd expect to see something logged in the main log. For example when I restart it I see in the main log:
Aug 16 02:15:46 php-fpm 77985 /status_services.php: The command '/usr/local/etc/rc.d/wireguardd stop' returned exit code '1', the output was '' Aug 16 02:15:47 kernel wg0: changing name to 'tun_wg0' Aug 16 02:15:47 kernel tun_wg0: link state changed to UP Aug 16 02:15:47 php_wg 19350 /usr/local/pkg/wireguard/includes/wg_service.inc: Gateway, none 'available' for inet6, use the first one configured. 'GIF0_TUNNELV6'
If any of those things failed with an error I'd expect to see that there too.
-
@Buffalo0207 The problem seems to be remarkably similar to one discussed in 2023 Wireguard Site-to-Site Gateways disabled after reboot - service not starting
-
@stephenw10 Can you tell me exactly where the main log is and I will download it for you. I also have WinSCP, so can access it from there if this is easier.