Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container start stuck in loop #26458

Open
potatostuff13 opened this issue Feb 21, 2025 · 5 comments
Open

Container start stuck in loop #26458

potatostuff13 opened this issue Feb 21, 2025 · 5 comments
Labels
problem Something isn't working

Comments

@potatostuff13
Copy link

potatostuff13 commented Feb 21, 2025

What happened?

Upgraded to 2.1.1 and now docker container is stuck in a loop on start and never fully starts. Container does not work.

What did you expect to happen?

I expected that the container would complete startup.

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

2.1.1

Adapter firmware version

20240710

Adapter

zstack: Sonoff Zigbee Dongle P

Setup

Docker container on Unraid

Debug log

Log behavior:

Starting Zigbee2MQTT without watchdog.
[2025-02-21 08:34:53] info: z2m: Logging to console, file (filename: log.log)
[2025-02-21 08:34:53] info: z2m: Starting Zigbee2MQTT version 2.1.1 (commit #unknown)
[2025-02-21 08:34:53] info: z2m: Starting zigbee-herdsman (3.2.5)
[2025-02-21 08:34:53] info: zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyUSB0","baudRate":115200,"rtscts":false,"autoOpen":false}
Starting Zigbee2MQTT without watchdog.
[2025-02-21 08:34:54] info: z2m: Logging to console, file (filename: log.log)
[2025-02-21 08:34:54] info: z2m: Starting Zigbee2MQTT version 2.1.1 (commit #unknown)
[2025-02-21 08:34:54] info: z2m: Starting zigbee-herdsman (3.2.5)
[2025-02-21 08:34:54] info: zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyUSB0","baudRate":115200,"rtscts":false,"autoOpen":false}
Starting Zigbee2MQTT without watchdog.
[2025-02-21 08:34:56] info: z2m: Logging to console, file (filename: log.log)
[2025-02-21 08:34:56] info: z2m: Starting Zigbee2MQTT version 2.1.1 (commit #unknown)
[2025-02-21 08:34:56] info: z2m: Starting zigbee-herdsman (3.2.5)
[2025-02-21 08:34:56] info: zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyUSB0","baudRate":115200,"rtscts":false,"autoOpen":false}

@potatostuff13 potatostuff13 added the problem Something isn't working label Feb 21, 2025
@Koenkk
Copy link
Owner

Koenkk commented Feb 22, 2025

Could you provide the debug log of this?

See this on how to enable debug logging.

@potatostuff13
Copy link
Author

potatostuff13 commented Feb 22, 2025

Starting Zigbee2MQTT without watchdog.

[2025-02-22 09:31:13] debug:    z2m: Removing old log directory '/config/log/2025-02-22.09-30-56'

[2025-02-22 09:31:13] info:     z2m: Logging to console, file (filename: log.log)

[2025-02-22 09:31:13] debug:    z2m: Loaded state from file /config/state.json

[2025-02-22 09:31:13] info:     z2m: Starting Zigbee2MQTT version 2.1.1 (commit #unknown)

[2025-02-22 09:31:13] debug:    z2m: sd-notify loaded

[2025-02-22 09:31:13] info:     z2m: Starting zigbee-herdsman (3.2.5)

[2025-02-22 09:31:13] debug:    z2m: Using zigbee-herdsman with settings: '"{\"network\":{\"panID\":6754,\"extendedPanID\":[221,221,221,221,221,221,221,221],\"channelList\":[11],\"networkKey\":\"HIDDEN\"},\"databasePath\":\"/config/database.db\",\"databaseBackupPath\":\"/config/database.db.backup\",\"backupPath\":\"/config/coordinator_backup.json\",\"serialPort\":{\"path\":\"/dev/ttyUSB0\",\"adapter\":\"zstack\"},\"adapter\":{\"disableLED\":false}}"'

[2025-02-22 09:31:13] debug:    zh:adapter:discovery: Error while trying to match USB adapter (spawn udevadm ENOENT).

[2025-02-22 09:31:13] debug:    zh:controller: Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":"HIDDEN","panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"path":"/dev/ttyUSB0","adapter":"zstack"},"adapter":{"disableLED":false},"databasePath":"/config/database.db","databaseBackupPath":"/config/database.db.backup","backupPath":"/config/coordinator_backup.json"}'

[2025-02-22 09:31:13] info:     zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyUSB0","baudRate":115200,"rtscts":false,"autoOpen":false}

@Koenkk
Copy link
Owner

Koenkk commented Feb 22, 2025

Do you see more in the STDOUT? (docker logs -f CONTAINER_ID). Also on what hardware are you running z2m? (I'm especially interested in the CPU architecture)

@potatostuff13
Copy link
Author

A few cycles of the STDOUT attached.

Hardware:
CPU: Intel Core i5-13500 (Raptor Lake)
Motherboard: Asrock Z690 Extreme

OS: Unraid

STDOUT.txt

@potatostuff13
Copy link
Author

Not sure if this is helpful, but if I designate the port by-id vs ttyUSB0, I get a different set of errors:

by_id_logs.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants