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 747 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 @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.