Script URL: https://www.hesk.com/download.php
Version of script: 2.8.2
Hosting company: private
URL of phpinfo.php: private
URL of session_test.php: private
What terms did you try when SEARCHING for a solution: 502 Bad Gateway in Hesk using NGINX
Write your message below:
I install HESK version 2.8.2 using NGINX in my company. Everything is OK, but there is a problem. When I click Export Ticket button, there is error 502 Bad Gateway and I check in error.log there is notification:
2019/01/24 18:18:56 [error] 155738#0: *69311 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.26.28.101, server: abc.com, request: "GET /admin/export.php?w=0&time=3&datefrom=12%2F24%2F2018&dateto=01%2F24%2F2019&s0=1&s1=1&s2=1&s3=1&s4=1&s5=1&p0=1&p2=1&p1=1&p3=1&s_my=1&s_un=1&s_ot=1&sort=id&category=0&asc=1&cot=1 HTTP/1.1", upstream: "fastcgi://unix:/dev/shm/php-fcgi.sock:", host: "abc.com", referrer: "http://abc.com/admin/export.php"
2019/01/24 18:19:16 [error] 155738#0: *69315 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.26.28.101, server: abc.com, request: "GET /admin/export.php?w=0&time=3&datefrom=12%2F24%2F2018&dateto=01%2F24%2F2019&s0=1&s1=1&s2=1&s3=1&s4=1&s5=1&p0=1&p2=1&p1=1&p3=1&s_my=1&s_un=1&s_ot=1&sort=id&category=0&asc=1&cot=1 HTTP/1.1", upstream: "fastcgi://unix:/dev/shm/php-fcgi.sock:", host: "abc.com", referrer: "http://abc.com/admin/export.php"
Please help me to resolve my problem.
Error 502 Bad Gateway when push Export Ticket button
Moderator: mkoch227
-
- Posts: 1
- Joined: Thu Jan 24, 2019 10:26 am
Re: Error 502 Bad Gateway when push Export Ticket button
That's almost impossible to debug without hands-on access to the server. The error simply means NGINX is failing because PHP terminates.
I would try increasing all the limits you can think of related to PHP, like variables in php.ini (max_execution_time, memory_limit, opcache.memory_consumption , ...), in /etc/php5/fpm/pool.d/www.conf increase request_terminate_timeout , etc...
I would try increasing all the limits you can think of related to PHP, like variables in php.ini (max_execution_time, memory_limit, opcache.memory_consumption , ...), in /etc/php5/fpm/pool.d/www.conf increase request_terminate_timeout , etc...
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools