Android App "Media" stuck at "Loading..."

Nextcloud version: 22.1.1
Operating system and version: Ubuntu 20.04
Apache or nginx version: nginx/1.18.0 (Ubuntu)
PHP version: PHP 7.4.3 (cli) (built: Aug 13 2021 05:39:12) ( NTS )

The issue you are facing:

First and foremost, I have been using Nextcloud since around version 12. It is great and I do love it, so “thank you” :+1:

I have never been able to use the “Media” tab in the Android app. When I try to access “Media”, it indefinitely shows “Loading…”. I have included the output of the Nextcloud logs below, which seems to suggest that it doesn’t recognise me as being allowed access to my photos, despite being logged on as the same user (both in the app and on the PC).

I have a large collection of photos totalling 633GB, or 123K files. I can view them on my PC via the browser “/apps/photos/” but never on the Android phone app. I believe I have the latest app version, 3.17.1.

Is this the first time you’ve seen this error? (Y/N): No

Steps to replicate it:

  1. Open the Android app
  2. Select “Media”
  3. Stuck at “Loading…”

The output of your Nextcloud log in Admin > Logging:

Formatted:

[webdav] Fatal: Invalid search value for '{http://owncloud.org/ns}owner-id', only the current user id is allowed

SEARCH /remote.php/dav
from 192.168.1.1 by Chris at 2021-10-26T09:44:59+00:00

Raw:

{"reqId":"lofU3O2QDolSvgn3BysC","level":4,"time":"2021-10-26T09:44:59+00:00","remoteAddr":"192.168.1.1","user":"Chris","app":"webdav","method":"SEARCH","url":"/remote.php/dav","message":"Invalid search value for '{http://owncloud.org/ns}owner-id', only the current user id is allowed","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.17.1","version":"22.1.1.2","exception":{"Exception":"InvalidArgumentException","Message":"Invalid search value for '{http://owncloud.org/ns}owner-id', only the current user id is allowed","Code":0,"Trace":[{"file":"/usr/share/nginx/nextcloud/apps/dav/lib/Files/FileSearchBackend.php","line":147,"function":"transformQuery","class":"OCA\\DAV\\Files\\FileSearchBackend","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/dav/lib/Files/LazySearchBackend.php","line":64,"function":"search","class":"OCA\\DAV\\Files\\FileSearchBackend","type":"->"},{"file":"/usr/share/nginx/nextcloud/3rdparty/icewind/searchdav/src/DAV/SearchHandler.php","line":81,"function":"search","class":"OCA\\DAV\\Files\\LazySearchBackend","type":"->"},{"file":"/usr/share/nginx/nextcloud/3rdparty/icewind/searchdav/src/DAV/SearchPlugin.php","line":123,"function":"handleSearchRequest","class":"SearchDAV\\DAV\\SearchHandler","type":"->"},{"file":"/usr/share/nginx/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"searchHandler","class":"SearchDAV\\DAV\\SearchPlugin","type":"->"},{"file":"/usr/share/nginx/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/usr/share/nginx/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/usr/share/nginx/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/dav/lib/Server.php","line":333,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/usr/share/nginx/nextcloud/remote.php","line":166,"args":["/usr/share/nginx/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/usr/share/nginx/nextcloud/apps/dav/lib/Files/FileSearchBackend.php","Line":285,"CustomMessage":"--"},"id":"6177ce1c1022b"}

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

<?php
$CONFIG = array (
  'instanceid' => 'ocwz699wikha',
  'passwordsalt' => 'xxxxxxx',
  'secret' => 'xxxxxxx',
  'trusted_domains' =>
  array (
    0 => 'cloudy.xxxxxxx.com',
  ),
  'datadirectory' => '/mnt/Archive/data',
  'dbtype' => 'mysql',
  'version' => '22.1.1.2',
  'overwrite.cli.url' => 'https://cloudy.xxxxxxx.com',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxxxxxx',
  'dbpassword' => 'xxxxxxx',
  'installed' => true,
  'filesystem_check_changes' => 1,
  'enable_previews' => true,
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\Movie',
    1 => 'OC\\Preview\\PNG',
    2 => 'OC\\Preview\\JPEG',
    3 => 'OC\\Preview\\GIF',
    4 => 'OC\\Preview\\BMP',
    5 => 'OC\\Preview\\XBitmap',
    6 => 'OC\\Preview\\MP3',
    7 => 'OC\\Preview\\MP4',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
    10 => 'OC\\Preview\\PDF',
  ),
  'app_install_overwrite' =>
  array (
    0 => 'previewgenerator',
    1 => 'podcast',
  ),
);

The output of your Nginx log in /var/log/____:

Nginx error log is empty, so below is Nginx error log at the time I access “Media” on the app.

185.173.35.5 - - [26/Oct/2021:10:40:15 +0100] "GET / HTTP/1.0" 301 178 "-" "NetSystemsResearch studies the availability of various services across the internet. Our website is netsystemsresearch.com"
192.168.1.1 - - [26/Oct/2021:10:41:28 +0100] "GET /hosting/capabilities HTTP/1.1" 200 241 "-" "Nextcloud Server Crawler"
192.168.1.1 - - [26/Oct/2021:10:42:26 +0100] "GET /hosting/capabilities HTTP/1.1" 200 241 "-" "Nextcloud Server Crawler"
192.168.1.1 - - [26/Oct/2021:10:42:28 +0100] "GET /hosting/capabilities HTTP/1.1" 200 241 "-" "Nextcloud Server Crawler"
192.168.1.1 - - [26/Oct/2021:10:44:39 +0100] "GET /hosting/capabilities HTTP/1.1" 200 241 "-" "Nextcloud Server Crawler"
192.168.1.1 - - [26/Oct/2021:10:44:40 +0100] "GET /hosting/capabilities HTTP/1.1" 200 241 "-" "Nextcloud Server Crawler"
123.183.224.94 - - [26/Oct/2021:10:45:26 +0100] "GET / HTTP/1.1" 200 7478 "-" "Sogou web spider/4.0(+http://www.sogou.com/docs/help/webmasters.htm#07)"
192.168.1.1 - - [26/Oct/2021:10:51:41 +0100] "GET /hosting/capabilities HTTP/1.1" 200 241 "-" "Nextcloud Server Crawler"
192.168.1.1 - - [26/Oct/2021:10:51:42 +0100] "GET /hosting/capabilities HTTP/1.1" 200 241 "-" "Nextcloud Server Crawler"
192.168.1.1 - - [26/Oct/2021:10:51:42 +0100] "GET /hosting/capabilities HTTP/1.1" 200 241 "-" "Nextcloud Server Crawler"

I seem to be having the exact same issue with the only android device on my NC 22 instead e, iOS devices work fine. This also was not an issue with prior NC versions.

2 Likes