Uploads of mp4 files from Android fail

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 22.2.0
Operating system and version (eg, Ubuntu 20.04): Linux 4.19.150-76.ELK.el6.x86_64 x86_64
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.49
PHP version (eg, 7.4): 7.4.24

The issue you are facing:

Uploading mp4 videos from Android app fails. Produces “Erreur inconnue” (Unknown error). In notifications, it says “Echec de l’envoi” (Upload failure), “Not Acceptable”.

This is unrelated to file size, the error occurs even with small (e.g. 2.1 MB) mp4s.

I don’t see error log lines as in this issue:

I have uplaoded mp4 videos from the desktop app, which I can watch fine in the web interface. Also, I have uploaded photos from the Android app.

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

Steps to replicate it:

  1. In app, press “+” button to upload files.
  2. Select “Ajouter a Nextcloud > Televerser des fichiers” (Add to Nextcloud > Upload files).
  3. Select an .mp4 file.

The output of your Nextcloud log in Admin > Logging:

Version warning: Imagick was compiled against Image Magick version 1650 but version 1654 is loaded. Imagick will run but may behave surprisingly at Unknown#0

(The above is from an unrelated issue. I don’t see any output relating to this issue.)

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

<?php
$CONFIG = array (
  'instanceid' => 'INSTANCEID',
  'passwordsalt' => 'PASSWORDSALT',
  'secret' => 'SECRET',
  'trusted_domains' => 
  array (
    0 => 'cloud.URL.com',
  ),
  'datadirectory' => '/home/USER/next/data',
  'dbtype' => 'mysql',
  'version' => '22.2.0.2',
  'overwrite.cli.url' => 'http://cloud.URL.com',
  'dbname' => 'DBNAME',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'USER',
  'dbpassword' => 'PASSWORD',
  'installed' => true,
);

The output of your Apache/nginx/system log in /var/log/____:

The error log does not show any messages. The access log has multiple lines for the transfers, like:

SERVER.IP - - [21/Dec/2021:12:22:31 -0500] "HEAD /next/remote.php/dav/files/cloud//InstantUpload/Camera/VID_20200924_145833.mp4 HTTP/1.1" 404 - "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0" cloud.URL.com CLIENT.IP
SERVER.IP - - [21/Dec/2021:12:22:32 -0500] "PUT /next/index.php/apps/user_status/heartbeat HTTP/1.1" 200 115 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0" cloud.URL.com CLIENT.IP
SERVER.IP - - [21/Dec/2021:12:22:34 -0500] "MKCOL /next/remote.php/dav/uploads/cloud/9b244d378ef99142ea80d6b34866f162 HTTP/1.1" 405 247 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0" cloud.URL.com CLIENT.IP
SERVER.IP - - [21/Dec/2021:12:22:35 -0500] "PROPFIND /next/remote.php/dav/uploads/cloud/9b244d378ef99142ea80d6b34866f162 HTTP/1.1" 207 782 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0" cloud.URL.com CLIENT.IP
SERVER.IP - - [21/Dec/2021:12:22:36 -0500] "PUT /next/remote.php/dav/uploads/cloud/9b244d378ef99142ea80d6b34866f162/0000000000000000-0000000001023999 HTTP/1.1" 406 226 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0" cloud.URL.com CLIENT.IP
SERVER.IP - - [21/Dec/2021:12:22:42 -0500] "GET /next/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 987 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0" cloud.URL.com CLIENT.IP
SERVER.IP - - [21/Dec/2021:12:22:49 -0500] "HEAD /next/remote.php/dav/files/cloud//InstantUpload/Camera/VID_20200924_160603.mp4 HTTP/1.1" 404 - "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0" cloud.URL.com CLIENT.IP
SERVER.IP - - [21/Dec/2021:12:22:55 -0500] "MKCOL /next/remote.php/dav/uploads/cloud/d2a837df6672ca68ff02512ff99ddfb9 HTTP/1.1" 405 247 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0" cloud.URL.com CLIENT.IP
SERVER.IP - - [21/Dec/2021:12:22:56 -0500] "PROPFIND /next/remote.php/dav/uploads/cloud/d2a837df6672ca68ff02512ff99ddfb9 HTTP/1.1" 207 782 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0" cloud.URL.com CLIENT.IP
SERVER.IP - - [21/Dec/2021:12:22:57 -0500] "PUT /next/remote.php/dav/uploads/cloud/d2a837df6672ca68ff02512ff99ddfb9/0000000000000000-0000000001023999 HTTP/1.1" 406 226 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0" cloud.URL.com CLIENT.IP
SERVER.IP - - [21/Dec/2021:12:23:08 -0500] "HEAD /next/remote.php/dav/files/cloud//InstantUpload/Camera/VID_20200924_145754.mp4 HTTP/1.1" 404 - "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0" cloud.URL.com CLIENT.IP
SERVER.IP - - [21/Dec/2021:12:23:12 -0500] "GET /next/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 987 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0" cloud.URL.com CLIENT.IP

Logs from failure to upload mp4 in Nextcloud Dev on Android (HTTP 406 error):
http://eaglegamma.com/nextcloud/logs.txt

Please exclude the MP4 and your Android device from the error.

You can download free test videos here:
https://test-videos.co.uk/bigbuckbunny/mp4-h264

Please also test with another Android device.

1 Like

I just tried uploading an MP4 from another source, and it failed. I also tried uploading an AVI video, and an M4A audio, which both failed. I then tried uploading PDF documents, which failed. It seems that maybe only images are working now.

I don’t have another Android device available now, but will test from another device when I do have one available.

Perhaps you can test another Nextcloud.

You can use https://try.nextcloud.com with a 60 minute user.
User is 16 characters long and autogenerated.
Password is: demo

Server is https://demo1.nextcloud.com or https://demo2.nextcloud.com

1 Like

I just successfully uploaded an mp4 to that test server. It looks like the phone is working fine, but my server setup has an issue.

1 Like