Skip to content

Android app fails to play media files (music) from bind-mounted folder #9826

@arkascha

Description

@arkascha

I cannot play music files with my nextcloud android app. I can navigate to the files and select them, but I only receive the error "Could not read the media file". The server log files show a 404 which is strange, since the files are clearly there and can actually be played without an issue using the web UI.

The folder holding the files is mounted (mount --bind) into the user's data files section. File permissions are like those files created by nextcloud itself: user and group ownership for account "www-data", the files are group writeable and readable for everyone. The server system is a standard Ubuntu system.

Steps to reproduce

  1. have some media files mounted into your nextcloud files section (ogg or mp3) (mount --bind)
  2. scan the file system to import those files (sudo -u www-data php -f public/occ files:scan arkascha)
  3. open the nextcloud app on an android device
  4. navigate to the media files and select one

Expected behaviour

The file should get played. Actually the UI clearly suggests that it is trying to play the file, there is even a play button.

Actual behaviour

The file is not played, I receive an error toast "Could not read the media file".

Can you reproduce this problem on https://try.nextcloud.com?

I cannot reproduce the same situation (mount --bind) on that system, so I cannot check this. Sorry.

Environment data

Android version:
LineageOS 18.1 (Android 11)

Device model:
Oneplus 7 Pro

Stock or customized system:
Customized: LineageOS

Nextcloud app version:
Version 3.19.0, installed from google

Nextcloud server version:
Nextcloud version 23.1

Reverse proxy:

Logs

Web server error log

31.17.208.40 - - [13/Feb/2022:21:32:38 +0100] "POST /ocs/v2.php/apps/dav/api/v1/direct?format=json HTTP/1.1" 404 1456 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.19.0"
31.17.208.40 - - [13/Feb/2022:21:32:34 +0100] "GET /index.php/apps/files/api/v1/thumbnail/256/256/Multimedia/music/All%20Saints/Black%20Coffee.mp3 HTTP/1.1" 404 822 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.19.0"
31.17.208.40 - - [13/Feb/2022:21:32:51 +0100] "POST /ocs/v2.php/apps/dav/api/v1/direct?format=json HTTP/1.1" 404 1456 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.19.0"

Nextcloud log (data/nextcloud.log)

- - -

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions