Upload issues with S3 - unfinished job queues, broken links ... #2521
Replies: 1 comment
-
That one will be fixed on the v6.
This will be reworked in the v6.
Seems indeed like it is to the wrong size variants. By the way, the S3 implementation has been done by @Kovah and to be brutally honest, I have 0 clue how it really works. I did try setting up an AWS S3 bucket but coulnd't get it to work. :( |
Beta Was this translation helpful? Give feedback.
-
Lychee version
v5.5.1
Which PHP version are you using?
PHP 8.3
Detailed description of the problem
Hello,
I can't get Lychee to work correctly with self-hosted S3 backend.
Issue description
When using the "Upload photos" feature in the browser, although (as per S3 logs) all uploads were successfull, and all objects actually uploaded to the bucket (as per
rclone ls
), I'm facing the following issues:original/...
paths. I have to use "Fix job history" to make it go away.When upload starts:
A few moments later:
Despite these, most of the time everything works alright, photos can be browsed, etc. However:
IMG_5575.JPG
andIMG_5575 (1).JPG
, etc): Some photos (always some of the duplicates) appear as black squares in gallery. The page inspector shows that theurlset
uses theAPP_URL/uploads/small/...
url, instead of usingAWS_URL
as for the working thumbnails. Moreover,find public/uploads/small/ -type f
shows no files on disk (ie. whatever was meant to be uploaded to S3, was uploaded). So, there is definitely some race condition occurring here.All these problems appear both with sqlite and mysql database backends, both with chrome and firefox. None of them seem to appear when not using S3 backend.
I'm not sure it's related, but the following errors always appear in logs, when uploading (even a single) photos:
I've inserted a log in the
readStream($path)
method, and there is indeed always a call with$path
beingnull
. Here's what gets logged during a single photo upload:Other
I have a few other minor issues / questions regarding S3 support, I'll create separate issues for them, once this is figured out (as they might be related).
S3 bucket for lychee devs
Please note that I'm willing to provide a permanent access to a S3 bucket to lychee devs for dev/testing, let me know if you're interested.
Steps to reproduce the issue
No response
Diagnostics [REQUIRED]
Browser & System [REQUIRED]
System: FreeBSD 14.0, installed from the release v5.5.1
Lychee.zip
file.Browsers: Chrome and Firefox.
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions