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

 找回密码
 立即注册
查看: 7646|回复: 5

[信息发布] auth问题登陆不了,一直显示登录界面,求助

[复制链接]

13

主题

400

帖子

2790

积分

金牌会员

Rank: 6Rank: 6

积分
2790
金钱
2390
HASS币
0
发表于 2018-9-28 18:12:04 | 显示全部楼层 |阅读模式
我用N1装docke hass.io,然后配置HTTP 增加证书,HTTPS网址登陆。输入正确的用户名密码 一闪而过data...又回到登陆界面。求大神帮解决。

下面是日志

2018-09-28 17:45:24 ERROR (MainThread) [homeassistant.core] Error doing job: SSL handshake failed
Traceback (most recent call last):
  File "uvloop/handles/stream.pyx", line 609, in uvloop.loop.UVStream._on_eo
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:841)
2018-09-28 17:45:24 ERROR (MainThread) [homeassistant.core] Error doing job: SSL error errno:1 reason: WRONG_VERSION_NUMBER
Traceback (most recent call last):
  File "uvloop/sslproto.pyx", line 504, in uvloop.loop.SSLProtocol.data_received
  File "uvloop/sslproto.pyx", line 204, in uvloop.loop._SSLPipe.feed_ssldata
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:841)


回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
发表于 2018-9-29 08:31:05 | 显示全部楼层
ssl部分有问题检查下
Nero
回复

使用道具 举报

13

主题

400

帖子

2790

积分

金牌会员

Rank: 6Rank: 6

积分
2790
金钱
2390
HASS币
0
 楼主| 发表于 2018-9-30 08:36:09 | 显示全部楼层
neroxps 发表于 2018-9-29 08:31
ssl部分有问题检查下

hass.io设置ssl和直接装的不一样吗?配置文件里http:下配好网址和证书不就行了吗?配置文件都是直接装的时候拷贝过来的没改动就登录不了。重新下了证书重新配置还是不行。
回复

使用道具 举报

13

主题

400

帖子

2790

积分

金牌会员

Rank: 6Rank: 6

积分
2790
金钱
2390
HASS币
0
 楼主| 发表于 2018-10-1 12:56:12 | 显示全部楼层
neroxps 发表于 2018-9-29 08:31
ssl部分有问题检查下

我把网址和证书配置注销掉。ip地址登陆还是一样的结果。
回复

使用道具 举报

13

主题

400

帖子

2790

积分

金牌会员

Rank: 6Rank: 6

积分
2790
金钱
2390
HASS币
0
 楼主| 发表于 2018-10-1 12:57:25 | 显示全部楼层
下面是注销掉的日志:

历史

Hass.io

配置

全局控制

地图

开发者工具









About

Home Assistant
0.79.0
Path to configuration.yaml: /config
86 Loaded Components
Developed by a bunch of awesome people.
Published under the Apache 2.0 license
Source: server — frontend-ui
Built using Python 3, Polymer, Icons by Google and MaterialDesignIcons.com.
Frontend JavaScript version: latest
Custom UIs:
Tiles custom state card: 20180521
CustomUI: 20180831
Try out the new Lovelace UI (experimental)
>> Set lovelace as default page on this device <<

Error handling request
‎12‎:‎54 auth/__init__.py (ERROR)
Clear Refresh
Press the button to load the full Home Assistant log.



Log Details (ERROR)
Mon Oct 01 2018 12:54:45 GMT+0800 (中国标准时间)
Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 390, in start
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_app.py", line 366, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 106, in impl
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/static.py", line 66, in staticresource_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 66, in ban_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/auth.py", line 68, in auth_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 66, in ban_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/auth.py", line 68, in auth_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/view.py", line 113, in handle
    result = await result
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 76, in handle_req
    resp = await func(view, request, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/auth/__init__.py", line 241, in post
    hass, data, str(request[KEY_REAL_IP]))
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/auth/__init__.py", line 305, in _async_handle_auth_code
    client_id)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/auth/__init__.py", line 292, in async_create_refresh_token
    token_type, access_token_expiration)
TypeError: async_create_refresh_token() takes from 1 to 2 positional arguments but 6 were given
回复

使用道具 举报

20

主题

310

帖子

1481

积分

金牌会员

Rank: 6Rank: 6

积分
1481
金钱
1171
HASS币
0
发表于 2020-1-29 16:09:52 | 显示全部楼层
请问楼主解决了吗?我也类似报错,浏览器访问hass到是正常
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 19:26 , Processed in 0.224597 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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