Problems and errors after updating Nextcloud to version 17.0.3.1

Hi,

I used the webupdating to update Nextcloud from 17.0.2 to 17.0.3.1. Then I added a new user, but he can’t login and gets an internal server error when he tries to login (Screenshot: https://cdn.discordapp.com/attachments/681614171774648410/681846730324574220/JPEG_20200225_135450.jpg).

I asked on freenode at #nextcloud but nobody could help. In the Nextcloud logs I see the following:
[PHP] Error: Invalid argument supplied for foreach() at /www/htdocs/path/to/nc/apps/serverinfo/lib/Os.php#155

GET /ocs/v2.php/apps/serverinfo/api/v1//diskdata?format=json
from 80.X.X.X by my username at 2020-02-25T19:23:14+00:00

[PHP] Error: Undefined variable: result at /www/htdocs/path/to/nc/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#173

GET /ocs/v2.php/apps/serverinfo/api/v1//diskdata?format=json
from 80.X.X.X by my username at 2020-02-25T19:23:14+00:00

[PHP] Error: Invalid argument supplied for foreach() at /www/htdocs/path/to/nc/apps/serverinfo/templates/settings-admin.php#101

GET /index.php/settings/admin/serverinfo
from 80.X.X.X by my username at 2020-02-25T19:23:11+00:00

[index] Error: Exception: base64_encode() expects parameter 1 to be string, null given at <>

  1. /www/htdocs/path/to/nc/lib/private/AppFramework/App.php line 126
    OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Controller\LoginController {}, “tryLogin”)
  2. /www/htdocs/path/to/nc/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main(“OC\Core\Controller\LoginController”, “tryLogin”, OC\AppFramework\ … {}, {_route: “core.login.tryLogin”})
  3. <>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: “core.login.tryLogin”})
  4. /www/htdocs/path/to/nc/lib/private/Route/Router.php line 297
    undefinedundefinedcall_user_func(OC\AppFramework\ … {}, {_route: “core.login.tryLogin”})
  5. /www/htdocs/path/to/nc/lib/base.php line 997
    OC\Route\Router->match("/login")
  6. /www/htdocs/path/to/nc/index.php line 42
    OC::handleRequest()

POST /index.php/login
from 185.X.X.X by the newly added user at 2020-02-25T15:58:38+00:00

How can I fix these problems?
Thank you very much for reading :slight_smile:

Many errors seem to be related to this app. I’d disable it. by preference via occ if possible, worst case by deleting the folder in the apps/-directory.
By looking at some parts of the code, it seems like the conditions and return values are not thought through very well: https://github.com/nextcloud/serverinfo/blob/master/lib/OperatingSystems/DefaultOs.php#L155-L174

You can report such errors to the bugtracker of this app, so somebody can fix them. If you can do better, feel free to submit a pull request.