Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
magostinelli opened this issue Oct 7, 2023 · 4 comments

Comments

@magostinelli
Copy link

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

  • Hardware: VPS bought online
  • YunoHost version: 11.2.4
  • I have access to my server: Through SSH and through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: 27.0.2~ynh1

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
Copy link
Author

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
Copy link
Member

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
Copy link

DeMiro5001 commented Nov 2, 2023

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

@magostinelli
Copy link
Author

magostinelli commented Nov 19, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants