oxen-io / session-desktop

Session Desktop - Onion routing based messenger
https://getsession.org
GNU General Public License v3.0
1.53k stars 195 forks source link

[BUG] Unable to send images or media files in Desktop App #2943

Open alexander-mahisoft opened 1 year ago

alexander-mahisoft commented 1 year ago

Code of conduct

Self-training on how to write a bug report

Is there an existing issue for this?

Current Behavior

I've been unable to send any kind of media files or attachments on private chats or privately created rooms from the Desktop or iOS app since a few days ago.

Media messages get the loading icon for a few seconds and then show "Failed to send"

I'm attaching the Debug log from the Desktop version

Expected Behavior

No response

Steps To Reproduce

In a private chat with another user or a private group, send any attachment file

Desktop Version

v1.11.3

Anything else?

Debug Log: session_debug_1696368503151.txt

Example screenshot: image

KeeJef commented 11 months ago

Hey, are you still having issues uploading attachments, we did have an issue with the file server for a few days, but should now be resolved

Dikowda commented 9 months ago

Urgent: Same issue for me today...

ERROR 2023-12-16T14:01:35.505Z Message.saveErrors: null Error: upload to file server v2 of "SOME FILE" failed at uploadToFileServer (C:\Program Files\Session\resources\app.asar\ts\session\utils\Attachments.js:74:11) at async Promise.all (index 0) at async Promise.all (index 0) at async MessageModel.uploadData (C:\Program Files\Session\resources\app.asar\ts\models\message.js:525:47) at async MessageModel.retrySend (C:\Program Files\Session\resources\app.asar\ts\models\message.js:584:74) at async C:\Program Files\Session\resources\app.asar\ts\components\conversation\message\message-content\MessageContextMenu.js:119:13

I have tried multiple file types and all fail. This makes Session unusable!

sysfu commented 9 months ago

I experience this issue frequently with media messages (primarily voicemails in my case). To a lesser extent it also happens with plain old text message.

Today I've tried resending a voicemail six times and it's failed on each attempt. Most of the time I just give up and try later in the day or another day entirely. Really bad for usability, I can't recommend this app to my contacts when this happens regularly.

Logs attached

session_debug_1704470325425.txt

Dikowda commented 9 months ago

The lack of response from the devs and the other issues with the app namely unreliable group management (for example user appears to be removed from a group but they are not), means I've given up using it and migrated to one that can do the basics.

alexander-mahisoft commented 9 months ago

@Dikowda yep seems it's a recurring issue, have the same thing happening right now so it must be server side

hydrian commented 8 months ago

I'm still getting this error in Session Desktop with version 1.11.5. I'm getting "There was an Error setting this attachment." I'm trying to send a 150k jpeg image. This is with Linux Mint 21.2 and the Flathub installation.

KeeJef commented 8 months ago

I'm still getting this error in Session Desktop with version 1.11.5. I'm getting "There was an Error setting this attachment." I'm trying to send a 150k jpeg image. This is with Linux Mint 21.2 and the Flathub installation.

Do you have logs from the client around the time you ran into the issue, is it still reproducible?

hydrian commented 8 months ago

I'm still getting this error in Session Desktop with version 1.11.5. I'm getting "There was an Error setting this attachment." I'm trying to send a 150k jpeg image. This is with Linux Mint 21.2 and the Flathub installation.

Do you have logs from the client around the time you ran into the issue, is it still reproducible?

It happens with any image file all the time.

I'll attach the logs the next time I get in front of my desktop.

hydrian commented 8 months ago

I got two different errors today.

  1. The issue presented as the image wouldn't send even after multiple resends. This issue creates log entries to diagnose. I've attached that debug log excerpt and the image I was uploading. debuglog-wont_send.txt Stag-Phases
  2. The second issue didn't create any log entries. So I'm at a loss at what I can give you. Here is a screenshot of the error. Session-WontSet-2024-02-07

Here is the flathub application info: Session Desktop - Private messenger

            ID: network.loki.Session
           Ref: app/network.loki.Session/x86_64/stable
          Arch: x86_64
        Branch: stable
       Version: 1.11.5
       License: GPL-3.0
        Origin: flathub
    Collection: org.flathub.Stable
Installation: user
     Installed: 332.8 MB
       Runtime: org.freedesktop.Platform/x86_64/22.08
           Sdk: org.freedesktop.Sdk/x86_64/22.08

        Commit: 8aad381e1148cd6d071cbfec04e6958cec7072f6d5f068525ca8f950e443bb04
        Parent: 14b23301cf78b274523d3ebff508df0b66ce039e31bb5e251c9ea5a0fa29ee03
       Subject: Update session-desktop-linux-amd64-1.11.4.deb to 1.11.5 (8099bb55)
          Date: 2023-12-11 03:27:22 +0000
KeeJef commented 7 months ago

Tracking this issue internally via https://optf.atlassian.net/browse/SES-1454

hydrian commented 7 months ago

Upgraded to 1.11.5. This didn't help. I didn't expect it to help based on the changelog. Wishful thinking.

I did try the apt deb package version of 1.11.5 and it didn't give me the constant 'Sorry, there was an error setting your attachment.' error message when I try to attach a file unlike the flatpak version.

sysfu commented 6 months ago

I experience this issue frequently with media messages (primarily voicemails in my case). To a lesser extent it also happens with plain old text message.

Today I've tried resending a voicemail six times and it's failed on each attempt. Most of the time I just give up and try later in the day or another day entirely. Really bad for usability, I can't recommend this app to my contacts when this happens regularly.

I'm pleased to report that since the latest app update to 1.12.0 my deliver-ability problems have almost entirely disappeared.

hydrian commented 6 months ago

I'm pleased to report that since the latest app update to 1.12.0 my deliver-ability problems have almost entirely disappeared.

@sysfu, What install type did you use?

sysfu commented 6 months ago

I'm pleased to report that since the latest app update to 1.12.0 my deliver-ability problems have almost entirely disappeared.

@sysfu, What install type did you use?

AppImage

sysfu commented 3 months ago

The issue has re-appeared on occasion with 1.12.4 release. Some messages, even just basic text ones have to be resent 4-5 Xs before they go through.

Perhaps this is due to the recent spam attacks on the network.

KeeJef commented 1 month ago

Is this still occurring in 1.13.1?

sysfu commented 2 weeks ago

Sorry for delayed response on this.

I'm having a similar failed to send issue with a message that includes a URL preview as of release v1.13.2.

image

Not sure if it's the same bug.

session_debug_2024-09-18T19_31_13.575Z.txt

sysfu commented 2 weeks ago

Did it again today with a jpg image

session_debug_2024-09-19T21_01_54.624Z.txt

sysfu commented 2 weeks ago

I just learned that the group chat I was trying to send images too has banned uploading of images. They were subject to earlier attacks of bad actors uploading CSAM.

I just tried sending the image in a direct message and it went through.

A more descriptive error message for failed uploads to group chats that have banned images would be helpful.