502 bad gateway

Discussion in 'Installation/Configuration' started by Aerobaticrug, Jul 18, 2014.

  1. Aerobaticrug

    Aerobaticrug New Member

    Looking for some help, all of my sites on my vps are returning a 502 bad gateway.

    It's ispconfig latest version build on ubuntu 14.04 with php 5.5/nginx/php-fpm following the perfect server tutorial. Everything was working fine up until a day ago.

    Looked at the php-fpm log and its empty. Listing services shows the php-fpm as not running. When I try to start it it says unknown process.

    Not sure what to do from here, no one has been anywhere near the server either.

    Really appreciate some advice.
     
  2. srijan

    srijan New Member HowtoForge Supporter

    Please paste the output of

     
  3. Aerobaticrug

    Aerobaticrug New Member

    2014/07/16 23:35:11 [error] 2408#0: *150129 directory index of "/var/www/apps/" is forbidden, client: 162.13.6.224, server: _, r$
    2014/07/16 23:35:11 [error] 2408#0: *150133 open() "/usr/local/ispconfig/interface/web/mysqldumper" failed (2: No such file or d$
    2014/07/16 23:35:12 [error] 2408#0: *150137 open() "/usr/local/ispconfig/interface/web/MySQLDumper" failed (2: No such file or d$
    2014/07/16 23:35:14 [error] 2408#0: *150143 open() "/usr/local/ispconfig/interface/web/mysql" failed (2: No such file or directo$
    2014/07/16 23:35:14 [error] 2408#0: *150148 open() "/usr/local/ispconfig/interface/web/sql" failed (2: No such file or directory$
    2014/07/16 23:35:15 [error] 2408#0: *150151 open() "/usr/local/ispconfig/interface/web/phpmyadmin" failed (2: No such file or di$
    2014/07/16 23:35:16 [error] 2406#0: *150154 open() "/usr/local/ispconfig/interface/web/phpMyAdmin" failed (2: No such file or di$
    2014/07/16 23:35:17 [error] 2406#0: *150158 open() "/usr/local/ispconfig/interface/web/mysql" failed (2: No such file or directo$
    2014/07/16 23:35:18 [error] 2405#0: *150161 open() "/usr/local/ispconfig/interface/web/sql" failed (2: No such file or directory$
    2014/07/16 23:35:18 [error] 2405#0: *150164 open() "/usr/local/ispconfig/interface/web/myadmin" failed (2: No such file or direc$
    2014/07/16 23:35:19 [error] 2405#0: *150166 open() "/usr/local/ispconfig/interface/web/phpMyAdmin-4.2.1-all-languages" failed (2$
    2014/07/16 23:35:21 [error] 2405#0: *150170 open() "/usr/local/ispconfig/interface/web/phpMyAdmin-4.2.1-english" failed (2: No s$
    2014/07/17 12:02:03 [crit] 2589#0: *47 connect() to unix:/var/lib/php5-fpm/ispconfig.sock failed (2: No such file or directory) $
    2014/07/17 12:07:15 [crit] 2589#0: *62 connect() to unix:/var/lib/php5-fpm/ispconfig.sock failed (2: No such file or directory) $
    2014/07/17 22:35:06 [emerg] 2545#0: "fastcgi_pass" directive is not allowed here in /etc/nginx/sites-enabled/default:61
    2014/07/17 22:38:57 [emerg] 3897#0: "fastcgi_pass" directive is not allowed here in /etc/nginx/sites-enabled/default:61
    2014/07/17 22:39:19 [emerg] 3973#0: "fastcgi_pass" directive is not allowed here in /etc/nginx/sites-enabled/default:61
    2014/07/17 22:42:27 [emerg] 7341#0: "fastcgi_pass" directive is not allowed here in /etc/nginx/sites-enabled/default:61
    2014/07/17 22:42:33 [emerg] 7359#0: "fastcgi_pass" directive is not allowed here in /etc/nginx/sites-enabled/default:61

    2014/07/18 03:39:54 [error] 2713#0: *495 open() "/usr/local/ispconfig/interface/web/mysqldumper" failed (2: No such file or dire$
    2014/07/18 03:39:55 [error] 2713#0: *497 open() "/usr/local/ispconfig/interface/web/MySQLDumper" failed (2: No such file or dire$
    2014/07/18 03:39:55 [error] 2713#0: *499 open() "/usr/local/ispconfig/interface/web/mysql" failed (2: No such file or directory)$
    2014/07/18 03:39:56 [error] 2713#0: *501 open() "/usr/local/ispconfig/interface/web/sql" failed (2: No such file or directory), $
    2014/07/18 03:39:57 [error] 2713#0: *503 open() "/usr/local/ispconfig/interface/web/cgi-bin/php" failed (2: No such file or dire$
    2014/07/18 03:39:58 [error] 2713#0: *505 open() "/usr/local/ispconfig/interface/web/cgi-bin/php5" failed (2: No such file or dir$
    2014/07/18 03:39:58 [error] 2713#0: *507 open() "/usr/local/ispconfig/interface/web/phpmyadmin" failed (2: No such file or direc$
    2014/07/18 03:39:59 [error] 2713#0: *509 open() "/usr/local/ispconfig/interface/web/phpMyAdmin" failed (2: No such file or direc$
    2014/07/18 03:40:00 [error] 2713#0: *511 open() "/usr/local/ispconfig/interface/web/mysql" failed (2: No such file or directory)$
    2014/07/18 03:40:01 [error] 2713#0: *514 open() "/usr/local/ispconfig/interface/web/sql" failed (2: No such file or directory), $
    2014/07/18 03:40:02 [error] 2712#0: *516 open() "/usr/local/ispconfig/interface/web/myadmin" failed (2: No such file or director$
    2014/07/18 03:40:03 [crit] 2712#0: *518 connect() to unix:/var/lib/php5-fpm/ispconfig.sock failed (2: No such file or directory)$
    2014/07/18 03:40:07 [error] 2712#0: *533 open() "/usr/local/ispconfig/interface/web/webdav" failed (2: No such file or directory$
    2014/07/18 03:40:08 [crit] 2712#0: *535 connect() to unix:/var/lib/php5-fpm/ispconfig.sock failed (2: No such file or directory)$
     
  4. Aerobaticrug

    Aerobaticrug New Member

    Would really appreciate some advice on this one if anyone knows! All sites down for 4 days now :eek:
     
  5. Aerobaticrug

    Aerobaticrug New Member

    Does anyone have any thoughts on this? I have 10 sites down and have no idea what to do next!
     
  6. dcurrey

    dcurrey Member

    See if you have any bad php-fpm processing running that is preventing php5-fpm from starting.

    You will need to do
    ps ax | grep php-fpm

    If so kill them off then start php5-fpm
    sudo service php5-fpm start

    Second it almost looks like you copy of ispconfig is hosed with all the "No such file or directory" Look for instructions on how to properly reinstall it.

    Sorry can't be more help than that.
     

Share This Page