Zigbee2mqtt ошибка 502 bad gateway

Description of the issue

Previously I used z2m, no installation issues. I tested the ZHA and now I try to go back to the z2m, without success. I uninstalled ZHA, restarted home assistant, but I can’t get back to z2m anymore. When I try to access, this error appears: 502: Bad Gateway

Config:

data_path: /config/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: '-d -d'
  log: false
mqtt:
  server: mqtt://core-mosquitto:1883
  user: EDITED
  password: EDITED
  base_topic: zigbee2mqtt
serial:
  port: /dev/ttyUSB0
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: true
advanced:
  log_level: warn
  pan_id: 6754
  channel: 11
  network_key:
    - 1
    - 3
    - 5
    - 7
    - 9
    - 11
    - 13
    - 15
    - 0
    - 2
    - 4
    - 6
    - 8
    - 10
    - 12
    - 13
  availability_blocklist: []
  availability_passlist: []
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
  port: 8099
experimental:
  transmit_power: 20
zigbee_herdsman_debug: false

Addon version

1.26.0-1

Platform

Home Assistant Core 2022.6.7
Home Assistant Supervisor 2022.07.0

Logs of the issue (if applicable)

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/socat.sh
[12:07:17] INFO: Socat not enabled, marking service as down
cont-init: info: /etc/cont-init.d/socat.sh exited 0
cont-init: info: running /etc/cont-init.d/zigbee2mqtt.sh
cont-init: info: /etc/cont-init.d/zigbee2mqtt.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun socat (no readiness notification)
services-up: info: copying legacy longrun zigbee2mqtt (no readiness notification)
[12:07:18] INFO: Handing over control to Zigbee2MQTT Core …

zigbee2mqtt@1.26.0 start
node index.js
Zigbee2MQTT:info 2022-07-31 12:07:23: Logging to console and directory: ‘/config/zigbee2mqtt/log/2022-07-31.12-07-22’ filename: log.txt
Zigbee2MQTT:info 2022-07-31 12:07:23: Starting Zigbee2MQTT version 1.26.0 (commit #unknown)
Zigbee2MQTT:info 2022-07-31 12:07:23: Starting zigbee-herdsman (0.14.40)
Zigbee2MQTT:error 2022-07-31 12:08:28: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-07-31 12:08:28: Failed to start zigbee
Zigbee2MQTT:error 2022-07-31 12:08:28: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-07-31 12:08:28: Exiting…
Zigbee2MQTT:error 2022-07-31 12:08:28: Error: network commissioning timed out — most likely network with the same panId or extendedPanId already exists nearby
at ZnpAdapterManager.beginCommissioning (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:347:23)
at ZnpAdapterManager.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:92:17)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
at Zigbee.start (/app/lib/zigbee.ts:58:27)
at Controller.start (/app/lib/controller.ts:101:27)
at start (/app/index.js:109:5)

502 — Bad Gateway =>TypeError: Cannot read property ‘payload’ of undefined #203

mobilandi commented Oct 6, 2021 •

After updating and restarting my HomeAssistant, zigbee2mqtt won’t start anymore. The interface shows a «502 — Bad Gateway» error. The log shows following issue:

Zigbee2MQTT:error 2021-10-06 22:58:07: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-10-06 22:58:07: Failed to start zigbee
Zigbee2MQTT:error 2021-10-06 22:58:07: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-10-06 22:58:07: Exiting.
Zigbee2MQTT:error 2021-10-06 22:58:07: TypeError: Cannot read property ‘payload’ of undefined
at AdapterNvMemory.writeItem (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/adapter-nv-memory.ts:111:31)
at ZnpAdapterManager.clearAdapter (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:473:9)
at ZnpAdapterManager.beginCommissioning (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:331:9)
at ZnpAdapterManager.beginRestore (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:296:9)
at ZnpAdapterManager.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:80:17)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
at Zigbee.start (/app/lib/zigbee.ts:63:27)
at Controller.start (/app/lib/controller.js:116:27)
at start (/app/index.js:95:5)
[22:58:07] INFO: Handing over control to Zigbee2mqtt Core .
zigbee2mqtt@1.21.2 start
node index.js

I’m using following releases:
zigbee2mqtt; 1.21.2-1
Core: core-2021.10.0
Host OS: Home Assistant OS 6.4
Supervisor: supervisor-2021.09.6

