partkeepr / PartKeepr

Open Source Inventory Management
http://www.partkeepr.org
GNU General Public License v3.0
1.38k stars 400 forks source link

Nginx + php-fpm times out during cache warmup upgrade to 1.2.0 #873

Closed kbembedded closed 4 years ago

kbembedded commented 7 years ago

I have a FreeBSD + Nginx setup for Partkeepr (originally used apache24 before migration from a waayy earlier partkeepr version, I think 0.19?) Anyway, ran in to some resistance during the setup due to timeouts. It is a fairly slow system, however with nginx there is another timeout that needs to be modified other than the php timeout.

In the information here: https://wiki.partkeepr.org/wiki/KB00005:Web_Server_Configuration I suggest adding a line like: fastcgi_read_timeout 120; #or greater, depending. Default is 60 I believe.

No matter what you set the php timeout to, nginx as a frontend will timeout first if the php setting is a larger time. This also affects Linux systems as well, FYI.

System Information

FreeBSD 11.0-RELEASE-p9

christianlupus commented 4 years ago

I'll change it in the potential new wiki pages.

christianlupus commented 4 years ago

The temporary version is visible here. @kbembedded are you ok with the modifications?

kbembedded commented 4 years ago

I'm glad to see this project is moving forward again.

The potential wiki change looks good to me!

christianlupus commented 4 years ago

Thanks, I'll keep it then like that.