Closed ronschaeffer closed 5 years ago
:wave: Thanks for opening your first issue here! If you're reporting a :bug: bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be usefull.
Well, as another submitter reported #6 , it spontaneously started working when I tried this morning. As with the other submitter, I have not changed anything. Any ideas as to why we've seen this behavior?
First of all, I think this is the best documented issue I have ever seen. 🏅
With your configuration I find it verry strange that you got it working (it should not). When you use SSL and port 4884 it should require a hostname to match with the certificate.
So the fact that you got that working with IP are confusing 🤷♂️
I'm using Caddy with a certificate from Let's Encrypt, both from Hassio add-ons. I'm pretty news to working with SSL.
Strangely, while the web client is still working via Chrome on my PC, I just discovered that it is not working via Chrome on my Android phone with the same settings and connected to the same network. It's throwing the same error as in my original post.
Can you put the DNS name in the Broker field? Or open the add-on with IP and http, ten use port 1884 and not checked the box for ssl
I can't open the client page with IP and http (not https). I get a 404 error.
BTW, this is the relevant entry in the Caddyfile. Don't know if that's relevant to the issue.
}
hivemqttt.xxxx.duckdns.org {
proxy / localhost:5713 {
websocket
transparent
}
}
to use it with http you need to disable ssl
"web": {
"enabled": true,
"ssl": false
}
@ludeeus Thanks for you help, but I decided to move away from the add-on and instead use a broker running in a docker container that I have direct control of. Fewer points of failure to check, I hope.
Shall I close this issue?
We can reopen it if you choose to come back :)
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
Problem/Motivation
Receive "Connect failed: AMQJS0007E Socket error:undefined" error when trying to connect to Community Add on MQTT broker through built-in HiveMQ client from all browsers (tried Chrome, Opera and Edge).
Issues #6 and #12 are about the same error message, but neither was actually resolved. One submitter stopped using Hassio while the other managed to connect finally "without changing anything". Both issues are closed.
Expected behavior
HiveMQ client connection to add on broker.
Actual behavior
Connction fails with error message as above.
Steps to reproduce
Fresh install of add on. MQTT broker works and I can see devices connecting to it in logs. Hassio integration set up via Configuration/Integration not configuration.yaml. Also tested with MQTT.fx connecting to same IP, port 4884 and with same user/pass. Works. calling mqtt.publish in Hassio also works.
Tried restarting Hassio a few times, restarting the add on and also restarting the Ubuntu host. Hassio is running in a Docker container on Ubuntu server 18.04.
HiveMQ page with error
Config
Port settings
System info
Part of system log
Add on log