Is this any compability issue between these new releases?

The text was updated successfully, but these errors were encountered:

Were you be able to resolve this?

I am having similar log entries.

I have this exact problem. It is my first time using HA and zigbee2mqtt and figured i was doing something wrong? I have followed countless tutorials with this exact same result everytime. Does anyone have any progress?

Same here, did not find a solution yet unfortunately.

@Koenkk , any idea what is going wrong here?

Probably something wrong on the adapter side, try reflashing it.

I have the same error
i use sonoff zigbee 3.0 usb dongle plus
flashed CC1352P2_CC2652P_launchpad_coordinator_20210708
zigbee2mqtt; 1.22.1-1
Core: core-2021.11.5
Host OS: Home Assistant OS 64

mobilandi commented Dec 10, 2021

Probably something wrong on the adapter side, try reflashing it.

Yes I think there is something wrong with my adapter. I did reflash it several times. At some point the message disappeared and zigbee2mqtt started working again. So I don’t have a 100% answer, but reflashing could help.

Hi, I upgraded from a CC2531 to the sonoff zigbee 3.0 usb dongle.
For me reflashing didn’t help.
Also, the adapter works fine when I use the ZHA addon but not with zigbee2mqtt, so shouldn’t be an adapter issue
I get the following errors, after each z2m tries restarting itself:

Zigbee2MQTT:error 2021-12-10 22:45:42: TypeError: Cannot read property ‘payload’ of undefined
Zigbee2MQTT:error 2021-12-10 22:46:09: TypeError: Cannot read property ‘payload’ of undefined
Zigbee2MQTT:error 2021-12-10 22:46:36: Error: SRSP — SYS — getExtAddr after 6000ms
Zigbee2MQTT:error 2021-12-10 22:47:55: Error: SRSP — ZDO — startupFromApp after 40000ms
Zigbee2MQTT:error 2021-12-10 22:48:23: Error: SRSP — SYS — getExtAddr after 6000ms
Zigbee2MQTT:error 2021-12-10 22:49:10: Error: SRSP — ZDO — startupFromApp after 40000ms
Zigbee2MQTT:error 2021-12-10 22:50:05: Error: SRSP — ZDO — startupFromApp after 40000ms
Zigbee2MQTT:error 2021-12-10 22:51:01: Error: SRSP — ZDO — startupFromApp after 40000ms
Zigbee2MQTT:error 2021-12-10 22:51:22: Error: SRSP — SYS — getExtAddr after 6000ms
Zigbee2MQTT:error 2021-12-10 22:51:36: Error: SRSP — SYS — getExtAddr after 6000ms
Zigbee2MQTT:error 2021-12-10 22:52:25: Error: SRSP — ZDO — startupFromApp after 40000ms
Zigbee2MQTT:error 2021-12-10 22:53:39: Error: SRSP — ZDO — startupFromApp after 40000ms
Zigbee2MQTT:error 2021-12-10 22:54:40: Error: SRSP — ZDO — startupFromApp after 40000ms
Zigbee2MQTT:error 2021-12-10 22:55:08: Error: SRSP — UTIL — getDeviceInfo after 6000ms
Zigbee2MQTT:error 2021-12-10 22:55:34: TypeError: Cannot read property ‘length’ of null
Zigbee2MQTT:error 2021-12-10 22:56:02: Error: SRSP — SYS — getExtAddr after 6000ms
Zigbee2MQTT:error 2021-12-10 22:56:20: Error: SRSP — AF — register after 6000ms
Zigbee2MQTT:error 2021-12-10 22:57:15: Error: SRSP — ZDO — startupFromApp after 40000ms

I have the same error i use sonoff zigbee 3.0 usb dongle plus flashed CC1352P2_CC2652P_launchpad_coordinator_20210708 zigbee2mqtt; 1.22.1-1 Core: core-2021.11.5 Host OS: Home Assistant OS 64

were you able to solve? I have the same problem.

Probably something wrong on the adapter side, try reflashing it.

Reflashing solved it for me.

I reflashed it and it started working again. But now it is throwing new errors without me touching it or updating it. It is to unreliable for day to day use. Im gonna find something else instead, because it is simply not «smart» home at all, when you have to reflash and reinstall everything at random times without any idea what is going wrong or what is causing it.

Same issue here when using a brand new and z-stack flashed «sonoff zigbee 3.0 usb dongle plus».

I can pair clients and it all looks very fine, but node red give the error «502: Bad Gateway«.
From the log I have this information:
22-01-23 15:41:22 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.33.5:8099 ssl:default [Connect call failed (‘172.30.33.5’, 8099)]

Hmm wondering what the new gateway IP address and port is.

Everything has been working a kind of stable before I change from a 2531 based dongle to the new sonoff zigbee 3.0 usb dongle plus.

Best regards
Bjarke

Hello, does somebody find a solution?
because I have the problem too :) with a CC2652, HA detect directly the key, but I can’t start Z2M with error on payload.

Mine randomly worked at one point. But I never got it working properly as intended. So I ended up just abandoning the project, seeing as no one was able to help. Everyone else seems to make it work, so I assume it’s me. I tried suggesting them that I could a better tutorial is they could me get going. as all the tutorials are all lacking in some aspect. But no one ever replied. So i gave up.

Sorry i Can’t help you better. You Might be better of with a network version indstead of That USB version.

I found the reason of my problem. Ans it’s a very stupid reason :(
When I plug my key, HA detected it and try to install an integration, I configure it, . and didn’t pay attention any more.
The name of this integration is «Zigbee Home Automation» aka ZHA, and ZHA use the key, so you can’t use it with zigbee in the same time!!
So I just disabled ZHA and it’s work :),
So it’s solved for me

Well done, mate! I did not know This! I’m gonna give it another go when I have the time, and report back!

That was indeed the problem. I always let it setup, after plugging it in, not knowing that I would take up the spot, so mqtt couldn’t acces it.
Well spotted, and thank you for your time!

mine works now as well!

I found the reason of my problem. Ans it’s a very stupid reason :( When I plug my key, HA detected it and try to install an integration, I configure it, . and didn’t pay attention any more. The name of this integration is «Zigbee Home Automation» aka ZHA, and ZHA use the key, so you can’t use it with zigbee in the same time!! So I just disabled ZHA and it’s work :), So it’s solved for me

mate you save my life) thank you

I found the reason of my problem. Ans it’s a very stupid reason :( When I plug my key, HA detected it and try to install an integration, I configure it, . and didn’t pay attention any more. The name of this integration is «Zigbee Home Automation» aka ZHA, and ZHA use the key, so you can’t use it with zigbee in the same time!! So I just disabled ZHA and it’s work :), So it’s solved for me

Thanks! This solved it for me as well.

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

© 2022 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

502: Bad Gateway on Start-up #446

got the add-on installed, but getting an 502: Bad Gateway when trying to run the add-on.
Home Assistant 0.116 on RBpi4 in docker.
Got 8099 allowed in the ufw rules.

8099 ssl:default [Connection refused] though

What am i doing wrong?

The text was updated successfully, but these errors were encountered:

Can you post your config? Why are you not just using ingress? Did you setup your new_api property? Usually the built-in frontend takes up to 5 minutes to start from the time the add-on started. Also this is influenced on the number of automations or if you have other stuff like Zigbee2mqttAssistant

Not too much automation running yet and no other stuff installed. Even going through ingress i am getting the same error.

I’m fairly new to MQTT so i might be missing something. Installed Mosquitto broker.

Adding the new-api: experimental code for example the config-check fails.

Can you post your z2m config? Did you wait for 5 minutes?

And yes, waited 30 minutes;)

Where do you see 8099 ssl:default [Connection refused] ?

This is right after «booting» the add-on

If you boot the add-on and go directly to the tab in the side bar, you will see this error. Can you get debug logs from the add-on?

Your add-on is crashing, as your serial port setup is incorrect: Error: Error while opening serialport ‘Error: Error: Resource busy, cannot open /dev/ttyACM0’ . Make sure you don’t have any other add-on using the serial port and that the serial port is the correct one.

I have deconz running that is looking at a conbee II stick? Might that be the issue?

I had this problem too and solved it by reinstalling zigbee2mqtt if it helps anything

If you have deconz with conbee stick you should still use the documentation to find out the serial port, however you need an extra setting:

Okay, slowly getting there, still bad gate-way but also:

Zigbee2MQTT:error 2020-10-13 16:46:39: Error: Failed to connect to the adapter (Error: SRSP — SYS — ping after 6000ms)

This is when deconz is «stopped»

Make sure you also have firmware updated with the proper one. Also make sure you do a reboot and deconz is stopped and the serial port is correct.

Conbee is in the latest firmware. System just fully rebooted and deconz is stopped. Still same error:(

Port is correct:
13 16:00 usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2213029-if00 -> ../../ttyACM0

Did you update the config with the adapter setting?

Even though on restart this reports an error.

You need both like I said in #446 (comment)

Still same error on the config. and still Error: Failed to connect to the adapter (Error: SRSP — SYS — ping after 6000ms)

The config goes in your zigbee2mqtt add-on config, not in your home assistant config.

Can you add to the zigbee2mqtt add-on the option:

And send what you get ?

I think we did it! Thank you very very much!

The config goes in your zigbee2mqtt add-on config, not in your home assistant config.

How do you edit the yaml of the addon, and not the config of HA? I am using HA/OS on a VM in Virtualbox on a windows 10 machine.

You just use the add-on config in the Supervisor, no need to edit yaml file on disk.

thanks buddy. you save me. lucky i found an answer for it. it works.

Hi, i add these commands

serial: port: /dev/ttyACM0 adapter: deconz

But appear the same error

The config gets overwitten every time Zigbee2mqtt starts, and I read elsewhere I’m supposed to edit that using the GUI. But the GUI won’t start until I change it. Catch 22.

Hi everyone, i am completly new to Homeassistant but already have a first problem. I hope someone here can help me.

I have the same issue: When starting zigbee2mqtt i see only «Bad gateway»

Источник

Recommend Projects

  • React photo

    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo

    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo

    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo

    TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo

    Django

    The Web framework for perfectionists with deadlines.

  • Laravel photo

    Laravel

    A PHP framework for web artisans

  • D3 photo

    D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Visualization

    Some thing interesting about visualization, use data art

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo

    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo

    Microsoft

    Open source projects and samples from Microsoft.

  • Google photo

    Google

    Google ❤️ Open Source for everyone.

  • Alibaba photo

    Alibaba

    Alibaba Open Source for everyone

  • D3 photo

    D3

    Data-Driven Documents codes.

  • Tencent photo

    Tencent

    China tencent open source team.

Recommend Projects

  • React photo
    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo
    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo
    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo
    TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo
    Django

    The Web framework for perfectionists with deadlines.

  • Laravel photo
    Laravel

    A PHP framework for web artisans

  • D3 photo
    D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Visualization

    Some thing interesting about visualization, use data art

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo
    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo
    Microsoft

    Open source projects and samples from Microsoft.

  • Google photo
    Google

    Google ❤️ Open Source for everyone.

  • Alibaba photo
    Alibaba

    Alibaba Open Source for everyone

  • D3 photo
    D3

    Data-Driven Documents codes.

  • Tencent photo
    Tencent

    China tencent open source team.

Jobs

Jooble

Recommend Projects

  • React photo

    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo

    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo

    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo

    TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo

    Django

    The Web framework for perfectionists with deadlines.

  • Laravel photo

    Laravel

    A PHP framework for web artisans

  • D3 photo

    D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Visualization

    Some thing interesting about visualization, use data art

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo

    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo

    Microsoft

    Open source projects and samples from Microsoft.

  • Google photo

    Google

    Google ❤️ Open Source for everyone.

  • Alibaba photo

    Alibaba

    Alibaba Open Source for everyone

  • D3 photo

    D3

    Data-Driven Documents codes.

  • Tencent photo

    Tencent

    China tencent open source team.

Really quick post. As a result of my 3 part Beginner’s guide to Node-red tutorials, some have reached out to tell me that they’ve been unable to run Node-red successfully. They have installed the add-on from the “Home Assistant Community Add-ons” section which can be found in the side bar under Supervisor => Add-on Store (tab), but when they start the add-on, clicking on the link results in a 502 bad gateway error. In layman’s terms, this http error means the webserver has received a bad response and cannot move forwards. In reality, it’s either you’ve tried to access the add-on too early or it’s usually a password / auth issue. I’ve helped several people to address this. If you’re receiving a 502 issue, I would encourage you to wait a minute or so for the add-0n to finish loading itself (you can check the progress on the log tab of the add-on). If you are still experiencing the 502 after a couple of minutes, I suggest you do the following.

Click on the conf tab of the Node-red add-on and basically paste this in. This is my configuration and it just works.

credential_secret: redacted but something difficult to guess
dark_mode: false
http_node:
  username: redacted but same as HA login
  password: redacted but same as HA password
http_static:
  username: redacted but same as HA login
  password: redacted but same as HA password
ssl: false
certfile: fullchain.pem
keyfile: privkey.pem
require_ssl: false
system_packages: []
npm_packages: []
init_commands: []

Now obviously, if you want dark mode or SSL etc., you’ll need to update this as required, but for now let’s try and get straight into node-red. Also some of this may or may not be necessary, but as I mentioned before, this just works for me. If you want to go through the full configuration options, you can check here: https://github.com/hassio-addons/addon-node-red/blob/master/node-red/DOCS.md 

In order to preserve the correct lay out, here’s an example of it on the page:

A working configuration for the Node-Red add-on

A working configuration for the Node-Red add-on

Save the configuration and restart. It’s normally a good time to refresh the page (holding shift) or clear the cache in your browser forcing a clean retrieval. If all went to plan, you should be staring at a fresh Node-red page waiting for you to unleash your creativity. Hopefully this saves you some heartache!

If you enjoyed this type of content and would be interested in sharing your own solutions, tips and tricks with like minded people perhaps you’d consider joining our facebook group. The aim of this group will hopefully be more show and tell rather than support, but that’s not to say we can’t lend a helping hand 🙂

https://www.facebook.com/groups/386238285944105

Cheers!

The Smarthome Book

The Smarthome Book


Go to homeassistant


502 bad gateway Zigbee2MQTT

Please help — I’m still really new to HA and I’m going round in endless circles trying to get my Sonoff zigbee 3.0 dongle to work and despite reading everything I can find I’m not managing to solve the problem. I’m getting really demoralised because I’m finding every single thing I’m trying to do in HA is coming with error after error that requires hours of googling and problem solving…. does this get any easier?! I’m also finding that when looking for resources I jump from youtube videos that are like ‘here’s how to plug in a raspberry pi’ to linked guides and help posts using a bunch of language I just don’t understand yet.

Anyway. I’m following the steps on the Mark Watt Tech youtube channel for Zigbee2MQTT but have also watched a few others to see if anything else needs doing. I’ve flashed my Sonoff Zigbee 3.0, plugged it in (currently directly in to the raspi which I understand can be an issue but I don’t think that’s the problem I’m having here?), I’ve downloaded Mosquitto, created a specific MQTT user account, downloaded Zigbee2MQTT from the linked repositories, added the basic config that the documentation says is required, configured the mosquitto add on so it has the credentials of of the user I created, started it all up…. and I get a 502 bad gateway. I have then changed about every setting I possibly can think of and nothing is working and I’m going mad! I’ve restarted, uninstalled, reinstalled. I’ve also followed the guide in ‘what to do if MQTT fails to start’ and I run it to two issues quite quickly. When the verify user has write access to the port I get a failure for the first step and for the second step: sudo chown [USER] [PORT] — I run in to two problems. The only users that don’t return ‘unknown user’ are ‘hassio’ and ‘guest’ — my main user (owner) returns ‘unknown user’, as does my mqtt user. When I use hassio and guest instead of ‘unknown user’ I get ‘no such file or directory’ error instead — I have double and triple checked that my port is definitely /dev/ttyusb0

The settings I am using are:

data_path: /config/zigbee2mqtt

socat:

enabled: false

master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777

slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5

options: ‘-d -d’

log: false

mqtt:

server: mqtt://192.168.0.78:8883 (I have also tried :1883)

user: mqtt

password: *my password obviously*

serial:

port: /dev/ttyUSB0

frontend:

port: 8099 (I have also tried frontend: true and port: 8080)

My log is spitting out:

[22:36:41] INFO: Handing over control to Zigbee2mqtt Core … > zigbee2mqtt@1.25.1 start > node index.js Zigbee2MQTT:info 2022-05-25 22:36:47: Logging to console and directory: ‘/config/zigbee2mqtt/log/2022-05-25.22-36-45’ filename: log.txt Zigbee2MQTT:info 2022-05-25 22:36:47: Starting Zigbee2MQTT version 1.25.1 (commit #unknown) Zigbee2MQTT:info 2022-05-25 22:36:47: Starting zigbee-herdsman (0.14.27) Zigbee2MQTT:error 2022-05-25 22:38:19: Error while starting zigbee-herdsman Zigbee2MQTT:error 2022-05-25 22:38:19: Failed to start zigbee Zigbee2MQTT:error 2022-05-25 22:38:19: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions Zigbee2MQTT:error 2022-05-25 22:38:19: Exiting… Zigbee2MQTT:error 2022-05-25 22:38:19: Error: network commissioning timed out — most likely network with the same panId or extendedPanId already exists nearby at ZnpAdapterManager.beginCommissioning (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:347:23) at ZnpAdapterManager.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:92:17) at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29) at Zigbee.start (/app/lib/zigbee.ts:58:27) at Controller.start (/app/lib/controller.ts:100:27) at start (/app/index.js:110:5)

Please can anyone help me?!

Archived post. New comments cannot be posted and votes cannot be cast.

What happened

I’ve got a CC2531 chip that I flashed with the correct firmware and it’s tuning on and in the zigbee2mqtt logs I can see that it finds it. Before I had flashed the CC2531 chip Zigbee2Mqtt gave me error so I assume the chip is working fine.

When I try to open the Zigbee2Mqtt interface I get a 502: Bad Gateway and in the supervisor log I get this message:

21-10-21 11:05:39 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.33.5:8099 ssl:default [Connect call failed ('172.30.33.5', 8099)]

Zigbee2mqtt
Current version: 1.21.2-1

data_path: /config/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://localhost:1883
  user: mqtt
  password: xxxxx
serial:
  port: /dev/ttyACM0
advanced:
  log_level: warn
  pan_id: 6754
  channel: 11
  network_key:
    - 1
    - 3
    - 5
    - 7
    - 9
    - 11
    - 13
    - 15
    - 0
    - 2
    - 4
    - 6
    - 8
    - 10
    - 12
    - 13
  availability_blocklist: []
  availability_passlist: []
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
  port: 8099
experimental: {}
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: '-d -d'
  log: false

I’ve also tried with:

mqtt:
base_topic: zigbee2mqtt
server: mqtt://localhost:1883
same problem.

When I set

permit_join: true

I get this, but it still doesn’t work:

What did you expect to happen

Open the GUI without any 502 error.

How to reproduce it (minimal and precise)

Start Zigbee2MQTT, go to ingress

Debug info

Zigbee2MQTT version: 1.21.2-1
Adapter hardware: CC2531
Adapter firmware version: https://github.com/Koenkk/Z-Stack-firmware/raw/master/coordinator/Z-Stack_Home_1.2/bin/default/CC2531_DEFAULT_20201127.zip

Link to community home where I’ve tried different stuff that doesn’t work https://community.home-assistant.io/t/zigbee2mqtt-gives-me-502-bad-gateway/348856


4

ответов


Аноним

Читать логи ¯_(ツ)_/¯

вот что пишет Zigbee2MQTT:error 2022-03-06 10:01:07: Exiting…
Zigbee2MQTT:error 2022-03-06 10:01:08: Error: Coordinator backup is corrupted Если знаете , подскажите что сделать


Алексей

вот что пишет Zigbee2MQTT:error 2022-03-06 10:01:0…

Битый бекап координатора, скорее всего криво созранился, попробуйте для начала переименовать coordinator backup json в что нибудь иное


Аноним

Битый бекап координатора, скорее всего криво созра…

Сработало переименование. Подключил выключатель. Работает очень странно. Вкл лев клавишу-свет горит. Вкл прав клавишу -вторая лампа горит. Откл лев клавишу-свет гаснет. Откл прав кл-отклика нет, свет продолжает гореть. Снова вкл 2 клавиши- горят2 лампы. Откл правую-лампа гаснет. Выкл левую- теперь здесь нет отклика, лампа горит. В чем причина? Какие-то настройки надо изменить? Подскажите

  • Zhe 0400 как устранить актрос ошибка
  • Zhe 0100 ошибка мерседес atego
  • Zfs проверка на ошибки
  • Zf ecomat 2 коды ошибок
  • Zf ecolife коды ошибок