Dan Lyke on Nostr: npub1up6yx…n5rqj a clue: Even if you delete a log file, if the application that was ...
npub1up6yx0k9a2qt4s26rzxd38nkmd2tjqqv46l7z57z3m4xnstgenwsjn5rqj (npub1up6…5rqj) a clue: Even if you delete a log file, if the application that was writing that log file still had it open, it's still occupying space on disk.
In fact, a handy trick for temp files where we needed to pass around handles rather than filenames used to be to create a file and instantly delete it (so no one else could see it), but keep it open to read and write from.
So if you're deleting logs but not restarting the server writing to it, that could be related...
Published at
2023-12-04 23:46:51Event JSON
{
"id": "f176d49e9412cdf2a8dfee82fbcf333e1b217f782173da89563b714c7e951f56",
"pubkey": "3ad806433f1d09d2643dd8bf4162890270449539839aab7b9da215e1d5681bac",
"created_at": 1701733611,
"kind": 1,
"tags": [
[
"p",
"e074433ec5ea80bac15a188cd89e76db54b9000caebfe153c28eea69c168ccdd",
"wss://relay.mostr.pub"
],
[
"p",
"ab85c102b963f9234bd517838bed2664d4df6ca1ea74c97549e1bce8ac322cc0",
"wss://relay.mostr.pub"
],
[
"e",
"3695ad6138706b8fc07798e74b05ea12a1ad7c35668862a37e06d175557f2e08",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://researchbuzz.masto.host/users/danlyke/statuses/111524813987980091",
"activitypub"
]
],
"content": "nostr:npub1up6yx0k9a2qt4s26rzxd38nkmd2tjqqv46l7z57z3m4xnstgenwsjn5rqj a clue: Even if you delete a log file, if the application that was writing that log file still had it open, it's still occupying space on disk.\n\nIn fact, a handy trick for temp files where we needed to pass around handles rather than filenames used to be to create a file and instantly delete it (so no one else could see it), but keep it open to read and write from.\n\nSo if you're deleting logs but not restarting the server writing to it, that could be related...",
"sig": "f2c43fb1ee4a03c0b7721c61747ac3bb379550b3eed92f1e1a7bfe83845ea2bbb97c6ae3e9db0ee53db7baaa0f7aa68743b115b4fcc7d5d4b87c91ff06888a37"
}