[Eisfair] Nextcloud PHP pre-requisites not met

Nils Lange nils at killa.eisfair.net
Mi Okt 26 04:21:25 CEST 2022


> Falls die kaputte Installation noch auf dem System ist, deinstalliere sie
> vorher >
Die Migration von Owncloud hat Stunden gedauert. Es wäre sicher 
sinnvoll, das abzufragen. Ich hätte mir das gern erspart.


> Nun installiere das Paket aber mache nun erst folgende Korrektur in der
> Datei /var/install/config.d/nextcloud.sh, bevor du die Konfiguration
> aufrufst.
> 
> Zeile 7083:
> 
> Ersetze
> 
> "${module_name} is not installed"
> 
> durch
> 
> "\- installed: false"
> 
> Nun kannst du die Konfiguration aufrufen und die notwendigen Einstellungen
> vornehmen.


Habe ich gemacht (Zeile 7038).

Dann kommt folgende Meldung:

An unhandled exception has been thrown:
TypeError: Return value of OC\MemoryInfo::memoryLimitToBytes() must be 
of the type int, float returned in 
/var/www/htdocs/nextcloud/lib/private/MemoryInfo.php:83
Stack trace:
#0 /var/www/htdocs/nextcloud/lib/private/MemoryInfo.php(57): 
OC\MemoryInfo->memoryLimitToBytes(2147483648)
#1 /var/www/htdocs/nextcloud/lib/private/MemoryInfo.php(41): 
OC\MemoryInfo->getMemoryLimit()
#2 /var/www/htdocs/nextcloud/lib/private/Console/Application.php(104): 
OC\MemoryInfo->isMemoryLimitSufficient()
#3 /var/www/htdocs/nextcloud/console.php(99): 
OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), 
Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /var/www/htdocs/nextcloud/occ(11): require_once('/var/www/htdocs...')
#5 {main}

In der Prozedur /var/www/htdocs/nextcloud/lib/private/MemoryInfo.php 
wird aber der Wert als int zurückgegeben.

Meldung beim Webserver hat sich auch geändeert:

Internal Server Error

The server was unable to complete your request.

If this happens again, please send the technical details below to the 
server administrator.

More details can be found in the server log.
Technical details

     Remote Address: 192.168.152.6
     Request ID: DuC0FhITSzfGOrOEAjMf

Per cron bekomme ich folgende Mails (von root: fcron <root at mail> 
/usr/sbin/apache2 > /dev/null)

(98)Address already in use: AH00072: make_sock: could not bind to 
address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Job '/usr/sbin/apache2 > /dev/null' terminated (exit status: 1) (mailing 
output)

Und danach alle 5 Minuten (von wwwrun /var/nextcloud/nextcloud-cron.sh)

Error during cron script execution!

-- start of cron log --
Exception: Not installed in /var/www/htdocs/nextcloud/lib/base.php:282
Stack trace:
#0 /var/www/htdocs/nextcloud/lib/base.php(670): 
OC::checkInstalled(Object(OC\SystemConfig))
#1 /var/www/htdocs/nextcloud/lib/base.php(1111): OC::init()
#2 /var/www/htdocs/nextcloud/cron.php(43): 
require_once('/var/www/htdocs...')
#3 {main}
-- end of cron log --

Danke nochmal für eure Hilfe.


Mehr Informationen über die Mailingliste Eisfair