Debian 10 / Nginx: Random 502 bad gateway on intensive script

RR600

Verified User
Joined
Dec 26, 2019
Messages
58
It happens randomly (I'd say 40% of the time) on a script that create DA accounts through the Omines API.
Besides the account creation I'm doing several other tasks like extracting a tarball with the site skeleton (100MB), creating a database, importing the dump, creating an email account and others.

root@server:~# tail /var/log/nginx/domains/domain.com.error.log
2020/07/14 09:02:02 [error] 29016#0: *70 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 181.xxx.xxx.xx, server: domain.com, request: "POST /admin/services/insert HTTP/2.0", upstream: "fastcgi://unix:/usr/local/php73/sockets/domain.sock:", host: "domain.com", referrer: "https://domain.com/admin/services/create"

I imagine it comes from php-fpm but I can't see the error logged anywhere.

I already implemented what suggested here:

didn't help.

Ideas?
 
Back
Top