• 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
18 Posts 8 Posters 1.7k 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
    SteveITS Galactic Empire @bdjackson
    last edited by May 2, 2024, 2:32 AM

    @bdjackson check for deleteable boot environments:
    https://docs.netgate.com/pfsense/en/latest/troubleshooting/filesystem-shrink.html

    Or
    https://docs.netgate.com/pfsense/en/latest/troubleshooting/filesystem-usage.html

    Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
    When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
    Upvote 👍 helpful posts!

    1 Reply Last reply Reply Quote 1
    • B
      bdjackson
      last edited by May 2, 2024, 2:28 PM

      Neither worked. Does not complete a boot. I can get to the Marvell> prompt and that is about it.

      Brent

      S 1 Reply Last reply May 2, 2024, 2:50 PM Reply Quote 0
      • S
        SteveITS Galactic Empire @bdjackson
        last edited by May 2, 2024, 2:50 PM

        @bdjackson Hmm that makes it difficult to do much I suppose. Reinstalling is probably the quickest way back. Then restore from a backup config file.

        https://docs.netgate.com/pfsense/en/latest/solutions/netgate-2100/reinstall-pfsense.html

        The lock file message is showing at boot then?

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote 👍 helpful posts!

        1 Reply Last reply Reply Quote 0
        • B
          bdjackson
          last edited by May 2, 2024, 2:55 PM

          Yes. Lock file at boot.

          Brent

          1 Reply Last reply Reply Quote 0
          • J
            jlrobinson2171
            last edited by May 6, 2024, 8:51 PM

            I also received this error on my SG2100 after attempting to update to 24.03. I can't do anything except get into the shell via console. Every other option gives me the error:

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

            I looked at the documents posted by @SteveITS but not very helpful. Any other options than reinstalling?

            I was able to get into Single User Mode and attempted to run fsck -fy / but I received this error message:

            fsck: cannot open `pfSense/ROOT/default_20240426094800': No such file or directory

            Any ideas?

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by May 6, 2024, 8:55 PM

              Run: bectl list

              J 1 Reply Last reply May 6, 2024, 9:05 PM Reply Quote 0
              • J
                jlrobinson2171 @stephenw10
                last edited by May 6, 2024, 9:05 PM

                @stephenw10

                BE Active Mountpoint Space Created
                auto-default-20230628094454 - - 589M 2023-06-28 09:44
                auto-default-20230628102402 - - 829M 2023-06-28 10:24
                auto-default-20240223110046 - - 885M 2024-02-23 11:00
                auto-default-20240407101025 - - 563M 2024-04-07 10:10
                default - - 1.10G 2024-04-26 09:48
                default_20240426094800 NR / 4.98G 2022-06-22 15:27

                S 1 Reply Last reply May 6, 2024, 9:19 PM Reply Quote 1
                • S
                  SteveITS Galactic Empire @jlrobinson2171
                  last edited by May 6, 2024, 9:19 PM

                  @jlrobinson2171 Delete some of those, for instance the 2022 and 2023 ones.

                  bectl destroy default_20240426094800

                  or auto-default-20230628094454, etc.

                  If it isn't a 2100 max then it's only an 8 GB disk.

                  Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                  When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                  Upvote 👍 helpful posts!

                  J S 2 Replies Last reply May 6, 2024, 9:38 PM Reply Quote 2
                  • S
                    stephenw10 Netgate Administrator
                    last edited by stephenw10 May 6, 2024, 9:28 PM May 6, 2024, 9:26 PM

                    Yup I would delete those first two BEs and then reboot.

                    The 2022 BE is the one marked for next boot though so I would not delete that.

                    If it still fails you can try activating the most recent BE (2024-04-07). That is probably the one created at the last upgrade/attempt.

                    1 Reply Last reply Reply Quote 1
                    • J
                      jlrobinson2171 @SteveITS
                      last edited by May 6, 2024, 9:38 PM

                      @SteveITS and @stephenw10

                      Thank you for your assistance. After removing just one, I was able to reboot and log back in.

                      1 Reply Last reply Reply Quote 2
                      • B
                        Barbapappa
                        last edited by Jun 12, 2024, 8:27 AM

                        Found this through Google after I ran into the same issue with my SG-2100. Managed to resolve by following the instructions here, thanks!

                        Maybe the installer should do a check for sufficient space before continuing and when necessary provide an option to cleanup old instances to prevent this happening in the future?

                        B 1 Reply Last reply Jun 12, 2024, 10:12 AM Reply Quote 0
                        • B
                          Barbapappa @Barbapappa
                          last edited by Jun 12, 2024, 10:12 AM

                          Edit: ah I see that this has already been suggested in other topics (1 2

                          1 Reply Last reply Reply Quote 0
                          • S
                            soportemk @SteveITS
                            last edited by Aug 30, 2024, 2:22 PM

                            @SteveITS Thank you very much for the response. You rescued us.

                            1 Reply Last reply Reply Quote 1
                            • F
                              FoolCoconut
                              last edited by Feb 2, 2025, 3:08 PM

                              4100 - Upgraded from 24.03 to 24.11 - whole network died, really fascinating how there's no automatic check to see if there's fucking free space before committing to an update/reboot??

                              G 1 Reply Last reply Feb 3, 2025, 2:32 PM Reply Quote 0
                              • S
                                stephenw10 Netgate Administrator
                                last edited by Feb 2, 2025, 7:24 PM

                                Were you running ZFS? If drive space was exhausted it would usually just fail to complete the update before the reboot. But in some edge case it would fail to complete the boot check and just roll back to the last good BE.

                                1 Reply Last reply Reply Quote 0
                                • G
                                  Gertjan @FoolCoconut
                                  last edited by Feb 3, 2025, 2:32 PM

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

                                  really fascinating how there's no automatic check to see if there's fucking free space before committing to an update/reboot??

                                  That's part of the admin's job :

                                  • Have a backup of (pfSense) config file ?
                                  • Disk space looks good ?
                                  • A manual reboot has been executed to handle all outstanding file system issues ?
                                    and also :
                                  • The USB key with the actual firmware is in good state ?
                                  • If something goes wrong, do I have enough spare time in front of me ?
                                  • Do I have a spare and working Internet access method ?
                                  • .....

                                  Very IMHO of course.
                                  The same list is also valid for your coffee machine, car, alarm, NAS, printer and even phone.
                                  After all, it's ok to trust yourself.
                                  Just don't trust your hardware. Things break all the time. Discovering an issue during a update/upgrade boils down to : bye bye the disk, your data, at best.

                                  If you positively checked all these items, you're good to go.
                                  Checking the list : 5 minutes or so ?
                                  And remember, Murphy's law applies : if you have checked them all, you'll probably need use them. The other way around also applies ^^

                                  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 Feb 3, 2025, 3:10 PM

                                    To be fair here pfSense's handling of filled disks has never been good. But the new ZFS upgrade process is way better in that respect.

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post
                                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                      This community forum collects and processes your personal information.
                                      consent.not_received