Issues Opening Certain Files via WebDAV/Video Player

Nextcloud version: 15.0.2.0
Operating system and version: Ubuntu 18.04.1 LTS
Apache or nginx version: Apache/2.4.29
PHP version: 7.2.10-0ubuntu0.18.04.1

The issue you are facing:
Background first: I’m running the 40GB OVA from Nextcloud VM – T&M Hansson IT AB on VirtualBox. Storage is a NFS mount from a NAS to /mnt/ncdata.

The issue I’m having is that certain files fail to open over WebDAV and/or via the video player app. On Windows, the error I get is “Cannot open file for read access. The file size exceeds the limit allowed and cannot be saved.” which research suggests is a general error for something going wrong. On nextcloud’s player, the error is “The video could not be loaded, either because the server or network failed or because the format is not supported.” along with a black video player.

I thought I had noticed a pattern, that files over a certain size failed, but this does not appear to be the case with files at ~50MB failing while files up to ~1GB play properly depending on the file. However, one of the files ~2GB in size will download fine from NextCloud, despite failing over WebDAV and the video player.

While most files fail to play in both spots, some files will play properly in Nextcloud but fail over WebDAV. I have not noticed the opposite to be true.

I have confirmed that the files are intact by checking them on my NAS’ filesystem, where they play correctly checksum with the originals. This does not appear to be an NFS issue, as the files appear intact on the NextCloud VM’s mountpoint.

I’ve tried updating the Ubuntu OS, restarting the VM, updating/restarting the NAS, etc.

NFS mounted with : SERVER:PATH on /mnt/ncdata type nfs (rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=IP_ADDR,mountvers=3,mountport=20048,mountproto=udp,local_lock=none,addr=IP_ADDR)

Is this the first time you’ve seen this error?: Yes

Steps to replicate it:

  1. Upload a video file with the web interface.
  2. Try to access the file through the web interface via “Video Player” app or via media player and WebDAV mount on Windows 10 client.

Note: Following logs have been redacted, but should still be useful.

The output of your Nextcloud log in Admin > Logging:

Error	cron	TypeError: Argument 1 passed to OCA\Files_FullTextSearch\Service\FilesService::withoutEndSlash() must be of the type string, boolean given, called in /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php on line 400	
2 days ago
Error	cron	TypeError: Argument 1 passed to OCA\Files_FullTextSearch\Service\FilesService::withoutEndSlash() must be of the type string, boolean given, called in /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php on line 400	
3 days ago
Error	cron	TypeError: Argument 1 passed to OCA\Files_FullTextSearch\Service\FilesService::withoutEndSlash() must be of the type string, boolean given, called in /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php on line 400	
3 days ago
Error	cron	TypeError: Argument 1 passed to OCA\Files_FullTextSearch\Service\FilesService::withoutEndSlash() must be of the type string, boolean given, called in /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php on line 400	
4 days ago
Error	cron	TypeError: Argument 1 passed to OCA\Files_FullTextSearch\Service\FilesService::withoutEndSlash() must be of the type string, boolean given, called in /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php on line 400	
4 days ago
Error	cron	TypeError: Argument 1 passed to OCA\Files_FullTextSearch\Service\FilesService::withoutEndSlash() must be of the type string, boolean given, called in /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php on line 400	
5 days ago
Error	cron	TypeError: Argument 1 passed to OCA\Files_FullTextSearch\Service\FilesService::withoutEndSlash() must be of the type string, boolean given, called in /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php on line 400	
5 days ago
Error	cron	TypeError: Argument 1 passed to OCA\Files_FullTextSearch\Service\FilesService::withoutEndSlash() must be of the type string, boolean given, called in /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php on line 400	
6 days ago
Error	no app in context	Swift_TransportException: Connection could not be established with host 127.0.0.1 [Connection refused #111]	
6 days ago
Error	jsresourceloader	Could not find resource vendor/strengthify/jquery.strengthify.min.js to load	
6 days ago

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'passwordsalt' => '<redacted>',
  'secret' => '<redacted>',
  'trusted_domains' =>
  array (
    0 => '<redacted>',
    1 => '<redacted>',
    2 => '<redacted>',
    3 => 'nextcloud',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '15.0.2.0',
  'overwrite.cli.url' => 'https://nextcloud/',
  'dbname' => 'nextcloud_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '<redacted>',
  'dbpassword' => '<redacted>',
  'installed' => true,
  'instanceid' => '<redacted>',
  'mail_smtpmode' => 'smtp',
  'remember_login_cookie_lifetime' => '1800',
  'log_rotate_size' => '10485760',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.5,
    'dbindex' => 0,
    'password' => '<redacted>',
  ),
  'htaccess.RewriteBase' => '/',
  'maintenance' => false,
);

The output of your Apache log:

