thin-edge / thin-edge.io

The open edge framework for lightweight IoT devices
https://thin-edge.io
Apache License 2.0
222 stars 55 forks source link

tedge connect fails #3235

Open ck-c8y opened 4 hours ago

ck-c8y commented 4 hours ago

Describe the bug Trying to connect the tegde version 1.3.1 fails:

Sending packets to check connection. This may take up to 2 seconds.

ERROR: Io(Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })
Warning: Bridge has been configured, but Cumulocity connection check failed.

ERROR: Io(Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })

We run a version of the tedge-container-bundle

We test on 4 different systems. The error occurs only on two systems. On the other two it works.

To Reproduce The error happen independant of the used bridge: builtin or mosquitto.

Expected behavior

The command tedge connect should complete successfully.

buildin log info: builtin_tedge_connect_c8y.log builtin_tedge_mqtt_sub_hash.log builtin_tedge_config_list.log

mosquitto log info:

mos_tedge_config_list.log mos_tedge_connect_c8y.log mos_tedge_mqtt_sub_hash.log

reubenmiller commented 4 hours ago

This smells like a tenant configuration problem. Any clues on the relationship between tenants where it works, and where it doesn't?

reubenmiller commented 4 hours ago

Could you also try connecting to the same tenant which as problems using the c8y tedge demo start mytest001?

ck-c8y commented 4 hours ago

This smells like a tenant configuration problem. Any clues on the relationship between tenants where it works, and where it doesn't? Sorry, when I say 2 system are ok, 2 system fails. I meant to say it is always the same Cumulocity tenant. But different thin-edges.