talk-android icon indicating copy to clipboard operation
talk-android copied to clipboard

Android 13: "Failed to upload" any size file on Android

Open moatus opened this issue 2 years ago • 20 comments

Steps to reproduce

  1. Open Nextcloud Talk and choose a conversation
  2. Take a picture using the in-app "Take a photo" option
  3. After pushing send, nothing will appears in the chat and Android sends a "Failed to upload" notification
  4. Try uploading via "Upload from device" any size file or image (testest with 40kb to 3mb) and nothing will upload (but when going the "Upload from device" route, this is no failure notification. It just don't work and nothing shows in the chat.

Expected behaviour

Trying to attach any photo, video, or file in a conversation.

Actual behaviour

When trying to capture or attach a photo, video, or file via Nextcloud Talk on Android, a notification appears saying "Failed to upload": image

It doesn't matter if you use "Take photo" or "Upload from device", none of the attachment options seems to work (though the failure notification only show up with "Take photo" and "Take video". Share contact doesn't work either. The only attachment that works is "Share location".

I've tested with a Pixel 4a and a Samsung Galaxy A52 and neither work. Both phones and the server are all on the same local network.

Device brand and model

Pixel 4a

Android version

13

Nextcloud Talk app version

15.0.3

Nextcloud server version

25.0.2

Talk version

15.0.2

Custom Signaling server configured

None

Custom TURN server configured

None

Custom STUN server configured

None

Android logs

No response

Server log

No response

Additional information

No response

moatus avatar Dec 30 '22 02:12 moatus

Is this issue because Talk hasn't been updated for Android 13? Just saw this on the product page: https://github.com/orgs/nextcloud/projects/57/views/11

moatus avatar Dec 31 '22 00:12 moatus

HI @moatus thanks for the report! Just checked and indeed there seem to be problems while uploading with android 13! We will increase the importance to upgrade!

I didn't yet had a closer look but most likely there are follow-up bugs caused by the new granular-media-permissions https://developer.android.com/about/versions/13/behavior-changes-13

mahibi avatar Jan 09 '23 15:01 mahibi

I cannot reproduce on Samsung s10e running LOS 20 (android 13) Every upload work well from same network or different

tested with talk 15.1.0 RC2

maxcco avatar Jan 11 '23 20:01 maxcco

Also unable to reproduce, Pixel 6pro and 7pro, GrapheneOS. Further details required before concluding that this is related to Android version.

lbdroid avatar Jan 20 '23 23:01 lbdroid

Tested it again @lbdroid @maxcco and it is uploading now. Server hasn't been restarted and conditions are the same, media is now uploading.

If it shows up gain, I'll update. Thanks for looking into it!

moatus avatar Jan 21 '23 01:01 moatus

@moatus ; are you certain that the talk android version wasn't 15.0.0 or 15.0.1 awhen you were having the issue and subsequently uodated? There was an upload issue that affected files over 1MB that was fixed in version 15.0.2.

lbdroid avatar Jan 21 '23 15:01 lbdroid

@lbdroid I am certain it was 15.0.2. I had read about the issue with less than 1MB files, which is why I tested with files from 40kb to 3mb. Any file I tried to send I would get the error message I posted above.

moatus avatar Jan 21 '23 16:01 moatus

I am having the same problem on v16.0.1 and i have this info related to this issue from nginx error log: 2023/05/02 23:44:07 [info] 1703#1703: *69 client canceled stream 7 while sending request to upstream, client: myIP server: myhost.com, request: "GET /ocs/v2.php/apps/spreed/api/v1/chat/badc453h?lastKnownMessageId=1561&includeLastKnown=0&limit=100&setReadMarker=0&timeout=30&lookIntoFuture=1 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php8.1-fpm.sock:", host: "myhost.com

ondrejlohnisky avatar May 02 '23 21:05 ondrejlohnisky

I am having the same problem on v16.0.1 and i have this info related to this issue from nginx error log: 2023/05/02 23:44:07 [info] 1703#1703: *69 client canceled stream 7 while sending request to upstream, client: myIP server: myhost.com, request: "GET /ocs/v2.php/apps/spreed/api/v1/chat/badc453h?lastKnownMessageId=1561&includeLastKnown=0&limit=100&setReadMarker=0&timeout=30&lookIntoFuture=1 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php8.1-fpm.sock:", host: "myhost.com

This request is about getting chat messages, so it's not directly related to the upload itself. Do you see the error notification? So you also don't see the upload when leaving the conversation and enter again right?

So if it's related to nginx, maybe https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html could contain some hints for configuration

mahibi avatar May 03 '23 09:05 mahibi

Nextcloud logging does not register this error. The only information about this is in notification as "Upload failed" and also this info log in error logs of nginx. I do not see the uploaded/not uploaded file in chat. It feels like i didnt allow the application uploading or what. But I also read somewhere that Nextcloid Talk is not 100% supported on android 13. So i am now waiting on 4th week of May for releass.

ondrejlohnisky avatar May 03 '23 10:05 ondrejlohnisky

I know this is old but still open, I am experiencing this too.

Nextcloud 17.1.2 on Ubuntu Server 22.04 Textcloud Talk version 17.1.1

Android 12 on OnePlus 7 Pro Nextcloud Talk Android App 17.1.0 installed from FDroid

Same thing, same notification error, nothing whatsoever in the server logs. The file I'm trying to upload is a 163kb jpg. Additionally, nothing is logged in my reverse proxy error log, but I have this in my reverse proxy access log:

10.4.5.10 - - [11/Oct/2023:15:23:31 -0700] "DELETE /ocs/v2.php/apps/spreed/api/v4/room/wpinthms/participants/active HTTP/2.0" 200 981 "-" "Mozilla/5.0 (Android) Nextcloud-Talk v17.1.0"
10.4.5.10 - - [11/Oct/2023:15:23:34 -0700] "GET /ocs/v2.php/apps/spreed/api/v4/room/wpinthms HTTP/2.0" 200 1567 "-" "Mozilla/5.0 (Android) Nextcloud-Talk v17.1.0"
10.4.5.10 - - [11/Oct/2023:15:23:34 -0700] "GET /index.php/avatar/1048313c-58e7-103b-8aac-8f73b30b6c02/512/dark HTTP/2.0" 200 3264 "-" "Mozilla/5.0 (Android) Nextcloud-Talk v17.1.0"
10.4.5.10 - - [11/Oct/2023:15:23:34 -0700] "GET /index.php/avatar/1048313c-58e7-103b-8aac-8f73b30b6c02/512/dark HTTP/2.0" 200 3264 "-" "Mozilla/5.0 (Android) Nextcloud-Talk v17.1.0"
10.4.5.10 - - [11/Oct/2023:15:23:34 -0700] "POST /ocs/v2.php/apps/spreed/api/v4/room/wpinthms/participants/active HTTP/2.0" 200 1836 "-" "Mozilla/5.0 (Android) Nextcloud-Talk v17.1.0"
10.4.5.10 - - [11/Oct/2023:15:23:39 -0700] "HEAD /remote.php/dav/files/6c7cc23e-52c9-103b-8e51-0fc031bcb58e/Talk/HW1.jpg HTTP/2.0" 404 571 "-" "Mozilla/5.0 (Android) Nextcloud-Talk v17.1.0"
10.4.5.10 - - [11/Oct/2023:15:23:39 -0700] "PUT /remote.php/dav/files/6c7cc23e-52c9-103b-8e51-0fc031bcb58e/Talk/HW1.jpg HTTP/2.0" 403 753 "-" "Mozilla/5.0 (Android) Nextcloud-Talk v17.1.0"
10.4.5.10 - - [11/Oct/2023:15:23:28 -0700] "GET /ocs/v2.php/apps/spreed/api/v1/chat/wpinthms?lastKnownMessageId=514&includeLastKnown=0&limit=100&setReadMarker=0&timeout=30&lookIntoFuture=1 HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Android) Nextc
loud-Talk v17.1.0"

I wonder if this has to do with that 404 for remote.php/dav path ?

surfrock66 avatar Oct 11 '23 18:10 surfrock66

That path is strange; each user has a "Talk" folder visible under files. My user is the 6c7 user; I can browse to my nextcloud url at /remote.php/dav/ and get "This is the WebDAV interface. It can only be accessed by WebDAV clients such as the Nextcloud desktop sync client."

I am set up with LDAP, and I'm noticing that the username and the display name are different; could that matter?

image

surfrock66 avatar Oct 11 '23 22:10 surfrock66

Why has this issue been closed? The problem has not been solved yet!

SlimTux avatar Nov 05 '23 00:11 SlimTux

Also unable to reproduce, Pixel 6pro and 7pro, GrapheneOS. Further details required before concluding that this is related to Android version.

I'm having the exact same issue with the newest app version

SlimTux avatar Nov 05 '23 00:11 SlimTux

I have exact same issue.

Android 12 Talk App v18.1.0 Nextcloud server 28.0.2 PHP 8.2

I am new to this forum. Should I file a new issue or will this one be reopened?

madsmki avatar Mar 19 '24 08:03 madsmki

Thanks for reporting. Is it possible to upload files via web for the same user? Does it still fail afterwards on android?

mahibi avatar Mar 22 '24 11:03 mahibi

I have no problems with uploading from web. Android still fails, but actually its possible to upload small files less than 1 MB, so it could be related to the issue that (might not) was fixed in version 15.0.2: https://github.com/nextcloud/talk-android/issues/2519

madsmki avatar Mar 30 '24 15:03 madsmki

Does it still happen with app version 19.0 ?

mahibi avatar May 08 '24 13:05 mahibi