nextcloud / talk-android

📱😀 Video & audio calls through Nextcloud on Android
Other
549 stars 247 forks source link

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

Open moatus opened 1 year ago

moatus commented 1 year ago

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 commented 1 year ago

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

mahibi commented 1 year ago

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

maxcco commented 1 year ago

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

lbdroid commented 1 year ago

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

moatus commented 1 year ago

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!

lbdroid commented 1 year ago

@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.

moatus commented 1 year ago

@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.

ondrejlohnisky commented 1 year ago

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

mahibi commented 1 year ago

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

ondrejlohnisky commented 1 year ago

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.

surfrock66 commented 1 year ago

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 commented 1 year ago

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

SlimTux commented 1 year ago

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

SlimTux commented 1 year ago

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

madsmki commented 7 months ago

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?

mahibi commented 7 months ago

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

madsmki commented 7 months ago

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

mahibi commented 6 months ago

Does it still happen with app version 19.0 ?

Stratosfear1 commented 4 months ago

Got the same issue and sure, it also occurs with app version 19.0.1 on different Samsung devices with Android 12, 13 and 14, Server Nextcloud 29.0.1. But not always. Sometimes the behaviour is different. But don't know the circumstances when it will work and when not. Possible it depends on network used. Sometime it helps, switching from wlan to mobile data or vice versa. But some wlan will work, some not. Sometimes mobile data will work, sometimes not.

xcpky commented 1 month ago

the exact same issue happens here on android 14 it seems this is related to android permission management. After I change "Photos & videos" permissions to allowed, I can upload pictures which I can't before.