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-28, 06:44:14

Author Topic: after upgrade php-fpm always fails  (Read 3563 times)

0 Members and 1 Guest are viewing this topic.

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
after upgrade php-fpm always fails
« on: 2013-08-27, 03:52:08 »
On every server I upgrade php-fpm fails with a message about another instance is already listening on admin.sock.

SO - I am unable to restart-all as php-fpm fails.

On my non-production servers I just reboot - but I can not do that on my production server.

What is the best resolve for this?

I tried removing the sock file, still failed.

Please advise.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: after upgrade php-fpm always fails
« Reply #1 on: 2013-08-28, 01:15:54 »
Mustafa?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: after upgrade php-fpm always fails
« Reply #2 on: 2013-08-28, 01:35:24 »
What Php version used?. I didn't found this issue for php53u branch.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: after upgrade php-fpm always fails
« Reply #3 on: 2013-08-28, 05:41:13 »
php-fpm using 5.4u
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: after upgrade php-fpm always fails
« Reply #4 on: 2013-08-28, 07:17:51 »
I am not using php 5.4 and look like this version less stable compare to 5.3.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: 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: after upgrade php-fpm always fails
« Reply #5 on: 2013-08-28, 19:03:20 »
We should add something like this while restarting php-fpm:

pkill -o php-fpm;
killall -9 php-fpm;

Sometimes too:

killall -9 httpd.event;
ipcs -s | grep apache | awk ' { print $2 } ' | xargs -n 1 ipcrm -s
/script/fixphpfpm;
/etc/init.d/httpd graceful;
/etc/init.d/php-fpm restart;
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: after upgrade php-fpm always fails
« Reply #6 on: 2013-08-29, 03:57:53 »
php 5.4 is not less stable than 5.3 - they are on php 5.5 stable.  I agree with spacedust - killing all php-fpm processess appears to fix the problem.

Although on last update php-fpm went through - it failed on stop (which was interesting) but OK on restart?  Mustafa did you add code to update script to stop php-fpm prior to restart-all script?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

 


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

Page created in 0.043 seconds with 18 queries.

web stats analysis