Upload/analize fails without any reason #74
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: aheathershaw/blue-twilight#74
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
LNT00:
Is there a log file for failed uploads/analysis? I get random failures for no reason, on retry the files are uploaded and analyzed correctly.
I think this is related to the issue seen in your log files saying “mkdir: file exists”. Before the app calls mkdir it checks if the folder already exists and doesn’t try and create it if it does.
The fact mkdir is failing even though it shouldn’t be executed suggests a possible race condition with multiple uploads, explaining why it works if you try again later.
On my systems only errors are thrown however it looks like warnings are being thrown on your hosting causing the script to fail.
Can you please amend the
app\Helpers\FileHelper.php
file and replace “mkdir” with “@mkdir” which should suppress the warning and see if you still get failures?LNT00:
No, it's not related to that issue. I uploaded multiple files and some failed, without any warning. I will post here the next error i get. When i retried only the failed photos, it worked correctly.
I couldn't find a specific case, I've uploaded file counts from 2 to 3600+ at one time, and nothing similar happened to get an idea why sometimes fail occurs.
Please try my suggested fix - this would cause random failures that seem to work fine the next time.
If there was an issue with a specific photo it would fail consistently.
I’ve uploaded 1,000 photos at a time myself and never had an issue because I have PHP warnings turned off.
LNT00:
Sure, i already did that.
I've added my suggested workaround to the 2.1.1 release. Please can you try this release once it's published (in the next couple of days) and see if you're still having the issue?
Migrated from https://github.com/andysh-uk/blue-twilight/issues/74