this post was submitted on 01 Oct 2025
625 points (99.4% liked)
Programmer Humor
26673 readers
1758 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I oversimplified it but the actual process was to zip files to send to an FTP server
The cron zipped the files to send in the same directory as the zipped files, then sent the zip, then deleted the zip
Looks fine, right? But what if the FTP server is slow and uploading take more time than the hourly cron dispatch? You now have a second script that zip all the folder, with the previous zip file, which will slow down the upload, etc...
I believe may have been started by an FTP upload erroring out and forcing an early return without having a cleanup, and progressively got worse
... I suppose this happened. The logs were actually broken and didn't actually add the
message
part of the error object, and only logging the memory address to it