-
Notifications
You must be signed in to change notification settings - Fork 383
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
Connection lost every 2-3 Minutes by some users #251
Comments
Even we are facing the same issue but in our case client is getting disconnected every 10-15 minutes and reconnects within few seconds. receiving, Error: read ECONNRESET Have created a issue in AWS support also but they responded back saying that the issue might be because of firewall or network issue. |
Have you tried wireshark (or ssldump) capturing the connection? See if you get a TLS alert as your last packet from the server, or if you time out. If you time out, then there's something going on on your network. If you're getting a TLS alert, then the server is hanging up on you because your last request was malformed or against your policy. |
Will check it. Thank you. |
@GermanBluefox Any luck? |
Hey, i had the same error. |
In case of the same clientID I see on the server the corresponding error. |
just create another clientID, this clientID is not able to share on different devices. |
I think Bluefox said that the clientIds are unique. |
A couple other things you could check:
|
I have the same issue, it reoccurs exactly every 4 minutes. |
@ColdenCullen We are not aware of any of the questions, so I would state for now "no we don't/everything is correct" ;-) Do you hve any idea how we could track that down? It is very anoying for some of our users! |
Which kind of limits it could be be IoT Core? |
Limits for IoT are listed here There are limits on all sorts of things. For example, publishing more than 100 messages per second will get you hung up on. Could this be your issue? |
@GermanBluefox |
Are you using websockets to connect? Or direct MQTT? |
We are using nodejs environment and because we are using exactly this package here it should be MQTT ;-) For the limits, ok this is interesting but documentation states e.g. for "more then 100 publishs per second": ... rest will be discarded ... so it should not be the case that the whole connection gets killed. ;-) Or do I missed something? |
As Apollon77 said, we use node.js with mqtt and we deliver voice commands (JSON) with IoT. To be serious, even if no commands sent, the disconnect happens every X minutes. |
I have the same issue. Are there already some new information? |
@Apollon77 When you hit service limits, especially within the IoT Core services, the response is almost always to hang up. I know for sure (due to our unit tests) that IoT hangs up if you break the 100 publishes/sec limit. |
Thank you ... this should really not be the case, but maybe @GermanBluefox maybe introduce some kind of counters for logging purposes? |
Hei, i have the same Problem, it comes all 4 Minutes. |
I and a lot more user still have the problem. Is it possible to check if it send more than 100 massages per second? |
Good morning, until yesterday everything works fine without any issue. Until yesterday i have a internet connection from Unitymedia (Office and Internet 150) with a Fritzbox 6490 cable as modem and a Fritzbox 7490 as router. |
If you are able to establish a connection, but the connection is dropping, I would suggest opening a ticket with IoT Core support, so they can help diagnose further, as it is unlikely to be an SDK-specific issue. |
I got the same error when I changed the internet provider to unitymedia. I use also the connectbox and i have also the same connection 2play400. I think the connect box could be the issue or maybe that you have switched to a new modem ? Or its just a coincidence? |
@Karsten69 can you catch the traffic for both cases using wireshark ? |
Yes but i need help. Tomorow teamviewer? |
Hallo Ingo,
ich glaube wir können Deutsch sprechen :)
Ich habe gerade einen Mitschnitt gemacht vom Raspberry zum Router, allerdings nicht vom Router zum Modem, bis der Fehler aufgetreten ist.
Schau dir das mal an, wenn es das ist was du brauchst mache ich morgen noch einen Mitschnitt mit meiner alten Internetleitung.
Leider weis ich nicht wie ich den Verkehr zwischen Router und Modem mitschneiden kann.
Gruß
Karsten
Gesendet: Freitag, 28. Juni 2019 um 20:49 Uhr
Von: "Ingo Fischer" <notifications@github.com>
An: aws/aws-iot-device-sdk-js <aws-iot-device-sdk-js@noreply.github.com>
Cc: Karsten69 <k.buerger@email.de>, Mention <mention@noreply.github.com>
Betreff: Re: [aws/aws-iot-device-sdk-js] Connection lost every 2-3 Minutes by some users (#251)
@Karsten69 can you catch the traffic for both cases using wireshark ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hallo ihr, gibt es schon Neuigkeiten bzw. neue Erkenntnisse? |
@Karsten69 Attachments werden bei email antworten von GitHub nicht übernommen. Musst Du hier hochladen ... :-( |
Ah, ok. Habe mittlerweile herausgefunden wie ich den kompletten verkehr mitschneiden kann, werde es heute aber nicht mehr schaffen. Morgen werde ich dann auf beiden Leitungen mitschneiden und dann hier hochladen. Gruß Karsten |
@Apollon77 Hallo Ingo, habe die Dateien fertig, kann ich dir irgendwo eine PN oder Mail schicken, würde ungern meinen ungefilterten Datenverkehr hier für alle sichtbar einstellen. Im IOBroker Forum habe ich schon gesucht aber keine Möglichkeit gefunden dir eine PN zu schicken. |
@Apollon77 Ist raus. |
So. I analysed the wireshark and could see, that the disconnect comes from AWS IoT side after 2:23 seconds of silence. |
Hallo Leute, ich kann leider die ConnectBox von Unitymedia ausschließen, habe Heute auf Fritzbox 6490 umgestellt und der Fehler kommt weiterhin. Schönen Sonntag noch. |
Das kann ich übrigens auch bestätigen, ich habe schon seit längeren meine eigene Fritzbox 6490 über den Anbieter Unitymedia. LG Marcus |
Was ich mir nochvorstellen kann ist, dass das Problem mit dem DS und DS-lite was zu tun hat. Ich habe leider nur DS-Lite und wäre interessant, ob einer von euch DS hat. |
Ja kann gut sein, hatte vorher Unitymedia Business Office und Internet 150, das war kein DS-lite, aber was genau kann ich nicht mehr sagen. Jetzt habe ich definitiv DS-lite. Vieleicht können die die keine Probleme haben mal nachschauen was bei ihrem Unitymedia Anschluss anliegt. Habe allerdings keine Ahnung ob das zur Problemlösung beiträgt. Gruß |
Liegt weder an DS-Lite noch an DS bei Unitymedia. Ich hatte das Problem (siehe weiter oben) ebenfalls. Interessanterweise hat es sich bei mir beim Update vom Alexa Adapter von alleine gelöst bzw. hatte ich parallel das ioBroker Fixer Script zum korrigieren von etwaigen Berechtigungsfehlern zwischendurch ausgeführt. |
Ich nutze aber nicht mal Alexa, sondern nur IFTTT und seit neusten Google Home. |
Alexa adapter update or permission fixes should have no effect here. Also this is used independently from Alexa or google home because it is the basic cloud service |
Hallo ich glaube ich hab des Rätsels Lösung. |
Ich kann mir net vorstellen das es am DS Lite liegt, jeder andere Cloud service geht doch auch unter den DS Lite Anschluss. |
Ich hab definitv nichts anderes geändert. Vor der Umstellung war definitiv noch das Problem vorhanden und nach der Umstellung sofort weg. Also bei mir hat die Umstellung das Problem verschwinden lassen. |
Ja gut, aber ich zum Beispiel habe nicht die Möglichkeit ein Dualstack Anschluss zu bekommen, außer ich wechsel mein Vertrag und ich denk mal da bin ich nicht der einzigste. |
Ich kann den Iot Service, seit dieser permanenten Abbrüche kaum noch verwenden. Weder über die direkte Google Home Anbindung noch über den Umweg über IFTTT. |
Guten Morgen, ich kann jetzt bestätigen das es an DS-Lite liegt, habe meinen Anschluss gerade auf Dual Stack umstellen lassen und der Fehler ist weg. Ich habe bei UM angerufen und hatte direkt eine sehr freundliche und kompetente Mitarbeiterin am Telefon, die genau wusste wovon ich spreche, die Umstellung erfolgte noch während des Telefonates und seitdem habe ich keine Fehlermeldungen mehr. |
Noch kurz zur Info, reines IPV4 gibt es dann aber nur in den Business Verträgen. |
Hallo, Das hört sich sehr interessant an. Kann wir aber jemand erklären was ds-lite ist und was Dual Stack ist? Habe ich noch nie gehört. Was ist der Unterschied dieser beiden? Vielen Dank! Grüße Swen |
DS-Lite = ipv6 Anschluss mit getunnelten IPv4 (öffentliche IPV4 Adresse für mehrere Teilnehmer) Reines IPV4 bekommt man bei Unitymedia mit Tariferweiterung auf "Power-Upload" und gleichzeitig den Wunsch äußern das man einen nativen Dual Stack bekommen möchte. Kostet glaube ich, je nach Region, 2.99 Euro zum normal gebuchten Tarif monatlich extra. Aber wiegesagt, das sich das Problem "aufgelöst" hat durch Umstellung auf DualStack (also echte IPV4/IPV6) ist unrealistisch, sondern ist vermutlich einfach nur dem geschuldet das sich das System mit einer "neuen" IP meldet in der Cloud. Bei den DSLite Anschlüssen hat man ja mitunter mehrere Wochen diesselbe IP trotz Neustart. Ich kann nur betonen, ich habe den IoT an beiden Anschlüssen laufen, sowohl Lite als auch echtes DS. |
Kann mir hier jemand weiterhelfen einen Mitschnitt, mit Wireshark zu machen ? Bezogen auf diesem Issue # 230 |
For affected users check solution #280 (comment) |
Some of the users (not all) facing the problem, that connection being lost every 1-3 Minutes.
I checked the logs and monitored the activity of specific users and could not see any errors except that disconnection appears and then in 6-8 seconds comes reconnect.... and in i-3 Minutes again disconnect and so on.
What it can be?
It looks like (may be) the client does not answer heartbeat, but is not clear, because no debug info is visible.
How can I investigate why it's happen? I need help.
Regards, Bluefox
The text was updated successfully, but these errors were encountered: