MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: postcd on 2017-03-16, 11:12:35

Title: KloxoMR 7 php-fpm ERROR: No pool defined, kloxo-phpcgi Cannot allocate memory
Post by: postcd on 2017-03-16, 11:12:35
Hello,

i faced some "minor error" during install KloxoMR 7

CentOS release 6.8 (Final)
Linux vps.centos6.tld 2.6.32-042stab093.5 #1 SMP Wed Sep 10 17:39:49 MSK 2014 i686 i686 i386 GNU/Linux

Quote
Installed:
  kloxomr7.noarch 0:7.0.0.c-2017031002.mr

This is 512MB RAM VPS and there was memory related error after installation:
Quote
Stopping kloxo-phpcgi: /etc/rc.d/init.d/functions: fork: Cannot allocate memory
                                                           [  OK  ]
Starting kloxo-phpcgi ('php56s' in 'fpm' mode): /opt/php56s/usr/sbin/php-fpm: error while loading shared libraries: libz.so.1: failed to map segment from shared object: Cannot allocate memory
                                                           [FAILED]

but this one got fixed by adding more ram (768MB). THis was issue with my server, Kloxo need much less memory.

Other "errors" that appeared during install:

Quote
cp: cannot stat `/opt/configs/php-fpm/conf/php/php-fpm.d/default.conf': No such file or directory
- Enable for all php-fpm (branch and multiple phps)
-- Enable for php56s-fpm
=== END 'php56s' install ===

Quote
Packages skipped because of dependency problems:
    httpd-2.2.31-1.mr.el6.i386 from mratwork-release-version-arch
    httpd-tools-2.2.31-1.mr.el6.i386 from mratwork-release-version-arch
    php56u-5.6.30-1.ius.centos6.i686 from mratwork-ius-stable

Quote
Stopping php-fpm (PHP Used):                               [FAILED]
Starting php-fpm (PHP Used): [16-Mar-2017 05:42:42] ERROR: No pool defined. at least one pool section must be specified in config file
[16-Mar-2017 05:42:42] ERROR: failed to post process the configuration
[16-Mar-2017 05:42:42] ERROR: FPM initialization failed
                                                           [FAILED]

dir -l /opt/configs/php-fpm/conf/php
Quote
total 4
-rw-r--r-- 1 root root    0 Mar 12 14:06 php-fpm.conf
drwxr-xr-x 2 root root 4096 Mar 12 14:01 php-fpm.d

files in that directory was all empty.

sh /script/fixphp
Quote
Fixing php.ini/php-fpm.conf/php.fcgi/.htaccess
- '/etc/php.ini' at 'localhost'
- Fix 'extension_dir' path in php.ini at 'localhost'
- '/etc/php-fpm.d/default.conf' at 'localhost'
- '/home/kloxo/client/php.fcgi' at 'localhost'

sh /script/restart-php-fpm -y
Quote
Stopping php-fpm (PHP Used):                               [  OK  ]
Starting php-fpm (PHP Used):                               [  OK  ]

Why the php-fpm not worked right away and can this be prevent in future or it is rare case?
Title: Re: KloxoMR 7 php-fpm ERROR: No pool defined, kloxo-phpcgi Cannot allocate memory
Post by: MRatWork on 2017-03-16, 13:20:34
Many change in latest version. Example, in previous version kloxo service is kloxo but in latest separated to kloxo-web, kloxo-php and kloxo-wrap. The same ways for multiple php service.

The reason is related to implementing to CentOS 7 where not possible kloxo service in 1 file.