I have been strugling for weeks now trying to understand why i get a 502 bad gateway when trying to use Zigbee2MQTT and also Node.
Today i went ssh and got more infos.
I made progress but i still cant open the web gui : still 502 error.
The log seem to tell me my problem, i am not sure how to solve.
Here is the log:
YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key (4:1)
1 | homeassistant: true
2 | pan_id
3 | network_key
4 |
-----^
at generateError (/app/node_modules/js-yaml/lib/loader.js:183:10)
at throwError (/app/node_modules/js-yaml/lib/loader.js:187:9)
at readBlockMapping (/app/node_modules/js-yaml/lib/loader.js:1145:9)
at composeNode (/app/node_modules/js-yaml/lib/loader.js:1441:12)
at readDocument (/app/node_modules/js-yaml/lib/loader.js:1625:3)
at loadDocuments (/app/node_modules/js-yaml/lib/loader.js:1688:5)
at Object.load (/app/node_modules/js-yaml/lib/loader.js:1714:19)
at Object.read (/app/lib/util/yaml.ts:7:21)
at read (/app/lib/util/settings.ts:311:20)
at getInternalSettings (/app/lib/util/settings.ts:419:21)
[21:43:03] INFO: Handing over control to Zigbee2MQTT Core ...
By the way, i am running a new install, nothing install but Zigbee2MQTT on a NUC with a sonoff dongle.
Think your Z2M configuration is the problem. Where do you copy this from? My Z2M configuration.yaml file is very different to look at.
Further, you need a MQTT broker. You do not mention having installed it? Just chose the default add-on MQTT.
For inspiration have a look. remember that some of the settings are not configured through the yaml file, however done directly in the Z2M add-on. This have changed some month ago.