<Trimmed from a very long file.>
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:00 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/Folder.jpg HTTP/2.0" 404 265 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:00 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7163.MOV HTTP/2.0" 207 605 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:00 -0800] "PROPFIND /remote.php/webdav/Desktop.ini HTTP/2.0" 404 239 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:00 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7163.MOV HTTP/2.0" 207 605 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:00 -0800] "PROPFIND /remote.php/webdav/AutoRun.inf HTTP/2.0" 404 239 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:00 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/Folder.png HTTP/2.0" 404 265 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:01 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/AlbumArtSmall.jpg HTTP/2.0" 404 272 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:01 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/AlbumArt.jpg HTTP/2.0" 404 267 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:01 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7163.MOV HTTP/2.0" 207 605 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:01 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/Album.jpg HTTP/2.0" 404 264 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:01 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7163.MOV HTTP/2.0" 207 605 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:01 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7163.MOV HTTP/2.0" 207 605 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:01 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/.folder.png HTTP/2.0" 404 266 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:01 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/cover.jpg HTTP/2.0" 404 264 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:01 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/cover.png HTTP/2.0" 404 264 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:01 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/cover.gif HTTP/2.0" 404 264 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:01 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/front.jpg HTTP/2.0" 404 264 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:01 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/front.png HTTP/2.0" 404 264 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:01 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/front.gif HTTP/2.0" 404 264 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:01 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/front.bmp HTTP/2.0" 404 264 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:01 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/thumb.jpg HTTP/2.0" 404 264 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:04 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7158.MOV HTTP/2.0" 207 604 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:04 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7163.MOV HTTP/2.0" 207 605 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:05 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7163.MOV HTTP/2.0" 207 605 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:05 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7163.MOV HTTP/2.0" 207 605 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:05 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7163.MOV HTTP/2.0" 207 605 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:05 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/git.exe HTTP/2.0" 404 262 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:05 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/.git HTTP/2.0" 404 259 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:05 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/.git/objects HTTP/2.0" 404 267 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:05 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/objects HTTP/2.0" 404 262 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:05 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/.git HTTP/2.0" 404 248 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:05 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/.git/objects HTTP/2.0" 404 256 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:05 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/objects HTTP/2.0" 404 251 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:05 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/.git HTTP/2.0" 404 244 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:05 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/.git/objects HTTP/2.0" 404 252 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:05 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/objects HTTP/2.0" 404 247 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:05 -0800] "PROPFIND /remote.php/webdav/.git HTTP/2.0" 404 232 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:05 -0800] "PROPFIND /remote.php/webdav/.git/objects HTTP/2.0" 404 240 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:05 -0800] "PROPFIND /remote.php/webdav/objects HTTP/2.0" 404 235 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:08 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7163.MOV HTTP/2.0" 207 605 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:09 -0800] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 713 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:09 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7163.MOV HTTP/2.0" 207 605 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:11 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7163.MOV HTTP/2.0" 207 605 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:12 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7163.MOV HTTP/2.0" 207 605 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:26 -0800] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 713 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:32 -0800] "PROPFIND /remote.php/webdav HTTP/2.0" 207 578 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:32 -0800] "PROPFIND /remote.php/webdav HTTP/2.0" 207 578 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:39 -0800] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 713 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:06:56 -0800] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 713 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:07:09 -0800] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 713 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:07:26 -0800] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 713 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:07:32 -0800] "PROPFIND /remote.php/webdav HTTP/2.0" 207 578 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:07:32 -0800] "PROPFIND /remote.php/webdav HTTP/2.0" 207 578 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:07:39 -0800] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 713 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:07:56 -0800] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 713 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:08:09 -0800] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 713 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:08:26 -0800] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 713 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:08:32 -0800] "PROPFIND /remote.php/webdav HTTP/2.0" 207 578 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:08:32 -0800] "PROPFIND /remote.php/webdav HTTP/2.0" 207 578 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:08:39 -0800] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 713 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:08:40 -0800] "GET /csrftoken HTTP/2.0" 200 104 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:08:46 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-22 HTTP/2.0" 207 606 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:08:46 -0800] "PROPFIND /remote.php/webdav/Bird%20Videos/Raw/2019-01-26 HTTP/2.0" 207 607 "-" "USER_AGENT1"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:08:56 -0800] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 713 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:09:09 -0800] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 713 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:09:09 -0800] "GET /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7163.MOV HTTP/2.0" 206 14362384 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:09:10 -0800] "GET /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7163.MOV HTTP/2.0" 206 491520 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:09:13 -0800] "GET /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7139.MOV HTTP/2.0" 206 408663 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:09:13 -0800] "GET /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7139.MOV HTTP/2.0" 206 229376 "-" "USER_AGENT2"
127.0.1.1:443 IP_ADDR1 - - [03/Feb/2019:17:09:14 -0800] "GET /remote.php/webdav/Bird%20Videos/Raw/2019-01-22/DSCN7139.MOV HTTP/2.0" 206 74416128 "-" "USER_AGENT2"

Any assistance troubleshoothing this is greatly appreciated. Have a nice day. :smile: