Nextcloud on TOS4

Anyone have any luck?

I formatted a USB drive using Foris (mounted at /srv) and installed nextcloud-install . After everything though, I get this error when trying to log in:

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:
Request ID: t5uNKWo3Oq9v3r5Ndb8o
Type: TypeError
Code: 0
Message: base64_encode() expects parameter 1 to be string, null given
File: /srv/www/nextcloud/lib/private/Authentication/Token/PublicKeyTokenProvider.php
Line: 242

No idea what’s wrong.

I had described the issue in gitlab #398. There seems to be a problem with openssl. You can fix it by removing the OPENSSL_PKCS1_OAEP_PADDING parameter in openssl_public_encrypt and openssl_private_decrypt functions in the file /srv/www/nextcloud/lib/private/Authentication/Token/PublicKeyTokenProvider.php. However this is not a proper fix, just a temporary hack.


In that thread you mentioned kmod-cryptodev. Does removal of that work instead?

I did not try that. As I am dependent on the connection via Omnia router I cannot play with it too much.

I ask since there has been work on fixing kmod-cryptodev upstream. Those fixes have not been backported.