MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: tonym on 2017-03-16, 08:43:37

Title: error: not an rpm package when cleanup
Post by: tonym on 2017-03-16, 08:43:37
I just updated to the latest version:
 
A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2017031601
   - Web: hiawatha-10.5.0-f.2.mr.el6.i686
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) i686
   - Hostname: mail.mtc1.uk
C. Services:
   1. MySQL: MariaDB-server-10.0.30-1.el6.i686
   2. PHP:
      - Installed:
        - Branch: php55w-cli-5.5.38-1.w6.i386
        - Multiple:
          * php52m-5.2.17-102.mr.el6
          * php53m-5.3.29-1.ius.el6
          * php54m-5.4.45-1.ius.el6
          * php55m-5.5.38-1.ius.el6
          * php56m-5.6.30-1.ius.el6
          * php70m-7.0.16-1.ius.el6
      - Used: php55m-fpm
      - Multiple: enable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.5.0-f.2.mr.el6.i686
     - Lighttpd: lighttpd-1.4.45-1.el6.i686
     - Nginx: nginx-1.11.10-1.el6.ngx.i386
     - Apache: httpd24u-2.4.25-3.ius.el6.i686
       - PHP Type: php-fpm_event
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: none
     - Bind: --uninstalled--
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.i686
      - smtp: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - spam: --uninstalled--
   7. Stats: awstats
D. Memory:
             total       used       free     shared    buffers     cached
Mem:          2909       2458        450         96        410       1289
-/+ buffers/cache:        758       2150
Swap:          511         11        500
E. Disk Space:
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        39G   23G   15G  61% /


When I ran "sh /script/cleanup", there were error messages at the "Update All Php" step:

-----------------
- Copy to /opt/configs/squid
Copy all contents from ../file/trafficserver
- Copy to /opt/configs/trafficserver
Update All Php (branch and multiple)
- Update process
error: not an rpm package
argument is not an RPM package

... Repeated many times ...

argument is not an RPM package
error: not an rpm package
argument is not an RPM package
Initialize PureFtp service
- Initialize process
- Restart pure-ftpd service
Initialize logrotates
- Initialize process
--------------------------------
Title: Re: error: not an rpm package when cleanup
Post by: MRatWork on 2017-03-16, 13:16:55
Inform here 'yum clean all; yum list php* '.
Title: Re: error: not an rpm package when cleanup
Post by: tonym on 2017-03-16, 15:59:53
Here it is attached.
Title: Re: error: not an rpm package when cleanup
Post by: MRatWork on 2017-03-16, 18:28:16
Try:
Code: [Select]
rm -rf /opt/php*m
sh /script/phpm-installer php53m -y
sh /script/phpm-installer php54m -y
sh /script/phpm-installer php55m -y
sh /script/phpm-installer php56m -y
sh /script/phpm-installer php70m -y
sh /script/phpm-installer php71m -y

and then run (if no found error):
Code: [Select]
sh /script/cleanup
Title: Re: error: not an rpm package when cleanup
Post by: tonym on 2017-03-16, 20:13:41
Thanks, those messages did not appear after that.

The cleanup ended with this now:

Stopping php55m-fpm (PHP Used):                            [  OK  ]
Starting php55m-fpm (PHP Used):                            [  OK  ]
-------------------------------------------------------------------

Stopping php52m-fpm (Multiple Php):                        [FAILED]
Starting php52m-fpm (Multiple Php): /bin/bash: php52m-fpm: command not found
                                                           [FAILED]
-------------------------------------------------------------------

Stopping php53m-fpm (Multiple Php):                        [  OK  ]
Starting php53m-fpm (Multiple Php):                        [  OK  ]
-------------------------------------------------------------------

Stopping php54m-fpm (Multiple Php):                        [FAILED]
Starting php54m-fpm (Multiple Php): [16-Mar-2017 19:05:09] ERROR: An another FPM instance seems to already listen on /opt/configs/php-fpm/sock/php54m-woodbr.sock
[16-Mar-2017 19:05:09] ERROR: FPM initialization failed
                                                           [FAILED]
-------------------------------------------------------------------

Stopping php55m-fpm (Multiple Php):                        [  OK  ]
Starting php55m-fpm (Multiple Php):                        [  OK  ]
-------------------------------------------------------------------

Stopping php56m-fpm (Multiple Php):                        [FAILED]
Starting php56m-fpm (Multiple Php): [16-Mar-2017 19:05:09] ERROR: An another FPM instance seems to already listen on /opt/configs/php-fpm/sock/php56m-admin.sock
[16-Mar-2017 19:05:09] ERROR: FPM initialization failed
                                                           [FAILED]
-------------------------------------------------------------------

Stopping php70m-fpm (Multiple Php):                        [FAILED]
Starting php70m-fpm (Multiple Php): [16-Mar-2017 19:05:09] ERROR: An another FPM instance seems to already listen on /opt/configs/php-fpm/sock/php70m-admin.sock
[16-Mar-2017 19:05:09] ERROR: FPM initialization failed
                                                           [FAILED]
-------------------------------------------------------------------

Stopping php71m-fpm (Multiple Php):                        [  OK  ]
Starting php71m-fpm (Multiple Php):                        [  OK  ]
-------------------------------------------------------------------

Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
-------------------------------------------------------------------


And running "sh /script/restart-web" after a while shows the same.
Title: Re: error: not an rpm package when cleanup
Post by: MRatWork on 2017-03-16, 20:23:07
Not work for php52m and then remove with 'rm -rf /opt/php52m'. For other php,  just 'pkill -9 php-fpm; sh /script/restart-web; sh /scrip/restart' or reboot your server.
Title: Re: error: not an rpm package when cleanup
Post by: tonym on 2017-03-16, 20:53:57
Thanks, those all  started now.

It does try to stop and start php52m-fpm still:
Stopping php52m-fpm (Multiple Php):                        [FAILED]
Starting php52m-fpm (Multiple Php): /bin/bash: php52m-fpm: command not found
                                                           [FAILED]

That is no problem though.

Thanks again.


Title: Re: error: not an rpm package when cleanup
Post by: MRatWork on 2017-03-16, 20:57:59
Run 'chkconfig php52m-fpm off; service php52m-fpm stop; chkconfig --del php52m-fpm; rm -f /etc/init.d/php52m-fpm'.
Title: Re: error: not an rpm package when cleanup
Post by: tonym on 2017-03-16, 21:00:47
Thank you!