# Zigbee2mqtt - services started but link shows a red cross

**URL:** <https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955>\
**Category:** Configuration\
**Created:** [February 10, 2023, 5:13pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955 "2023-02-10T17:13:57Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [May 7, 2023, 10:26am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/41 "2023-05-07T10:26:39Z")

</div>

It’s a section because otherwise it’s too long, but the last lines may be explicit.

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [May 7, 2023, 11:50am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/42 "2023-05-07T11:50:50Z")

</div>

So, first of all it would be safer if you modified your message to:

- remove your IP address which is visible to everyone (the second-to-last line)
- you can use code tags to make it easier to read: at the very beginning and at the end of your code you can use this marker: ```

As for your log, there is indeed an error; unfortunately I don’t know how to debug it:

```auto
Error: connect ECONNREFUSED xx.xx.xx.xx:9007
at TCPConnectWrap.afterConnect [as oncomplete] (node
```

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [May 7, 2023, 12:25pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/43 "2023-05-07T12:25:57Z")

</div>

@pascal_sapin didn’t you configure your zigbee2mqtt container with a custom MQTT URL? From the z2m UI or manually in the `configuration.yaml` file?

---

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [May 7, 2023, 12:34pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/44 "2023-05-07T12:34:44Z")

</div>

Sorry but I don’t understand, I didn’t touch anything, I don’t know YAML configuration, could it be a port problem? The only thing I did was add a Wi‑Fi camera but it’s not compatible with RTSP or Gladys, and a USB repeater for the garden.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [May 7, 2023, 12:40pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/45 "2023-05-07T12:40:41Z")

</div>

What is the brand of your dongle?

* * *

I see other people who have similar problems on the z2m GitHub, but it’s about extensions… that we don’t handle natively.

> <https://github.com/Koenkk/zigbee2mqtt/issues/17550>
>
> \### What happened?
> 
> Since +/- 48 hours, Zigbee2mqtt is randomly crashing on the …following error:
> \`\`\`
> Error: connect ECONNREFUSED 85.214.195.163:9005
> at TCPConnectWrap.afterConnect \[as oncomplete\] (node:net:1494:16)
> \`\`\`
> 
> \*\*Note\*\*: I only see this error in the \_Docker container log\_, not in the Zigbee2mqtt log. (attached)
> 
> Basically the container starts up correctly, connects to the mosquitto eclipse broker as it should, I even see the values being updated in my Home Assistant, but it crashes after 5 to 10 seconds with the above mentioned error.
> 
> Sometimes, it doesn't crash and stays stable, but a restart might get it in crashing mode again.
> 
> The lookup of that IP refers to some German Provider called Strato, which I have no contact with.
> Does anyone know where it comes from? Zigbee2mqtt? One of my devices?
> 
> \### What did you expect to happen?
> 
> Zigbee2mqtt to stay stable
> 
> \### How to reproduce it (minimal and precise)
> 
> It looks random on start
> 
> \### Zigbee2MQTT version
> 
> 1.30.4
> 
> \### Adapter firmware version
> 
> 20221226
> 
> \### Adapter
> 
> ITead\_Sonoff\_Zigbee\_3.0\_USB\_Dongle\_Plus
> 
> \### Debug log
> 
> \[log.txt\](https://github.com/Koenkk/zigbee2mqtt/files/11380244/log.txt)

---

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [May 7, 2023, 12:50pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/46 "2023-05-07T12:50:19Z")

</div>

it’s a sonof zbdongle -P

it has always worked

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [May 7, 2023, 1:49pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/47 "2023-05-07T13:49:31Z")

</div>

There doesn’t seem to be any particular configuration for this dongle…  
I’m running out of leads…

Have you tried the pro’s technique? Restarting the PC? 😃

---

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [May 7, 2023, 1:54pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/48 "2023-05-07T13:54:28Z")

</div>

yes I restarted the router, the Pi, the PC — everything that could be restarted, nothing, still the same message!

 ![Capture](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/5/58864e7898df1f7515ed3762ecc90abc799f73de.jpeg)

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [May 7, 2023, 1:58pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/49 "2023-05-07T13:58:38Z")

</div>

Don’t lose patience, we’ll figure it out… but it’s nice outside right now, so I’ll get back to it later 😉

---

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [May 7, 2023, 2:16pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/50 "2023-05-07T14:16:53Z")

</div>

lol yes I understand, I have time anyway, it’s raining here but no big deal, we have work outside, 33 ares of land, plenty to do lol

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [May 7, 2023, 3:51pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/51 "2023-05-07T15:51:56Z")

</div>

@pascal_sapin could you give me the list of files you have in the folder `/var/lib/gladysassistant/zigbee2mqtt/z2m`?

```auto
ls /var/lib/gladysassistant/zigbee2mqtt/z2m

```

---

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [May 7, 2023, 4:33pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/52 "2023-05-07T16:33:11Z")

</div>

I get this

pi@gladys:~ $ ls /var/lib/gladysassistant/zigbee2mqtt/z2m  
configuration.yaml database.db log  
coordinator\_backup.json extension state.json

---

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [May 7, 2023, 5:06pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/53 "2023-05-07T17:06:00Z")

</div>

Actually I no longer have Zigbee data from my sensors either.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [May 7, 2023, 5:06pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/54 "2023-05-07T17:06:35Z")

</div>

Perfect, it’s the «&nbsp;extension&nbsp;» that’s causing the problem!!!  
Rename it, or move it

```auto
mv /var/lib/gladysassistant/zigbee2mqtt/z2m/extension \
/var/lib/gladysassistant/zigbee2mqtt/z2m/extension_bak

```

And tell me if that helps!

---

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [May 7, 2023, 5:17pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/55 "2023-05-07T17:17:08Z")

</div>

okay I’ll test this right away

---

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [May 7, 2023, 5:19pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/56 "2023-05-07T17:19:02Z")

</div>

mv /var/lib/gladysassistant/zigbee2mqtt/z2m/extension \  
/var/lib/gladysassistant/zigbee2mqtt/z2m/extension\_bak  
mv: cannot move ‹&nbsp;/var/lib/gladysassistant/zigbee2mqtt/z2m/extension&nbsp;› to ‹&nbsp;/var/lib/gladysassistant/zigbee2mqtt/z2m/extension\_bak&nbsp;›: Permission denied

I don’t think this is good ???

---

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [May 7, 2023, 5:22pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/57 "2023-05-07T17:22:00Z")

</div>

Could we use the chat? It would be better if you have a little time.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [May 7, 2023, 5:43pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/58 "2023-05-07T17:43:34Z")

</div>

Following a private chat with @pascal_sapin,  
removing the folder `/var/lib/gladysassistant/zigbee2mqtt/z2m/extension` solved their problem.

The solution comes from [Crash due to connection to external IP (Strato AG???) · Issue #17550 · Koenkk/zigbee2mqtt · GitHub](https://github.com/Koenkk/zigbee2mqtt/issues/17550#issuecomment-1536019886).

Once the folder is deleted and the container restarted, everything returns to normal.

Thanks @guim31 for your contribution 😉

* * *

@pascal_sapin if it happens again, keep us informed, and try to remember if you performed any specific actions on the zigbee2mqtt interface.

If we can reproduce it, we can fix it, or have it fixed.

If it appears for no reason, maybe a third party is messing with your instance… to check:

1. that port 8080 is not publicly accessible on the internet
2. that a member of your household / network isn’t causing trouble by accessing the z2m interface and, not being familiar with the application, clicking in the wrong places.

For your information, password access to the z2m application will be configurable from Gladys «&nbsp;soon&nbsp;». Development is underway, along with other nice features 😉

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [May 7, 2023, 5:59pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/59 "2023-05-07T17:59:49Z")

</div>

> [@AlexTrovato](#):
>
> For info, password access to the z2m application will be able to be configured «&nbsp;soon&nbsp;» from Gladys. Development is ongoing, with some other nice things 😉

Now that you’ve done the teaser, we want to know more!! 😁

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [May 13, 2023, 8:03am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955/60 "2023-05-13T08:03:01Z")

</div>

> [@BooyakaXII](#):
>
> EDIT: Adding «&nbsp;adapter: ezsp&nbsp;» works well to unlock communication with Z2M for the Sonoff-E dongle

For your information, @AlexTrovato added in Gladys Assistant 4.23 a new setting in the Zigbee2mqtt integration: the model of the Zigbee dongle.

This can be selected during configuration, which allows configuring Zigbee2mqtt directly, without leaving Gladys 🙂

 ![Screenshot 2023-05-12 at 14.20.22](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/3/3b7eb9d13a0dee93f5a903443dcbfb6f667c3aa8.png)

The details of this release are in this article:

> **[Streaming de caméra live dans Gladys Assistant 4.23 | Gladys Assistant](https://gladysassistant.com/fr/blog/camera-live-streaming-gladys-assistant-4-23/?r)**
>
> Surveillez votre logement à distance, chiffré de bout en bout

I’m closing this thread which was getting a bit long and a bit of a catch-all, now that the original problem is resolved 🙂

If you have further feedback / other bugs about Zigbee2mqtt, don’t hesitate to create another thread!

Thanks to @AlexTrovato for this development 🙏

[Previous page](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955.md?page=2)

[Next page](https://community.gladysassistant.com/t/zigbee2mqtt-services-demarres-mais-croix-rouge-pour-le-lien/7955.md?page=4)
