Ich bekomme jedes Mal ein Problem mit meiner Nextcloud, nachdem ich Updates installiert habe. Jedes Mal nach dem Update kann ich nicht mehr auf meine Nextcloud zugreifen. Ich bekomme die Site, das System braucht ein Update. Danach habe ich versucht die Updates über das CLI per Hand zu installieren:
sudo -u www-data php occ upgrade
Aber ich bekomme diesen Fehler auf der CLI:
PHP-Warnung: PHP-Start: Dynamische Bibliothek 'apc.so' kann nicht geladen werden (versucht: /usr/lib/php/20190902/apc.so (/usr/lib/php/20190902/apc.so: undefiniertes Symbol:
zif_apcu_store) , /usr/lib/php/20190902/apc.so.so (/usr/lib/php/20190902/apc.so.so: Shared Object File kann nicht geöffnet werden: No such file or directory)) in Unknown on line 0
Eine unbehandelte Ausnahme wurde ausgelöst: OC\HintException: [0]: Memcache \OC\Memcache\Redis not available for Distributed Cache (Ist das passende PHP-Modul installiert und aktiviert?)
Es wurde in der Vergangenheit die PHP Version 7.4 (/etc/php/7.4/cli/config.php) installiert
Gibt es eine Möglichkeit, das Nexcloud-System in Zukunft ohne manuelles Arbeiten am CLI zu aktualisieren? Es ist jedes Mal sehr frustrierend
Aus Frustration, habe ich nun das PHP 7.4 entfernt und 8.0 installiert. Das ganze wollte ich dann zurückstellen, da ich erst im nachhinein festgestellt habe, dass die 8.0 noch nicht voll Support ist.
Jetzt komme ich überhaupt nicht mehr auf Seite. Ich bekomme eine 505 Fehlermeldung.
Die Postgres Datenbank scheint aber noch da zu sein, sodass ich davon ausgehen kann, dass die DB nicht gelöscht wurde. Habt Ihr eine Idee wie ich mein NC nun wieder zum laufen bringen kann? Natürlich soweit es geht, ohne, dass ich das System neu aufbauen muss.
Die Datei “apc.so” gehört zum Paket php-apcu-bc: APCu-Modul für Rückwärtskompatibilität
Welches Linux-Derivat (Debian, Ubuntu, …) in welcher Version hast du denn installiert?
Wie installierst du das Paket php-apcu-bc bzw. php-apcu .
Als Work-Arround könntest du wahrscheinlich php-apcu inkl. aller Abhängigkeiten deinstallieren und ACPI in Nextcloud deaktivieren. Das wäre nur wahrscheinlich schlecht für die Performance. Vielleicht kannst du es auch einfach deinstallieren inkl. Abhängigkeiten und wieder neu installieren.
Beantworte aber bitte erst mal, wie du es unter welcher Distribution und Release installierst und aktualisierst.
ich habe Ubuntu 20.04.2 LTS drauf und die aktuellste NC Version.
Der Websserver scheint nun zu funktionieren, nachdem ich
apt-get install php7.4-apcu
ausgeführt habe. Lediglich bekomme ich nun folgende Meldung:
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
Es sieht mehr danach aus, dass dein PHP ganz durcheinander geraten ist.
Ich verwende kein Ubuntu. Du kannst aber mal diese Anleitung lesen. Natürlich nicht alles neu machen, sondern nur mal schauen. Wobei von ACPu steht da gar nichts. Aber du kannst ACPu ja mal deaktivieren. Ist ja nur eine Zeile in config/config.php . Dann kannst du auch übergangsweise das Paket deinstallieren.
ii php-apcu-bc 1.0.5-13+ubuntu20.04.1+deb.sury.org+1 amd64 APCu Backwards Compatibility Module
ii php-common 2:84+ubuntu20.04.1+deb.sury.org+1 all Common files for PHP packages
ii php-pear 1:1.10.12+submodules+notgz+20210212-1+ubuntu20.04.1+deb.sury.org+1 all PEAR Base System
ii php7.4-apcu 5.1.20+4.0.11-1+ubuntu20.04.1+deb.sury.org+1 amd64 APC User Cache for PHP
ii php7.4-apcu-bc 1.0.5-13+ubuntu20.04.1+deb.sury.org+1 amd64 APCu Backwards Compatibility Module
ii php7.4-cli 7.4.21-1+ubuntu20.04.1+deb.sury.org+1 amd64 command-line interpreter for the PHP scripting language
ii php7.4-common 7.4.21-1+ubuntu20.04.1+deb.sury.org+1 amd64 documentation, examples and common module for PHP
ii php7.4-curl 7.4.21-1+ubuntu20.04.1+deb.sury.org+1 amd64 CURL module for PHP
ii php7.4-dev 7.4.21-1+ubuntu20.04.1+deb.sury.org+1 amd64 Files for PHP7.4 module development
ii php7.4-fpm 7.4.21-1+ubuntu20.04.1+deb.sury.org+1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php7.4-gd 7.4.21-1+ubuntu20.04.1+deb.sury.org+1 amd64 GD module for PHP
ii php7.4-igbinary 3.2.1+2.0.8-6+ubuntu20.04.1+deb.sury.org+1 amd64 igbinary PHP serializer
ii php7.4-imagick 3.4.4+php8.0+3.4.4-7+ubuntu20.04.1+deb.sury.org+1 amd64 Provides a wrapper to the ImageMagick library
ii php7.4-imap 7.4.21-1+ubuntu20.04.1+deb.sury.org+1 amd64 IMAP module for PHP
ii php7.4-intl 7.4.21-1+ubuntu20.04.1+deb.sury.org+1 amd64 Internationalisation module for PHP
ii php7.4-json 7.4.21-1+ubuntu20.04.1+deb.sury.org+1 amd64 JSON module for PHP
ii php7.4-mbstring 7.4.21-1+ubuntu20.04.1+deb.sury.org+1 amd64 MBSTRING module for PHP
ii php7.4-mysql 7.4.21-1+ubuntu20.04.1+deb.sury.org+1 amd64 MySQL module for PHP
ii php7.4-opcache 7.4.21-1+ubuntu20.04.1+deb.sury.org+1 amd64 Zend OpCache module for PHP
ii php7.4-readline 7.4.21-1+ubuntu20.04.1+deb.sury.org+1 amd64 readline module for PHP
ii php7.4-redis 5.3.4+4.3.0-1+ubuntu20.04.1+deb.sury.org+1 amd64 PHP extension for interfacing with Redis
ii php7.4-soap 7.4.21-1+ubuntu20.04.1+deb.sury.org+1 amd64 SOAP module for PHP
ii php7.4-xml 7.4.21-1+ubuntu20.04.1+deb.sury.org+1 amd64 DOM, SimpleXML, XML, and XSL module for PHP
ii php7.4-xmlrpc 7.4.21-1+ubuntu20.04.1+deb.sury.org+1 amd64 XMLRPC-EPI module for PHP
ii php7.4-zip 7.4.21-1+ubuntu20.04.1+deb.sury.org+1 amd64 Zip module for PHP
ii pkg-php-tools 1.38 all various packaging tools and scripts for PHP packages
Wüsste ehrlichgesagt nicht, was ich von deiner Anleitung anwenden kann. Meine config.php sieht aktuell folgendermaßen aus:
Diese Zeile könntest du mal rauswerfen.
Und dann wie oben beschrireben mal php-apcu inkl. Abhängigkeiten deinstallieren. Dann nutzt du diese Komponente einfach nicht mehr. Und wenn das geht dann rückgängig machen und schauen, ob es dann (weiter) läuft.
Diese Zeile könntest du mal rauswerfen.
Und dann wie oben beschrireben mal php-apcu inkl. Abhängigkeiten deinstallieren. Dann nutzt du diese Komponente einfach nicht mehr. Und wenn das geht dann rückgängig machen und schauen, ob es dann läuft.
Poste Fehler, wenn du ACPU deinstalliert und deaktiviert hast.
Also ich habe das Paket php7.4-apcu deinstalliert, die Zeile aus der config.php entfernt und versucht auf das NC zuzugreifen. Leider weiterhin ohne erfolg.
Danach habe ich das Paket nocheinmal installiert und versucht zu testen. Leider geht es weiterhin nicht.
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
Ahhh jetzt bekomme ich mit dem sudp -u www-data php folgendes:
PHP Warning: PHP Startup: Unable to load dynamic library 'apc.so' (tried: /usr/lib/php/20190902/apc.so (/usr/lib/php/20190902/apc.so: undefined symbol: zif_apcu_store), /usr/lib/php/20190902/apc.so.so (/usr/lib/php/20190902/apc.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
Ich habe mit sudo apt-get purge php8.* noch einige Pakete deinstalliert bekommen. Danach habe ich das Paket php7.4-apcu nochmal installiert. Damit bekomme ich nun die oben geschriebene Meldung
Die PHP-Ini-Dateien haben verschiedene Zwecke. Du könntest vielleicht mal die Konfigurationen sichern (falls du irgendwann dort mal was angepasst hattest) und dann das ganze PHP-Zeug inkl. Abhängigkeiten mal deinstallieren. Deinstalliere auch deren Konfigurationen. Kontrolliere das mit “dpkg -l”. Erst dann installiere das PHP-Zeug neu.
Du kannst jeweils eine kompletten Codeblock auf einmal ins Terminal kopieren und mit Enter bestätigen. Ich nutze die Konfigurationen von Carsten Rieger schon länger und hatte nie grössere Probleme. Dass man mal etwas anpassen muss nach dem einen oder anderen Nextcloud Update lässt sich aber leider nicht immer ganz vermeiden. Ich hoffe das hilft dir weiter…