『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1951|回复: 3

[求助] 威联通NAS 中DOCKER 方式安装了home-assistant和MQTT,MQTT 无法连接

[复制链接]

10

主题

147

帖子

462

积分

中级会员

Rank: 3Rank: 3

积分
462
金钱
315
HASS币
0
发表于 2022-2-13 00:23:45 | 显示全部楼层 |阅读模式
本帖最后由 hxin 于 2022-2-13 00:28 编辑

如题

home-assistant 错误信息如下:

[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[finish] process exit code 0
s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2022-02-13 00:01:36 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect to MQTT server due to exception: [Errno 111] Connection refused

#上行意思是:2022-02-13 00:01:36错误(主线程)[homeassistant.components.mqtt]无法连接到mqtt服务器,原因是异常:[Errno 111]连接被拒绝

````````````````````````````````````````````````````````````````````````````````````````````````````
MQTT(eclipse-mosquitto)错误信息如下:

1644681484: mosquitto version 2.0.14 terminating
1644681487: mosquitto version 2.0.14 starting
1644681487: Config loaded from /mosquitto/config/mosquitto.conf.
1644681487: Starting in local only mode. Connections will only be possible from clients running on this machine.
1644681487: Create a configuration file which defines a listener to allow remote access.
1644681487: For more details see https://mosquitto.org/documentation/authentication-methods/
1644681487: Opening ipv4 listen socket on port 1883.
1644681487: Opening ipv6 listen socket on port 1883.
1644681487: Error: Address not available
1644681487: mosquitto version 2.0.14 running

# 错误信息意思:1644681487:错误:地址不可用


配置MQTT用的是“mosquitto_passwd -c pwfile.example mqtt”也出现了新的终端机,也输入了2次密码


在configuration.yaml 中配置MQTT如下:

360截图20220213001949572.jpg
360截图20220213001949572.jpg
PING 192.168.3.102 也可以通,

问题可能出现在配置用户名密码上,试了好多办法,也重新安装过,还是不能解决,

请走过路过的大神们给指点下(比如MQTT配置文件在哪?或者怎么修改用户名密码,或者可能是其他什么原因)谢谢~!


回复

使用道具 举报

10

主题

680

帖子

5652

积分

论坛元老

Rank: 8Rank: 8

积分
5652
金钱
4967
HASS币
50
发表于 2022-2-13 21:04:42 | 显示全部楼层
要不换emqx?
回复

使用道具 举报

10

主题

147

帖子

462

积分

中级会员

Rank: 3Rank: 3

积分
462
金钱
315
HASS币
0
 楼主| 发表于 2022-2-14 11:16:25 | 显示全部楼层
还在折腾中,实在不行考虑再考虑其他
回复

使用道具 举报

10

主题

147

帖子

462

积分

中级会员

Rank: 3Rank: 3

积分
462
金钱
315
HASS币
0
 楼主| 发表于 2022-2-17 08:47:25 | 显示全部楼层
已换安装方式了     用HASS OS了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 23:16 , Processed in 0.327640 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表