Ein Wiki privater Natur

nextcloud upgrade auf Hub6

Nützlich während des upgrades
Auf der Instanz, auf der nextcloud läuft, ein test.php schreiben und in einem extra Tab
ausführen.

<?php
 phpinfo();  // allg. Informationen zur PHP-Installation
?>

Nextcloud Hub 5 php8.1
Nextcloud Hub 6 (27.1.6) php8.2

Warnung:
Das PHP-Modul "imagick" ist nicht aktiviert, die Theming-App hingegen schon. Damit die Favicon-Generierung korrekt funktioniert, musst du dieses Modul installieren und aktivieren. apt install php8.2-imagick
apachectl restart

Fehlender Index "textstep_session" in der Tabelle "text_steps".

su - -s /bin/bash www-data
cd nextcloud$ php8.2 occ db:add-missing-indices
Check indices of the share table.
Check indices of the filecache table.
Check indices of the twofactor_providers table.
Check indices of the login_flow_v2 table.
Check indices of the whats_new table.
Check indices of the cards table.
Check indices of the cards_properties table.
Check indices of the calendarobjects_props table.
Check indices of the schedulingobjects table.
Check indices of the oc_properties table.
Check indices of the oc_jobs table.
Check indices of the oc_direct_edit table.
Check indices of the oc_preferences table.
Check indices of the oc_mounts table.
Check indices of the oc_systemtag_object_mapping table.
Done.
Adding additional textstep_session index to the oc_text_steps table, this can take some time...
oc_text_steps table updated successfully.

Upgrade auf Hub7 (28.0.2)
besser noch nicht, da carnet und news noch nicht kompatibel sind

Nextcloud Hub 7 (28.0.2)
Weil in der Überprüfung immer wieder das fehlende Caching angemeckert wird, habe ich das sowieso bereits aktive php8.3-opcache

display_errors = off
memory_limit = 2G
upload_max_filesize = 1G
opcache.save_comments = 1
opcache.revalidate_freq = 60
opcache.jit = 1255
opcache.jit_buffer_size = 256M
opcache.interned_strings_buffer = 16

nextcloud$ php8.2 occ app:update --allow-unstable news
und
nextcloud$ php8.2 occ app:update --allow-unstable carnet

nextcloud$ php8.2 occ db:add-missing-indices
Adding additional news_feeds_deleted_at_index index to the oc_news_feeds table, this can take some time...
oc_news_feeds table updated successfully.~~


Das folgende Problem existiert derzeit noch.
Nextcloud Hub7 läuft mit Apache **CGI/FastCGI** 
Schöner wäre **php-fpm**

tipps

https://cstan.io/post/2024/04/nextcloud-file-unlock/

news Version 25.2.1 plugin

Performance

Es fehlen 2 kombinierte Indexe:
Title auf 255 zu begrenzen ist notwendig, um den folgenden Fehler zu vermeiden:

1071 - Schlüssel ist zu lang. Die maximale Schlüssellänge beträgt 3072

ALTER TABLE oc_news_feeds
  ADD INDEX idx_feeds_userid_deletedat_title (user_id, deleted_at, title(255));

und

ALTER TABLE oc_news_items
  ADD INDEX idx_items_feedid_unread (feed_id, unread);

Fazit: Die Abfrage taucht nicht mehr bei slow_query auf.

Viel wichtiger ist, dass die Anwendung news innerhalb nextcloud nun wie ausgewechselt scheint. Denn vorher war der erste Aufruf sehr lahm, wie ich jetzt sehe, war das genau der Grund, womöglich wurde die query immer angestossen, wenn man sich nach gewisser Zeit mit der app verbindet, jetzt ist es im Bereich 1-2 Sekunden.