[ASTPPCOM-544] After upgrade to 4.0.1, page showing 502 Bad Gateway Created: 14/Aug/19  Updated: 26/Oct/19  Resolved: 30/Aug/19

Status: Done
Project: ASTPP Community
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task
Reporter: watoan Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Before upgrade everything was fine.

Followed the guide in https://github.com/iNextrix/ASTPP/blob/v4.0.1/doc/Installation/upgrade.rst

Then open the main page https://1.2.3.4/ it is showing 502 Bad Gateway

in the log /var/log/nginx/astpp_error.log
2019/08/14 06:46:12 [error] 18287#18287: *10 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 7.8.9.0, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm.sock:", host: "1.2.3.4"

What might be the problem? and where should I check please?

Thanks.



 Comments   
Comment by bunscc [ 28/Aug/19 ]

Same problem here ... any solutions ?

Comment by Samir Doshi [ 28/Aug/19 ]

Hi Guys,

Please change ENVIRONMENT from production to development in index.php file of web directory and run the url.
You should get logs in nginx error log. Please capture them and share.
https://github.com/iNextrix/ASTPP/blob/v4.0.1/web_interface/astpp/index.php#L22

Comment by bunscc [ 30/Aug/19 ]

Thx you very much. There was a syntax error due to "(" in encryption key.

Generated at Sat Feb 10 07:18:08 CET 2024 using Jira 8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a.