9
submitted 3 days ago* (last edited 3 days ago) by activistPnk@slrpnk.net to c/bugs@sopuli.xyz

SDF went down over a month ago because they ran out of disk space. I’m calling this a software security bug for needless loss of availability. It should have only been a partial loss of availability.

What should have happened

When the server detects disk space getting low, it should not just crap out. It should switch into a read-only mode. In read-only mode, users can still login and access existing content. New posts, comments, and edits are disabled in this state. The node should signal to other fedi nodes that connect that it is in read-only mode.

Perhaps most importantly, users could then be informed /in band/ that the server still lives. We often see fedi nodes simply vanish out of the pure blue and users are at a spontaneous loss of data and relationships. Logging into a read-only server would settle some nerves.. keep ppls blood pressure down.

top 7 comments
sorted by: hot top controversial new old
[-] Shadow@lemmy.ca 3 points 3 days ago

Lemmy itself doesn't use disk storage, it just writes to a db. If the disk is full then that's a postgres issue, not a lemmy one. Lemmy might not even know the disk is full if the db is on a different machine.

[-] activistPnk@slrpnk.net 2 points 2 days ago* (last edited 2 days ago)

Interesting that Lemmy server has no disk access (that in effect, it just uses inter-process communication). Apparently it is possible to query a DB for the available remaining space for wherever that DB lives.

So IMO it is still a Lemmy issue. In the event that Postgres cannot handle the query (which I have not checked), it is still a Lemmy issue because Lemmy should not choose a DB that cannot provide storage info.

[-] Shadow@lemmy.ca 3 points 2 days ago

That's a Microsoft sql server command....

[-] activistPnk@slrpnk.net 1 points 1 day ago

Oof.. well, hopefully that was just a bad example. Hopefully a FOSS SQL server exists with the same capability.

[-] femtek 2 points 3 days ago

Depends on dependencies, I'm not sure of how lemmy is setup but even in read only mode you need to write logs and auth calls.

[-] activistPnk@slrpnk.net 2 points 2 days ago

That’s not an obstacle. It’s a matter of where to draw the line for switching to read-only mode. A good design would obviously switch to read-only (w.r.t. user ops) when there is still plenty of space for logs.

[-] femtek 1 points 2 days ago

True, I'm a little bitter from coming into companies that do cloud just because and get themselves into issues like having one big partition that fills up and refuses to boot.

this post was submitted on 09 May 2026
9 points (100.0% liked)

Bug reports 🐞on🐛any🦠software🪲

148 readers
1 users here now

When a bug tracker is inside the exclusive walled-gardens of MS Github or Gitlab.com, and you cannot or will not enter, where do you file your bug report? Here, of course. This is a refuge where you can report bugs that are otherwise unreportable due to technical or ethical constraints.

⚠of course there are no guarantees it will be seen by anyone relevant. Hopefully some kind souls will volunteer to proxy the reports.

related communities in the decentralised free world:

!broken_software@lemmings.world

founded 4 years ago
MODERATORS