-
-
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
App often remains disconnected. #1075
Comments
It looks like the websocket is closed and not reopened later when I return to the app and/or reconnect to wifi. |
At the end of this log, it looks like we are actively trying once a minute to reconnect, but websocket connections and http requests are simply failing, as if offline. Did you try just restarting Signal, rather than chrome? I don't see any restarts in the log. |
Sam, here is my debug log: https://gist.github.com/anonymous/ec0b54f3fe1ba55227d06ef937b58c16 |
I experienced this issue for the first time on March 17 just a day or so after upgrading to version 0.33.0 from a version that was several months older (sorry I don't know my previous version number). |
It looks like the XHR is failing to call its event handlers:
If that's so, we should pull the state of the network-probing up out of the |
I think you're right about the xhr not completing, since both logs above contain a GET to /v1/devices without a corresponding response and I believe that would effectively hang the reconnect process. 🎉 However, I'm not sure I understand your explanation. If we were making it back to the init function, it would immediately instantiate a new MessageReceiver and thus a new websocket connection. Have you verified that the 'online' event is firing on resume? I would guess that maybe the problem is that it doesn't fire in this case, and the xhr fails silently... |
Yep, you're right. I don't see any output from a newly instantiated MessageReceiver. Hmm, so that theory is bust. That lack of XHR response sure is interesting--have to dig into that a bit more. |
Are you sure it is actually disconnected or is it just forgetting to remove the "Offline Check your network connection." message? I ask because I have Signal Desktop set to open at login (only just installed it for the first time yesterday) and this morning it popped that message up, despite syncing a new group conversation I started last night while the system was shut down. I found this bug because I thought it was not reconnecting but I just tried sending someone a message and they received it, even though the "Offline" warning has not gone away. If it is a different problem, I can open a new issue. I just thought I would try here first since it might be related. Obviously something isn't getting notified that the network has come up. |
I've got the same problem, and I can't seem to clear it (including by restarting Signal). The app simply says "Disconnected\n Check your network connection." Interestingly, I can still send messages just fine, and those messages appear on my android app as well. But I can't receive messages on my mac desktop, nor do I see the messages that I send with my android device on my mac. It's been like this for days now, and I believe it started when I took a vacation to another state in a different time zone (if that matters). |
@NoahIMVU If restarting doesn't fix it, then you've got a different problem, and you should open a new issue and post a debug log.. |
My bug on the topic was closed as a duplicate of this one. Note that restarting the computer did fix the problem, so there's that. |
Same problem here and I'm able to reproduce systematically, just put machine in sleep mode and wake up. https://gist.github.com/anonymous/91f66e75e261335542350b4eca99328b |
I can confirm this is happening on [Electron][1.0.23.256][Win10x64] and it happens in a very almost predictable manner.
It feels as if it has a hard time maintaining the socket active for some reason and it is somehow "timing out". The client has full internet access and the firewall has been set accordingly to not restrict it either.
I looked at the log, nothing there that is any different (by much) from what has been reported already, so I won't clutter the issue with it, but available if needed. Let me know if you need anything else. Currently my go to fix is to select a different user to clear it, but it does make me wonder if while in this state, it will actually sync new messages being sent. I will have to test it while in this state by having a user send me a message to see if it will come through or not. I suspect that message getting pushed out to the client will indeed reset the state and come through but that is just an unconfirmed assumption at the moment. One last "oddity" if you will that I have observed is that sometimes the longer the client is open, the less it will happen and there are times the longer the client is open the more it happens; that has been inconsistent enough that I have not been able to attribute a pattern to it yet, will keep posted if I figure out the why. I am currently observing the environment as a whole during the "stable period" with the same during the "unstable period" to see if I can attribute the difference to any particular activity during that time which might shed some light. |
Does this ever happen when the application has focus? Or does it only happen when you've switched to another app? I'm working on a theory that Electron aggressively tunes the event loop down when the application is not in-focus, and on some machines that means losing the connection to the websocket. |
@scottnonnenberg I have not observed specifically for focus/blur so can't be sure but it seems it doesn't matter since most of the time it happens comes after starting it where focus is obvious. |
@scottnonnenberg This happens for me when the program is in focus so I doubt that's it. https://gist.github.com/anonymous/10ed5eb61d3b70691bfbe2f85b0f55d6 |
@Dyras Thank you very much for providing those logs! I'm noticing an interesting pattern: a big space in the logs before most 'websocket closed' log entries. Not sure what would cause that while the application was focused, aside from IndexedDB compaction or something. Even our various types of cryptography we still do on the primary thread shouldn't take longer than a second each... About 90 seconds:
About 90 seconds:
About 90 seconds:
About 90 seconds:
About 90 seconds:
About 90 seconds:
|
Do you need more logs now that additional logging has been merged? Also I seem to have been mistaken, Signal never seems to disconnect while focused. |
A log after I saw Signal Desktop (electron 1.0.25) being disconnected while it was not in focus for some time: https://gist.github.com/anonymous/64d2d5551bd08cd3f7c76f66a7d796c1 |
@scottnonnenberg This has been already provided but wanted to add this to it as I noticed that it happens when you initially start it and then after a while of running, it will do it again, I captured snippets of the log during the times they happen and it seems to confirm that the keep-alive is not completing right.
I have taken the repeated keep-alives out to condense the flow a bit. |
@GuardianMajor Thanks for that. I notice that those are two really quick blips. Maybe a second offline at most. We've uncovered a much more insidious problem which repros for me consistently on Linux, where the app remains offline until you make the app hit the internet for some reason - load a conversation (and therefore a user profile), verify someone's contact number. As you can imagine, we're really interested in ensuring that incoming messages are received even when the app is in the background. Anyone experiencing a lack of message alerts, or the app showing 'Connecting' for a long time in the top left, please send me your logs. I can get it to happen on Linux if the app is idle in the background, and legitimately loses the websocket connection - when it tries to reconnect, that process seems to hang. |
Actually they are far more frequent, like this morning for example but I just didn't want to send a huge roll that ties up the thread, that's all. If you wish to have the "longer" full on logs, by all means I can send those to you but despite being redacted, I don't particularly feel comfortable for them to be posted publicly. You have my email, I'd be happy to send the whole kit and caboodle to you if you wish, just shoot me a message if you think they will help. Thanks. PS. I am experiencing on Windows the condition you described on Linux, especially this morning. The persistent message despite me sending and receiving messages, which confuses the heck out of me as to how it can send/receive but yet have this persistent message about it being disconnected. I am hoping that's somehow a GUI bug rather than a network issue, but when I check the log you have the errors I posted before showing clearly something is triggering that message. |
@GuardianMajor Ah, I'll go do some testing on Windows, see what I see there. In the meantime, please contact support@whispersystems.org to get that whole log to us. It does sounds like you're dealing with a slightly different behavior from Linux. On Linux, when you see that 'Connecting' state stick around, you actually cannot receive messages. It sounds like you have a different issue, where you are indeed connected but the message in the top-left claims otherwise. When you say 'far more frequent' can you talk about what that was really like? Maybe go through a timeline for us - what you were doing, what you say, about how long things stuck around, etc. Any errors or weirdnesses you saw. That will pair well with your log, so perhaps send that to the support email address as well. Thanks! |
@scottnonnenberg My apologies I wasn't more clear. What I mean is that before it would be initially (within a minute or less) and then here and there, sometimes a few minutes, sometimes an hour before it would happen again, but this morning it was triggering literally every 30-120 seconds which I found quite odd. Specially that as I said, it seemed at least that I was able to send and receive just fine, which honestly I don't how or why - but I will send the full log to you via email. I was doing nothing different than I do every morning, Outlook 2016 open (in the tray) for email, Firefox open with a few tabs at most and that's about it. I usually don't have a lot of apps open until mid to later in the day where it could be anything from Photoshop CS6, Illustrator, Word 2016, Excel, OneNote, PushBullet, Line, Edge, Chrome, Visual Studio 2017, Acrobat Pro XI and so on, on top of what I normally have in the morning - of course not all at the same time usually but it could be 3-4 of them at the same time at times. Does that help? I made a point of closing it out and then opening it fresh and leaving it open all day to get as much log and behavioral data to you as possible. The only "annoyance" if any is that it will tie up my task bar all day long which will certainly be disruptive given how many thing I have open and working on at any given time. Because of the inability to make it go away and remain tidy, I have had to resort to the odd behavior of waiting for a "ding" on my phone to open up the app on the desktop and handle the conversation and then close it out. But for the sake of providing as much useful information as I can, I will open and keep it open all day so I can get you all the logs. Let me know if anything else I can provide to help you out. By the way, not that it should really matter given most people are on broadband anyway, but I am on a T3 line with multiple OC3 backbones, so my bandwidth is VERY high and my network speed is nearly instant. Also, you already know but just in case, I am on Windows 10 Pro x64 (1703) if it helps. 250 GB SSD internal, 2 x 1TB AS, 4 TB NAS, 16 GB RAM, Dual 1080 Monitors and full disk encryption. I don't think any of that will help you but just for full disclosure. |
I'm seeing similar issues on Linux where the top left says "disconnected" (not "connecting") and yet I can send messages okay - I don't think I receive them in that state, at least often I don't but I haven't really sat down to try to elucidate the behavior yet. And when I send a message usually the "disconnected" state will clear within a few seconds, though it may come back fairly quickly sometimes. I'll try to get log snippets and poke at it some to characterize the behavior better, but for me it's quite random, sometimes happens a lot, sometimes not for an entire day. |
AppData/Local/Programs/signal-desktop/resources/app.asar/js/libtextsecure.js:39529:25)","reason":"Failed to create or send message"}]} |
@BidiM Thanks, but that's not quite enough. :0) |
@scottnonnenberg
|
@BidiM It looks like you can't connect to our servers at all. What happens when you try to go to https://textsecure-service.whispersystems.org/ in your browser? How long does it take to show up? (BTW, it should show a certificate error) |
I'm getting NET::ERR_CERT_AUTHORITY_INVALID |
@BidiM Did you notice how long it took for your browser requests to go through? It looks like the version you had problems with still had 5s timeout; the latest versions have a 10s timeout, so that may help. |
@scottnonnenberg |
@BidiM Tell me more about how the Chrome App stopped working. A log from that app would be useful, as well as a log from that latest |
Same/Similar Issue here. Signal Electron Standalone App v1.0.38
It constantly continues to go on/offline every second instantly after starting the app. New messages are working (sending/receiving). ignore my comment. apparently my signal chrome app was still installed and not in the migrated state and thus i had two signal apps with the device id running constantly kicking each other on/offline |
When my instance gets stuck offline, this is what precedes it:
In other words, it retries only once and then gives up forever. This often happens when moving between wifi connections (on a laptop). |
Seeing this with v1.6.1 on two different Windows 7 x64 machines when I have LAN/ISP outages. Relevant snippet of log below where Signal remained disconnected for many hours until I opened the developer tools, Network tab then toggled "Offline" on and off, Signal reconnected immediately.
|
My symptoms are very similar to @runderwo comment. The last message on STDDERR I see is: In my case, however, I cannot find any evidence of network/Internet connection problems and my system never sleeps. Is anyone else seen that? This started happening regularly only recently, I think. In the past, I have noticed disconnected messages would occur, often, but didn't very last long. The recent change is that it doesn't go away. When I quite and restart Signal Desktop, there is no evidence of problems. When I go to textsecure-service.whispersystems.org, I just get SEC_ERROR_UNKNOWN_ISSUER, and I assume that is correct, but that's now, not when the disconnect message originally occurs. |
FWIW this is happening to me now. https://debuglogs.org/34427e46f46ffef691d84aac4c3f25bf58ff99477f7aeb73082f6efebfd6715e
|
Hi, to everyone who is stumbling upon this old thread today (seems to be a few of us based on the likes for @udfalkso's post), Signal is having technical difficulties. https://twitter.com/signalapp/status/1350165610936766464 |
Signal's technical difficulties should now be resolved, but we'll still look into the more systemic issues where Desktop fails to stay connected. |
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 is affecting me, today. I'm using the flatpak from flathub on Debian 11, KDE Plasma desktop environment. Application alternates between "Connecting... Shouldn't be long" and "Disconnected" for several minutes and hasn't got connected. I have a working Internet connection, I can stream from YouTube Music, e.g. I'm unable to sync contacts with my phone. :( Phone also has an Internet connection, can stream from YouTube Music, e.g. |
@stephen-smith sorry you experience this. While flatpak distribution is not officially supported, I can still take a look at your debug logs to see if there's something there that would help us fix it. Could you post it here, please? |
Is app.log the right file? If so, attached. If not, let me know, and I'll copy+paste from within the app (or follow your directions). |
@stephen-smith ah, I think I know what happened. Our servers had an unfortunate downtime yesterday, and your app couldn't reconnect because it couldn't reach servers. Could you give it another go and see if it is still reproducible? |
Connected right away and sync'd with my phone as well! Thanks for taking a look at it; I think this issue can probably be closed. |
This keeps happening on a regular basis: the yellow disconnected banner flashes back and forth every 10s or so. It is possible to send, but not to receive. Of course my Internet connection works well, as evidenced by other communication apps running in parallel on the same desktop. Rebooting the machine (iMac M1) doesn't help. |
@jr-grenoble you should open a new issue and follow the template if you want to try to get this fixed. |
@jr-grenoble The problem is that the desktop app is poorly designed and maintained like an afterthought, it is not even secured by a simple password, let alone something rivaling the supposed security of the protocol itself. |
Often when I return to the app after a long period away (e.g. laptop closed for a few hours, then reopened), desktop client is stuck in a disconnected state. Restarting Chrome fixes the issue.
https://gist.github.com/5f477d186a8ed2065ed9bcb9c30468d4
The text was updated successfully, but these errors were encountered: