pfSense refuses to reboot
-
It failed the same way? Could not reboot after restoring the config?
-
When I applied the whole backup file. Yes.
When I did piece by piece (I think I left out the packages and a few others) and reinstalled everything package, and reconfigured it. It worked. -
Huh, so you still ended up with the same packages installed?
-
@stephenw10 Yes, except I didn't import the old config files.
-
Hmm, well that's bizarre! Are you able to replicate it with an example config at all? This feels a bug that needs squashing.
-
@stephenw10 Well, I can sanitize my config file and I can post it. Or when I have time I can replace the SSD in my system and "reinstall" it. It is my main router, so I need some time.
-
I upgraded last night to [24.11-RELEASE] on my Netgate 2100, and I encounterred the exact same problem.
PHP ERROR: Type: 1, File: /etc/inc/util.inc, Line: 123, Message: Uncaught TypeError: is_process_running(): Argument #1 ($name) must be of type string, null given, called in /etc/inc/service-utils.inc on line 295 and defined in /etc/inc/util.inc:123
Stack trace:
#0 /etc/inc/service-utils.inc(295): is_process_running()
#1 /etc/inc/pkg-utils.inc(1277): is_service_running()
#2 /etc/inc/system.inc(2913): stop_packages()
#3 /etc/inc/system.inc(2869): system_reboot_cleanup()
#4 /usr/local/www/diag_reboot.php(102): system_reboot()
#5 {main}
thrown @ 2025-03-01 06:17:01Is there anything I can do to find which package has a damaged config causing the php reboot script to crash?
-
@kravenul said in pfSense refuses to reboot:
and I encounterred the exact same problem
It didn't boot ?
You have this package installed :and applied all 'Netgate' proposes patches ?
-
Also only affects non-admin users?
-
@Gertjan I've confirmed System_Patches 2.2.19 is installed, but "No recommended patches for this version". I've also upgraded further to the beta version FreeBSD 15.0-CURRENT #0 plus-RELENG_25_03-n256448-5d69d8519d49 (25.03.b.20250204.0023) in an attempt and hopping to resolve the issue, but it persists. I'm using only official repository packages.
@stephenw10 I am sure the problem originated during the 24.03 to 24.11 upgrade. The diag_reboot.php menu item is the only function experiencing this failure. Executing sudo /etc/rc.initial.reboot in the shell yields the same crash error.
While I can reboot the SG-2100 via SSH or the GUI Command menu (Execute > reboot), a fresh install may be necessary. As this is my primary router, I'd prefer to avoid that if possible. Do you have any further troubleshooting suggestions? Thanks!"
-
Hmm, you should have System Patches pkg version 2.2.20_1. It has a long list of recommended patches.
But to be clear, if you're logged in as admin the webgui reboot works correctly?
-
@stephenw10 I wish I could upgrade the System_Patches unfortunatelly my pfsense is not suggesting any upgrade.
And no, the Reboot in the webgui doesn't work, is where I get that crash, but I can reboot if I execute a shell command as depicted below
-
I couldn't figure out the cause; I had to reinstall everything.
The only "remaining" thing that I have with reboot is one problem. When I initiate a restart, sometimes it gets stuck during boot. It continues when I try to connect over serial and hit enter a few times.
I am not sure if that is some hardware/BIOS issue. Because when I have the serial connection on, it never happens. (I have a Topton N100 Mini PC)
-
I couldn't figure out the cause; I had to reinstall everything.
Regrettably even in my case using pfSense+ on an official Netgate SG-2100, I anticipate a fresh installation may be required. This is unexpected, as I have exclusively utilized the official, stable channel upgrades provided within the Update menu.
-
Hmm, you should see 2.2.20_1 in 24.11.
Do you see any available packages?
Try running
pkg -d update
at the command line and see if it shows any errors. -
@stephenw10 No available System_Patches in Package Manager. I have attached the command output for your review. It happened very fast, 5-7 seconds. One specific point has caught my attention, but I am not sure if it's important or it is an error:
Couldn't find host pfsense-plus-pkg-beta00.atx.netgate.com in the .netrc file; using defaults
However I believe there is a problem with the Letsencrypt certificate on the server. The curl is try fetching from https://pfsense-plus-pkg-beta.netgate.com/pfSense_plus-v25_03_aarch64-pfSense_plus_v25_03/data.pkg but the certificate is only for pfsense.org and other Subject Alternative Names except *.netgate.com
I am on version 25.03.b.20250204.0023 not 24.11
-
Ah, OK. In 25.03 there isn't yet a System Packages update since all the current updates are already present.
Hmm, I can't replicate this here.
What do you see from:
pkg info -x pfsense
? -
@stephenw10 said in pfSense refuses to reboot:
What do you see from: pkg info -x pfsense ?
Here's the output:
pfSense-25.03.b.20250204.0023.1500029
pfSense-Status_Monitoring-php83-1.8_8
pfSense-base-25.03.b.20250204.0023
pfSense-boot-25.03.b.20250204.0023
pfSense-composer-deps-0.1
pfSense-default-config-serial-25.03.b.20250204.0023
pfSense-gnid-0.20
pfSense-kernel-pfSense-25.03.b.20250204.0023
pfSense-mim-25.03.b.20250204.0023
pfSense-pkg-Avahi-2.2_6
pfSense-pkg-Backup-0.6.3
pfSense-pkg-Cron-0.3.8_5
pfSense-pkg-RRD_Summary-2.2
pfSense-pkg-Service_Watchdog-1.8.7_4
pfSense-pkg-Status_Traffic_Totals-2.3.2_7
pfSense-pkg-System_Patches-2.2.19
pfSense-pkg-Telegraf-0.9_8
pfSense-pkg-WireGuard-0.2.9_3
pfSense-pkg-acme-0.9_1
pfSense-pkg-arping-1.2.2_6
pfSense-pkg-arpwatch-0.2.3
pfSense-pkg-haproxy-0.63_10
pfSense-pkg-iperf-3.0.5
pfSense-pkg-mailreport-3.6.4_5
pfSense-pkg-nmap-1.4.4_8
pfSense-pkg-ntopng-5.6.0_1
pfSense-pkg-openvpn-client-export-1.9.5
pfSense-pkg-openvpn-client-import-1.2_3
pfSense-pkg-pfBlockerNG-devel-3.2.1_22
pfSense-pkg-stunnel-5.50_13
pfSense-pkg-sudo-0.3_10
pfSense-pkg-suricata-7.0.8_1
pfSense-pkg-tftpd-0.1.3_6
pfSense-repo-25.03.b.20250204.0023
pfSense-repoc-20250131
pfSense-u-boot-1100-20220428
pfSense-u-boot-2100-20210930_1
pfSense-u-boot-env-20230123
pfSense-upgrade-1.2.31
php83-pfSense-module-0.101Thank you!
-
Hmm, I wonder if you have some service defined in the config that isn't actually installed any longer.
What do you see in Status > Services? Anything showing an error there?
-
@stephenw10 said in pfSense refuses to reboot:
Ah, OK. In 25.03 there isn't yet a System Packages update since all the current updates are already present.
I'm on the latest
25.03-BETA (amd64) built on Tue Feb 4 1:23:00 CET 2025
and the packet manager proposes me to downgrade the System_Patches package :
The daily mail notification (a non official script, you already know about ):
Notifications in this message: 1 ================================ 13:15:07 The following updates are available and can be installed using System > Package Manager: System_Patches: 2.2.20_1 ==> 2.2.19 (downgrade)
The 'official' list with patches is empty of course, as they are, imho, all now part of 25.03 Beta.
I'll leave it at 2.2.20_1 for now.