pfSense refuses to reboot
-
First, check why it is slow.
You do this be lookup up what it is doing.
It's one click away : Diagnostics > System ActivityExample :
PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND 11 root 187 ki31 0B 32K RUN 0 135.7H 100.00% [idle{idle: cpu0}] 11 root 187 ki31 0B 32K CPU1 1 132.5H 90.58% [idle{idle: cpu1}] 85893 root 68 0 150M 64M piperd 1 0:35 8.15% php-fpm: pool nginx (php-fpm){php-fpm} 84969 root 68 0 117M 60M accept 1 0:19 1.56% php-fpm: pool nginx (php-fpm) 65579 unbound 20 0 182M 158M kqread 0 9:16 0.39% /usr/local/sbin/unbound -c /var/unbound/unbound.conf{unbound} 65579 unbound 20 0 182M 158M kqread 1 11:33 0.29% /usr/local/sbin/unbound -c /var/unbound/unbound.conf{unbound} ....The top resource intensive process are at the top : mine are "being idle" although I'm still routing 300+ Mbytes per sec right now.
Btw :
The dashboard page, deepening on what widgets you have activated, can be somewhat slow as you said yourself : a lot of resources are needed to update that page every x seconds.
Solution : close the page or look at another, more useful page like the log pages.@kravenul said in pfSense refuses to reboot:
or simply a corrupted file system
It takes a minute to be sure about that, and deal with it. Go here and click play.
-
@Gertjan Hi Gertjan,
I am using 2.9, yes CE. Optiplex 7040 I7. Running HA/CARP
I have had this problem for months.
I thought maybe it was my bios, but bios updates done and no dice.
I replaced the machine with its twin and did a complete reinstall with the same config file.
Again I made sure the BIOS was up to date.It acts the same way.
So I am wrong here or is there maybe a bug?
At least I can reboot from Diagnostics/Command prompt. That is a life saver.
I am logging in as admin.
Roy
Crash report begins. Anonymous machine information:
amd64
16.0-CURRENT
FreeBSD 16.0-CURRENT #12 RELENG_2_9_0-n256132-d8e3138ecf52: Mon Aug 17 18:50:13 UTC 2026 root@pfsense-build-release-amd64-2.eng.atx.netgate.com:/var/jenkins/workspace/pfSense-CE-snapshots-2_9_0-main/obj/amd64/XcuObCIF/var/jenkins/workspace/pfSense-CE-Crash report details:
PHP Errors:
[03-Nov-2026 11:37:57 America/Phoenix] PHP Fatal error: Uncaught TypeError: is_process_running(): Argument #1 ($name) must be of type string, null given, called in /etc/inc/service-utils.inc on line 294 and defined in /etc/inc/util.inc:719
Stack trace:
#0 /etc/inc/service-utils.inc(294): is_process_running()
#1 /etc/inc/pkg-utils.inc(1268): is_service_running()
#2 /etc/inc/system.inc(3143): stop_packages()
#3 /etc/inc/system.inc(3100): system_reboot_cleanup()
#4 /usr/local/www/diag_reboot.php(68): system_reboot()
#5 {main}
thrown in /etc/inc/util.inc on line 719No FreeBSD crash data found.
-
Hmm, so you get that php error any time you try to reboot from the webgui?
Is that something that worked fine in 2.8.1?
Can you shutdown from webgui?
Can you reboot from the console menu?
-
@stephenw10 Hi Stephen,
To answer your question.
I can't shutdown or reboot from the webgui or the console window.
The failure existed in 2.8.1.
Roy
-
@reberhar What platform (hardware plus CPU are you running)? I have a Watchguard M400 with a non standard CPU that I suffer the same from and pretty much expect it so wondering if you are having the same issue.
-
Dell Optiplex they say above. But, yes, a CPU swap there could present like this.
Does it reboot with any other os?
-
I'm running 26.07 Plus ( all the way from 22.7 Plus ) with Dell Optiplex 7040 SFF with i5 CPU, no problems with reboots.
I'm guessing that there shouldn't be that much difference between Plus and CE regarding hardware?
I don't have HA/CARP though, could that cause problems?
Or maybe corrupt install / hardware failure? -
@chpalmer So I wrote this up before, months and months ago and got no reaction. Well you know widgets throw errors frequently, or often enough anyway so I thought it was like that.
Because this has been happening for such a long time I don't think me switching boxes has anything to do with it. It was an obvious thing to do if the bios chip was marginal, but it is not.
I can reboot and halt from the BSD prompt but not from the Console Menu or the Dashboard gui.
I have been thinking of refreshing the php libraries like AI suggests, but I haven't gotten to it.
Yes those boxes run Dos and Windows fine. I will try Ubuntu next but I don't think there will be a problem.
I think that the pfSense software thinks it is a BIOS problem, but if that were true these functions would fail from the BSD prompt too. There are errors to that effect on boot on the machine I replaced and on the replacement machine, but only with pfSense.
It is starting to sound like I am just going to have to work around the problem like I have in the past with dpinger and nut. I can do that, especially since I can just use BSD to do what I need to do.
Everything else seems pretty stable.
Roy
I did do a clean install.
-
The error could imply it's trying to shutdown some service that no longer exists and that's crashing out the reboot/halt scripts.
I assume when you are rebooting successfully from the prompt you are just using:
rebootTry running directly:
/etc/rc.reboot
See if that fails the same way.Check Status > Services. Do you have some old service/package shown there?
If so you might have so old cruft in the config referencing something that no longer exists.
-
So something listed as a service in config still where an rc file no longer exists like:
<service> <name>haproxy</name> <rcfile>haproxy.sh</rcfile> <executable>haproxy</executable> <description><![CDATA[TCP/HTTP(S) Load Balancer]]></description> </service> <service> <name>nrpe</name> <rcfile>nrpe.sh</rcfile> <executable>nrpe</executable> <description><![CDATA[Nagios NRPE Daemon]]></description> </service> <service> <name>syslog-ng</name> <rcfile>syslog-ng.sh</rcfile> <executable>syslog-ng</executable> <description><![CDATA[Syslog-ng Syslog Server]]></description> </service> -
@stephenw10 Hi Stephen,
Ok I will try those things. It is true that you have to clean out the config file occasionally. I worked a couple over on one my systems in Mexico in August.
It is nice to be able to do that. I was recovering from a failed piece of hardware.
Thanks,
Roy
-
/etc/rc.reboot
does seem to work at least over the tunnels with ssh. I will try it from the console too so I can read the messages. It is possible that it failed and I couldn't see it because of the openvpn disruption.
I will look for some orphan service entries.
Roy
......
I checked the services in config.sys for orphans and all seems to be ok.
here is the status / Services. It looks ok to me.

Roy
-
Hmm, that looks OK. The error sure looks like it's missing an rcfile though.
You could probably find it by restarting each service manually until something throws an error. Obviously that will cause some disruption!
-
@stephenw10 So what you are essentially saying is that the reboot crashes because one of the processes is not shutting down properly when it is asked to, but throwing an error.
It does start with Suricata, but I am not sure that that is really closing like it should. I will start with that one.
Roy
-
Yes when you run the shutdown or restart commands from the gui or the menu it tries to stop services cleanly to avoid data loss etc.
Actually looking at the error it looks to be calling the
is_process_runningfunction with a null value which would imply a service without an executable set. Or perhaps some unparsable character in the executable tag. -
@stephenw10 Well I will give you a list of the services from my config. I also think I have found a way to shutdown remotely and watch and capture the process. I will see if I can include that information.
I understand how the system works, starts up and shutsdown. It is almost the same as Linux. I have done a little work on that area in the Linux systems.
I will try to capture the secondary with a reboot from the console and see what it looks like when it is working, assuming the secondary is ok. Maybe that will give me a clue as to which process is causing the problem.
Thanks for your help.
Roy
Here is the error shown from the console screen.
- Logout / Disconnect SSH 9) pfTop
- Assign Interfaces 10) Filter Logs
- Set interface(s) IP address 11) Restart GUI
- Reset admin account and password 12) PHP shell + pfSense tools
- Reset to factory defaults 13) Update from console
- Reboot system 14) Disable Secure Shell (sshd)
- Halt system 15) Restore recent configuration
- Ping host 16) Restart PHP-FPM
- Shell
Enter an option: 5
pfSense will reboot. This may take a few minutes, depending on your hardware.
Do you want to proceed?Y/y: Reboot normally R/r: Reroot (Stop processes, remount disks, re-run startup sequence) S: Reboot into Single User Mode (requires console access!)Enter an option: y
pfSense is rebooting now.
Stopping package suricata...done.
Stopping package ntopng...done.
Stopping package apcupsd...done.
<pre style="white-space: pre-wrap;">PHP ERROR: Type: 1, File: /etc/inc/util.inc, Line: 719, 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 294 and defined in /etc/inc/util.inc:719
Stack trace:
#0 /etc/inc/service-utils.inc(294): is_process_running()
#1 /etc/inc/pkg-utils.inc(1268): is_service_running()
#2 /etc/inc/system.inc(3143): stop_packages()
#3 /etc/inc/system.inc(3112): system_reboot_cleanup()
#4 /etc/rc.initial.reboot(78): system_reboot_sync()
#5 {main}
thrown</pre>pfSense - Netgate Device ID: 59686317b0bcd9b55d94*** Welcome to pfSense 2.9.0-RELEASE (amd64) on MountainVistaPrimary ***
WAN (wan) -> em0 -> v4: 192.168.5.51/24
LAN (lan) -> em1 -> v4: 10.5.0.1/24
OPT1 (opt1) -> em2 -> v4: 10.5.1.1/24
IOT (opt2) -> em1.5 -> v4: 10.5.5.1/24
SYNC (opt3) -> em4 -> v4: 172.16.1.2/24- Logout / Disconnect SSH 9) pfTop
- Assign Interfaces 10) Filter Logs
- Set interface(s) IP address 11) Restart GUI
- Reset admin account and password 12) PHP shell + pfSense tools
- Reset to factory defaults 13) Update from console
- Reboot system 14) Disable Secure Shell (sshd)
- Halt system 15) Restore recent configuration
- Ping host 16) Restart PHP-FPM
- Shell
Enter an option:
The services look complete to me but here are my services from the config.xml
<service>
<name>apcupsd</name>
<rcfile>apcupsd.sh</rcfile>
<executable>apcupsd</executable>
<description>APC UPS Daemon</description>
</service>
<service>
<name>ntopng</name>
<rcfile>ntopng.sh</rcfile>
<executable>ntopng</executable>
<description>ntopng Network Traffic Monitor</description>
</service>
<service>
<name>pfb_dnsbl</name>
<rcfile>pfb_dnsbl.sh</rcfile>
<executable>lighttpd_pfb</executable>
<description>pfBlockerNG DNSBL service</description>
</service>
<service>
<name>pfb_filter</name>
<rcfile>pfb_filter.sh</rcfile>
<executable>php_pfb</executable>
<description>pfBlockerNG firewall filter service</description>
</service>
<service>
<name>squid</name>
<rcfile>squid.sh</rcfile>
<executable>squid</executable>
<description>Squid Proxy Server Service</description>
</service>
<service>
<name>clamd</name>
<rcfile>clamd.sh</rcfile>
<executable>clamd</executable>
<description>ClamAV Antivirus</description>
</service>
<service>
<name>c-icap</name>
<rcfile>c-icap.sh</rcfile>
<executable>c-icap</executable>
<description>ICAP Interface for Squid and ClamAV integration</description>
</service>
<service>
<name>suricata</name>
<rcfile>suricata.sh</rcfile>
<executable>suricata</executable>
<description>Suricata IDS/IPS Daemon</description>
</service> -
Hi Guys,
So here is a reboot from the secondary which does work. When I made this system CARP/HA pair up I cloned them both from the same system and of course they are HA so they have to be pretty similar.
So am I looking at a potential problem with ICAP?
Roy
*** Welcome to pfSense 2.9.0-RELEASE (amd64) on MountainVistaSecondary ***
WAN (wan) -> em0 -> v4: 192.168.5.52/24
LAN (lan) -> em1 -> v4: 10.5.0.2/24
OPT1 (opt1) -> em2 -> v4: 10.5.1.2/24
IOT (opt2) -> em1.5 -> v4: 10.5.5.2/24
SYNC (opt3) -> em4 -> v4: 172.16.1.3/24- Logout / Disconnect SSH 9) pfTop
- Assign Interfaces 10) Filter Logs
- Set interface(s) IP address 11) Restart GUI
- Reset admin account and password 12) PHP shell + pfSense tools
- Reset to factory defaults 13) Update from console
- Reboot system 14) Disable Secure Shell (sshd)
- Halt system 15) Restore recent configuration
- Ping host 16) Restart PHP-FPM
- Shell
Enter an option: 5
pfSense will reboot. This may take a few minutes, depending on your hardware.
Do you want to proceed?Y/y: Reboot normally R/r: Reroot (Stop processes, remount disks, re-run startup sequence) S: Reboot into Single User Mode (requires console access!)Enter an option: y
pfSense is rebooting now.
Stopping package suricata...done.
Stopping package ntopng...done.
Stopping package apcupsd...done.
Stopping /usr/local/etc/rc.d/c-icap.sh...done.
Stopping /usr/local/etc/rc.d/clamd.sh...done.
Stopping /usr/local/etc/rc.d/pfb_dnsbl.sh...done.
Stopping /usr/local/etc/rc.d/pfb_filter.sh...done.
Stopping /usr/local/etc/rc.d/sqp_monitor.sh...done.
Stopping /usr/local/etc/rc.d/squid.sh...done.Connection to 10.5.0.2 closed by remote host.
Connection to 10.5.0.2 closed. -
List of services from config.xml on the secondary.
They look the same as the primary to me.
<service>
<name>apcupsd</name>
<rcfile>apcupsd.sh</rcfile>
<executable>apcupsd</executable>
<description>APC UPS Daemon</description>
</service>
<service>
<name>ntopng</name>
<rcfile>ntopng.sh</rcfile>
<executable>ntopng</executable>
<description>ntopng Network Traffic Monitor</description>
</service>
<service>
<name>pfb_dnsbl</name>
<rcfile>pfb_dnsbl.sh</rcfile>
<executable>lighttpd_pfb</executable>
<description>pfBlockerNG DNSBL service</description>
</service>
<service>
<name>pfb_filter</name>
<rcfile>pfb_filter.sh</rcfile>
<executable>php_pfb</executable>
<description>pfBlockerNG firewall filter service</description>
</service>
<service>
<name>squid</name>
<rcfile>squid.sh</rcfile>
<executable>squid</executable>
<description>Squid Proxy Server Service</description>
</service>
<service>
<name>clamd</name>
<rcfile>clamd.sh</rcfile>
<executable>clamd</executable>
<description>ClamAV Antivirus</description>
</service>
<service>
<name>c-icap</name>
<rcfile>c-icap.sh</rcfile>
<executable>c-icap</executable>
<description>ICAP Interface for Squid and ClamAV integration</description>
</service>
<service>
<name>suricata</name>
<rcfile>suricata.sh</rcfile>
<executable>suricata</executable>
<description>Suricata IDS/IPS Daemon</description>
</service> -
So after all this I think I will run a difference check on the two config files.
The error message seems to imply corruption in my config file, maybe a control character?
Argument #1 ($name) must be of type string, null given, called in /etc/inc/service-utils.inc on line 294 and defined in /etc/inc/util.inc:719
Roy
-
Yup good idea. It certainly looks to be getting stuck on c-icap. Odd that it shows fine in Status > Services though when that uses the same functions to check if it's running.

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy