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

 找回密码
 立即注册
查看: 1769|回复: 8

[技术探讨] 有没有大佬有时间能帮忙看下日志

[复制链接]

39

主题

477

帖子

2693

积分

金牌会员

Rank: 6Rank: 6

积分
2693
金钱
2216
HASS币
10
发表于 2022-6-11 18:35:07 | 显示全部楼层 |阅读模式
ffmpeg接入摄像头始终10秒左右的延迟着实令人难受,就想着试试webrtc这个集成,装好以后确提示不能正确加载让看日志
Invalid config
The following integrations and platforms could not be set up:

webrtc
Please check your config and logs.


我就看了下日志,貌似最后说无法连接到GitHub?有能看懂的大佬指点一二吗?感谢!
此错误来自自定义集成。

Logger: homeassistant.setup
Source: custom_components/webrtc/__init__.py:66
Integration: WebRTC Camera (documentation, issues)
First occurred: 18:29:29 (1 occurrences)
Last logged: 18:29:29

Error during setup of component webrtc
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 986, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs)  # type: ignore[return-value]  # noqa
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1056, in create_connection
    raise exceptions[0]
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1041, in create_connection
    sock = await self._connect_sock(
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 955, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 502, in sock_connect
    return await fut
  File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 537, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
TimeoutError: [Errno 110] Connect call failed ('192.30.253.112', 443)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 229, in _async_setup_component
    result = await task
  File "/config/custom_components/webrtc/__init__.py", line 66, in async_setup
    r = await session.get(url)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 535, in _request
    conn = await self._connector.connect(
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 542, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 907, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1206, in _create_direct_connection
    raise last_exc
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1175, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 992, in _wrap_create_connection
    raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host github.com:443 ssl:default [Connect call failed ('192.30.253.112', 443)]


回复

使用道具 举报

99

主题

2867

帖子

1万

积分

超级版主

智能家居&单板滑雪痴迷爱好者

Rank: 8Rank: 8

积分
11453
金钱
8521
HASS币
460

教程狂人突出贡献

发表于 2022-6-11 19:18:09 来自手机 | 显示全部楼层
没错,就是github连不上,换个时间多试试,或者干脆找个梯子。看来你对长城还是不够了解啊
回复

使用道具 举报

39

主题

477

帖子

2693

积分

金牌会员

Rank: 6Rank: 6

积分
2693
金钱
2216
HASS币
10
 楼主| 发表于 2022-6-11 19:42:52 | 显示全部楼层
XCray 发表于 2022-6-11 19:18
没错,就是github连不上,换个时间多试试,或者干脆找个梯子。看来你对长城还是不够了解啊 ...

不是 我路由是有科学上网的,当时我现在想不起来当初因为什么我把群晖的ip排除在代理之外了,HA装在群晖的docker中,可能是这一个原因,回头我把群晖IP走代理试试。
回复

使用道具 举报

39

主题

477

帖子

2693

积分

金牌会员

Rank: 6Rank: 6

积分
2693
金钱
2216
HASS币
10
 楼主| 发表于 2022-6-11 19:53:50 | 显示全部楼层
XCray 发表于 2022-6-11 19:18
没错,就是github连不上,换个时间多试试,或者干脆找个梯子。看来你对长城还是不够了解啊 ...

大佬还有时间吗? 走了代理后不提示访问不了GitHub了,但是又出现个新的问题。。。
此错误来自自定义集成。

Logger: homeassistant.setup
Source: custom_components/webrtc/__init__.py:66
Integration: WebRTC Camera (documentation, issues)
First occurred: 19:51:26 (1 occurrences)
Last logged: 19:51:26

Error during setup of component webrtc
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 229, in _async_setup_component
    result = await task
  File "/config/custom_components/webrtc/__init__.py", line 66, in async_setup
    r = await session.get(url)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 559, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 898, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
  File "/usr/local/lib/python3.9/site-packages/aiohttp/streams.py", line 616, in read
    await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected
回复

使用道具 举报

99

主题

2867

帖子

1万

积分

超级版主

智能家居&单板滑雪痴迷爱好者

Rank: 8Rank: 8

积分
11453
金钱
8521
HASS币
460

教程狂人突出贡献

发表于 2022-6-11 21:52:03 来自手机 | 显示全部楼层
yinghu183 发表于 2022-6-11 19:53
大佬还有时间吗? 走了代理后不提示访问不了GitHub了,但是又出现个新的问题。。。
...

服务器连接错误,还是网络的问题,也可能是服务器端的问题,继续检查网络、看看源码里具体的地址吧
回复

使用道具 举报

20

主题

550

帖子

3600

积分

元老级技术达人

积分
3600
金钱
3010
HASS币
210

教程狂人突出贡献

发表于 2022-6-12 05:42:59 | 显示全部楼层
本帖最后由 involute 于 2022-6-12 06:08 编辑
yinghu183 发表于 2022-6-11 19:53
大佬还有时间吗? 走了代理后不提示访问不了GitHub了,但是又出现个新的问题。。。
...

看了看源码
这句session.get(url)报错,应该是下载我下图的红框内的文件出错了,具体是下哪个,还要看你的操作系统和cpu类型是啥
13.png

这几个文件是在 https://github.com/AlexxIT/RTSPtoWebRTC/releases中,你的WebRTC是v几的就下v几的。

看在你的HA中是否可以正常访问这个文件

照他源码的意思,是先判断本地有没有需要的文件,没有才下载,所以你可以把这几个文件全下载下来,放在你HA的/config下,并且改文件名加入版本号,比如rtsp2webrtc_i386改成rtsp2webrtc_v5_i386这样。
但愿我没理解错


回复

使用道具 举报

39

主题

477

帖子

2693

积分

金牌会员

Rank: 6Rank: 6

积分
2693
金钱
2216
HASS币
10
 楼主| 发表于 2022-6-12 10:53:24 | 显示全部楼层
involute 发表于 2022-6-12 05:42
看了看源码
这句session.get(url)报错,应该是下载我下图的红框内的文件出错了,具体是下哪个,还要看你的 ...

可以了,非常感谢你!奇怪的是我明明路由都是科学上网了,HACS都没问题的这个确不行。
回复

使用道具 举报

41

主题

1299

帖子

5340

积分

论坛元老

Rank: 8Rank: 8

积分
5340
金钱
4036
HASS币
20
发表于 2022-6-12 21:00:42 | 显示全部楼层
XCray 发表于 2022-6-11 21:52
服务器连接错误,还是网络的问题,也可能是服务器端的问题,继续检查网络、看看源码里具体的地址吧 ...

这个集成有个版本我记得有问题
折腾精神永存,感恩感谢论坛每一位愿意分享和帮助过我的大佬,论坛有你更精彩
回复

使用道具 举报

0

主题

17

帖子

62

积分

注册会员

Rank: 2

积分
62
金钱
45
HASS币
0
发表于 2024-4-16 20:08:20 | 显示全部楼层
感谢楼主分享!
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-30 14:59 , Processed in 0.920731 second(s), 34 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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