Announcement

#1 2023-01-31 00:48:11

Ant8751
Member
2023-01-31
2

Uploading Video causes Piwigo to stop responding

Hi,

I've been running Piwigo on an Asustor NAS and have got it running fairly well on a Docker Image.
However i run into an issue when uploading video (using videojs), after a while the piwigo website stops functioning and gives me 504 errors, and the docker logs displays "pm.max_children was reached, consider raising it".
I think i'm running out of resources for Piwigo but i am unsure how to fix this as their is still memory and cpu that is not being used.

Additionally, the error log at /congif/log/ngnix/error.log is filled with:
254#254: *459 upstream timed out (110: Operation timed out) while sending request to upstream, client: xxxxxx, server: _, request: "POST /ws.php?format=json&method=pwg.images.uploadAsync HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "xxxxxx"

Any sort of help with be appreciated as i'm very new to all this.

Thanks

Piwigo 13.4.0
Operating system: Linux
PHP: 8.0.26
MySQL: 10.7.3-MariaDB
Graphics Library: ImageMagick 7.1.0-50

Offline

 

#2 2023-01-31 01:24:30

erAck
Only trying to help
2015-09-06
2023

Re: Uploading Video causes Piwigo to stop responding

It's likely PHP FastCGI Process Manager (FPM) configuration, it doesn't handle the amount of requests.
Consider following the advise.. "pm.max_children was reached, consider raising it".
Or raise pm.max_requests value so children are created later.
Or check the process manager strategy how it controls child processes if that actually fits your system.
Or don't use FPM at all if that's possible on your NAS/Docker system.

See also
https://www.php.net/manual/en/install.fpm.php
https://www.php.net/manual/en/install.f … ration.php


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2023-01-31 03:50:27

Ant8751
Member
2023-01-31
2

Re: Uploading Video causes Piwigo to stop responding

I've increased pm.max_children to 10 and uncommented pm.max_requests = 500.
This fixed the issue of piwigo being completely unresponsive until a restart.

However now when i upload (from the IOS app) photos and videos will randomly "failed to retrieve photo"
Additionally i'm getting a lot of:
[31-Jan-2023 13:40:31] WARNING: [pool www] child 281 exited on signal 9 (SIGKILL) after 121.527602 seconds from start

[31-Jan-2023 13:40:57] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 0 idle, and 6 total children

I'll try increasing the other pm settings but my NAS is also getting close to 100% cpu, since its the asustor AS1102T with only 1gb of memory, would i be better off getting a more powerful server to run piwigo instead of fiddling with settings to force it to work?

Thanks

Offline

 

#4 2023-01-31 20:47:48

erAck
Only trying to help
2015-09-06
2023

Re: Uploading Video causes Piwigo to stop responding

¯\_(ツ)_/¯
Probably yes..


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact