Page 1 of 1
Upgrade auf Debian 12: "cannot be decoded by this version of the ionCube Loader"
Posted: Fri 25. Oct 2024, 03:08
by josuedugg
Hi support, please your help I had an issue during upgrade from debian 11 to 12, basically ssh session frozen when I was installing with the script, thus, I come back to the server and killed the upgrade process and now this is the result when I try to run the script again:
Code: Select all
root@cloud:~# php --version
PHP Warning: PHP Startup: ^(text/|application/xhtml\+xml) (offset=0): unrecognised compile-time option bit(s) in Unknown on line 0
PHP 8.2.24 (cli) (built: Sep 27 2024 04:03:19) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.24, Copyright (c) Zend Technologies
with Zend OPcache v8.2.24, Copyright (c), by Zend Technologies
root@cloud:~# wget --no-check-certificate https://install.keyhelp.de/scripts/keyhelp_debian_upgrade_11_to_12_php82 -O keyhelp_debian_upgrade_11_to_12.php && php keyhelp_debian_upgrade_11_to_12.php
--2024-10-24 19:04:41-- https://install.keyhelp.de/scripts/keyhelp_debian_upgrade_11_to_12_php82
Resolving install.keyhelp.de (install.keyhelp.de)... 62.141.56.232, 2001:1b60:2:11:913:101:be57:cafe
Connecting to install.keyhelp.de (install.keyhelp.de)|62.141.56.232|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152085 (149K)
Saving to: ‘keyhelp_debian_upgrade_11_to_12.php’
keyhelp_debian_upgrade_11_to_1 100%[=================================================>] 148.52K 386KB/s in 0.4s
2024-10-24 19:04:43 (386 KB/s) - ‘keyhelp_debian_upgrade_11_to_12.php’ saved [152085/152085]
PHP Warning: PHP Startup: ^(text/|application/xhtml\+xml) (offset=0): unrecognised compile-time option bit(s) in Unknown on line 0
PHP Parse error: syntax error, unexpected identifier "ionCube" in /root/keyhelp_debian_upgrade_11_to_12.php on line 5
Is there a way to revert or repair the keyhelp installation (i don't have snapshots/backups of the server). Please your assistance because keyhelp is not working now and my sites are down
Re: Upgrade auf Debian 12: "cannot be decoded by this version of the ionCube Loader"
Posted: Fri 25. Oct 2024, 08:56
by Tobi
josuedugg wrote: ↑Fri 25. Oct 2024, 03:08
Is there a way to revert or repair the keyhelp installation (i don't have snapshots/backups of the server). Please your assistance because keyhelp is not working now and my sites are down
Try to enable ioncube and sourceguardian first
Code: Select all
phpenmod ioncube;
phpenmod sourceguardian;
then run the upgrade script again.
Re: Upgrade auf Debian 12: "cannot be decoded by this version of the ionCube Loader"
Posted: Sat 26. Oct 2024, 01:29
by josuedugg
It is still failing, now with this error:
Code: Select all
root@cloud:~# phpenmod -v 8.2 ioncube
root@cloud:~# phpenmod -v 8.2 sourceguardian
root@cloud:~# php --version
PHP Warning: PHP Startup: ^(text/|application/xhtml\+xml) (offset=0): unrecognised compile-time option bit(s) in Unknown on line 0
PHP 8.2.24 (cli) (built: Sep 27 2024 04:03:19) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.24, Copyright (c) Zend Technologies
with the ionCube PHP Loader v13.3.1, Copyright (c) 2002-2024, by ionCube Ltd.
with SourceGuardian v15.0.2, Copyright (c) 2000-2024, by SourceGuardian Ltd.
with Zend OPcache v8.2.24, Copyright (c), by Zend Technologies
root@cloud:~# wget --no-check-certificate https://install.keyhelp.de/scripts/upgrade_operating_system.sh -O upgrade_operating_system.sh && bash upgrade_operating_system.sh
Warning: preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /home/keyhelp/www/keyhelp/core/Utilities/IpAddress.php on line 175
Warning: preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /home/keyhelp/www/keyhelp/core/Utilities/IpAddress.php on line 205
Warning: preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /home/keyhelp/www/keyhelp/core/Utilities/IpAddress.php on line 175
Warning: preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /home/keyhelp/www/keyhelp/core/Utilities/IpAddress.php on line 205
Warning: preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /home/keyhelp/www/keyhelp/core/Utilities/IpAddress.php on line 175
Warning: preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /home/keyhelp/www/keyhelp/core/Utilities/IpAddress.php on line 205
Warning: preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /home/keyhelp/www/keyhelp/core/System/OperatingSystem.php on line 85
Warning: Trying to access array offset on value of type null in /home/keyhelp/www/keyhelp/core/System/OperatingSystem.php on line 86
Fatal error: Uncaught Error: Class "mysqli" not found in /home/keyhelp/www/keyhelp/core/pending/DBConnection.php:75
Stack trace:
#0 /home/keyhelp/www/keyhelp/core/pending/DBConnection.php(65): DBConnection->connect()
#1 /root/keyhelp_debian_upgrade_11_to_12.php(104): DBConnection->__construct()
#2 {main}
thrown in /home/keyhelp/www/keyhelp/core/pending/DBConnection.php on line 75
Re: Upgrade auf Debian 12: "cannot be decoded by this version of the ionCube Loader"
Posted: Mon 28. Oct 2024, 09:56
by Alexander
Hello,
First, where did you find this command?
Code: Select all
wget --no-check-certificate https://install.keyhelp.de/scripts/keyhelp_debian_upgrade_11_to_12_php82 -O keyhelp_debian_upgrade_11_to_12.php && php keyhelp_debian_upgrade_11_to_12.php
The above is outdated (thou does still work), this is the newer version:
Code: Select all
wget --no-check-certificate https://install.keyhelp.de/scripts/upgrade_operating_system.sh -O upgrade_operating_system.sh && bash upgrade_operating_system.sh
---
This might indicate, that the libraries on your systems may be messed up.
So first lets use some simple systems command and see if it can fix it.
Code: Select all
apt update
apt upgrade
apt dist-upgrade
apt autoremove
apt clean
Please report all errors.
---
By the way the simplest and cleanest solution would be, to rollback a backup you made before dist-upgrade.
Re: Upgrade auf Debian 12: "cannot be decoded by this version of the ionCube Loader"
Posted: Tue 29. Oct 2024, 00:27
by josuedugg
After applying the shared commands and rebooting the node this is the result:
Code: Select all
root@cloud:~# wget --no-check-certificate https://install.keyhelp.de/scripts/upgrade_operating_system.sh -O upgrade_operating_system.sh && bash upgrade_operating_system.sh
--2024-10-28 17:25:48-- https://install.keyhelp.de/scripts/upgrade_operating_system.sh
Resolving install.keyhelp.de (install.keyhelp.de)... 62.141.56.232, 2001:1b60:2:11:913:101:be57:cafe
Connecting to install.keyhelp.de (install.keyhelp.de)|62.141.56.232|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10073 (9.8K) [text/x-sh]
Saving to: ‘upgrade_operating_system.sh’
upgrade_operating_system.sh 100%[=================================================>] 9.84K --.-KB/s in 0s
2024-10-28 17:25:49 (113 MB/s) - ‘upgrade_operating_system.sh’ saved [10073/10073]
You are about to upgrade the operating system of your KeyHelp server.
Running system checks...
Run upgrade script...
WARNING: Module ioncube ini file doesn't exist under /etc/php/8.3/mods-available
WARNING: Module ioncube ini file doesn't exist under /etc/php/8.3/mods-available
Fatal error: Uncaught Error: Class "mysqli" not found in /home/keyhelp/www/keyhelp/core/pending/DBConnection.php:75
Stack trace:
#0 /home/keyhelp/www/keyhelp/core/pending/DBConnection.php(65): DBConnection->connect()
#1 /root/keyhelp_debian_upgrade_11_to_12.php(104): DBConnection->__construct()
#2 {main}
thrown in /home/keyhelp/www/keyhelp/core/pending/DBConnection.php on line 75
Re: Upgrade auf Debian 12: "cannot be decoded by this version of the ionCube Loader" [SOLVED]
Posted: Tue 29. Oct 2024, 01:33
by josuedugg
Finally update was successfully solved by performing the following:
Code: Select all
apt update
apt upgrade
apt dist-upgrade
apt autoremove
apt clean
apt install php8.2-mysqli
phpenmod -v 8.2 mysqli
systemctl restart apache2
systemctl restart php8.2-fpm
root@cloud:~# wget --no-check-certificate https://install.keyhelp.de/scripts/upgrade_operating_system.sh -O upgrade_operating_system.sh && bash upgrade_operating_system.sh
--2024-10-28 18:31:05-- https://install.keyhelp.de/scripts/upgrade_operating_system.sh
Resolving install.keyhelp.de (install.keyhelp.de)... 62.141.56.232, 2001:1b60:2:11:913:101:be57:cafe
Connecting to install.keyhelp.de (install.keyhelp.de)|62.141.56.232|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10073 (9.8K) [text/x-sh]
Saving to: ‘upgrade_operating_system.sh’
upgrade_operating_system.sh 100%[==============================================================>] 9.84K --.-KB/s in 0s
2024-10-28 18:31:06 (118 MB/s) - ‘upgrade_operating_system.sh’ saved [10073/10073]
You are about to upgrade the operating system of your KeyHelp server.
Running system checks...
ERROR: No upgrade available.
Many thanks for the assistance Support Team
Great and prompt support!