Koenkk / Koenkk/zigbee2mqtt

Z2M restarts every 2 minutes when using as a service

Open
#33,132 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

problem
Dominant language
TypeScript
Stars
15.7k
Forks
2k
Avg merge
18h 55m
Merged PRs (30d)
35

Description

What happened?

If started as a service Z2M stops and restarts every 2 minutes. If started at a prompt it runs without issue. It doesn't seem to be the same as the sd-notify issue previously

What did you expect to happen?

It wuld run as a service

How to reproduce it (minimal and precise)

I think this started after a recent update

Zigbee2MQTT version

2.14.1 (3c3d8c1a)

Adapter firmware version

{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20221226,"transportrev":2}

Adapter

ZStack3x0

Setup

os: #30~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 7 13:27:52 UTC 2 - 7.0.0-30-generic - x64
node: v24.14.1
ha: false

Device database.db entry

No response

Debug log

No response

Notes

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the restart using the service setup and compare it with launching Z2M at a prompt. Check the behavior against the reported Zigbee2MQTT version, Node version, Ubuntu setup, and ZStack3x0 adapter; collect service and debug logs. Done means the service remains running instead of restarting every two minutes.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.