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-03-29, 14:29:49

Author Topic: nginxproxy+php-fpm crashing with 502 errors  (Read 18141 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
nginxproxy+php-fpm crashing with 502 errors
« on: 2016-12-30, 21:53:51 »
It's the 5th time already today after last update.

All pages stops responding then comes 504 error and I had to restart all web server software.

sh /script/apache-optimize --high doesn't help.

I'm running on a dedicated server with 8-core Atom and 8 GB RAM.
« Last Edit: 2016-12-30, 21:58:45 by Spacedust »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #1 on: 2016-12-31, 02:31:34 »
Did you run 'sh /script/cleanup'?.
..:: 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: nginxproxy+php-fpm crashing with 502 errors
« Reply #2 on: 2016-12-31, 03:13:30 »
Corrupt dababase may have the same issue. Try 'sh /script/mysql-optimize --select=repair'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #3 on: 2016-12-31, 12:37:31 »
No errors in MySQL database. Today I got 502+504 Errors. /script/cleanup also doesn't help.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #4 on: 2016-12-31, 12:50:04 »
Ok, give me ssh and Kloxo-MR panel access. I want to know what's happens.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #5 on: 2016-12-31, 16:13:56 »
Ok, give me ssh and Kloxo-MR panel access. I want to know what's happens.

See PM. Second time today :(

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #6 on: 2016-12-31, 18:54:03 »
Didn't received in PM.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #7 on: 2017-01-01, 15:03:39 »
Please check again now ;)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #8 on: 2017-01-01, 17:11:16 »
Read my message.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #9 on: 2017-01-01, 20:51:27 »
Just replied. That is solved now, but https in Kloxo-MR is still not working properly with:

"Unable to establish a secure connection" errors e.g. when manually generating stats.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #10 on: 2017-01-02, 11:19:07 »
It happened again today on 6:37AM - 502 error on all websites, so still not solved.

Before it happens all pages loads indefinitely and then I had to restart php-fpm.
« Last Edit: 2017-01-02, 11:43:15 by Spacedust »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #11 on: 2017-01-02, 11:45:20 »
I'm testing now that setting:

emergency_restart_threshold 3
emergency_restart_interval 1m
process_control_timeout 5s

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #12 on: 2017-01-02, 16:14:00 »
Now also testing this:

pm.max_children = 70
pm.start_servers = 20
pm.min_spare_servers = 20
pm.max_spare_servers = 35
pm.max_requests = 500

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #13 on: 2017-01-03, 11:49:07 »
Still crashing with 503 errors ! Please help.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginxproxy+php-fpm crashing with 502 errors
« Reply #14 on: 2017-01-03, 11:54:44 »
This seems to be an issue:

2017/01/03 09:38:01 [error] 32590#32590: *65230 limiting connections by zone "conn_limit_per_ip", client: 62.210.81.x, server: xxx.pl, request: "HEAD /test.php HTTP/2.0", host: "xxx.pl"
« Last Edit: 2017-01-03, 12:48:36 by Spacedust »

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.028 seconds with 21 queries.

web stats analysis