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-06-18, 09:03:04

Author Topic: php-fpm error  (Read 7011 times)

0 Members and 1 Guest are viewing this topic.

Offline josifbg

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
php-fpm error
« on: 2014-01-07, 12:21:18 »
Hi There and Happy New Year to All,

My first post unfortunately is related to error message i`am facing since i`ve installed the server.

Problem No.1:
Jan  7 13:06:33 ns1 kernel: php-fpm[5067]: segfault at 1a32ff0 ip 0000000001a32ff0 sp 00007fff9819db58 error 15

I`am using:
OS: CentOS 6.5
Kloxo: Kloxo-MR 6.5.0.f-2014010301 (1 day ago i`ve re-installed the server)
Webserver Config:
                               Php Branch: php53u_(as_5.3.28)
                               Php Type: php-fpm_event

Problem No.2

If i change the Php Type to mod_php_ruid2 everiting seams ok but few minutes latter all sites disapears... no log info, no errors ... nothing... i`am executing: /scripts/./fix-all and afterwords /scripts/./restart-all and nothings happends.... the domains are unaccessible even if they respond to DNS ping etc.

All services are working but not really....

Thank you all for the help.


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php-fpm error
« Reply #1 on: 2014-01-07, 12:42:21 »
Try to use php54 or php (centos 6 have php with version 5.3). Inform here if also the same error (segfault).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline josifbg

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: php-fpm error
« Reply #2 on: 2014-01-07, 12:49:55 »
Jan  7 13:46:17 ns1 yum[22559]: Installed: php54-common-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:17 ns1 yum[22559]: Installed: php54-pdo-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:18 ns1 yum[22559]: Installed: php54-cli-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:19 ns1 yum[22559]: Installed: 1:php54-pear-1.9.4-2.ius.el6.noarch
Jan  7 13:46:19 ns1 yum[22559]: Installed: php54-pecl-geoip-1.0.8-3.ius.el6.x86_64
Jan  7 13:46:20 ns1 yum[22559]: Installed: php54-pecl-imagick-3.1.2-1.ius.el6.x86_64
Jan  7 13:46:21 ns1 yum[22559]: Installed: php54-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:21 ns1 yum[22559]: Installed: php54-mysql-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:21 ns1 yum[22559]: Installed: php54-pgsql-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:21 ns1 yum[22559]: Installed: php54-bcmath-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:21 ns1 yum[22559]: Installed: php54-mcrypt-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:22 ns1 yum[22559]: Installed: php54-fpm-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:22 ns1 yum[22559]: Installed: php54-xml-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:22 ns1 yum[22559]: Installed: php54-gd-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:22 ns1 yum[22559]: Installed: php54-process-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:23 ns1 yum[22559]: Installed: php54-mbstring-5.4.23-3.ius.el6.x86_64
Jan  7 13:46:23 ns1 yum[22559]: Erased: php53u-pgsql
Jan  7 13:46:23 ns1 yum[22559]: Erased: php53u-pecl-geoip
Jan  7 13:46:23 ns1 yum[22559]: Erased: php53u-mysql
Jan  7 13:46:23 ns1 yum[22559]: Erased: php53u-pecl-imagick
Jan  7 13:46:23 ns1 yum[22559]: Erased: php53u-pear
Jan  7 13:46:24 ns1 yum[22559]: Erased: php53u-pdo
Jan  7 13:46:24 ns1 yum[22559]: Erased: php53u-mbstring
Jan  7 13:46:24 ns1 yum[22559]: Erased: php53u-xml
Jan  7 13:46:24 ns1 yum[22559]: Erased: php53u-mcrypt
Jan  7 13:46:24 ns1 kernel: php-fpm[20035]: segfault at 41 ip 0000000000000041 sp 00007fff0f8beeb8 error 14 in php-fpm (deleted)[400000+3a5000]
Jan  7 13:46:24 ns1 yum[22559]: Erased: php53u-fpm
Jan  7 13:46:25 ns1 yum[22559]: Erased: php53u
Jan  7 13:46:25 ns1 yum[22559]: Erased: php53u-cli
Jan  7 13:46:25 ns1 yum[22559]: Erased: php53u-gd
Jan  7 13:46:25 ns1 yum[22559]: Erased: php53u-bcmath
Jan  7 13:46:25 ns1 yum[22559]: Erased: php53u-common
Jan  7 13:48:36 ns1 kernel: php-fpm[23733] general protection ip:68cf96 sp:7fff239f68a8 error:0 in php-fpm[400000+34e000]

Offline josifbg

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: php-fpm error
« Reply #3 on: 2014-01-07, 12:55:56 »
Jan  7 13:53:18 ns1 yum[26051]: Installed: php-common-5.3.27-3.el6.x86_64
Jan  7 13:53:19 ns1 yum[26051]: Installed: php-pdo-5.3.27-3.el6.x86_64
Jan  7 13:53:19 ns1 yum[26051]: Installed: php-cli-5.3.27-3.el6.x86_64
Jan  7 13:53:20 ns1 yum[26051]: Installed: 1:php-pear-1.9.4-4.el6.noarch
Jan  7 13:53:21 ns1 yum[26051]: Installed: php-pecl-geoip-1.0.8-3.el6.x86_64
Jan  7 13:53:21 ns1 yum[26051]: Installed: php-pecl-imagick-2.2.2-4.el6.x86_64
Jan  7 13:53:22 ns1 yum[26051]: Installed: php-5.3.27-3.el6.x86_64
Jan  7 13:53:22 ns1 yum[26051]: Installed: php-pgsql-5.3.27-3.el6.x86_64
Jan  7 13:53:22 ns1 yum[26051]: Installed: php-mysql-5.3.27-3.el6.x86_64
Jan  7 13:53:22 ns1 yum[26051]: Installed: php-mcrypt-5.3.27-3.el6.x86_64
Jan  7 13:53:22 ns1 yum[26051]: Installed: php-fpm-5.3.27-3.el6.x86_64
Jan  7 13:53:23 ns1 yum[26051]: Installed: php-mbstring-5.3.27-3.el6.x86_64
Jan  7 13:53:23 ns1 yum[26051]: Installed: php-bcmath-5.3.27-3.el6.x86_64
Jan  7 13:53:23 ns1 yum[26051]: Installed: php-xml-5.3.27-3.el6.x86_64
Jan  7 13:53:23 ns1 yum[26051]: Installed: php-gd-5.3.27-3.el6.x86_64
Jan  7 13:53:23 ns1 yum[26051]: Installed: php-process-5.3.27-3.el6.x86_64
Jan  7 13:53:23 ns1 yum[26051]: Erased: php54
Jan  7 13:53:23 ns1 yum[26051]: Erased: php54-mbstring
Jan  7 13:53:23 ns1 yum[26051]: Erased: php54-process
Jan  7 13:53:24 ns1 yum[26051]: Erased: php54-pgsql
Jan  7 13:53:24 ns1 yum[26051]: Erased: php54-gd
Jan  7 13:53:24 ns1 yum[26051]: Erased: php54-xml
Jan  7 13:53:25 ns1 kernel: php-fpm[25752] general protection ip:68cf96 sp:7fff268bcba8 error:0 in php-fpm (deleted)[400000+34e000]
Jan  7 13:53:25 ns1 yum[26051]: Erased: php54-fpm
Jan  7 13:53:25 ns1 yum[26051]: Erased: php54-mcrypt
Jan  7 13:53:25 ns1 yum[26051]: Erased: php54-mysql
Jan  7 13:53:25 ns1 yum[26051]: Erased: php54-pdo
Jan  7 13:53:25 ns1 yum[26051]: Erased: php54-bcmath
Jan  7 13:53:25 ns1 yum[26051]: Erased: php54-pecl-imagick
Jan  7 13:53:25 ns1 yum[26051]: Erased: php54-pecl-geoip
Jan  7 13:53:26 ns1 yum[26051]: Erased: php54-pear
Jan  7 13:53:26 ns1 yum[26051]: Erased: php54-cli
Jan  7 13:53:26 ns1 yum[26051]: Erased: php54-common
Jan  7 13:54:37 ns1 kernel: php-fpm[26207] general protection ip:63c826 sp:7fffd5caf2e8 error:0 in php-fpm[400000+2de000]

Offline josifbg

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: php-fpm error
« Reply #4 on: 2014-01-07, 13:12:29 »
I am not really sure if it`s related but when Php-Type: php-fpm_event is selected non of the changes for Advanced PHP Config per domain is applied.

