Page 1 of 1

php fatal error when trying to upgrade from ubuntu 22 to 24

Posted: Fri 13. Dec 2024, 16:46
by nobody
Server operating system + version
ubuntu 22


Server virtualization technology used
KVM


KeyHelp version + build number
24.2 build 3326


Problem description / error messages
You are about to upgrade the operating system of your KeyHelp server.
Running system checks...
Run upgrade script...
PHP Fatal error:
The encoded file /home/keyhelp/www/keyhelp/init/init_cli.php has been included by the unauthorised file /root/keyhelp_ubuntu_upgrade_22_to_24.php
in Unknown on line 0


Expected result
no fatal errror

Additional information
screen.png

Re: php fatal error when trying to upgrade from ubuntu 22 to 24

Posted: Fri 13. Dec 2024, 17:17
by nobody
Furthermore i just saw that i cannot access the keyhelp control panel anymore, seems to be a php fatal error too.

Also, when i try to call the keyhelp-toolbox from the terminal i got the error:

keyhelp-toolbox
PHP Fatal error: Only files produced by the PHP 8.1 ionCube Encoder can run on PHP 8.1.
The file /home/keyhelp/www/keyhelp/bin/keyhelp_toolbox.php has been encoded by the ionCube Encoder for PHP 8.2. in Unknown on line 0
Weird stuff.

So it seems the php version has been already updated or something like this when i tried to run the upgrade script the first time.
There was the message:

Code: Select all

If your system seems to freeze for more than 1 minute,
  hit [CRTL] + [C] and call "do-release-upgrade" yourself.
As the system got stucked i exited with CTRL + C but i didn't run the "do-release-upgrade" because i didn't want to increase the damage :)
Fortunately i mirrowed all services on the server to another because from experience i know system upgrades (almost) never runs smooth.

Re: php fatal error when trying to upgrade from ubuntu 22 to 24  [SOLVED]

Posted: Fri 13. Dec 2024, 18:23
by nobody
So actually i risked and i'm following this post: viewtopic.php?p=52112&hilit=do+release+upgrade#p52112 without the rabbitMQ stuff

Re: php fatal error when trying to upgrade from ubuntu 22 to 24

Posted: Fri 13. Dec 2024, 18:35
by nobody
It seems the ugrade went fine.
How do i check if all services, ecc. are ok?

Re: php fatal error when trying to upgrade from ubuntu 22 to 24

Posted: Fri 13. Dec 2024, 19:44
by Tobi
Are there any errors in the syslog?
Are there any services offline on the KeyHelp - admin-dashboard?
Did you get any errors while finishing the upgrade?

If the answer is 3 x NO, then everthing should be O.K.

Re: php fatal error when trying to upgrade from ubuntu 22 to 24

Posted: Fri 13. Dec 2024, 20:31
by nobody
Tobi wrote: Fri 13. Dec 2024, 19:44 Are there any errors in the syslog?
Are there any services offline on the KeyHelp - admin-dashboard?
Did you get any errors while finishing the upgrade?

If the answer is 3 x NO, then everthing should be O.K.
based on this all seems to be working fine.
Thanks for the answer!
Take care