-
Notifications
You must be signed in to change notification settings - Fork 469
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
Freezing browser with Mosquitto 1.5 #169
Comments
I have the same behavior with mosquito 1.5 |
Also same here after mosquitto upgrade |
same here, mosquitto 1.5 |
Are there any messages on the Mosquitto console which explain the inability to connect? |
Haven't seen nothing unusual on Mosquitto side, only this infinite loop on client side |
Same here, nothing unusual on the mosquitto side, just lock-up at 100% in
the front-end.
…On 2 August 2018 at 15:46, Lukasz Nowakowski ***@***.***> wrote:
Haven't seen nothing unusual on Mosquitto side, only this infinite loop on
client side
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#169 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARXZNXT_ZpXV6pW1dcMtT-SaobRAdDQGks5uMwLPgaJpZM4VKy7R>
.
--
Dr.-Ing. Tim Jagenberg
Chief Technology Officer
Bitreactive AS
http://www.bitreactive.com/
|
I just tried this on Ubuntu with Mosquitto 1.5, and both the latest Paho JS client, and the utility at: http://www.eclipse.org/paho/clients/js/utility/, and both worked fine. This was without TLS. Are you all using TLS? If so, can you see if it works without TLS? Any other factors at work here? |
No, we did not use TLS. |
Both client and server were on the same machine, amd64. I could try on an ARM architecture machine - Raspberry Pi. Can you start the JS console on the browser first and see if there are any useful messages? |
We're also seeing this with msgflo-browser (which uses this library underneath) when connecting to mosquitto 1.5 from Debian. No TLS, no auth. Mosquitto runs on x86, but same failure occurs on both x86 and ARM (RPi3) clients on Chrome and Firefox. Nothing in Console or Network tabs, and the browser process becomes unresponsive. Code: |
@bergie where, on what platform, is Mosquitto 1.5 running? |
I have the same issue. Mosquitto 1.5 running on rpi. Client on windows. I get infinite onConnect event firing. I checked mosquito logs and looks like there all is fine. Connects once and when i close browser -disconnects. |
@icraggs as stated in the ticket:
All of the clients (as well as multiple versions of this library) exhibited the same infinite loop and freezing when connecting to mosquitto 1.5. The only fix we've found was to downgrade the mosquitto broker. |
Hi, I've had similar issues, explicitly setting mqtt protocol version helped. |
@jbaans interesting. What value worked? |
for the JS client you can try: Actually I just double checked and noticed I installed mosquitto git version 4f838e5 explicitly (configured build WITH_WEBSOCKETS:=yes), this could also explain why I have no trouble. |
Same problem, and happens with MQTT.js and Hive client too.
|
I had the same issue. Everything worked after reinstalling Mosquitto with websocket enabled as per the post https://gist.github.com/smoofit/dafa493aec8d41ea057370dbfde3f3fc |
So has anyone found a fix for this? I'm having the same issue with CloudMQTT, so I unfortunately cannot rollback to a specific version of the broker. |
I probably have the same problem. It's insane that this issue is opened for so long. :( |
@Dacesilian and @cok666n: This is an issue with mosquitto. You can fix it by recompiling with the correct websockets library. See eclipse-mosquitto/mosquitto#1050. |
@vonnieda Thank you! I've installed |
Sorry I never got back to comment, it was indeed and issue with the mosquitto broker, but since it wasn't in my control (cloud based 3rd party broker) I couldn't do much to fix it. I ended up having a few back and forth with the support of that provider, and they eventually fixed the issue. They never admitted to using a new version of the broker like I suggested though. |
Using Debian package from testing repository probably doesn't solve the issue, so another possibility is to use package for Debian directly from Mosquitto, as written here - https://mosquitto.org/blog/2013/01/mosquitto-debian-repository/ .
|
I also just ran into this issue I did an upgrade on my Raspberry Pi Debian Jessie which installed mosquitto 1.5.8 and now my javascript client breaks. This thing has been running for years without a hick-up, I just wanted to add some p1 smartMeter support to my own Home automation running on Mosquitto some esp's and a javascript client. I managed to downgrade it to mosquitto 1.4.15 so it works again for now. I've basicly come to the conclussion that my old Pi installation is useless. Outdated, nothing works on it anymore, just another disapointing everything breaks because the community moves on to the latest new and shiny. Every python thing I try is broken. Nodejs is unupgradable because of missing libstd support and now I've broken my mosquitto by installing the latest jessie supported version. I already had to find a mirror thats still supported it because Debian completly removed Jessie. Trying to upgrade Jessie also breaks on several points. I'll just make a new install for my Rapsberry pi and set everything up again from scratch which is mostly my experience with linux, after a while it's just broken because the community makes it impossible to install new stuff on an old OS. It turns into one big dependancy problem which reminds me of the DLL hell in windows. |
Code that ran fine with mosquitto 1.4.15 stopped working with mosquitto 1.5 and freezes the browser.
The issue can be replicated by running the sample code from the project main page.
In the development console thousands of executions of the 'onConnect' method can be seen. It seems some out-of-control loop is freezing up the browser.
The text was updated successfully, but these errors were encountered: