Wiki-Quellcode von Nextcloud Upgrade
Version 2.9 von Tom Altenbrunn am 2024/11/04 15:16
Zeige letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
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 | = Server aktualisieren = | ||
5 | |||
6 | Zunächst den Server mit den aktuellsten Updates versorgen und die aktuelle Puppet-Version 1.6.X installieren. | ||
7 | |||
8 | {{code language="bash"}} | ||
9 | root@ldhost:~ # ssh puppeteer | ||
10 | root@puppeteer:~ # ldupdate | ||
11 | {{/code}} | ||
12 | |||
13 | Im Anschluss wie gewohnt mehrere pruns im ldhost durchlaufen lassen und ein ldupdate im logosrv durchführen. Danach noch 2 x gprun im ldhost, damit die Updates über alle Container-Instanzen hinweg installiert werden. | ||
14 | |||
15 | {{code language="bash"}} | ||
16 | root@ldhost:~ # prun;prun | ||
17 | root@ldhost:~ # ssh logosrv | ||
18 | |||
19 | root@logosrv:~ # ldupdate | ||
20 | |||
21 | root@ldhost:~ # gprun;gprun | ||
22 | {{/code}} | ||
23 | |||
24 | = Nextcloud-Containeranpassungen = | ||
25 | |||
26 | |||
27 | == Ubuntu-Version des LXC anheben == | ||
28 | |||
29 | Im puppeteer wird in der Konfigurations-Datei des ldhost für den nextcloud-g1-Container die Ubuntu-Release-Version auf Jammy gesetzt. | ||
30 | |||
31 | {{code language="bash"}} | ||
32 | root@puppeteer:~ # vi /etc/logodidact/hiera/custom.d/ldhost.yaml | ||
33 | {{/code}} | ||
34 | |||
35 | {{code language="bash"}} | ||
36 | profile::lxc::host: | ||
37 | guests: | ||
38 | nextcloud-g1: | ||
39 | ensure: running | ||
40 | release: jammy | ||
41 | {{/code}} | ||
42 | |||
43 | 1. root@puppeteer:~~ # puppet-master-remove-client nextcloud-g1 | ||
44 | 1. Release von nextcloud-g1 auf jammy ändern: | ||
45 | |||
46 | {{{root@puppeteer:~ # cat /etc/logodidact/hiera/custom.d/ldhost.yaml | ||
47 | }}} | ||
48 | |||
49 | ((( | ||
50 | profile::lxc::host: | ||
51 | |||
52 | guests: nextcloud-g1: { ensure: running, release: jammy } | ||
53 | ))) | ||
54 | |||
55 | 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: | ||
56 | |||
57 | {{{ | ||
58 | }}} | ||
59 | |||
60 | root@puppeteer:/etc/logodidact # cat hiera/custom.d/nextcloud-g1.yaml | ||
61 | |||
62 | ((( | ||
63 | php::globals::php_version: '8.1' | ||
64 | |||
65 | php::package_prefix: 'php8.1-' | ||
66 | |||
67 | ld_base::fixes::php::historic_php_versions: | ||
68 | |||
69 | - '8.3' | ||
70 | ))) | ||
71 | |||
72 | 1. root@ldhost:~~ # systemctl stop lxc@nextcloud-g1.service | ||
73 | 1. root@ldhost:~~ # lxc-destroy -n nextcloud-g1 -f | ||
74 | 1. root@ldhost:~~ # prun | ||
75 | 1. root@nextcloud-g1:~~ # apt install ~-~-reinstall ld-nextcloud=27.1.9 | ||
76 | 1. root@nextcloud-g1:~~ # prun | ||
77 | 1. root@nextcloud-g1:~~ # apt install ~-~-reinstall ld-nextcloud=28.0.5 | ||
78 | 1. root@nextcloud-g1:~~ # prun | ||
79 | 1. root@nextcloud-g1:~~ # apt upgrade -y | ||
80 | 1. root@nextcloud-g1:~~ # prun | ||
81 | 1. Upgrade Anpassungen für nextcloud-g1 entfernen | ||
82 | 1. root@nextcloud-g1:~~ # prun # eventuell 2x notwendig wegen PHP upgrade |