-
Notifications
You must be signed in to change notification settings - Fork 48
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
[Bug] TBMQ Sessions Tab does not show #129
Comments
hi @gaizkasi ! Thank you for raising this issue. Please verify whether the Mosquitto broker is running, as it appears the messages might be directed there instead of TBMQ. To check this, modify the credentials (username/password) for your mosquitto_pub and mosquitto_sub commands to invalid ones for TBMQ. If the clients are connecting to TBMQ, you should see an "unauthorized" error. However, if the connections are successful and messages are being transferred, it likely means they are being sent to the Mosquitto broker. The Mosquitto broker might be running from the setup process of the Mosquitto client. If this is the case, please ensure the Mosquitto broker is stopped and then reproduce your steps. If you have any more questions, please let me know. Regards! |
Hi Dima,
Thanks for your fast response. If I try to run mosquito broker it reports an error because its port is already in use. It means that the port and broker used is TBMQ.
***@***.***
***@***.***
What coud be happening?
I looking forward to hearing from you.
Thank you so much!
Gaizka
Hemendik: Dima Landiak ***@***.***>
Bidaltze-data: jueves, 20 de junio de 2024 10:15
Hona: thingsboard/tbmq ***@***.***>
Cc: Gaizka Suarez Iparragirre (Ingeteam R&D Europe) ***@***.***>; Mention ***@***.***>
Gaia: Re: [thingsboard/tbmq] [Bug] TBMQ Sessions Tab does not show (Issue #129)
##This email comes from an external source.##
hi @gaizkasi<https://github.com/gaizkasi> !
Thank you for raising this issue.
Please verify whether the Mosquitto broker is running, as it appears the messages might be directed there instead of TBMQ. To check this, modify the credentials (username/password) for your mosquitto_pub and mosquitto_sub commands to invalid ones for TBMQ. If the clients are connecting to TBMQ, you should see an "unauthorized" error. However, if the connections are successful and messages are being transferred, it likely means they are being sent to the Mosquitto broker.
The Mosquitto broker might be running from the setup process of the Mosquitto client.
If this is the case, please ensure the Mosquitto broker is stopped and then reproduce your steps.
If you have any more questions, please let me know.
Regards!
—
Reply to this email directly, view it on GitHub<#129 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANLZ4L56VRHIWZJYVLEGPJDZIKFPHAVCNFSM6AAAAABJTNCBC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBQGA4DKNZQGM>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
Gaizka Suarez Iparragirre
Digital Transformation
Ingeteam Research Institute
[cid:logo_ingeteam_no_claim_24684692-cdd2-4135-a085-5629b9c82597.png]
[Firma 2023-10.png] +34944039600
[Firma 2023-11.png] Parque Tecnológico de Bizkaia, Edificio 106
48170, Zamudio, Spain
<https://www.linkedin.com/>[cid:firma2023-12_4315b2dd-c257-4deb-9674-67b01fd4b114.png]<https://es.linkedin.com/company/ingeteam-s-a> [cid:Ingeteam_LogoX_967888ea-dec5-4cb9-a2f6-f165f950fc18.png] <https://twitter.com/ingeteam> <https://www.youtube.com/> [cid:firma2023-14_8a2e8fc2-6879-44f4-9dd8-1e8c8966ce5b.png] <https://www.youtube.com/channel/UClw6UQfVayy-jXSSBkd97Nw> [cid:firma2023-15_5ebc2c9e-9a31-49e4-864b-1760197e6d57.png] <https://www.instagram.com/ingeteam>
[cid:QR0bfa9786-8367-4b49-be1f-09bdcb06edda.png][cid:MyCard60x25_MyCard-2-60x25px_MyCard-2-60x25px_8a646492-d763-4a24-9462-d38d5bbffecc.png]
<https://www.ingeteam.com/es-es/marketing/50aniversario.aspx>[cid:NuevoLogoTRDTnegrita_9b13c2ef-c1a5-4e74-af08-d8e04043f784.png]
Este e-mail puede contener información reservada o confidencial destinada exclusivamente al destinatario o a la persona encargada de distribuirlo. Si por error usted no fuera el destinatario le rogamos nos lo comunique al mail ***@***.******@***.***>, sin difundir, almacenar o copiar su contenido. Consulte aquí nuestra Política de Privacidad<https://www.ingeteam.com/es-es/legal/politicadeprivacidad.aspx>.
This e-mail may contain reserved or confidential information intended exclusively for the addressee or the person in charge of distributing it. If by mistake you are not the addressee, please inform us at ***@***.******@***.***>, without spreading, storing or copying its content. See our privacy policy<https://www.ingeteam.com/en-us/legal/privacypolicy.aspx> here.
|
@gaizkasi could you point me to the instruction guide you used for tbmq deployment? is it this one - https://thingsboard.io/docs/mqtt-broker/install/docker/? |
Yes! It exactly this one.
The TBMQ is running properly, the only thing I don’t understand is why the UI do not show connections and traffic.
Regards,
Gaizka
Hemendik: Dima Landiak ***@***.***>
Bidaltze-data: jueves, 20 de junio de 2024 10:36
Hona: thingsboard/tbmq ***@***.***>
Cc: Gaizka Suarez Iparragirre (Ingeteam R&D Europe) ***@***.***>; Mention ***@***.***>
Gaia: Re: [thingsboard/tbmq] [Bug] TBMQ Sessions Tab does not show (Issue #129)
##This email comes from an external source.##
@gaizkasi<https://github.com/gaizkasi> could you point me to the instruction guide you used for tbmq deployment?
is it this one - https://thingsboard.io/docs/mqtt-broker/install/docker/?
—
Reply to this email directly, view it on GitHub<#129 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANLZ4L7M6F47YGDVWTYUCP3ZIKH6TAVCNFSM6AAAAABJTNCBC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBQGEZDONZSHA>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
Gaizka Suarez Iparragirre
Digital Transformation
Ingeteam Research Institute
[cid:logo_ingeteam_no_claim_24684692-cdd2-4135-a085-5629b9c82597.png]
[Firma 2023-10.png] +34944039600
[Firma 2023-11.png] Parque Tecnológico de Bizkaia, Edificio 106
48170, Zamudio, Spain
<https://www.linkedin.com/>[cid:firma2023-12_4315b2dd-c257-4deb-9674-67b01fd4b114.png]<https://es.linkedin.com/company/ingeteam-s-a> [cid:Ingeteam_LogoX_967888ea-dec5-4cb9-a2f6-f165f950fc18.png] <https://twitter.com/ingeteam> <https://www.youtube.com/> [cid:firma2023-14_8a2e8fc2-6879-44f4-9dd8-1e8c8966ce5b.png] <https://www.youtube.com/channel/UClw6UQfVayy-jXSSBkd97Nw> [cid:firma2023-15_5ebc2c9e-9a31-49e4-864b-1760197e6d57.png] <https://www.instagram.com/ingeteam>
[cid:QRd99967c9-59e8-4cb8-b5dd-aa5f95296dfa.png][cid:MyCard60x25_MyCard-2-60x25px_MyCard-2-60x25px_8a646492-d763-4a24-9462-d38d5bbffecc.png]
<https://www.ingeteam.com/es-es/marketing/50aniversario.aspx>[cid:NuevoLogoTRDTnegrita_9b13c2ef-c1a5-4e74-af08-d8e04043f784.png]
Este e-mail puede contener información reservada o confidencial destinada exclusivamente al destinatario o a la persona encargada de distribuirlo. Si por error usted no fuera el destinatario le rogamos nos lo comunique al mail ***@***.******@***.***>, sin difundir, almacenar o copiar su contenido. Consulte aquí nuestra Política de Privacidad<https://www.ingeteam.com/es-es/legal/politicadeprivacidad.aspx>.
This e-mail may contain reserved or confidential information intended exclusively for the addressee or the person in charge of distributing it. If by mistake you are not the addressee, please inform us at ***@***.******@***.***>, without spreading, storing or copying its content. See our privacy policy<https://www.ingeteam.com/en-us/legal/privacypolicy.aspx> here.
|
It seems there might be issues with the DB schema and tables. Did you upgrade from a previous version of TBMQ to 1.3.0? That could explain the issue. Did the upgrade process complete successfully? Please provide the TBMQ logs with the error message for the confirmation. If this is a development server, I recommend redeploying TBMQ from scratch. Ensure you remove the data storage volumes first, as a new installation won't occur otherwise. |
Hi @dmytro-landiak ! I solved the error reinstalling again everything. Now I could work in WebSocket screen but, I try to connect and it reports always reconnecting. Now, after upgrade to 1.3.0 I have got TBMQ WebSockets MQTT Credentials created by default. I've followed the basic guide of TBMQ and I've created new credentials for Getting Started Credentials, step by step. This is the link: https://thingsboard.io/docs/mqtt-broker/getting-started/ But when I used this commands in the server the sessions tab does not change, there is nothing there: It is unbelievable how such a simple tasks does not work. It is impossible for me to identify what I'm doing wrongly... |
Could you please try to use the following command and show me the screenshot of the console as you showed above?
|
as I can see the message is delivered successfully even though the wrong username is used because you do not have the credentials created in the TBMQ with the specified username. Could you please execute the following command and show the result?
|
Hi @dmytro-landiak ! I have solved it... I do not why but, as you guessed, MOSQUITTO was running and the MQTT traffic was going to this broker instead of TBMQ. I stop system service stop I changed in docker compose the port to from 1884:1884 to 1883:1883 and I restart the dockers. I think UI should be changed in order to report the regarding MQTT port, the one that it is configured in docker compose. Besides, I have got an extra question. It is compulsory to have a credential created by UI before subscribing or publishing or not? Thank you so much for your help and fast responses! |
Hi @gaizkasi, The user interface displays the port configured for the application running inside the container. Currently, it does not detect if the port is forwarded from the host to the Docker container (that's why it shows 1883 instead of 1884 or anything else). We understand this can be confusing and will revisit this issue for future improvements. In the meantime, you can set the environment variable If you have any more questions, please let me know. Best regards, |
Thank you so much @dmytro-landiak! Every doubt solved, we can close the issue :) |
In the latest weeks I have been testing TBMQ as a possible integration for my Thingsboard Professional instance.
I used Basic Auth configuration enabled and mosquitto_sub and mosquitto_pub locally in order to see how the UI interface shows connections or messages. While I was testing I found that the UI does not work as I expect and they might be bugs:
I created DEVICE TYPE credentials for testing and subscribed it to TBMQ by command to check connection. Subscription works. I connected and it checks if it is still alive by PING. Unfortunately, I could not find this connection in sessions tab.
In addition, just in case, I executed another mosquitto command to publish Hello World message through Broker for subscribed topic. Subscription command delivers properly the message. Both session nor message are not available in UI.
I attach screenshots of what is happening below.
What is happening? Is it a bug? Could you help me?
This is what I used to open TBMQ UI in the browser:
I simulate a device using Mosquitto command in the same server in what TBMQ is running.
Steps to reproduce the behavior:
The sessions should appear in TBMQ UI as well as the incoming messages.
Screenshots
The text was updated successfully, but these errors were encountered: