Upgrade von Ubuntu 20.04 auf Ubuntu 24.04  [GELÖST]

Haben Sie einen Bug entdeckt? Teilen Sie es uns mit.
Post Reply
Cloud Flare
Posts: 7
Joined: Tue 25. Feb 2025, 05:59

Upgrade von Ubuntu 20.04 auf Ubuntu 24.04

Post by Cloud Flare »

Ich bin sicher, dass die Ursache des Problems bei KeyHelp liegt



Server-Betriebssystem + Version
Ubuntu 24.04 (64-bit)


Eingesetzte Server-Virtualisierung-Technologie
KVM


KeyHelp-Version + Build-Nummer
25.0 (Build 3398)


Problembeschreibung / Fehlermeldungen
Ich habe versucht, Ubuntu 20 über das KeyHelp-Skript von dieser Seite auf Version 22 zu aktualisieren https://wiki.keyhelp.de/books/installat ... 04-to-2204
Das Update verlief gut, wurde dann aber gestoppt und es wurde empfohlen, Ubuntu manuell mit dem Befehl do-release-upgrade zu aktualisieren.
Danach wurde das Skript php keyhelp_ubuntu_upgrade_20_to_22.php nicht mehr ausgeführt und erforderte php 8.1 und ioncube
PHP 8.1 manuell installiert mit dem Befehl

Code: Select all

apt installieren php8.1 php8.1-fpm php8.1-cli php8.1-mysql php8.1-xml php8.1-mbstring php8.1-curl php8.1-zip
Dann habe ich Ioncube auf PHP 8.1 installiert und keyhelp_ubuntu_upgrade_20_to_22.php erneut ausgeführt
Jetzt wurde das Ubuntu-System auf Version 24 aktualisiert (mit dem Befehl do-release-upgrade), die Sites funktionieren ohne Fehler, aber das Keyhelp-Panel selbst öffnet sich nicht.

Erwartetes Ergebnis
Alle Sites funktionieren und das Keyhelp-Panel ist verfügbar

Tatsächliches Ergebnis
Alle Sites funktionieren, das Keyhelp-Panel ist nicht verfügbar

Schritte zur Reproduktion

Code: Select all

wget --no-check-certificate https://install.keyhelp.de/scripts/keyhelp_ubuntu_upgrade_20_to_22_php71 -O keyhelp_ubuntu_upgrade_20_to_22.php

Code: Select all

php keyhelp_ubuntu_upgrade_20_to_22.php
Am Ende gab es Fehler

Code: Select all

apt installieren php8.1 php8.1-fpm php8.1-cli php8.1-mysql php8.1-xml php8.1-mbstring php8.1-curl php8.1-zip
Dann habe ich Ioncube auf PHP 8.1 installiert und keyhelp_ubuntu_upgrade_20_to_22.php erneut ausgeführt

Code: Select all

php keyhelp_ubuntu_upgrade_20_to_22.php
Wieder mit Fehlern geendet

Code: Select all

do-release-upgrade
Ubuntu von Version 22 auf 24 aktualisiert.
Wenn Sie nun in der Konsole eingeben

Code: Select all

root@server:~# keyhelp toolbox
Cannot load the ionCube PHP Loader - it was already loaded
Cannot load the ionCube PHP Loader - it was already loaded

Fatal error: Uncaught Error: Class "Locale" not found in /home/keyhelp/www/keyhelp/functions/functions.system.php:213
Stack trace:
#0 /home/keyhelp/www/keyhelp/bin/keyhelp_toolbox.php(60): getSystemLanguage()
#1 {main}
  thrown in /home/keyhelp/www/keyhelp/functions/functions.system.php on line 213
Zusätzliche Informationen
/var/log/keyhelp/php-error.log

Code: Select all

[25-Feb-2025 11:25:37] PHP Fatal error:  Uncaught Error: Class "Collator" not found in /home/keyhelp/www/keyhelp/functions/functions.languages.php:89
Stack trace:
#0 /home/keyhelp/www/keyhelp/functions/functions.languages.php(406): getLanguages()
#1 /home/keyhelp/www/keyhelp/index.php(158): getLanguageCode()
#2 {main}
  thrown in /home/keyhelp/www/keyhelp/functions/functions.languages.php on line 89
[25-Feb-2025 11:25:54] PHP Fatal error:  Uncaught Error: Class "Locale" not found in /home/keyhelp/www/keyhelp/functions/functions.system.php:213
Stack trace:
#0 /home/keyhelp/www/keyhelp/bin/keyhelp_toolbox.php(60): getSystemLanguage()
#1 {main}
  thrown in /home/keyhelp/www/keyhelp/functions/functions.system.php on line 213
install.log

Code: Select all

exec  | mandb
          sh: 1: mandb: not found

  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ERROR DETECTED <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

  [SKIPPED DUE PREVIOUS ERRORS] exec  | chmod 0755 /tmp/keyhelp_update/rclone/rclone
  [SKIPPED DUE PREVIOUS ERRORS] exec  | mv /tmp/keyhelp_update/rclone/rclone /usr/local/bin/rclone
  [SKIPPED DUE PREVIOUS ERRORS] exec  | mkdir -p -m 0777 /backup-keyhelp/
  [SKIPPED DUE PREVIOUS ERRORS] exec  | chown keyhelp:keyhelp /backup-keyhelp/
Cloud Flare
Posts: 7
Joined: Tue 25. Feb 2025, 05:59

Fehler beim Update von Ubuntu mit dem Keyhelp-Skript

Post by Cloud Flare »

Code: Select all

root@server:~# wget --no-check-certificate https://install.keyhelp.de/scripts/upgrade_operating_system.sh -O upgrade_operating_system.sh && bash upgrade_operating_system.sh
--2025-02-25 11:55:24--  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

2025-02-25 11:55:24 (57.1 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.
Anstelle des Keyhelp-Panels gibt es ein leeres Blatt
Ich habe ausführlicher geschrieben viewtopic.php?t=13770
Cloud Flare
Posts: 7
Joined: Tue 25. Feb 2025, 05:59

Re: Upgrade von Ubuntu 20.04 auf Ubuntu 24.04

Post by Cloud Flare »

Code: Select all

root@server:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.2 LTS"
User avatar
Alexander
Keyweb AG
Posts: 4448
Joined: Wed 20. Jan 2016, 02:23

Re: Upgrade von Ubuntu 20.04 auf Ubuntu 24.04

Post by Alexander »

Dadurch, das du jetzt gleich die Abschlussarbeiten vom Update 20 auf 22 übersprungen hast und mit erneuten Aufruf von do-release-upgrade gleich auf Ubuntu 24 geupdatet hast ohne das KeyHelp da in irgendeiner Weise vorbereiten konnte, würde ich empfehlen du setzt den Server zurück und startet dann das dist-Upgrade erneut mit dieser Anleitung:

https://www.keyweb.de/de/keyhelp/entwic ... -ubuntu-22
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Cloud Flare
Posts: 7
Joined: Tue 25. Feb 2025, 05:59

Re: Upgrade von Ubuntu 20.04 auf Ubuntu 24.04

Post by Cloud Flare »

Sollte ich vor der Änderung zu Ubuntu 20 zurückkehren und es mit diesen Anweisungen noch einmal versuchen?
User avatar
Alexander
Keyweb AG
Posts: 4448
Joined: Wed 20. Jan 2016, 02:23

Re: Upgrade von Ubuntu 20.04 auf Ubuntu 24.04  [GELÖST]

Post by Alexander »

Du solltest zu Ubuntu 20 zurückkehren, an den Punkt bevor du mit dem Dist-Upgrade angefangen hast.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Cloud Flare
Posts: 7
Joined: Tue 25. Feb 2025, 05:59

Re: Upgrade von Ubuntu 20.04 auf Ubuntu 24.04

Post by Cloud Flare »

Du solltest zu Ubuntu 20 zurückkehren, an den Punkt bevor du mit dem Dist-Upgrade angefangen hast.

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
Log errors

Code: Select all

Processing triggers for man-db (2.9.1-1) ...
Processing triggers for fontconfig (2.13.1-2ubuntu3) ...
 Error  At least one of the following commands returned an error.
To avoid system damage, please run the following commands yourself and fix any problems that occur.
---
apt-get update ;
apt-get upgrade ;
apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade ;
Habe versucht, das Update wie auf dieser Seite angegeben durchzuführen https://www.keyweb.de/de/keyhelp/entwic ... -ubuntu-22
Es sind Fehler aufgetreten und der Server funktioniert nicht, Websites und Keyhelp sind nicht verfügbar
Habe es so wie es war restauriert
User avatar
Alexander
Keyweb AG
Posts: 4448
Joined: Wed 20. Jan 2016, 02:23

Re: Upgrade von Ubuntu 20.04 auf Ubuntu 24.04

Post by Alexander »

Was war denn das Ergebnis dieser Befehle?

Code: Select all

apt-get update ;
apt-get upgrade ;
apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade ;
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Post Reply