Announcement

#1 2021-09-25 01:07:20

Soldierbane
Member
2021-09-23
2

504 Errors

Hello,

I seem to be getting 504 errors every time I try to import from tools > Synchronize. All images seem to get added, but I end up with a big error saying "Some checksums are missing". When I try to compute checksums under batch manager I end up getting a 504 error there as well.

I'm also getting image thumbnail issues as described in my other thread here incase that plays into it at all: https://piwigo.org/forum/viewtopic.php?id=31481

Environment:
Piwigo 11.5.0 Check for upgrade
Operating system: Linux
PHP: 7.4.23 (Show info) [2021-09-22 21:59:25]
MySQL: 5.5.5-10.5.12-MariaDB-log [2021-09-22 21:59:25]
Graphics Library: ImageMagick 7.0.11-13

Offline

 

#2 2021-09-25 10:39:57

erAck
Only trying to help
2015-09-06
2026

Re: 504 Errors

HTTP code 504 is the Gateway Timeout, one of the machines involved with the request didn't answer in time. Might be a wrong or insufficient proxy configuration or a network routing problem. Check your server's error log(s) and talk to your hosting provider.


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

Offline

 

#3 2021-09-29 14:22:05

ibarot
Member
2021-09-18
5

Re: 504 Errors

Hi,
I have selfhosted piwigo on raspi4 using docker. I too faced this issue (after I installed videojs plugin - not sure this is relevant). But I somewhat resolved it by increasing timeout values in following files. I say somewhat because it still gives me 504 errors but not always as before.

Note : I am not an expert in PHP or webadmin but found some info through net. Kindly check if it works for you. If not, maybe someone else can help.

File :
nginx/site-confs/default
add fastcgi_read_timeout 300; in location section. E.g. :
eg.
    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        # With php5-cgi alone:
        fastcgi_pass 127.0.0.1:9000;
        # With php5-fpm:
        #fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        fastcgi_read_timeout 300;
        include /etc/nginx/fastcgi_params;

    }

File : /etc/php7/php-fpm.d/www.conf
added line : request_terminate_timeout = 300

Also in :
File : /etc/nginx/nginx.conf
Add following in http{..} section

http {
    #...
        fastcgi_read_timeout 300;
    #...

restarted the containers and thats it.

Offline

 

Board footer

Powered by FluxBB

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