Fatal Error Unable to create lock file: No space left on device
-
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 -
@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.
-
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.
-
@SteveITS and @stephenw10
Thank you for your assistance. After removing just one, I was able to reboot and log back in.
-
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?
-
-
@SteveITS Thank you very much for the response. You rescued us.
-
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??
-
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.
-
@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 ^^ -
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.