• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 706 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.
  • S
    skbnet
    last edited by Jul 15, 2024, 3:09 AM

    I am using SG-2100. I recently updated the pfSense software. Yesterday, I changed to Kea DHCP from ISC DHCP. I also tried to force update the pfblockr NG which failed. After some time the pfSense crashed, and I could not access it via GUI. I tried to factory reset by pressing the reset button with a pin but it did not reset. I connected via console. When I gave he command for factory reset, I got this error.

    Fatal Error Unable to create lock file: No space left on device
    2024-07-15_08-11-10.png

    Does anybody faced the same problem? How should we approach this?

    G 1 Reply Last reply Jul 15, 2024, 7:35 AM Reply Quote 0
    • G
      Gertjan @skbnet
      last edited by Gertjan Jul 15, 2024, 7:37 AM Jul 15, 2024, 7:35 AM

      @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 Jul 15, 2024, 3:20 PM Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by Jul 15, 2024, 3:18 PM

        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 Jul 15, 2024, 3:22 PM Reply Quote 0
        • S
          skbnet @Gertjan
          last edited by Jul 15, 2024, 3:20 PM

          @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 Jul 15, 2024, 3:22 PM

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

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by Jul 15, 2024, 4:16 PM

              If you have shell access still try running: bectl list

              S 1 Reply Last reply Jul 15, 2024, 4:29 PM Reply Quote 0
              • S
                skbnet @stephenw10
                last edited by Jul 15, 2024, 4:29 PM

                @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?

                G 1 Reply Last reply Jul 15, 2024, 4:33 PM Reply Quote 0
                • G
                  Gertjan @skbnet
                  last edited by Jul 15, 2024, 4:33 PM

                  @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
                  • S
                    stephenw10 Netgate Administrator
                    last edited by Jul 15, 2024, 4:50 PM

                    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 Jul 15, 2024, 4:55 PM Reply Quote 0
                    • S
                      skbnet @stephenw10
                      last edited by Jul 15, 2024, 4:55 PM

                      @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
                      • S
                        stephenw10 Netgate Administrator
                        last edited by Jul 15, 2024, 5:14 PM

                        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 Jul 15, 2024, 5:28 PM Reply Quote 0
                        • S
                          skbnet @stephenw10
                          last edited by Jul 15, 2024, 5:28 PM

                          @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
                          • S
                            stephenw10 Netgate Administrator
                            last edited by Jul 15, 2024, 5:35 PM

                            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 Jul 15, 2024, 5:47 PM Reply Quote 0
                            • S
                              skbnet @stephenw10
                              last edited by Jul 15, 2024, 5:47 PM

                              @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
                              14 out of 14
                              • First post
                                14/14
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                This community forum collects and processes your personal information.
                                consent.not_received