Only when Php-Type: mod_php_ruid2 is selected the Advanced PHP Config per domain is working.
 

Offline josifbg

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: php-fpm error
« Reply #5 on: 2014-01-07, 13:59:57 »
almost 1 hour later again:

Jan  7 14:42:40 ns1 kernel: php-fpm[29307]: segfault at 211baca ip 000000000211baca sp 00007fffcf2de888 error 15


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php-fpm error
« Reply #6 on: 2014-01-07, 14:10:02 »
Inform here 'cat /etc/sysctl.conf'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline insanity

  • Senior Member
  • *
  • Posts: 215
  • Karma: +0/-0
    • View Profile
Re: php-fpm error
« Reply #7 on: 2014-01-07, 14:19:25 »
Mustafa,
I report this segfaults long time ago :)

Segfault + (9)Bad file description = PHP-FPM crash (sometime on high load server)

Offline josifbg

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: php-fpm error
« Reply #8 on: 2014-01-07, 14:26:57 »
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0

# Controls the default maxmimum size of a mesage queue
kernel.msgmnb = 65536

# Controls the maximum size of a message, in bytes
kernel.msgmax = 65536

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296

### begin -- add by Kloxo-MR
fs.aio-max-nr = 1048576
fs.file-max = 1048576
vm.swappiness = 10
vm.vfs_cache_pressure = 50
vm.dirty_background_ratio = 15
vm.dirty_ratio = 5
### end -- add by Kloxo-MR

Offline josifbg

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: php-fpm error
« Reply #9 on: 2014-01-07, 14:29:12 »
Mustafa,
I report this segfaults long time ago :)

Segfault + (9)Bad file description = PHP-FPM crash (sometime on high load server)

I see the same error in /php-fpm/error.log

[07-Jan-2014 14:08:38] ERROR: unable to read what child say: Bad file descriptor (9)
[07-Jan-2014 14:08:38] ERROR: unable to read what child say: Bad file descriptor (9)
[07-Jan-2014 14:42:40] ERROR: unable to read what child say: Bad file descriptor (9)
[07-Jan-2014 14:42:40] ERROR: unable to read what child say: Bad file descriptor (9)
[07-Jan-2014 14:42:40] ERROR: unable to read what child say: Bad file descriptor (9)
[07-Jan-2014 14:42:40] ERROR: unable to read what child say: Bad file descriptor (9)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php-fpm error
« Reply #10 on: 2014-01-07, 14:34:17 »
I think segfault issue related to how program (let say wordpress) use php. No segfault for this forum.

Better disable all plugins in program and test one-by-one.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline josifbg

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: php-fpm error
« Reply #11 on: 2014-01-07, 15:15:10 »
I think segfault issue related to how program (let say wordpress) use php. No segfault for this forum.

Better disable all plugins in program and test one-by-one.
Thanks for your support MRatWork!

What about my Problem no.2 above?

Problem No.2

If i change the Php Type to mod_php_ruid2 everiting seams ok but few minutes latter all sites disapears... no log info, no errors ... nothing... i`am executing: /scripts/./fix-all and afterwords /scripts/./restart-all and nothings happends.... the domains are unaccessible even if they respond to DNS ping etc.

All services are working but not really....

I am not really sure if it`s related but when Php-Type: php-fpm_event is selected non of the changes for Advanced PHP Config per domain is applied.

Only when Php-Type: mod_php_ruid2 is selected the Advanced PHP Config per domain is working.

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.055 seconds with 17 queries.

web stats analysis