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-29, 17:09:27

Author Topic: 502 Bad Gateway  (Read 8435 times)

0 Members and 1 Guest are viewing this topic.

Offline marcus5914

  • Valuable Member
  • *
  • Posts: 59
  • Karma: +0/-0
    • View Profile
502 Bad Gateway
« on: 2013-09-09, 18:49:08 »
Every Day I got this error

Code: [Select]
[root@vik ~]# /script/restart-web
Stopping nginx:.                                           [  OK  ]
Starting nginx:                                            [  OK  ]
Stopping php-fpm:                                          [FAILED]
Starting php-fpm: [17-Aug-2013 08:33:35] ERROR: An another FPM instance seems to already listen on /home/php-fpm/sock/apache.sock
[17-Aug-2013 08:33:35] ERROR: FPM initialization failed
                                                           [FAILED]

and Bad thing about it it is happen when i am sleeping . and i reboot my server after 5 or 6 h downtime . please tell me a perfect solution for this


Code: [Select]
A. Kloxo-MR: 6.5.0.f-2013090201

B. OS: CentOS release 5.9 (Final) i686

C. Apps:
   1. MySQL: mysql-5.0.95-5.el5_9
   2. PHP: php53u-5.3.27-1.ius.el5
   3. Httpd: --uninstalled--
   4. Lighttpd: --uninstalled--
   5. Nginx: nginx-1.5.4-1.el5
   6. Qmail: qmail-toaster-1.03-1.3.27.mr.el5
      - with: courier-imap-toaster-4.1.2-1.3.14.mr.el5
   7. Dns: bind-9.9.3-5.P2.el5

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

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          2536        542       1993          0          0          0
   -/+ buffers/cache:        542       1993
   Swap:            0          0          0
.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 502 Bad Gateway
« Reply #1 on: 2013-09-09, 18:53:12 »
Try 'killall -9 php-fpm; sh /script/restart-web'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline marcus5914

  • Valuable Member
  • *
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: 502 Bad Gateway
« Reply #2 on: 2013-09-09, 20:37:21 »
i know that command . my question is how to prevent this error in future .
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 502 Bad Gateway
« Reply #3 on: 2013-09-09, 20:42:33 »
How often you get this issue everyday?.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline marcus5914

  • Valuable Member
  • *
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: 502 Bad Gateway
« Reply #4 on: 2013-09-09, 20:50:44 »
yes . every day . mostly at night . (IST ) . and mostly low traffic this duration .
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 502 Bad Gateway
« Reply #5 on: 2013-09-09, 21:01:38 »
Better, check php-fpm log in 'log manager' (also other logs) to find out what's happen on your server.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline marcus5914

  • Valuable Member
  • *
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: 502 Bad Gateway
« Reply #6 on: 2013-09-09, 21:08:46 »
php Slow

Code: [Select]
[08-Sep-2013 04:05:49]  [pool admin] pid 1922
script_filename = /home/admin/mediafirerepack.net/wp-cron.php
[0x086b83f0] sleep() /home/admin/mediafirerepack.net/wp-content/plugins/wp-super-cache/wp-cache.php:2937
[0xbfa1d444] wp_cron_preload_cache() unknown:0
[0x086b7f1c] call_user_func_array() /home/admin/mediafirerepack.net/wp-includes/plugin.php:487
[0x086b7930] do_action_ref_array() /home/admin/mediafirerepack.net/wp-cron.php:92

[08-Sep-2013 05:41:57]  [pool admin] pid 3479
script_filename = /home/admin/mediafirerepack.net/wp-cron.php
[0x09ce0168] sleep() /home/admin/mediafirerepack.net/wp-content/plugins/wp-super-cache/wp-cache.php:2937
[0xbfcacb34] wp_cron_preload_cache() unknown:0
[0x09cdfc94] call_user_func_array() /home/admin/mediafirerepack.net/wp-includes/plugin.php:487
[0x09cdf6a8] do_action_ref_array() /home/admin/mediafirerepack.net/wp-cron.php:92

[08-Sep-2013 05:46:17]  [pool admin] pid 3709
script_filename = /home/admin/mediafirerepack.net/wp-cron.php
[0x0a4ecdd8] sleep() /home/admin/mediafirerepack.net/wp-content/plugins/wp-super-cache/wp-cache.php:2937
[0xbfcacb34] wp_cron_preload_cache() unknown:0
[0x0a4ec904] call_user_func_array() /home/admin/mediafirerepack.net/wp-includes/plugin.php:487
[0x0a4ec318] do_action_ref_array() /home/admin/mediafirerepack.net/wp-cron.php:92

[08-Sep-2013 08:11:46]  [pool admin] pid 17949
script_filename = /home/admin/mediafirerepack.net/wp-admin/upload.php
[0x08f83034] exec() /home/admin/mediafirerepack.net/wp-content/plugins/cw-image-optimizer/cw-image-optimizer.php:220
[0x08f82b2c] cw_image_optimizer() /home/admin/mediafirerepack.net/wp-content/plugins/cw-image-optimizer/cw-image-optimizer.php:268
[0x08f827a4] cw_image_optimizer_resize_from_meta_data() /home/admin/mediafirerepack.net/wp-content/plugins/cw-image-optimizer/bulk.php:32
[0x08f82624] +++ dump failed

[08-Sep-2013 10:47:17]  [pool admin] pid 13697
script_filename = /home/admin/mediafirerepack.net/wp-cron.php
[0x0907fde8] sleep() /home/admin/mediafirerepack.net/wp-content/plugins/wp-super-cache/wp-cache.php:2937
[0xbfce2824] wp_cron_preload_cache() unknown:0
[0x0907f914] call_user_func_array() /home/admin/mediafirerepack.net/wp-includes/plugin.php:487
[0x0907f328] do_action_ref_array() /home/admin/mediafirerepack.net/wp-cron.php:92

[08-Sep-2013 11:47:48]  [pool admin] pid 17630
script_filename = /home/admin/mediafirerepack.net/wp-cron.php
[0x09758738] sleep() /home/admin/mediafirerepack.net/wp-content/plugins/wp-super-cache/wp-cache.php:2937
[0xbfce2824] wp_cron_preload_cache() unknown:0
[0x09758264] call_user_func_array() /home/admin/mediafirerepack.net/wp-includes/plugin.php:487
[0x09757c78] do_action_ref_array() /home/admin/mediafirerepack.net/wp-cron.php:92

[08-Sep-2013 12:51:40]  [pool admin] pid 21718
script_filename = /home/admin/mediafirerepack.net/wp-cron.php
[0x08f7f3f0] sleep() /home/admin/mediafirerepack.net/wp-content/plugins/wp-super-cache/wp-cache.php:2937
[0xbfce2824] wp_cron_preload_cache() unknown:0
[0x08f7ef1c] call_user_func_array() /home/admin/mediafirerepack.net/wp-includes/plugin.php:487
[0x08f7e930] do_action_ref_array() /home/admin/mediafirerepack.net/wp-cron.php:92

[08-Sep-2013 17:53:16]  [pool admin] pid 3785
script_filename = /home/admin/mediafirerepack.net/wp-cron.php
[0x0a55a078] sleep() /home/admin/mediafirerepack.net/wp-content/plugins/wp-super-cache/wp-cache.php:2937
[0xbfff47e4] wp_cron_preload_cache() unknown:0
[0x0a559ba4] call_user_func_array() /home/admin/mediafirerepack.net/wp-includes/plugin.php:487
[0x0a5595b8] do_action_ref_array() /home/admin/mediafirerepack.net/wp-cron.php:92

[08-Sep-2013 18:54:28]  [pool admin] pid 7494
script_filename = /home/admin/mediafirerepack.net/wp-cron.php
[0x0acc4e6c] curl_exec() /home/admin/mediafirerepack.net/wp-includes/class-http.php:1237
[0x0acc4c34] request() /home/admin/mediafirerepack.net/wp-includes/class-http.php:261
[0x0acc3e08] _dispatch_request() /home/admin/mediafirerepack.net/wp-includes/class-http.php:198
[0x0acc3d18] request() /home/admin/mediafirerepack.net/wp-includes/class-http.php:304
[0x0acc3c58] get() /home/admin/mediafirerepack.net/wp-includes/http.php:179
[0x0acc1fa0] wp_remote_get() /home/admin/mediafirerepack.net/wp-content/plugins/wp-super-cache/wp-cache.php:2935
[0xbfff47e4] wp_cron_preload_cache() unknown:0
[0x0acc1acc] call_user_func_array() /home/admin/mediafirerepack.net/wp-includes/plugin.php:487
[0x0acc14e0] do_action_ref_array() /home/admin/mediafirerepack.net/wp-cron.php:92

[09-Sep-2013 02:47:28]  [pool admin] pid 1770
script_filename = /home/admin/mediafirerepack.net/wp-cron.php
[0x09f383f0] sleep() /home/admin/mediafirerepack.net/wp-content/plugins/wp-super-cache/wp-cache.php:2937
[0xbfa6ee94] wp_cron_preload_cache() unknown:0
[0x09f37f1c] call_user_func_array() /home/admin/mediafirerepack.net/wp-includes/plugin.php:487
[0x09f37930] do_action_ref_array() /home/admin/mediafirerepack.net/wp-cron.php:92

[09-Sep-2013 10:45:03]  [pool admin] pid 10051
script_filename = /home/admin/mediafirerepack.net/wp-cron.php
[0x09b24188] sleep() /home/admin/mediafirerepack.net/wp-content/plugins/wp-super-cache/wp-cache.php:2937
[0xbffc0754] wp_cron_preload_cache() unknown:0
[0x09b23cb4] call_user_func_array() /home/admin/mediafirerepack.net/wp-includes/plugin.php:487
[0x09b236c8] do_action_ref_array() /home/admin/mediafirerepack.net/wp-cron.php:92

