-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
No Values received on MQTT #90
Comments
I can't replicate this. Can you give me more details? |
docker-compose.yaml: Added one phone with family name "eifinger". Added two rooms. Got the mqtt password with Executed Both showed no messages |
I investigated a bit further. I added the env variables for mqtt to the image and recreated the container. |
@eifinger Thanks, I think the error is that mosquitto still is not populating the right configuration. Looking into it now. Mosquitto really is the bane of my existence :( |
@eifinger Ok, seems to work for me now. Open it back up if it doesn't |
Thanks for being so fast on this. However there are still no messages whatsoever. |
@eifinger That's correct. Can you try with the testdb?
Then create MQTT credentials for testdb, and do |
Here is what I did: |
I tried again, without messing with the docker container, thus only No messages |
@eifinger I'm not sure about your test - you're running the test within the Docker container? That's not exactly what I meant. Here's what I do (which doesn't replicate your error): Starting a brand new instance:
Now to test it: In one terminal:
And then in another terminal:
after which the first terminal will spit out lots of results. I suggest you try this - instead of erasing your |
I did exactly those steps and can see no messages. |
I just tried this on my Win10 machine (docker running linux containers) and got the same result: No mqtt messages |
@eifinger Can you try building the Docker container yourself?
And then use |
I just built the docker image and followed the test procedure with sadly still no mqtt messages. Client: Server: |
@eifinger You have a newer version of Docker than I do. I upgraded Docker, and rebuilt and re-tested and it still works just fine for me. Are you sure the Docker image you built didn't use any of the cached things? Can you try |
@schollz I just did that. Still no messages. However I found out that no messages are received whatsoever. Even if I publish them myself
|
This is really annoying that it behaves completely different on our two systems. Thank you for the help and communcation. I am happy to help if you have an idea how =) |
schollz, You referred me to this thread...here is what I get for docker version and when trying to query for my password.
|
When I try and do the following withing the docker: mosquitto_sub -h 127.0.0.1 -p 11882 -u MYUSERNAME_PASSED AT DOCKER RUN -P MYPASSWORD PASSED AT DOCKER RUN -t '#' I get connection refused....its like the MQTT_Pass sent at docker run is not working. |
@seaverd Are you sure you have the latest version of find3? This looks like an issue before the last commit. |
I am sure...just pulled into a new container....same thing. |
@seaverd Also make sure to clear your previous find data. Try doing the steps exactly in #90 (comment) and then try inserting fingerprints while connected to the mosquitto as admin |
@eifinger Could you share your log? ( |
You can find it under: https://gist.github.com/eifinger/20072c071cd3696d5f6471c0ce03de82 |
@eifinger Thanks. You are getting a That is the mosquitto port, which should bind to 11883 on your host. Is 11883 on your host open? Maybe you could try changing that port to 11884 or something. Otherwise I don't really know why an internal port inside the Docker would be refused |
Inside the Docker container: Are you sure you start the mosquitto server before the rest? |
Works! |
I can only real world test it when I am home in my wifi again. |
@eifinger Thanks for your patience! Let me know if you run into problems again |
I didn't delete my find data...but I see the two of you found the solution. I pulled the updated docker and can confirm that my issue is resolved as well. Great work! |
So I am still having an issue....all works fine. However if I stop docker then restart it, i can't connect to mqtt. If I remove container and delete find data and pull new container it works...until I restart. |
@schollz I just got the chance to actually start using find3 and ran into the mqtt issue again. I'm on the latest docker version (love the added ui element to generate the mqtt password) with a clean setup. In main.stdout I see the following line: This is my docker-compose.yaml:
|
@eifinger what if you don't use docker-compose? |
Works when I don't use docker-compose. What the fuck?! |
Yeah @eifinger I was looking into it and I'm totally perplexed. Thought it might be related to docker/compose#4799 but that didn't seem to help at all. I'd be interested if you find anything out, I'll keep looking too. |
I will definitely do. I suggest we open a new issue, because I think this has nothing to do with your code but with docker-compose port binding |
Agreed |
Using Docker when subscribing to the mqtt topics on the Find3 mosquitto server using mosquitto_sub on the same server no messages are received.
I can can confirm that the mosquitto server is running I got a "Connected not authorized" when connecting without user and password.
The text was updated successfully, but these errors were encountered: