Wiki-Quellcode von Nextcloud Upgrade
Version 1.2 von Tom Altenbrunn am 2024/11/04 11:46
Verstecke letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
![]() |
1.2 | 1 | Die Ubuntu-Basis der Nextcloud unter LD2.0 benötigt eine aktuellere Version als die derzeit genutzte Version 16.0.4 (Xenial Xerus), damit neuere Nextcloud-und PHP-Versionen installiert werden können. Im Nachfolgenden wird zunächst die Basis des nextcloud-g1 Containers auf Version 22.04.5 (Jammy) angehoben und anschließend die Komponenten Nextcloud, sowie PHP aktualisiert. |
2 | |||
3 | |||
4 | |||
5 | |||
![]() |
1.1 | 6 | Die Lösung für dieses Problem unter LD20 wird so sein, dass das vorhandene nextcloud-g1 Container auf Basis von jammy aktualisiert wird. Hier beschreibe ich grob das Vorgehen, wie man vorhandenen nextcloud-g1 Container neu aufbaut. |
7 | |||
8 | |||
9 | 1. ldupdate im puppeteer => Update auf ld-puppet10 in Version 1.6.x | ||
10 | 1. root@puppeteer:~~ # puppet-master-remove-client nextcloud-g1 | ||
11 | 1. Release von nextcloud-g1 auf jammy ändern: | ||
12 | |||
13 | {{{root@puppeteer:~ # cat /etc/logodidact/hiera/custom.d/ldhost.yaml | ||
![]() |
1.2 | 14 | }}} |
15 | |||
16 | ((( | ||
![]() |
1.1 | 17 | profile::lxc::host: |
18 | |||
19 | guests: nextcloud-g1: { ensure: running, release: jammy } | ||
20 | ))) | ||
![]() |
1.2 | 21 | |
![]() |
1.1 | 22 | 1. Um das Upgrade von Version 26 bis auf Version 29 erfolgreich durchführen zu können braucht man für die Dauer des Upgrades folgende Anpassungen für nextcloud-g1: |
23 | |||
24 | {{{ | ||
25 | }}} | ||
26 | |||
![]() |
1.2 | 27 | root@puppeteer:/etc/logodidact # cat hiera/custom.d/nextcloud-g1.yaml |
28 | |||
29 | ((( | ||
![]() |
1.1 | 30 | php::globals::php_version: '8.1' |
31 | |||
32 | php::package_prefix: 'php8.1-' | ||
33 | |||
34 | ld_base::fixes::php::historic_php_versions: | ||
35 | |||
![]() |
1.2 | 36 | - '8.3' |
![]() |
1.1 | 37 | ))) |
![]() |
1.2 | 38 | |
![]() |
1.1 | 39 | 1. root@ldhost:~~ # systemctl stop lxc@nextcloud-g1.service |
40 | 1. root@ldhost:~~ # lxc-destroy -n nextcloud-g1 -f | ||
41 | 1. root@ldhost:~~ # prun | ||
42 | 1. root@nextcloud-g1:~~ # apt install ~-~-reinstall ld-nextcloud=27.1.9 | ||
43 | 1. root@nextcloud-g1:~~ # prun | ||
44 | 1. root@nextcloud-g1:~~ # apt install ~-~-reinstall ld-nextcloud=28.0.5 | ||
45 | 1. root@nextcloud-g1:~~ # prun | ||
46 | 1. root@nextcloud-g1:~~ # apt upgrade -y | ||
47 | 1. root@nextcloud-g1:~~ # prun | ||
48 | 1. Upgrade Anpassungen für nextcloud-g1 entfernen | ||
49 | 1. root@nextcloud-g1:~~ # prun # eventuell 2x notwendig wegen PHP upgrade |