Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 19:21:13

Author Topic: [SOLVED ]502 Bad Gateway  (Read 10085 times)

0 Members and 1 Guest are viewing this topic.

Offline R1nk0

  • Junior Member
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
[SOLVED ]502 Bad Gateway
« on: 2015-07-03, 14:56:37 »
I am having a problem with my server getting error 502 bad gateway and when i try to get in phpmyadmin to upload sql file the admin panel just stays on loading and i cant access panel either when this happen.

this is the configuration of the server and i dont have a lot of traffic right now so i dont actually know what the problem may be. Sorry im newbie when it comes to servers :)
 A. Kloxo-MR: 6.5.0.f-2015052702

B. OS: CentOS release 6.6 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.44-2.ius.el6.x86_64
   2. PHP: php53u-5.3.29-1.ius.el6.x86_64
   3. Httpd: httpd24u-2.4.12-5.ius.el6.x86_64
   4. Lighttpd: --uninstalled--
   5. Nginx: nginx-1.9.2-1.el6.ngx.x86_64
   6. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
   7. Dns: bind-9.9.7-1.mr.el6.x86_64

D. Php-type (for Httpd/proxy): php-fpm_event

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:        129013       8856     120156          2        190       7155
   -/+ buffers/cache:       1510     127503
   Swap:         4095          0       4095

Also the problem may be in sql connection cause when all users try to connect to database than i cant access phpmyadmin
« Last Edit: 2015-07-03, 18:12:24 by R1nk0 »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 502 Bad Gateway
« Reply #1 on: 2015-07-03, 15:18:16 »
Sadly, you are still using Kloxo-MR 6.5. So, some feature and optimize not exists.

For your phpmyadmin, try move your sql file (it's must file with .sql file-extension) to /tmp and then from phpadmin try import with select 'Select from the web server upload directory /tmp/'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline R1nk0

  • Junior Member
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: 502 Bad Gateway
« Reply #2 on: 2015-07-03, 15:24:04 »
can you tell me how can i update to latest version.
I've tried this tutorial www.servermom.org/install-kloxo-mr-centos-vps/1832/ but i got conflict error with some file on 6.5

thanks for fast reply
« Last Edit: 2015-07-03, 15:25:51 by R1nk0 »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 502 Bad Gateway
« Reply #3 on: 2015-07-03, 15:32:31 »
If still not data. Better change to Kloxo-MR 7.0 with follow https://github.com/mustafaramadhan/kloxo/blob/dev/how-to-install.txt for step A + B.1.2.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline R1nk0

  • Junior Member
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: 502 Bad Gateway
« Reply #4 on: 2015-07-03, 15:46:13 »
when i run yum install kloxomr7 -y
im getting a huge list of error i have added an text attachment cause i could not post the code.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 502 Bad Gateway
« Reply #5 on: 2015-07-03, 15:56:38 »
If you install Kloxo-MR 7.0 but your server already exists Kloxo-MR 6.5, run 'yum replace kloxomr --replace-with=kloxomr7; sh /script/upcp -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline R1nk0

  • Junior Member
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: 502 Bad Gateway
« Reply #6 on: 2015-07-03, 16:21:28 »
i have updated im on version 7 now but all my domains are down i cant access any of them.
ftp works good  but domains cant be reached.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 502 Bad Gateway
« Reply #7 on: 2015-07-03, 16:23:07 »
Login to your panel. You need update php setting in server, admin and client. Also update 'switch programs' and 'webserver configure'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 502 Bad Gateway
« Reply #8 on: 2015-07-03, 16:27:31 »
For 'switch programs', choose 'none' for all and then update. After that, choose 'nginxproxy' or 'hiawathaproxy' for web, 'none' for webcache, 'nsd' for 'dns' and 'bogofilter' for 'spam'.

Also change to 'simplicity' in 'appearance'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline R1nk0

  • Junior Member
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: 502 Bad Gateway
« Reply #9 on: 2015-07-03, 16:39:06 »
after i did all that i run sh /script/restart-all and this is the error
*** Process for NSD service ***
Starting nsd:                                              [FAILED]
  - Process with 'nsd-control': transfer + write + reload + notify
    - transfer: /etc/nsd/nsd.conf:56: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.master.conf': No such file or directory
/etc/nsd/nsd.conf:57: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.slave.conf': No such file or directory
/etc/nsd/nsd.conf:58: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.reverse.conf': No such file or directory
read /etc/nsd/nsd.conf failed: 3 errors in configuration file
could not read config file
    - write: /etc/nsd/nsd.conf:56: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.master.conf': No such file or directory
/etc/nsd/nsd.conf:57: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.slave.conf': No such file or directory
/etc/nsd/nsd.conf:58: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.reverse.conf': No such file or directory
read /etc/nsd/nsd.conf failed: 3 errors in configuration file
could not read config file
    - reload: /etc/nsd/nsd.conf:56: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.master.conf': No such file or directory
/etc/nsd/nsd.conf:57: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.slave.conf': No such file or directory
/etc/nsd/nsd.conf:58: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.reverse.conf': No such file or directory
read /etc/nsd/nsd.conf failed: 3 errors in configuration file
could not read config file
    - notify: /etc/nsd/nsd.conf:56: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.master.conf': No such file or directory
/etc/nsd/nsd.conf:57: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.slave.conf': No such file or directory
/etc/nsd/nsd.conf:58: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.reverse.conf': No such file or directory
read /etc/nsd/nsd.conf failed: 3 errors in configuration file
could not read config file


*** Process for HTTPD service ***
Starting httpd: httpd.event: Syntax error on line 63 of /etc/httpd/conf/httpd.conf: Syntax error on line 90 of /etc/httpd/conf.d/~lxcenter.conf: Include directory '/opt/configs/apache/conf/domains' not found
                                                           [FAILED]
  - Process with 'apachectl': graceful
apachectl: Configuration syntax error, will not run "graceful":
httpd.event: Syntax error on line 63 of /etc/httpd/conf/httpd.conf: Syntax error on line 90 of /etc/httpd/conf.d/~lxcenter.conf: Include directory '/opt/configs/apache/conf/domains' not found
No message for graceful
-------------------------------------------------------------------

« Last Edit: 2015-07-03, 16:43:03 by R1nk0 »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 502 Bad Gateway
« Reply #10 on: 2015-07-03, 16:45:49 »
Try 'sh /script/cleanup'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline R1nk0

  • Junior Member
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: 502 Bad Gateway
« Reply #11 on: 2015-07-03, 17:05:03 »
this is the error im getting

Stopping php-fpm:                                          [FAILED]
Starting php-fpm: [03-Jul-2015 16:08:35] ERROR: An another FPM instance seems to already listen on /opt/configs/php-fpm/sock/admin.sock
[03-Jul-2015 16:08:35] ERROR: FPM initialization failed
                                                           [FAILED]

Offline R1nk0

  • Junior Member
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: 502 Bad Gateway
« Reply #12 on: 2015-07-03, 17:08:48 »
and this is in fpm error logs:

[03-Jul-2015 15:09:07] ERROR: unable to read what child say: Bad file descriptor (9)
[03-Jul-2015 15:09:07] ERROR: unable to read what child say: Bad file descriptor (9)
[03-Jul-2015 15:09:07] ERROR: unable to read what child say: Bad file descriptor (9)
[03-Jul-2015 15:09:07] ERROR: unable to read what child say: Bad file descriptor (9)
[03-Jul-2015 15:09:07] ERROR: unable to read what child say: Bad file descriptor (9)
[03-Jul-2015 15:09:07] ERROR: unable to read what child say: Bad file descriptor (9)
[03-Jul-2015 15:09:07] ERROR: unable to read what child say: Bad file descriptor (9)
[03-Jul-2015 15:59:16] ERROR: unable to read what child say: Bad file descriptor (9)
[03-Jul-2015 16:03:49] ERROR: An another FPM instance seems to already listen on /opt/configs/php-fpm/sock/admin.sock
[03-Jul-2015 16:03:49] ERROR: FPM initialization failed
[03-Jul-2015 16:04:48] ERROR: An another FPM instance seems to already listen on /opt/configs/php-fpm/sock/admin.sock
[03-Jul-2015 16:04:48] ERROR: FPM initialization failed
[03-Jul-2015 16:04:59] ERROR: An another FPM instance seems to already listen on /opt/configs/php-fpm/sock/admin.sock
[03-Jul-2015 16:04:59] ERROR: FPM initialization failed
[03-Jul-2015 16:05:56] ERROR: An another FPM instance seems to already listen on /opt/configs/php-fpm/sock/admin.sock
[03-Jul-2015 16:05:56] ERROR: FPM initialization failed

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 502 Bad Gateway
« Reply #13 on: 2015-07-03, 17:16:16 »
For php-fpm issue, reboot or 'pkill -9 php-fpm; sh /script/restart-web -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline R1nk0

  • Junior Member
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: 502 Bad Gateway
« Reply #14 on: 2015-07-03, 17:30:01 »
ok now i dont have more errors after cleanup and all looks good exept i cant access my sites the page loads but when i try to login to my apps its not accepting the password it shows 500 Internal Server Error in header response
« Last Edit: 2015-07-03, 17:41:04 by R1nk0 »

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.07 seconds with 18 queries.

web stats analysis