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

 找回密码
 立即注册
查看: 621|回复: 4

[技术探讨] 【求助】初次安装访问404报错如下

[复制链接]

4

主题

32

帖子

124

积分

注册会员

Rank: 2

积分
124
金钱
92
HASS币
0
发表于 2022-10-23 13:34:01 | 显示全部楼层 |阅读模式
ERROR (MainThread) [homeassistant.components.http] Failed to create HTTP server at port 8123: [Errno 98] error while attempting to bind on address ('0.0.0.0', 8123): address in use

另外已经改成host模式 并且端口设置成8848啦
求大佬指教
回复

使用道具 举报

13

主题

512

帖子

5273

积分

论坛元老

Rank: 8Rank: 8

积分
5273
金钱
4761
HASS币
10
发表于 2022-10-23 15:14:47 | 显示全部楼层
你在哪里修改的hass的端口改成了8848?  hass的log不还是显示的无法在8123端口上创建http server吗
回复

使用道具 举报

4

主题

32

帖子

124

积分

注册会员

Rank: 2

积分
124
金钱
92
HASS币
0
 楼主| 发表于 2022-10-23 16:07:20 | 显示全部楼层
mars.z 发表于 2022-10-23 15:14
你在哪里修改的hass的端口改成了8848?  hass的log不还是显示的无法在8123端口上创建http server吗 ...

bash-5.1# cat configuration.yaml
http:
  server_port: 8848
  use_x_forwarded_for: True
  trusted_proxies:
    - 127.0.0.1
    - ::1
    - 10.0.20.0/24
    - 10.10.0.0/16
    - 10.43.0.0/16
    - 10.42.0.0/16
    - 10.0.20.81
    - 10.0.20.82
    - 10.0.20.83
    - 10.42.1.14
    - 10.42.0.42
  ip_ban_enabled: False
  login_attempts_threshold: 5
在这个文件 而且设置成host模式啦 不知道为什么还是报8123的错误
回复

使用道具 举报

4

主题

32

帖子

124

积分

注册会员

Rank: 2

积分
124
金钱
92
HASS币
0
 楼主| 发表于 2022-10-23 16:23:17 | 显示全部楼层
mars.z 发表于 2022-10-23 15:14
你在哪里修改的hass的端口改成了8848?  hass的log不还是显示的无法在8123端口上创建http server吗 ...

bash-5.1# lsof -i
1       /bin/s6-svscan  /dev/null
1       /bin/s6-svscan  pipe:[42366]
1       /bin/s6-svscan  pipe:[42367]
1       /bin/s6-svscan  anon_inode:[signalfd]
1       /bin/s6-svscan  /run/s6/services/.s6-svscan/control
1       /bin/s6-svscan  /run/s6/services/.s6-svscan/control
39      /bin/s6-supervise       /dev/null
39      /bin/s6-supervise       pipe:[42366]
39      /bin/s6-supervise       pipe:[42367]
39      /bin/s6-supervise       anon_inode:[signalfd]
39      /bin/s6-supervise       /run/s6/services/s6-fdholderd/supervise/control
39      /bin/s6-supervise       /run/s6/services/s6-fdholderd/supervise/control
188     /bin/s6-supervise       /dev/null
188     /bin/s6-supervise       pipe:[42366]
188     /bin/s6-supervise       pipe:[42367]
188     /bin/s6-supervise       anon_inode:[signalfd]
188     /bin/s6-supervise       /run/s6/services/home-assistant/supervise/control
188     /bin/s6-supervise       /run/s6/services/home-assistant/supervise/control
191     /usr/local/bin/python3.9        /dev/null
191     /usr/local/bin/python3.9        pipe:[42366]
191     /usr/local/bin/python3.9        pipe:[42367]
191     /usr/local/bin/python3.9        /config/home-assistant.log.fault
191     /usr/local/bin/python3.9        anon_inode:[eventpoll]
191     /usr/local/bin/python3.9        socket:[43781]
191     /usr/local/bin/python3.9        socket:[43782]
191     /usr/local/bin/python3.9        /config/home-assistant.log
191     /usr/local/bin/python3.9        socket:[45476]
191     /usr/local/bin/python3.9        socket:[45477]
191     /usr/local/bin/python3.9        socket:[50675]
191     /usr/local/bin/python3.9        socket:[52462]
218     /bin/bash       /dev/pts/0
218     /bin/bash       /dev/pts/0
218     /bin/bash       /dev/pts/0
218     /bin/bash       /dev/pts/0
226     /bin/bash       /dev/pts/1
226     /bin/bash       /dev/pts/1
226     /bin/bash       /dev/pts/1
226     /bin/bash       /dev/pts/1
bash-5.1#

不知道服务是否全起来了
回复

使用道具 举报

4

主题

32

帖子

124

积分

注册会员

Rank: 2

积分
124
金钱
92
HASS币
0
 楼主| 发表于 2022-10-23 16:47:44 | 显示全部楼层
mars.z 发表于 2022-10-23 15:14
你在哪里修改的hass的端口改成了8848?  hass的log不还是显示的无法在8123端口上创建http server吗 ...

不知道为啥还是在找8123
ash-5.1# hass
2022-10-23 16:46:10 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //root/.homeassistant/home-assistant_v2.db was shutdown cleanly
2022-10-23 16:46:13 ERROR (MainThread) [homeassistant.components.http] Failed to create HTTP server at port 8123: [Errno 98] error while attempting to bind on address ('0.0.0.0', 8123): address in use
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-6-26 15:50 , Processed in 0.048250 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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