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
Can't see friends #610
Comments
I assume other than simple setup of host/port, user and device name, that you've done no customizing on the phones. I also assume, as you say MQTTinspector that these are iOS devices. What I would do is use a command line to connect to your Mosquitto broker:
(Note the When your phones publish (by hitting the up-arrow in the app) you should see their payloads. Verify that the topics shown ( If you see all three phones that way, and the topics all begin with In order to verify the subscription on the iOS phones, please go to the Settings screen (tap on Therein you should see |
Thanks for coming back so quickly... The set up I've done on the phones is user and device name, I set my host, changed port to 1883, turned off TLS and turned off Authentication. MQTTInspector is running on one of the same phones which is not connected to my wi fi Mosquitto_sub is showing messages from two users (plus I've also set up a test user on on my iPad): [redacted for privacy reasons by jpmens]
Thanks Dave |
The payloads are sane and the publishes are as expected and are arriving at your broker from which it (the broker) will distribute each of the publishes to all devices subscribed to the topics. Your subTopicBase is correctly set to I'm speaking out loud as a sort of check list -- ignore me. :-) One thing's left to do: please swipe out (though I usually warn against that) the app on, say the iPad, and open OwnTracks on it again. Do your "friends" then appear? |
Please show the content of the logfile at |
I've swiped the iPad app out a couple of times From the log when the iPad reconnects
Thanks Dave |
Please add this to your
Then redo the iPad swipe thing. |
Hi Here's the new log with the iPad and iPhone (and you I think!)
|
Definitely not I ! the client |
Ah yes, I've got MQTT lens browser plugin!!! |
Could you export the OwnTracks configuration from the iPad and send it to us at support@owntracks.org please? Together with your |
Email sent. Thank you very much for your help with this |
Do me another favor please: show me the mosquitto.log when you publish a position on your phone with the iPad connected as well. |
Is it this?
|
Your two clients are connecting to the broker but are definitely not "talking" to eachother. Two more things please, before I lean back and think this through :-)
|
I'm using version 1.6.7 of Mosquitto from the docker image eclipse-docker Here is my
|
@ckrey I need your help, please. I see neither |
pls check the |
@ckrey we've checked that: "subTopic" : "",
"sub" : false, |
@djboardman let's try setting that
Then, again looking at your mosquitto.log, swipe out the app on the iPhone and restart the app. Then, with the iPhone app open, open the iPad and hit publish please. |
|
@ckrey then we have a problem somewhere ... My own phone has
However, my own |
@djboardman I think we've nailed the issue, and apologies that it took so long. I've been talking to @ckrey and have tested accordingly: The value of In the past, the default for |
Success! At least with my iPhone. It took a while but after I switched Sub to “On” I can now see the other devices in Friends I’ll try it on the iPad and other iPhones. These devices have all been installed with Owntracks only since Wednesday and all came with Sub set to “Off” - I’d never used Owntracks before this week or did any export / import of config. Hopefully with the changed settings Friends will start to appear on the other devices as well. |
Glad you got it working, and sorry that you caught us with that bug. If you swipe your apps out and have them reconnect you ought to quickly see your friends on them. Please do note that this whole swipe-out thing should be done for testing only; generally it is not recommended at all to swipe out apps on iO. |
Dear all, I just stumbled into this discussion via Google search, because I have the same issue like @djboardman. I have a mosquitto version 1.3.5 running since years - not config change over there - and just reinstalled my Owntracks clients on iOS. Out of a sudden my friends where gone, while I still see their messages, when I connect to mosquito via MQTT Explorer (Mac)... I understand that there is an issues with Sub set to False. I testwise exported by Owntracks config and saw indeed that Sub is set to false. Anyhow, I will now change the Sub to True an re-import the settings. Let's see, if it works afterwards. |
Success. This worked out after wiping Owntracks, reinstalling and reimporting the config with Sub set to True. Thank you all for fiddling this out. Bodo |
@bodomenke glad you got it working again; sorry about the confusion. Next time, by the way, you can tap 3x on Settings which opens the advanced settings, and scroll down for the dialog for that particular or other settings. No need to wipe everything. :-) |
@jpmens Wow. An easteregg in Owntracks. Thanks for letting me know! This makes things much easier of course! :-) |
@bodomenke look at the calendar: it's a christmas egg. :-)) |
@jpmens You are so right. I am behind in time. :-D |
Hi @jpmens, If it helps, I can also confirm that I too had this issue. Thankfully I stumbled on this posting after about 1 week trying to figure out what the issue was. By turning sub to true, and restarting, that has also fixed the issue. I too only just installed Owntracks on two iphones and 1 iPad in the last 2 weeks. I have never imported or exported any configs. Sounds like the default for sub is still false and should probably get changed. This is great to see it working now... Thanks |
@cthierman thanks for checking again. There will be an updated version 13.1.7 in the app store shortly |
@ckrey This is good news. And btw, this is also a good time to say "thank you" for your and @jpmens efforts for keeping up this really great app. |
Thank you, @bodomenke, for your kind words; it's a pleasure to hear that! |
Has same kind of problem today morning that steps count didn't reach to openhab ... searched and tried to figure out what's wrong ... after finding topic #611 it linked here ... tired and after closing and opening again pedometer is working again :) It's hard work to develop and coordinate such a excellent software! I do like to join with @bodomenke "thank you" for @jpmens! |
Thanks for the kind words for our small project, but keep in mind please, that it is @ckrey who does all the work on the iOS app! :-) |
Hello @jpmens and @ckrey, |
This also solved my issue. Seems to be systematic across all my family’s iPhones. |
@gregbert42 it was a bug, yes; we're sorry about the confusion. Glad you've solved it. FWIW, the issue has meanwhile been resolved and has been available in the app store for a bit now. |
Hi
I've done two installs of Mosquitto on raspberry pi, one from repository and one with a docker image. I have installed OwnTracks on 3 iPhones and connected the iPhones with 3 different users.
I can see messages coming from all 3 iPhones and MQTTInspector subscribes to owntracks/+/+ and can see messages from all three users.
But in the OwnTracks app on the 3 phones I don't get a list of friends, it only seems to see the logged in user's messages
In the latest install of Mosquitto I have no user passwords, ACL or TLS to see if I could get it working
My conf file just says:
I have a static IP address for the pi, port forwarding on 1883, and DuckDNS for dynamic dns
Is there any trouble shooting steps that I can take to see why the OwnTracks apps appear to only subscribe to their own user topic?
Or anything obvious in the set up I can check?
Thanks
The text was updated successfully, but these errors were encountered: