# Same MQTT flow not connecting on RaspberryPi (Dietpi) but on laptop (Manjaro)

**URL:** <https://discourse.nodered.org/t/same-mqtt-flow-not-connecting-on-raspberrypi-dietpi-but-on-laptop-manjaro/64489>\
**Category:** General\
**Tags:** mqtt\
**Created:** [29 June 2022 08:35 UTC](https://discourse.nodered.org/t/same-mqtt-flow-not-connecting-on-raspberrypi-dietpi-but-on-laptop-manjaro/64489 "2022-06-29T08:35:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeirix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zeirix/32/62694_2.png) [@zeirix](https://discourse.nodered.org/u/zeirix)\
**Post date:** [29 June 2022 08:35 UTC](https://discourse.nodered.org/t/same-mqtt-flow-not-connecting-on-raspberrypi-dietpi-but-on-laptop-manjaro/64489/1 "2022-06-29T08:35:44Z")

</div>

Hello Everybody,

I've got a strange problem, the same flow (copy/paste) works on my notebook (Manjaro Linux, Kernel 5.15.49-1), but it refuses to work on a RaspberryPi (Model B, Dietpi v8.5.1, Kernel 5.15.32+)

The flow uses the MQTT-in Node to read a electricity meter reading from TheThingsNetwork in the Cloud, so I'm not running any local Mosquitto.

While the flow on my notebook connects immediately, it refuses to connect on the Pi  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/3/337aece056406a1dd7951aaa57d61d948548fdd3.png)

I played around with different auth settings in the flow on the Pi, but nothing changed.

The Network seems to be reachable on the Pi, at least I can get fetch different stuff via the node-red http-in node. It's hard to believe, that there's a special ipfilter flaw, that filters out only MQTT traffic.

The TTN console is full of "invalid token" errors:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/7/d7746c4860ea5d0e4094e6e90738d71c85bf56ad.png)

Thank you for any help!

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [29 June 2022 10:40 UTC](https://discourse.nodered.org/t/same-mqtt-flow-not-connecting-on-raspberrypi-dietpi-but-on-laptop-manjaro/64489/2 "2022-06-29T10:40:19Z")

</div>

Those messages say `invalid token`. It would seem like your `mqtt-in node` is not configured properly.

Did you check it’s configuration against the configuration on your notebook to see if they are the same?

What does TheThingsNetwork require?

What version of node-red and node.js are you running?

---

<div class="post-metadata">

**Author:** ![zeirix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zeirix/32/62694_2.png) [@zeirix](https://discourse.nodered.org/u/zeirix)\
**Post date:** [30 June 2022 09:12 UTC](https://discourse.nodered.org/t/same-mqtt-flow-not-connecting-on-raspberrypi-dietpi-but-on-laptop-manjaro/64489/3 "2022-06-30T09:12:19Z")

</div>

I have to excuse myself.  
I messed up here a bit with my configurations.

The working password which left in my global configuration on the laptop, was taken from the TTN _Api Key generator_, as it should be.

Somehow, on the Pi I inserted the password for the TTN _Web-login_, which is different and **not intended**.

Sorry for any inconvinience!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [14 July 2022 09:13 UTC](https://discourse.nodered.org/t/same-mqtt-flow-not-connecting-on-raspberrypi-dietpi-but-on-laptop-manjaro/64489/4 "2022-07-14T09:13:01Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
