[SOLVED] MQTT Connection Refused eu.thethings.network

Hi,

I’m doing some tests but I can’t connect anymore to eu.thethings.network.
Maybe I’m wrong but I’m quite sure this was working a few days ago…

I tried with node-red (mqtt input)

Here is the terminal output :

node-red -v
9 May 19:50:52 - [info] 

Welcome to Node-RED
===================

9 May 19:50:52 - [info] Node-RED version: v0.18.4
9 May 19:50:52 - [info] Node.js  version: v8.11.1
9 May 19:50:52 - [info] Linux 4.15.0-20-generic x64 LE
9 May 19:50:52 - [info] Loading palette nodes
9 May 19:50:53 - [warn] ------------------------------------------------------
9 May 19:50:53 - [warn] [node-red/rpi-gpio] Info : Ignoring Raspberry Pi specific node
9 May 19:50:53 - [warn] ------------------------------------------------------
9 May 19:50:53 - [info] Settings file  : /home/user/.node-red/settings.js
9 May 19:50:53 - [info] User directory : /home/user/.node-red
9 May 19:50:53 - [warn] Projects disabled : set editorTheme.projects.enabled=true to enable
9 May 19:50:53 - [info] Flows file     : /home/user/.node-red/flows_vps448176.json
9 May 19:50:53 - [info] Server now running at http://127.0.0.1:1880/
9 May 19:50:53 - [info] Starting flows
9 May 19:50:53 - [info] Started flows
9 May 19:50:58 - [info] [mqtt-broker:de588237.678538] Connection failed to broker: mqtt://eu.thethings.network:1883
9 May 19:51:18 - [info] [mqtt-broker:de588237.678538] Connection failed to broker: mqtt://eu.thethings.network:1883

Here is the GUI

node-red-configuration

node-red-password

node-red-configuration-node

I also tried with mosquitto_sub

With SSL

mosquitto_sub --cafile mqtt-ca.pem -p 8883 -h eu.thethings.network -t '+/devices/+/up' -u 'AppID' -P 'AppKey' -v
Connection Refused: not authorised.

Without SSL

mosquitto_sub -p 1883 -h eu.thethings.network -t '+/devices/+/up' -u 'AppID' -P 'AppKey' -v
Connection Refused: not authorised.

AppID
appid

AppKey
appkey

Everything is fine from the TTN console
console-data

Thanks for your help :thinking:

That was only a bad password issue :mask:

1 Like