Nextcloud app - mounting samba shares as external storage

Greetings all,

I’m new to Univention and Nextcloud and only having a server up for a few months, but I hope I can help with the problem.
I also have this problem sinse 16.0.6 update and been dealing with it for a few days.

The problem is caused by a bug in 16.0.6 and will be fixed in 16.0.7 (Issue 17846) related to both 17.0.1 and 16.0.6
Workaround:

  • SSH to the Univention server
  • univention-app shell nextcloud // open the internal shell
  • apt-get install nano // install nano text editor (or any other) in the container
  • nano /var/www/html/apps/files_external/lib/Lib/Backend/SMB.php // edit the SMB.php file
  • Line 57, the definition of parameter “timeout”, change it to be:
                    (new DefinitionParameter('timeout', $l->t('Timeout')))
                                    ->setType(DefinitionParameter::VALUE_HIDDEN)
                                    ->setFlag(DefinitionParameter::FLAG_OPTIONAL)
  • save file and try to add/edit External Storage

*edit: fixed a typo