Re: Unsure if it's a bug?
Reply #17 –
OK who's ready for a test ...
Replace your current file in the subs directory with this one and lets see what happens.
The previous resize code was triggered during the ulattach operation, that is the action that creates the icon/thumb images shown in the post attachment area. This update skips that action and should only run when the user actually posts. So if we did have a race condition or some file lock contention, then this should fix that. hopes
Testing will tell !
Re: Unsure if it's a bug?
Reply #20 –
A few days have passed while a few dozen images have been uploaded. So far there are no related errors in the log, and no reports of failed uploads. Seems logical the fix is good! Thanks again Spuds!
Re: Unsure if it's a bug?
Reply #21 –
Great to hear
I've also been beating on it with multiple large (10mb) files and only had a single hit in the error log, so I feel my assumption about what was occurring was correct. I intend to do another look at exactly where the absolute best place is to run (meaning on the first attach action or the actual post action) but for now at least we have a direction to refine.
Thanks again for the testing!
Re: Unsure if it's a bug?
Reply #22 –
This thread deserves an update. Several months have floated by. The world has been a rollercoaster. Our lives have been impacted by a virus "they" say originated from an old bat, though it's unclear how Nancy Pelosi could be involved.
Spuds, your work definitely improved the situation. However, the error still occurred on occasion. Strangely, it seemed most prominent when attaching smaller file size images. Odd for sure. And zero predictability regarding the phenomenon.
Then through unrelated tinkering I discovered the likely root cause. nginx directio does not play well with inlining attachments. If you use nginx it is probably best to turn directio OFF. At least that is the current supporting information. Time will tell.....
.....if anyone has other advice let's hear it!