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

    Fatal Error Unable to create lock file: No space left on device

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    14 Posts 3 Posters 758 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.
    • GertjanG
      Gertjan @skbnet
      last edited by Gertjan

      @skbnet said in Fatal Error Unable to create lock file: No space left on device:

      I changed to Kea DHCP from ISC DHCP.
      Does anybody faced the same problem? How should we approach this?

      Yep, as it is a DHCP and DNS thing, look in the DHCP and DNS forum.
      There you'll find many have posted the same thing.

      The solution is : wipe the lock file manually.
      and / or : switch back to "ISC DHCP".

      edit : wait : after a factory reset ?
      Add to your to-do list : check free disk space.

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      S 1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Seems like the drive either filled or went read-only.

        If it's ZFS check for BE snapshots you no longer need.

        S 1 Reply Last reply Reply Quote 0
        • S
          skbnet @Gertjan
          last edited by

          @Gertjan
          Yes, I tried hard resetting to the factory default but it did not reset (all three lights did not flash red, it behaved like a normal boot). I did this several times before connecting via the console. In the console, when I try to Reset (option 4), it says, "No space left on device". Does this mean I need to add M.2 ssd and then I can use it?

          1 Reply Last reply Reply Quote 0
          • S
            skbnet @stephenw10
            last edited by

            @stephenw10
            Does this mean I should clean install pfSense+? Or any other option I have?

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              If you have shell access still try running: bectl list

              S 1 Reply Last reply Reply Quote 0
              • S
                skbnet @stephenw10
                last edited by

                @stephenw10 ., yes, I have shell access and ran bectl list and got the following response![alt text](!bectl_list.png
                What would be the next thing to do?

                GertjanG 1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan @skbnet
                  last edited by

                  @skbnet said in Fatal Error Unable to create lock file: No space left on device:

                  bectl list

                  Probably this.

                  But better be sure which one you delete - start with the oldest one.

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Yup, try removing 1 or 2 with 'bectl destroy xxxxx'. Then reboot. If it then boots correctly use the webgui to check what other BE snaps you might want to keep.

                    Also 23.05.1 is pretty old at this point.

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      skbnet @stephenw10
                      last edited by

                      @stephenw10 and @Gertjan , @Gertjan and @stephenw10 , Thanks a ton. I removed the oldes one and rebooted from the console. Now I can access the Web UI. I am sure, it should work when I connect it to my network. However, I still get this.
                      "Fatal Error Unable to create lock file: No space left on device (28)". Should I destroy few more from bectl list (starting with the oldest one)? What is the log term solution, get a m.2 ssd and reinstall pfSense??

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        The space required for the lock file is tiny so removing any BEs should have allowed it. Unless perhaps it filled the space again while continuing to upgrade.

                        Do you have RAM disks enabled?

                        Does the dashboard show the drive has space?

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          skbnet @stephenw10
                          last edited by

                          @stephenw10 , I destroyed one more bectl and the error message is gone now.

                          Reg. RAM disk, No I have not enabled it.

                          Yes, the dashboard show the drive has space.
                          space.png

                          1 Reply Last reply Reply Quote 0
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by

                            Yes, OK. You should remove some more BE snapshots if you can, 600MB free space will cause problems upgrading.

                            You can do that from System > Boot Environments in the gui.

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              skbnet @stephenw10
                              last edited by

                              @stephenw10 , I have removed few more and now have 1.8G available. I think it should be fine now. Thanks again for your guidance.

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