YunoHost-Apps / nextcloud_ynh

Nextcloud package for YunoHost
https://nextcloud.com/
GNU Affero General Public License v3.0
149 stars 64 forks source link

upstream timed out (110: Connection timed out) while reading response header from upstream #605

Open magostinelli opened 1 year ago

magostinelli commented 1 year ago

Describe the bug

After some time while service running fine, it stopped working, some timeout errors are inside nginx logs.

If you restart the php8.1-fpm.service it works again, but after some other time it freezes again.

Context

Steps to reproduce

Start the service and wait until it freeze.

Expected behavior

Nextcloud running without problems.

Logs

2023/10/07 08:45:44 [error] 742812#742812: *11722 upstream timed out (110: Connection timed out) while reading response header from upstream, client: x.x.x.x, server: yyyy.zzz, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php8.1-fpm-nextcloud.sock", host: "yyyy.zzz"

magostinelli commented 1 year ago

I updated to last version (released after this issue), now I saw that php fpm is upgraded to 8.2, but I have the same error.

ericgaspar commented 1 year ago

Not sure #615 will fix the issue but you can test with

sudo yunohost app upgrade nextcloud -u https://github.com/YunoHost-Apps/nextcloud_ynh/tree/testing
DeMiro5001 commented 1 year ago

I've also faced timeout that I fixed with a higher memory footprint (100mb) in php-fpm configuration (control panel in the webadmin).

magostinelli commented 1 year ago

In my /etc/php/8.2/fpm/pool.d/nextcloud.conf i have: php_admin_value[memory_limit] = 512M php_value[opcache.memory_consumption]=128

The problem is still here.