-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Desktop client sending contacts many "Message encrypted for non-existing session" #2806
Comments
I had the same issue (signalapp/Signal-Android#7982) that also involved the Desktop client as well as other party being on Mac, but I was told to report it on Android (my anchor device), hoping you get some traction as I want to know why it happened and it was never addressed. |
Same problem here, and no single message is send successfully (Desktop Client 1.17.3 on Windows 10). The deprecated chromium-based client works. This can be "fixed" by first sending a message from the mobile app on the phone. This seems to synchronize the connection somehow. |
@GuardianMajor @jongleur1983 It's only somewhat useful to know that you're running into this behavior as well - after all, we can't know for sure if it is the same issue without debug logs. Please, whenever commenting on other bugs like this, treat it like your own bug report, with full details, including debug logs. |
@scottnonnenberg-signal I got it working before looking for it to be an actual bug. If it's still useful to generate the debug logs a day later I'll do it tomorrow (when I'm back at the same machine). |
@scottnonnenberg-signal I understand and agree, that's why I linked to the issue where I did provide all that I could and then some, but no one ever did anything or even acknowledge it, so it is hard to help when no one seems to want it. Tell me what you need and I will happily give it to you but I have long accepted that these dead messages that shouldn't be and I will never have access to them, which is not right but what can I do but move on. |
@neilr8133 The explanation for a message from yourself is that your devices communicate with each other. You can see a sent message from yourself on all of your devices, but only one device sent that message. It's because the original sender 'synced' that message to its sibling devices. What you saw was a desktop waking up after a long time and sending broken messages to sibling devices and devices owned by your contact. So, exactly how long was 'a while' since you had previously opened desktop? What else can you say about your usage of your primary device? How many messages do you send/receive every day? |
@scottnonnenberg-signal Just on the issue of sync, I have noticed as well that the stable version running on my wife's machine does NOT update to messages exchanged unless it is expressly open at the time the messages come, otherwise, no update whatsoever when you open it. |
@GuardianMajor We'd love to see some logs from that desktop instance! |
@scottnonnenberg-signal in my case your question to @neilr8133 seems to be a very likely reason: I installed the native desktop client when it was announced initially by the chromium-based one, but forgot to exchange the shortcut in my taskbar, so I always opened the old one again after a reboot. The native client thus didn't run for weeks in between. My primary device receives >=5 messages per day, usually much more, very rarely less. |
@scottnonnenberg-signal I have provided them before in other issues but I will be happy to do that, I will get that worked out and sent to you ASAP. Thanks. |
I may have encountered this issue just now, came here via @anantpaatra's Reddit thread after receiving 100+ "Message encrypted for non-existing session" messages on my Android phone from one contact (who usually uses an iPhone, eta: but just opened the macOS app ) within the space of a few seconds. I tried "Reset secure session" to no avail. I ended up blocking the offending number so that I could use my phone again as only other way to stop the messages was to disable WiFi. https://debuglogs.org/d994eb05a825fc2f1b67cecc2af4c96167e07fb81a58322da1d9ed529ab15d9b |
Having just launched Signal on my Windows workstation for the first time in a couple months (and shortly updating itself), Signal apparently decided to spam several of my contacts with a bunch of messages that inevitably failed. https://user-images.githubusercontent.com/5534045/51508726-898c9c80-1dc4-11e9-8825-e112293c2baf.png https://debuglogs.org/9379b8cf9d298bfaff45b4c226656fb0e463f97ef15c332105cc48af6467a16f Here's the log from my Android client that did get a few of those error messages today: And here's a log from somebody else. I'm guessing those messages were being sent out before the update happened. There apparently aren't as many error messages as there were actual messages since the last time I was using this computer, so it probably got cut off... but at least one contact ended up with at least 55 error messages. |
Same issue here: launched Signal Desktop for the first time in a couple months and it spammed my contacts with "message encrypted for non-existing session". Signal Android v4.32.8 |
Same here while communicating with contacts on Signal Android. Signal iOS v2.34.0.25 |
Seems like I've come across the same issue others are explaining. I mainly use the Android client (a few messages a day). I opened the Windows desktop client for the first time in a while (a couple months?). While it was loading messages, I restarted the client after it prompted for updates (not sure if that caused the following). Then several of my contacts (and my Note to self) got spammed with "Message encrypted for non-existing session" messages. Android logs: https://debuglogs.org/92028ae3e2f6afa2113953ccc40bfb71d96475a759a926b0b78cdbc945c009b9 |
My contacts just got spammed with the same "Bad encrypted message" and "Message encrypted for non-existing session" as the screenshots in issue #3061 show. This was caused by me launching the Signal Desktop app on Manjaro Linux for the first time in months. I'd just updated my system so it's running the latest packages and signal desktop version 1.24.1 It didn't come up with the "loading messages" screen it just took me to the UI and started downloading messages in the background (which I think is what set off the spam) Closing the app immediately stopped the messages, and launching it again brought up the "Loading messages" screen and all my messages caught up and it did not spam anyone further. Here's a debug log I was able to get after relaunching the app, hope it's useful in fixing the issue as it is quite stressful to suddenly get calls in the evening from people wondering why you're sending them weird messages! https://debuglogs.org/f8d63b12466b61e3c9192b16a120493d9a8e9c208d7a90efc69c259ad0435ec2 |
Yeah one of my contacts got hit with the same, but ironically nothing on my end of the same conversation. So she reset her session with me and it seems to have fixed it but all the stuff that is now obscured as that warning, are gone and worthless. |
@scottnonnenberg-signal I just had this issue too, and I think I know what happened: |
I just had this issue too. What additional can I provide to help with this? Platform InfoSignal Version: 1.25.1 Operating System: Arch Linux Linked Device Version: Link to Debug Loghttps://debuglogs.org/c8ce9d64267e0006be2d3d2f5a95db1e3b408333988549acc9dcb165e78b6272 In most cases, a log from your other devices is also useful: |
Actually the desktop app didn't get all the messages. edit: and at least part of my contacts had to reset the session. |
Here are the debug logs of one of my contact that was impacted by this issue happening https://debuglogs.org/6aca53dac04984993b4469f0135df671e5b65a912c915dc8f614062269ee35f4 |
@tuxayo yes you can go ahead and reset the secure session in your notes to self conversation. A few questions for you -- when was your desktop instance initially set up and when did you last successfully receive a message in your note to self conversation? |
My desktop client is spamming both myself (note to self) AND my contacts/channels with error messages after I hadn't launched it for about two months. I thought this bug was fixed a long time ago. |
@Brog33 We have seen some cases where Desktop forces itself to remain active in these situations where it has been offline for a very long time. In the future, please provide a debug log whenever you file a bug. At this point, it's likely that we've lost those key entries from that crucial launch after a long delay. |
Ok. Sent | Friday, September 6, 2019 2:02 PM (1567771378421) Sent | Friday, September 6, 2019 2:04 PM (1567771456497) Sent | Friday, September 6, 2019 2:05 PM (1567771525440) Sent | Friday, September 6, 2019 2:40 PM (1567773646174) https://debuglogs.org/992ca7ac10d763d6697987866e26f17c86c2bfcf9af21ae854e0cb66d56cc7e4 |
@Brog33 Please update to v1.27.1. We've made changes which should prevent that in the future. |
Hmm well, that didn't work. I'm using 1.27.2 now and still getting these "Error handling incoming message". They just keep on coming. https://debuglogs.org/3577820d05ebffcaf184c06a7e90406c9b6517d30aa3e787fa927a5f6a44db16 |
@Brog33 it could be problems with your contacts' devices, or these conversations are in bad shape and it need a 'reset session.' We'd be happy to talk further about your specific situation, and the specific conversations where you're seeing these errors. Please feel free to reach out to [email protected] |
@scottnonnenberg-signal I just had this happen to all my contacts. v1.27.2 on Ubuntu 19.04. Same exact scenario as the OP. Signal for desktop was offline since July 10. Opened it and it immediately sent hundreds of messages "from me" containing "Bad encrypted message" and "Message encrypted for non-existing session" and "No available session for contact". My contacts all called me in the middle of the night wondering if I was trying to get hold of them with them receiving dozens of empty messages (in one case hundreds!). This affected contacts across Android and iOS. I was able to continue in my conversations over Signal on desktop without resetting any sessions though. In "Note to self" I had to reset the session to get notes to come through. |
Also seeing this problem after not having used signal-desktop for a while. I did not have to reset any sessions though. This has happened twice now, when not using Signal Desktop for a while (1-2 months) and then opening it. EDIT: Also not all messages were successfully synced from all conversations to my desktop. Some of the more recent ones are missing. Ubuntu 16.04 and Signal 1.27.4 |
Same issue here, I did not use Signal desktop for over a month, just started it and as I started it, my contacts got spammed with "Message encrypted for non-existing session" as well as "Bad encrypted message". I noticed because I have a "Note to Self" and got it as well, and two of my contacts alerted me. Both my desktop (Ubuntu 16.04) and app (Android 8.1.0) were on outdated versions of Signal, I did not check the versions before I updated. Both are updated now, I deinstalled signal-desktop (app remove) and reinstalled (app install) and then it started up fine, but it still does not have all latest messages showing, only for some conversations. |
@StephanieKemna I'm sorry you ran into that. If you provide your debug logs ( |
I just tried it again with the latest version (Android 9 with Signal 4.49.18; Ubuntu 16.04 with Signal 1.28.0). Haven't opened Signal for several weeks again on the desktop. Same issue. I saved the debug log, though I don't want to put it out in public in full. I'm okay with sharing it personally with a Signal developer. There are however a lot of tracebacks in the log that might be of interest:
Issues observed:
I don't know yet if it also spammed other people like before, since I cannot see that myself. |
@VorpalBlade Please send your logs to [email protected]. Maybe if you could talk about what does work for you (like what are your normal working patterns, how do you generally use Signal Desktop), that would help us determine where the problems are? |
Thanks for looking into this! I'm sending the debug log to [email protected] now. |
I have sent the log file. |
I have managed to reproduce this issue when using two separate signal clients through the following steps:
There are a few ways I think "bad encrypted message" spam could be mitigated, let me know what you think:
|
Thanks :)
According to the file timestamps in the content of ~/.config/Signal
I didn't use it often. Is there more info that I can try to find? |
This issue has been open for a year and a half now, and we haven't seen any progress. |
My workaround is use Signal Desktop at least every two weeks, I think it's safe up to that duration. Does anyone else has a precise idea about the inactive time required to get this bug? |
This means that if I can't use Signal Desktop for more than a month (that's my guess), I would have to wipe the app data and redo the pairing. Which means loosing the whole history. Another workaround would be to try to rely on bug #2904 (if it still happens, I didn't retry because of this very bug ^^). Which means to close Signal when it starts processing new message to get them dropped. |
@tuxayo You can unlink a desktop instance in your phone; when it starts up it will ask to be relinked to your phone, but no messages will be deleted. Note that any message not yet downloaded at the point of the unlink will be deleted from the server's queue. |
Thanks now we have a reliable workaround for instances that have been inactive for too long. |
Is there anything users could do to provide the developers more info about this bug? Are there places in Signal-Desktop that could be made more verbose so our logs would be more helpful? |
I'm surprised this bug hasn't been given more attention. Can one of the Devs comment on the reproduction steps and proposals from lapp0 above? |
I haven't had this issue anymore, but my procedure now any time before opening desktop is to (1) make sure mobile app is latest version, (2) make sure desktop app is latest version. Never open desktop app before it has been updated. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been closed due to inactivity. |
Closest match I found was Bug "Message encrypted for non-existing session" after failed sync of a stale desktop client #2746 which involved a failed desktop sync, I'm not sure if sync had failed for me or not.
Bug description
Signal desktop client was offline for a while. Launched it, and I believe updated to 1.16.3 before I tried to use it. At 2018-10-18T13:13:09.620Z Sent a message to an existing conversation, but Signal on my phone popped up a message "from me" with content "Message encrypted for non-existing session." The recipient (on a different platform) received a similar message (but worded a little differently, if I recall correctly). The original message content was never received on my phone nor on the recipient's platform, but is visible in my Desktop app
Steps to reproduce
Unable to reproduce, when I sent a new message (the next day) it worked fine.
Platform info
Operating System:
Linked device version:
Android version: 9
Link to debug log
The text was updated successfully, but these errors were encountered: