Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Warning: fopen(/tmp/config.lock): failed to open stream: Device not configured

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 3 Posters 5.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DerelictD
      Derelict LAYER 8 Netgate
      last edited by

      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 1620

      Unable 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...done

      You 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.

      Chattanooga, Tennessee, USA
      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
      Do Not Chat For Help! NO_WAN_EGRESS(TM)

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Clear your browser cache. :-)

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • DerelictD
          Derelict LAYER 8 Netgate
          last edited by

          DOH!

          (Worked.)

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • I
            Iahmad
            last edited by

            i am getting the same error what is the solution. what i do now

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              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.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • DerelictD
                Derelict LAYER 8 Netgate
                last edited by

                @jimp:

                Clear your browser cache. :-)

                Worked for me.

                Chattanooga, Tennessee, USA
                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                Do Not Chat For Help! NO_WAN_EGRESS(TM)

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.