Greetings,
My new piwigo install is working fine except for two uploading-problems.
Could they be related? And how to solve?
1.
When I try to upload one or more files as admin using admin.php?page=photos_add
I get the error “HTTP-error” showing in a yellow triangle right from the uploading file.
The message below stalls at “0/5 files uploaded 94% 19 mb” but after a few minutes the pictures do appear in the chosen album.
nginx/error.log: 2022/05/27 12:55:44 [error] 383#383: *552 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 172.31.0.2, server: _, request: "POST /ws.php?method=pwg.images.upload&format=json HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "dagvandenatuurfotografie.nl", referrer: "https://dagvandenatuurfotografie.nl/admin.php?page=photos_add&album=1"
I followed jameswyper’s advice at post: 182593
and added the following code to my reverse proxy’s nginx.tmpl file
proxy_set_header X-Forwarded-Host $host;
and added the following code to my piwigo’s nginx/site-confs/default file
fastcgi_param HTTPS 'on';
without succes.
2.
When I try to upload file(s) as admin or test-user, using the community plugin
the progress bar doesn’t move at all and the button “Cancel” is not clickable. The page stays in this state and the file is never uploaded.
community plugin configuration:
every registered user Album1 high trust, 5 photo's, 50MB
php/error.log: [27-May-2022 15:02:40] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
[27-May-2022 15:16:10] NOTICE: fpm is running, pid 361
[27-May-2022 15:16:10] NOTICE: ready to handle connections
I raised pm.max_children from 5 to 20 in the file /etc/php7/php-fpm.d/www.conf without succes.
Piwigo Environment (in Dutch)
Piwigo 12.2.0 Upgradecontrole
Besturingssysteem: Linux
PHP: 7.4.26 (Toon info) [2022-05-27 15:13:18]
MySQL: 5.5.5-10.8.3-MariaDB-1:10.8.3+maria~jammy [2022-05-27 13:13:18]
Afbeeldingen-bibliotheek: ImageMagick 7.0.11-14
Cache grootte 5.46 Mo berekend 1 uur geleden Ververs
Active plugins:
Additional Pages
Admin Tools
Community
Extended Description
LocalFiles Editor
Perso Footer
PWG Stuffs
remove-contact-webmaster
Installation: I installed this piwigo with docker using mariadb:latest and lscr.io/linuxserver/piwigo
It interacts with network "proxy-tier": using jwilder/nginx-proxy as a reverse proxy and jrcs/letsencrypt-nginx-proxy-companion for SSL-certificates.
docker-compose.yml:
---
version: "2.1"
services:
mariadb:
image: mariadb:latest
container_name: mariadb
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
env_file:
- .env
volumes:
- mariadb:/var/lib/mysql
restart: always
networks:
- "mariadb"
piwigo:
image: lscr.io/linuxserver/piwigo
container_name: piwigo
environment:
PUID: 33
PGID: 33
TZ: Europe/Amsterdam
VIRTUAL_HOST: dagvandenatuurfotografie.nl,www.dagvandenatuurfotografie.nl
LETSENCRYPT_HOST: dagvandenatuurfotografie.nl,www.dagvandenatuurfotografie.nl
LETSENCRYPT_EMAIL: my@email.com
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_HOST: mariadb
env_file:
- .env
volumes:
- config:/config
- gallery:/gallery
restart: unless-stopped
networks:
- "mariadb"
- "proxy-tier"
volumes:
mariadb:
config:
gallery:
networks:
mariadb:
internal: true
proxy-tier:
external: true
Resources: My VPS has 2 vCPU and 4 GB RAM
Piwigo URL: https://dagvandenatuurfotografie.nl
Offline
Update: Today I installed from docker-image mathieuruellan/piwigo
and there I have exactly the same problems.
So now I assume it must be something with the nginx config.
Offline
For the linuxserver docker image you may have better luck asking in their (sigh) Discord or Discourse, see https://www.linuxserver.io/support
Note also that according to https://github.com/linuxserver/docker-piwigo there should be a sample
/config/nginx/site-confs
Offline
Danat wrote:
So now I assume it must be something with the nginx config.
Show us both configs:
Yours and the docker example.
Offline