Warning: fopen(/tmp/config.lock): failed to open stream: Device not configured
-
So I've had a couple hangs on my home system where the disk just freaks out, I got the out of inodes errors, could not read or write to the disk, etc.
After a failure and a power cycle I started getting the message below in the dashboard update check area.
I figured the disk was failing so I backed up the config, replaced the drive, installed 2.1 fresh, and restored the config.
This message in dashboard persists. "Obtaining update status…" then it barfs this up:
Version 2.1-RELEASE (amd64)
built on Wed Sep 11 18:17:48 EDT 2013
FreeBSD 8.3-RELEASE-p11
Warning: fopen(/tmp/config.lock): failed to open stream: Device not configured in /etc/inc/util.inc on line 127 Warning: flock() expects parameter 1 to be resource, null given in /etc/inc/util.inc on line 138 Warning: fclose() expects parameter 1 to be resource, null given in /etc/inc/util.inc on line 139 Warning: Cannot modify header information - headers already sent by (output started at /etc/inc/util.inc:127) in /usr/local/www/guiconfig.inc on line 48 Warning: Cannot modify header information - headers already sent by (output started at /etc/inc/util.inc:127) in /usr/local/www/guiconfig.inc on line 49 Warning: Cannot modify header information - headers already sent by (output started at /etc/inc/util.inc:127) in /usr/local/www/guiconfig.inc on line 50 Warning: Cannot modify header information - headers already sent by (output started at /etc/inc/util.inc:127) in /usr/local/www/guiconfig.inc on line 51 Warning: Cannot modify header information - headers already sent by (output started at /etc/inc/util.inc:127) in /usr/local/www/guiconfig.inc on line 52 Warning: Cannot modify header information - headers already sent by (output started at /etc/inc/util.inc:127) in /usr/local/www/guiconfig.inc on line 55 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/inc/util.inc:127) in /etc/inc/auth.inc on line 1357 Warning: fopen(/tmp/pfSense_version): failed to open stream: No space left on device in /etc/inc/pfsense-utils.inc on line 1620Unable to check for updates.
Everything seems to work fine. I even made a quick php script doing what the lock function does and it runs fine:
[2.1-RELEASE][root@cox-gw]/root(26): cat test.php if ($fp = fopen("/tmp/config.lock", "w")) { if (flock($fp, LOCK_SH)) { echo "flock success\n"; fclose($fp); } else { echo "flock fail\n"; fclose($fp); } } ?> [2.1-RELEASE][root@cox-gw]/root(27): php test.php Content-type: text/html flock success [2.1-RELEASE][root@cox-gw]/root(28): cat /tmp/pfSense_version 2.1-RELEASE [2.1-RELEASE][root@cox-gw]/root(30):
/tmp/config.lock is fine. I removed it and it was properly recreated.
System->Firmware->Auto Update works fine:
Downloading new version information…done
Obtaining current version information...doneYou are on the latest version.
Plenty of space:
[2.1-RELEASE][root@cox-gw]/root(30): df -hi Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/ad4s1a 447G 259M 411G 0% 7.6k 60M 0% / devfs 1.0k 1.0k 0B 100% 0 0 100% /dev /dev/md0 3.6M 68k 3.3M 2% 34 732 4% /var/run devfs 1.0k 1.0k 0B 100% 0 0 100% /var/dhcpd/dev
All the logs are normal.
Not sure what else to do. Everything looks fine, except for these error messages in the dashboard.
-
Clear your browser cache. :-)
-
DOH!
(Worked.)
-
i am getting the same error what is the solution. what i do now
-
It's typically a sign of a dying disk. Back up your config, replace the disk, restore, and make sure to clear the browser cache afterward.
-