Problem: Nextcloud reports internal server error at login attempt

Problem

User can not log into nextcloud. An internal server error is reported

Environment

UCS 4-48
Nextcloud 21.0.3 and files_external 1.12.x

Solution

It seems that there is a bug in nextcloud version 21.0.3 or extension files_external 1.12.x. See:

That bugreport includes a code correction, that helped two customers already. You can try that in your environment:

univention-app shell nextcloud sed -i -s "/=== AuthMechanism::SCHEME_PASSWORD) {/a \\\t\t\tif(\!is_string(\$storage->getBackendOption('user')) || \!is_string(\$storage->getBackendOption('password')))\n\t\t\t\tthrow new \\InvalidArgumentException('user or password 
is not set');" /var/www/html/apps/files_external/lib/Lib/Backend/SMB.php

If you want to revert this, you can run:

univention-app reinitialize nextcloud