DPKG(1) Hook - PHP 5.6 error when I run apt-get upgrade command

  • Hello,
    My system is Debian 8 and use imscp 1.4.3
    Today I run apt-get upgrade command.It's will show follow error.



    I make sure imscp_panel service has running.But I don't know what is this error.
    Please check this error if it's error message can help maintenance.

  • @akong7777


    For the frontEnd, we are using our own copy of the PHP binary (fpm). To keep that binary up-to-date, i-MSCP hooks into dpkg(1). That means that each time a package is being updated on your system, the i-MSCP /usr/local/sbin/imscp-dpkg-post-invoke.pl script is invoked. That script executes the dpkgPostInvokeTasks() methods that are implemented by the i-MSCP servers and packages.


    In your case, it seem that the dpkgPostInvokeTasks() method that is implemented by the FrontEnd package installer has failed. Please provide us with the content from the /var/log/imscp/imscp-dpkg-post-invoke.log file. On success, it should contain something like:

    Shell-Script
    1. root@devuan:~# cat /var/log/imscp/imscp-dpkg-post-invoke.log[Sun May 14 03:12:21 2017] [debug] iMSCP::Bootstrapper::boot: Booting backend....[Sun May 14 03:12:21 2017] [debug] iMSCP::Config::_loadConfig: Tying /etc/imscp/imscp.conf file in readonly mode[Sun May 14 03:12:21 2017] [debug] iMSCP::Config::_loadConfig: Tying /etc/imscp/mysql/mysql.data file in readonly mode[Sun May 14 03:12:21 2017] [debug] iMSCP::Config::_loadConfig: Tying /etc/imscp/cron.d/cron.data file in readonly mode[Sun May 14 03:12:21 2017] [debug] iMSCP::Config::_loadConfig: Tying /etc/imscp/proftpd/proftpd.data file in readonly mode[Sun May 14 03:12:21 2017] [debug] iMSCP::Config::_loadConfig: Tying /etc/imscp/apache/apache.data file in readonly mode[Sun May 14 03:12:21 2017] [debug] iMSCP::Config::_loadConfig: Tying /etc/imscp/php/php.data file in readonly mode[Sun May 14 03:12:21 2017] [debug] iMSCP::Config::_loadConfig: Tying /etc/imscp/postfix/postfix.data file in readonly mode[Sun May 14 03:12:21 2017] [debug] iMSCP::Config::_loadConfig: Tying /etc/imscp/bind/bind.data file in readonly mode[Sun May 14 03:12:21 2017] [debug] iMSCP::Config::_loadConfig: Tying /etc/imscp/dovecot/dovecot.data file in readonly mode[Sun May 14 03:12:21 2017] [debug] iMSCP::Config::_loadConfig: Tying /etc/imscp/frontend/frontend.data file in readonly mode[Sun May 14 03:12:21 2017] [debug] iMSCP::Config::_loadConfig: Tying /etc/imscp/pma/phpmyadmin.data file in readonly mode[Sun May 14 03:12:21 2017] [debug] main: Processing Package::FrontEnd dpkg post-invoke tasks[Sun May 14 03:12:22 2017] [debug] iMSCP::Config::_loadConfig: Tying /etc/imscp/frontend/frontend.data file in writing mode[Sun May 14 03:12:22 2017] [debug] iMSCP::Config::_loadConfig: Tying /etc/imscp/frontend/frontend.old.data file in readonly mode[Sun May 14 03:12:22 2017] [debug] iMSCP::Execute::execute: /usr/sbin/php-fpm5.6 -nv[Sun May 14 03:12:22 2017] [debug] iMSCP::Execute::execute: /usr/local/sbin/imscp_panel -nv[Sun May 14 03:12:22 2017] [debug] Package::FrontEnd::Installer::dpkgPostInvokeTasks: Updating imscp_panel service PHP binary from version `5.6.30-10+0~20170412071212.32+jessie~1.gbp3dd061' to version `5.6.30-11+0~20170513113516.33+jessie~1.gbpec7ee8'[Sun May 14 03:12:22 2017] [debug] iMSCP::Bootstrapper::unlock: Releasing exclusive lock on /tmp/imscp-dpkg-post-invoke.lock[Sun May 14 03:12:22 2017] [debug] iMSCP::Service::_detectInit: upstart init system has been detected[Sun May 14 03:12:22 2017] [debug] iMSCP::Execute::execute: /etc/init.d/imscp_panel status[Sun May 14 03:12:22 2017] [debug] iMSCP::Provider::Service::Sysvinit::_exec: imscp_panel is running.[Sun May 14 03:12:22 2017] [debug] iMSCP::Execute::execute: /etc/init.d/imscp_panel restart[Sun May 14 03:12:22 2017] [debug] iMSCP::Provider::Service::Sysvinit::_exec: Restarting PHP FastCGI process Manager Daemon for i-MSCP FrontEnd: imscp_panel.[Sun May 14 03:12:22 2017] [debug] iMSCP::Execute::execute: /etc/init.d/nginx status[Sun May 14 03:12:22 2017] [debug] iMSCP::Provider::Service::Sysvinit::_exec: nginx is running.[Sun May 14 03:12:22 2017] [debug] iMSCP::Execute::execute: /etc/init.d/nginx restart[Sun May 14 03:12:23 2017] [debug] iMSCP::Provider::Service::Sysvinit::_exec: Restarting nginx: nginx.

    Don't forget to provide us with result of commands as asked by @TheCry too.


    Also, you can try to execute the script manually as follow, reporting us the result. For instance:


    Thanks.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206