Skip to main content

cPanel & WHM update failure in upcp script

Comments

13 comments

  • cPanelMichael
    Hello, Can you verify if this issue continues when forcing another cPanel update with the "/scripts/upcp --force" command? Thank you.
    0
  • Samet Chan

    [2017-08-23 19:31:32 +0200] 94% complete [2017-08-23 19:31:32 +0200] 95% complete => Log closed Wed Aug 23 19:31:32 2017 ---------------------------------------------------------------------------------------------------- => Log opened from cPanel Update (upcp) - Slave (3221) at Wed Aug 23 19:31:32 2017 [2017-08-23 19:31:32 +0200] Post Maintenance completed successfully [2017-08-23 19:31:32 +0200] Polling updatenow to see if a newer version is available for upgrade => Log closed Wed Aug 23 19:31:32 2017 ---------------------------------------------------------------------------------------------------- => Log opened from /usr/local/cpanel/scripts/updatenow (10968) at Wed Aug 23 19:31:34 2017 [2017-08-23 19:31:34 +0200] Detected version '11.66.0.15' from version file. [2017-08-23 19:31:34 +0200] Running version '11.66.0.15' of updatenow. [2017-08-23 19:31:34 +0200] Target version set to '11.66.0.15' [2017-08-23 19:31:34 +0200] Up to date (11.66.0.15) => Log closed Wed Aug 23 19:31:34 2017 ---------------------------------------------------------------------------------------------------- => Log opened from cPanel Update (upcp) - Slave (3221) at Wed Aug 23 19:31:34 2017 [2017-08-23 19:31:35 +0200] 95% complete [2017-08-23 19:31:35 +0200] Running Standardized hooks [2017-08-23 19:31:35 +0200] 100% complete [2017-08-23 19:31:35 +0200] [2017-08-23 19:31:35 +0200] cPanel update completed [2017-08-23 19:31:35 +0200] A log of this update is available at /var/cpanel/updatelogs/update.1503507481.log [2017-08-23 19:31:35 +0200] Removing upcp pidfile [2017-08-23 19:31:35 +0200] [2017-08-23 19:31:35 +0200] Completed all updates => Log closed Wed Aug 23 19:31:35 2017
    0
  • cPanelMichael
    Hello, It looks like the update completed successfully on the next attempt. Let us know if you encounter any additional issues. Thank you.
    0
  • Samet Chan
    It's working now. This is not solved thread yet. Next new update version if works or not. I will reply to this thread later.
    0
  • Samet Chan
    Next new update now.
    [2017-08-29 01:19:02 +0200] Processing: Checking for deprecated PHP local.ini [2017-08-29 01:19:02 +0200] - Processing command `/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini --run --verbose` [2017-08-29 01:19:02 +0200] [13480] Failed to migrate /opt/cpanel/ea-php56/root/etc/php.d/local.ini to /opt/cpanel/ea-php56/root/etc/php.ini. This will need done manually. [2017-08-29 01:19:02 +0200] [13480] Failed to migrate /opt/cpanel/ea-php70/root/etc/php.d/local.ini to /opt/cpanel/ea-php70/root/etc/php.ini. This will need done manually. [2017-08-29 01:19:02 +0200] [13480] Processing ea-php56 " [2017-08-29 01:19:02 +0200] [13480] Error: (XID bmcjj8) 1 error occurred: [2017-08-29 01:19:02 +0200] [13480] Error #1: The PHP directive "extension" is not supported by this interface. [2017-08-29 01:19:02 +0200] [13480] " done! [2017-08-29 01:19:02 +0200] [13480] Processing ea-php70 " [2017-08-29 01:19:02 +0200] [13480] Error: (XID 99pnvd) 1 error occurred: [2017-08-29 01:19:02 +0200] [13480] Error #1: The PHP directive "extension" is not supported by this interface. [2017-08-29 01:19:02 +0200] [13480] " done! [2017-08-29 01:19:02 +0200] Processing: Ensuring an "Active" MySQL profile is set [2017-08-29 01:19:02 +0200] - Processing command `/usr/local/cpanel/scripts/check_mysql` [2017-08-29 01:19:02 +0200] [13482] "check_mysql" will complete in the background (process ID 13489). [2017-08-29 01:19:02 +0200] Processing: Checking CloudLinux installation [2017-08-29 01:19:02 +0200] - Processing command `/usr/local/cpanel/bin/cloudlinux_update` [2017-08-29 01:19:02 +0200] Processing: Updating plugins data cache [2017-08-29 01:19:02 +0200] - Processing command `/usr/local/cpanel/bin/refresh_plugin_cache` => Log closed Tue Aug 29 01:19:04 2017 ---------------------------------------------------------------------------------------------------- => Log opened from cPanel Update (upcp) - Slave (7883) at Tue Aug 29 01:19:04 2017 [2017-08-29 01:19:04 +0200] Post Maintenance completed successfully [2017-08-29 01:19:04 +0200] Polling updatenow to see if a newer version is available for upgrade => Log closed Tue Aug 29 01:19:04 2017 ---------------------------------------------------------------------------------------------------- => Log opened from /usr/local/cpanel/scripts/updatenow (13494) at Tue Aug 29 01:19:05 2017 [2017-08-29 01:19:05 +0200] Detected version '11.66.0.17' from version file. [2017-08-29 01:19:05 +0200] Running version '11.66.0.17' of updatenow. [2017-08-29 01:19:05 +0200] Target version set to '11.66.0.17' [2017-08-29 01:19:05 +0200] Up to date (11.66.0.17) => Log closed Tue Aug 29 01:19:05 2017 ---------------------------------------------------------------------------------------------------- => Log opened from cPanel Update (upcp) - Slave (7883) at Tue Aug 29 01:19:05 2017 [2017-08-29 01:19:06 +0200] Running Standardized hooks [2017-08-29 01:19:06 +0200] [2017-08-29 01:19:06 +0200] cPanel update completed [2017-08-29 01:19:06 +0200] A log of this update is available at /var/cpanel/updatelogs/update.1503961419.log [2017-08-29 01:19:06 +0200] Removing upcp pidfile [2017-08-29 01:19:06 +0200] [2017-08-29 01:19:06 +0200] Completed all updates => Log closed Tue Aug 29 01:19:06 2017
    0
  • cPanelMichael
    The PHP directive "extension" is not supported by this interface

    Hello, It looks like the cPanel update completed successfully, aside from this warning message. You can manually migrate your local ini file to a php.ini file with the following command:
    /scripts/migrate_local_ini_to_php_ini --run --verbose
    If you continue to receive that error message, check to see if the referenced local.ini files use "extension" directives. Thank you.
    0
  • Samet Chan
    [root@x ~]# /scripts/migrate_local_ini_to_php_ini --run --verbose Processing ea-php56 " Failed to migrate /opt/cpanel/ea-php56/root/etc/php.d/local.ini to /opt/cpanel/ea-php56/root/etc/php.ini. This will need done manually. Error: (XID mdyxnh) 1 error occurred: Error #1: The PHP directive "extension" is not supported by this interface. " done! Processing ea-php70 " Failed to migrate /opt/cpanel/ea-php70/root/etc/php.d/local.ini to /opt/cpanel/ea-php70/root/etc/php.ini. This will need done manually. Error: (XID fq2fka) 1 error occurred: Error #1: The PHP directive "extension" is not supported by this interface. " done!
    0
  • cPanelMichael
    Hello, You can use the following command to see which extension directives are used:
    grep extension /opt/cpanel/ea-php56/root/etc/php.d/local.ini
    Thank you.
    0
  • Samet Chan
    [root@x ~]# grep extension /opt/cpanel/ea-php56/root/etc/php.d/local.ini extension="imagick.so" ; Directives are variables used to configure PHP or PHP extensions. ; dynamically loaded extension (either a PHP extension or a Zend extension), ; you may only use these constants *after* the line that loads the extension. ; encodings. To use this feature, mbstring extension must be enabled. ; leading '/'. You must also specify the file extension being used including ; Directory in which the loadable extensions (modules) reside. ; PHP: Description of core php.ini directives - Manual ; extension_dir = "./" ; extension_dir = "ext" ; If you wish to have an extension loaded automatically, use the following ; extension=modulename.extension ; extension=msql.dll ; extension=msql.so ; extension=/path/to/extension/msql.so ; If you only provide the name of the extension, PHP will look for it in its ; default extension directory. ; Note: packaged extension modules are now loaded via the .ini files ;sqlite3.extension_dir = ; the hash extension. A list of available hashes is returned by the hash_algos() ; Sets the directory name where SOAP extension will put cache files.
    0
  • cPanelMichael
    extension="imagick.so"

    You need to remove that line from the following files if you want to convert your local.ini files: /opt/cpanel/ea-php56/root/etc/php.d/local.ini /opt/cpanel/ea-php70/root/etc/php.d/local.ini Ensure to reinstall the imagick PECL module after completing the conversion. Thank you.
    0
  • Samet Chan
    Removed that line and reinstalled it. [root@x ~]# grep extension /opt/cpanel/ea-php56/root/etc/php.d/local.ini ; Directives are variables used to configure PHP or PHP extensions. ; dynamically loaded extension (either a PHP extension or a Zend extension), ; you may only use these constants *after* the line that loads the extension. ; encodings. To use this feature, mbstring extension must be enabled. ; leading '/'. You must also specify the file extension being used including ; Directory in which the loadable extensions (modules) reside. ; PHP: Description of core php.ini directives - Manual ; extension_dir = "./" ; extension_dir = "ext" ; If you wish to have an extension loaded automatically, use the following ; extension=modulename.extension ; extension=msql.dll ; extension=msql.so ; extension=/path/to/extension/msql.so ; If you only provide the name of the extension, PHP will look for it in its ; default extension directory. ; Note: packaged extension modules are now loaded via the .ini files ;sqlite3.extension_dir = ; the hash extension. A list of available hashes is returned by the hash_algos() ; Sets the directory name where SOAP extension will put cache files.
    0
  • cPanelMichael
    Hello, Let us know if you encounter any additional issues. Thank you.
    0
  • Samet Chan
    It is working now. You can solve this thread. Thanks.
    0

Please sign in to leave a comment.