Php Error

Code: [Select]
[08-Sep-2013 04:12:34] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 05:39:28] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 06:17:48] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 07:01:30] ERROR: An another FPM instance seems to already listen on /home/php-fpm/sock/apache.sock
[08-Sep-2013 07:01:30] ERROR: FPM initialization failed
[08-Sep-2013 07:02:12] ERROR: An another FPM instance seems to already listen on /home/php-fpm/sock/apache.sock
[08-Sep-2013 07:02:12] ERROR: FPM initialization failed
[08-Sep-2013 07:02:29] ERROR: An another FPM instance seems to already listen on /home/php-fpm/sock/apache.sock
[08-Sep-2013 07:02:29] ERROR: FPM initialization failed
[08-Sep-2013 07:02:30] ERROR: An another FPM instance seems to already listen on /home/php-fpm/sock/apache.sock
[08-Sep-2013 07:02:30] ERROR: FPM initialization failed
[08-Sep-2013 07:33:51] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 07:58:35] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 08:11:46] ERROR: failed to ptrace(PEEKDATA) pid 17949: Input/output error (5)
[08-Sep-2013 09:40:28] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 09:40:28] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 10:00:40] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 10:00:40] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 11:15:47] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 11:15:47] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 11:33:15] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 11:33:15] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 12:00:05] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 12:00:05] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 12:48:48] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 12:48:48] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 13:26:10] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 13:26:11] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 13:34:40] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 13:34:40] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 15:37:35] ERROR: unable to read what child say: Bad file descriptor (9)
[08-Sep-2013 17:12:32] ERROR: An another FPM instance seems to already listen on /home/php-fpm/sock/apache.sock
[08-Sep-2013 17:12:32] ERROR: FPM initialization failed
[08-Sep-2013 19:00:28] ERROR: unable to read what child say: Bad file descriptor (9)
[09-Sep-2013 03:24:55] ERROR: unable to read what child say: Bad file descriptor (9)
[09-Sep-2013 06:18:48] ERROR: An another FPM instance seems to already listen on /home/php-fpm/sock/apache.sock
[09-Sep-2013 06:18:48] ERROR: FPM initialization failed
[09-Sep-2013 06:19:32] ERROR: An another FPM instance seems to already listen on /home/php-fpm/sock/apache.sock
[09-Sep-2013 06:19:32] ERROR: FPM initialization failed
[09-Sep-2013 07:54:50] ERROR: unable to read what child say: Bad file descriptor (9)
[09-Sep-2013 07:58:07] ERROR: unable to read what child say: Bad file descriptor (9)
[09-Sep-2013 07:58:07] ERROR: unable to read what child say: Bad file descriptor (9)
[09-Sep-2013 08:22:03] ERROR: unable to read what child say: Bad file descriptor (9)
[09-Sep-2013 08:28:15] ERROR: unable to read what child say: Bad file descriptor (9)
[09-Sep-2013 08:32:02] ERROR: unable to read what child say: Bad file descriptor (9)
[09-Sep-2013 08:37:30] ERROR: unable to read what child say: Bad file descriptor (9)
[09-Sep-2013 08:37:30] ERROR: unable to read what child say: Bad file descriptor (9)
[09-Sep-2013 09:31:46] ERROR: unable to read what child say: Bad file descriptor (9)
[09-Sep-2013 09:31:46] ERROR: unable to read what child say: Bad file descriptor (9)
[09-Sep-2013 10:00:15] ERROR: unable to read what child say: Bad file descriptor (9)
[09-Sep-2013 10:00:16] ERROR: unable to read what child say: Bad file descriptor (9)
[09-Sep-2013 10:04:08] ERROR: unable to read what child say: Bad file descriptor (9)
[09-Sep-2013 10:04:08] ERROR: unable to read what child say: Bad file descriptor (9)
[09-Sep-2013 10:48:09] ERROR: unable to read what child say: Bad file descriptor (9)
[09-Sep-2013 10:48:42] ERROR: An another FPM instance seems to already listen on /home/php-fpm/sock/apache.sock
[09-Sep-2013 10:48:42] ERROR: FPM initialization failed
[09-Sep-2013 12:47:26] ERROR: unable to read what child say: Bad file descriptor (9)
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: 502 Bad Gateway
« Reply #7 on: 2015-07-28, 10:02:36 »
Got it too - every day !

Offline zenkul

  • Global Moderator
  • Master
  • *****
  • Posts: 383
  • Karma: +3/-0
    • View Profile
    • home & decor
Re: 502 Bad Gateway
« Reply #8 on: 2015-07-28, 13:05:57 »
I am zero
in php-fpm log
2 month
easy, secure and speed up web panel ===> Kloxo-MR

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 502 Bad Gateway
« Reply #9 on: 2015-07-28, 14:39:16 »
Look like something wrong with php-fpm service. In latest upload, restart/reload including 'pkill -9 php-fpm' if kloxo using cgi instead fpm for php.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.048 seconds with 19 queries.

web stats analysis