-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Topics not shown when using a wildcard #3220
Comments
This is on a standard config, nothing special. |
Ugh, how annoying! :) Is there any chance that the message is being published with the MQTT v5 |
@ralight |
Are there any more details you can share that might help? I've successfully run It sounds like it's happening fairly often, at least often enough for you to test. Are you able to provide an exact process to reproduce it? I don't know if you're just running a single client or 10,000 clients, for example. Likewise what version you're on. These are some other questions that might be useful to have answers for: How frequently does it occur? What version are you on? What is it installed on (docker, ubuntu, windows, raspberry pi, ...)? Does it do it if you've published to that topic once only, or are you publishing multiple times? Are you publishing to other topics at the same time, or have you reproduced it with just that topic in use? Do any other mqtt clients show the same problem? If you have the problem with the + and then do a STRG+C and repeat it with the +, does it still not work? Really anything you can think of that might help to reproduce it would help, even if it seems a trivial thing. |
Sure
In total there are 60k Clients connected. Like 4000 clients do have values in that topics.
For me, I can reproduce this quite on some 'userX' names. Others are working. Maybe the next day another set of users is not working.
Always, but with different userX names.
Ubuntu 22 LTS
The clients have configured a bridge. They're publishing once and retained. But it could be that - without doing anything - 2 hours later die exact same userX is visible with the
There is another Topic in the /hello/foo/foo tree which also is not available through the wildcard on certain users, while it is available directly.
There are different userX with that problem
Yes, problem still persists. If I can give any more information or could test something, let me know :) |
I guess it is a symptom of the problem discussed in #2887 etc. which seems not to be easy to fix |
@ckrey But I tried a bit more and what I've found out: When I use the same command directly on the shell of the Mosquito server and not a remote machine But on any client machine I won't get it. Maybe a couple of hours later. How to debug that any further? |
Thanks for the details - it's otherwise very difficult to tell the difference between "I'm running home automation on a Pi at home" and "I've got 60k clients connected to a data centre". So just to be clear, if you find a problem topic then it works when connecting remotely if you use topic I'd still really like to see your config file if possible. If you're not comfortable posting it here then could you send it to [email protected]? What method are you using for topic access control? |
Exactly. |
There's no reason I can think of on the mosquitto side why this should be happening. I agree that the config you sent isn't anything unusual. Next time you see this, could you add |
I can reproduce that. All topics are coming within 2-3 seconds. From a remote machine getting 1958 Messages in my test. When doing this from the server itself with the same command I'm getting 2212 messages. When I'm grepping for one of those topics that don't show up on a remote machine with
No. |
Right, I think Christoph nailed it actually. On the local machine the transfer happens quickly so the queue on the broker doesn't fill up. When you are connecting remotely the speed is lower, so the broker fills up the queue and some messages are dropped. Try setting |
Set this to 5000 for this. |
If there is a given retained topic f.e.:
user/hello/foo/bar
If I do:
mosquitto_sub -v -t 'userA/hello/foo/bar'
This will with 100% give me the output I suggested.
If I do:
mosquitto_sub -v -t '+/hello/foo/bar'
To get the topics from various Users there is a chance the topic with userA is not shown.
Even If I wait 5 Minutes.
Could be possible that half an hour later it's shown, while
mosquitto_sub -v -t 'userA/hello/foo/bar'
always and instantly outputs the topic.
Any ideas how to debug that?
The text was updated successfully, but these errors were encountered: