Jump to content
Froxlor Forum
  • 0

VPS reboot > 502 Bad Gateway


Davlyin Lafitte

Question

Posted

Hello,

 

While I finally got everything working correctly, I rebooted the VPS with the following command: "sudo reboot". But now I'm having an another frustrating issue as I can't access the C.P. anymore "502 Bad Gateway". I've tried to troubleshooting this issue for 2 hours now, with various commands.. I've tried to understand some German posts here without success.

/etc/init.d/php5-fpm start
/usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php --force
/etc/init.d/nginx restart

6 answers to this question

Recommended Posts

Posted

I actually installed PHP-FPM since I've been following a tutorial online, I wasn't aware this was installed on my machine actually until now as weird as it sounds. I didn't follow the following: http://redmine.froxlor.org/projects/froxlor/wiki/HandbookNginx_phpfpm and I simply guess that this is the reason I'm having an error after the reboot. Is that more or less correct ? 

 

After re-installing and following the handbook that covers php-fpm, I'm not having any issues anymore.

 

Sorry for the inconvenience.  

Posted
/var/log/php5-fpm.log
[11-Mar-2015 09:41:39] NOTICE: Finishing ...
[11-Mar-2015 09:41:39] NOTICE: exiting, bye-bye!
[11-Mar-2015 09:41:39] NOTICE: fpm is running, pid 3117
[11-Mar-2015 09:41:39] NOTICE: ready to handle connections
[11-Mar-2015 09:49:22] NOTICE: Terminating ...
[11-Mar-2015 09:49:22] NOTICE: exiting, bye-bye!
[11-Mar-2015 09:49:43] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful

[11-Mar-2015 09:49:43] NOTICE: fpm is running, pid 2575
[11-Mar-2015 09:49:43] NOTICE: ready to handle connections
[11-Mar-2015 09:54:57] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful

[11-Mar-2015 10:22:36] NOTICE: Finishing ...
[11-Mar-2015 10:22:36] NOTICE: exiting, bye-bye!
[11-Mar-2015 10:22:36] NOTICE: fpm is running, pid 3040
[11-Mar-2015 10:22:36] NOTICE: ready to handle connections
[11-Mar-2015 10:22:47] NOTICE: Finishing ...
[11-Mar-2015 10:22:47] NOTICE: exiting, bye-bye!
[11-Mar-2015 10:22:47] NOTICE: fpm is running, pid 3075
[11-Mar-2015 10:22:47] NOTICE: ready to handle connections
/var/log/nginx/error.log
2015/03/11 10:14:06 [error] 2894#0: *28 connect() failed (111: Connection refused) while connecting to upstream, client: 83.134.148.97, server: ontweerp.com, request: "GET /froxlor/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:8888", host: "81.4.125.219"
2015/03/11 10:22:40 [error] 2894#0: *31 connect() failed (111: Connection refused) while connecting to upstream, client: 83.134.148.97, server: ontweerp.com, request: "GET /froxlor/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:8888", host: "81.4.125.219"
2015/03/11 10:22:43 [error] 2894#0: *31 connect() failed (111: Connection refused) while connecting to upstream, client: 83.134.148.97, server: ontweerp.com, request: "GET /froxlor/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:8888", host: "81.4.125.219"
2015/03/11 10:22:48 [error] 2894#0: *31 connect() failed (111: Connection refused) while connecting to upstream, client: 83.134.148.97, server: ontweerp.com, request: "GET /froxlor/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:8888", host: "81.4.125.219"

Is there any specific log files I should upload ? 

 

Thank you.

Posted

You are using tcp connection, froxlors implementation of php-fpm uses sockets. are you not using php-fpm? Did you forget to enable it in the setting?

Posted

are you not using php-fpm? Did you forget to enable it in the setting?

 

I didn't anticipate the fact that  it would have such effect "simply" after a reboot, is there a way to fix this via a config file ? Or should I re-install everything for the fourth time ?  ^_^ (I don't mind as this is for me an excellent exercise). 

 

appreciated.

 

 

Sorry: If you now chose to use PHP via FCGID or FPM, then you should also read our fcgid/php-fpm handbooks: http://redmine.froxlor.org/projects/froxlor/wiki/#3-Different-PHP-interfaces-optional

 

(The (LEMP) Stack on Debian 7 tutorial from digitalocean makes you install php-fpm..)

Posted

This is in no way an answer to my questions...sorry, this makes helping really hard. 

 

You need to know what you are using and what you've setup...a reboot has nothing to do with that.

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...