Closed Gendra13 closed 7 months ago
humm probably hitting the throttle.
Can you try to change line 69 from config/livewire.php from :
'middleware' => null, // Example: 'throttle:5,1' | Default: 'throttle:60,1'
to
'middleware' => 'throttle:10000,1', // Allow 10000 uploads per user per minute.
Can you try to change line 69 from config/livewire.php from :
'middleware' => null, // Example: 'throttle:5,1' | Default: 'throttle:60,1'
to
'middleware' => 'throttle:10000,1', // Allow 10000 uploads per user per minute.
👍 Yes, thank you. That seems to solve the issue. I ran a test with 500 images (2,2 GiB) and everything worked well without an error.
Fix on its way to master.
Sadly i have this problem now with 20 photos. It just fails and floooods the browser console with this until page reload:
Update: I managed to place invalid values for
php_admin_value[post_max_size]
php_admin_value[upload_max_filesize]
which did not cause php (or lychee for that matter) to complain, but triggered this issue. Sorry about the noise.
Detailed description of the problem [REQUIRED]
(This bug may be related to #2129)
When I try to upload a lot of images in a row (~100, size 400 MiB), the upload starts fine, but after ~ 60 images I get a lot of failed uploads. The tracelog shows a lot of http 429 errors popping up and in the logs I can find the message
However, then problem only exists with livewire enabled, when I switch back to
LIVEWIRE_ENABLED=false
im my .env then the upload is working flawlessly.My php settings are
and my nginx is set to
so those should not be a problem (and those very settings are working with livewire disabled). Also the error occours regardless if
use_job_queues
is set 1 or 0.Steps to reproduce the issue
Steps to reproduce the behavior:
Screenshots Error message![upload](https://github.com/LycheeOrg/Lychee/assets/52973190/c9f8d57f-7639-4f7c-9227-f253f15dae28)
Logfile entries![log](https://github.com/LycheeOrg/Lychee/assets/52973190/923ec5a8-5066-4a8f-bd2b-504f57e7c8c4)
Output of the diagnostics [REQUIRED]
Browser and system
Server: Ubuntu 22.04 LTS with nginx 1.18.0 (no reverse proxy) Client: Firefox 121 (64-bit) on Windows 10