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

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

[求助] 升级到0.90.2后登陆不了了

[复制链接]

69

主题

691

帖子

4254

积分

论坛元老

Rank: 8Rank: 8

积分
4254
金钱
3558
HASS币
80
发表于 2019-4-3 01:03:00 | 显示全部楼层 |阅读模式

到了0.88.2版后,一直无法更新,点了更新以后,服务自动重启后还是老版本。刚才在portainer中pull了0.90.2的image,重启后无法登陆了,总是出现 登陆不了.PNG ,在portainer中看,启动是成功的,就是不能登陆,请哪位大佬帮忙指点。
2019-04-02 23:52:16 ERROR (MainThread) [homeassistant.auth.providers] Invalid configuration for auth provider legacy_api_password: required key not provided @ data['api_password']. Got None,
2019-04-02 23:52:16 ERROR (MainThread) [homeassistant.auth.providers] Invalid configuration for auth provider trusted_networks: required key not provided @ data['trusted_networks']. Got None,
2019-04-02 23:52:16 ERROR (MainThread) [homeassistant.config] Invalid config for [homeassistant]: required key not provided @ data['api_password']. Got None. (See /config/configuration.yaml, line 6). ,
2019-04-02 23:52:16 INFO (MainThread) [homeassistant.core] Starting Home Assistant,
2019-04-02 23:52:16 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved,
Traceback (most recent call last):,
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1115, in async_call,
    raise ServiceNotFound(domain, service) from None,
homeassistant.exceptions.ServiceNotFound: (ServiceNotFound(...), 'Service persistent_notification.create not found'),
2019-04-02 23:52:16 INFO (MainThread) [homeassistant.core] Timer:starting,
Config directory: /config,
2019-04-02 23:56:41 ERROR (MainThread) [homeassistant.auth.providers] Invalid configuration for auth provider legacy_api_password: required key not provided @ data['api_password']. Got None,
2019-04-02 23:56:41 ERROR (MainThread) [homeassistant.auth.providers] Invalid configuration for auth provider trusted_networks: required key not provided @ data['trusted_networks']. Got None,
2019-04-02 23:56:41 ERROR (MainThread) [homeassistant.config] Invalid config for [homeassistant]: required key not provided @ data['api_password']. Got None. (See /config/configuration.yaml, line 6). ,
2019-04-02 23:56:41 INFO (MainThread) [homeassistant.core] Starting Home Assistant,
2019-04-02 23:56:41 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved,
Traceback (most recent call last):,
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1115, in async_call,
    raise ServiceNotFound(domain, service) from None,
homeassistant.exceptions.ServiceNotFound: (ServiceNotFound(...), 'Service persistent_notification.create not found'),
2019-04-02 23:56:41 INFO (MainThread) [homeassistant.core] Timer:starting,
Config directory: /config,
2019-04-03 00:02:01 ERROR (MainThread) [homeassistant.auth.providers] Invalid configuration for auth provider legacy_api_password: required key not provided @ data['api_password']. Got None,
2019-04-03 00:02:01 ERROR (MainThread) [homeassistant.auth.providers] Invalid configuration for auth provider trusted_networks: required key not provided @ data['trusted_networks']. Got None,
2019-04-03 00:02:01 ERROR (MainThread) [homeassistant.config] Invalid config for [homeassistant]: required key not provided @ data['api_password']. Got None. (See /config/configuration.yaml, line 6). ,
2019-04-03 00:02:01 INFO (MainThread) [homeassistant.core] Starting Home Assistant,
2019-04-03 00:02:01 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved,
Traceback (most recent call last):,
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1115, in async_call,
    raise ServiceNotFound(domain, service) from None,
homeassistant.exceptions.ServiceNotFound: (ServiceNotFound(...), 'Service persistent_notification.create not found'),
2019-04-03 00:02:01 INFO (MainThread) [homeassistant.core] Timer:starting,
2019-04-03 00:23:59 ERROR (MainThread) [homeassistant.auth.providers] Invalid configuration for auth provider legacy_api_password: required key not provided @ data['api_password']. Got None,
2019-04-03 00:23:59 ERROR (MainThread) [homeassistant.auth.providers] Invalid configuration for auth provider trusted_networks: required key not provided @ data['trusted_networks']. Got None,
2019-04-03 00:23:59 ERROR (MainThread) [homeassistant.config] Invalid config for [homeassistant]: required key not provided @ data['api_password']. Got None. (See /config/configuration.yaml, line 6). ,
2019-04-03 00:23:59 INFO (MainThread) [homeassistant.core] Starting Home Assistant,
2019-04-03 00:23:59 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved,
Traceback (most recent call last):,
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1115, in async_call,
    raise ServiceNotFound(domain, service) from None,
homeassistant.exceptions.ServiceNotFound: (ServiceNotFound(...), 'Service persistent_notification.create not found'),
2019-04-03 00:23:59 INFO (MainThread) [homeassistant.core] Timer:starting,
2019-04-03 00:30:01 ERROR (MainThread) [homeassistant.auth.providers] Invalid configuration for auth provider legacy_api_password: required key not provided @ data['api_password']. Got None,
2019-04-03 00:30:01 ERROR (MainThread) [homeassistant.auth.providers] Invalid configuration for auth provider trusted_networks: required key not provided @ data['trusted_networks']. Got None,
2019-04-03 00:30:01 ERROR (MainThread) [homeassistant.config] Invalid config for [homeassistant]: required key not provided @ data['api_password']. Got None. (See /config/configuration.yaml, line 6). ,
2019-04-03 00:30:01 INFO (MainThread) [homeassistant.core] Starting Home Assistant,
2019-04-03 00:30:01 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved,
Traceback (most recent call last):,
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1115, in async_call,
    raise ServiceNotFound(domain, service) from None,
homeassistant.exceptions.ServiceNotFound: (ServiceNotFound(...), 'Service persistent_notification.create not found'),
2019-04-03 00:30:01 INFO (MainThread) [homeassistant.core] Timer:starting,
2019-04-03 00:33:08 ERROR (MainThread) [homeassistant.auth.providers] Invalid configuration for auth provider legacy_api_password: required key not provided @ data['api_password']. Got None,
2019-04-03 00:33:08 ERROR (MainThread) [homeassistant.auth.providers] Invalid configuration for auth provider trusted_networks: required key not provided @ data['trusted_networks']. Got None,
2019-04-03 00:33:08 ERROR (MainThread) [homeassistant.config] Invalid config for [homeassistant]: required key not provided @ data['api_password']. Got None. (See /config/configuration.yaml, line 6). ,
2019-04-03 00:33:08 INFO (MainThread) [homeassistant.core] Starting Home Assistant,
2019-04-03 00:33:08 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved,
Traceback (most recent call last):,
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1115, in async_call,
    raise ServiceNotFound(domain, service) from None,
homeassistant.exceptions.ServiceNotFound: (ServiceNotFound(...), 'Service persistent_notification.create not found'),
2019-04-03 00:33:08 INFO (MainThread) [homeassistant.core] Timer:starting,
2019-04-03 00:37:34 ERROR (MainThread) [homeassistant.auth.providers] Invalid configuration for auth provider legacy_api_password: required key not provided @ data['api_password']. Got None,
2019-04-03 00:37:34 ERROR (MainThread) [homeassistant.auth.providers] Invalid configuration for auth provider trusted_networks: required key not provided @ data['trusted_networks']. Got None,
2019-04-03 00:37:34 ERROR (MainThread) [homeassistant.config] Invalid config for [homeassistant]: required key not provided @ data['api_password']. Got None. (See /config/configuration.yaml, line 6). ,
2019-04-03 00:37:34 INFO (MainThread) [homeassistant.core] Starting Home Assistant,
2019-04-03 00:37:34 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved,
Traceback (most recent call last):,
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1115, in async_call,
    raise ServiceNotFound(domain, service) from None,
homeassistant.exceptions.ServiceNotFound: (ServiceNotFound(...), 'Service persistent_notification.create not found'),
2019-04-03 00:37:34 INFO (MainThread) [homeassistant.core] Timer:starting,
2019-04-03 00:45:20 ERROR (MainThread) [homeassistant.auth.providers] Invalid configuration for auth provider legacy_api_password: required key not provided @ data['api_password']. Got None,
2019-04-03 00:45:20 ERROR (MainThread) [homeassistant.auth.providers] Invalid configuration for auth provider trusted_networks: required key not provided @ data['trusted_networks']. Got None,
2019-04-03 00:45:20 ERROR (MainThread) [homeassistant.config] Invalid config for [homeassistant]: required key not provided @ data['api_password']. Got None. (See /config/configuration.yaml, line 6). ,
2019-04-03 00:45:20 INFO (MainThread) [homeassistant.core] Starting Home Assistant,
2019-04-03 00:45:20 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved,
Traceback (most recent call last):,
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1115, in async_call,
    raise ServiceNotFound(domain, service) from None,
homeassistant.exceptions.ServiceNotFound: (ServiceNotFound(...), 'Service persistent_notification.create not found'),
2019-04-03 00:45:20 INFO (MainThread) [homeassistant.core] Timer:starting,

回复

使用道具 举报

175

主题

2967

帖子

7608

积分

超级版主

我就是六神

Rank: 8Rank: 8

积分
7608
金钱
4616
HASS币
398

活跃会员教程狂人灌水之王

QQ
发表于 2019-4-3 10:25:20 | 显示全部楼层
你都运行 这么长时间0.88了 干嘛升级0.90呢    把你http配置里去掉 legacy_api_password 和 trusted_networks
required key not provided @ data['api_password']. Got None. (See /config/configuration.yaml, line 6)  这不是说得很明白 吗
回复

使用道具 举报

27

主题

2144

帖子

8970

积分

论坛元老

Rank: 8Rank: 8

积分
8970
金钱
6821
HASS币
30

论坛元老

发表于 2019-4-3 11:47:02 | 显示全部楼层
如果如楼上所说的话,需要改成这样,官方弃用了legacy的旧写法

homeassistant:
  auth_providers:
   - type: homeassistant
   - type: legacy_api_password
     api_password: 12345678
http:
回复

使用道具 举报

2

主题

291

帖子

1532

积分

论坛积极会员

积分
1532
金钱
1241
HASS币
0
发表于 2019-4-3 14:55:28 | 显示全部楼层
我自己买了域名 做了ssl 但是手机app通过局域网无法登陆  用4g可以登陆 有谁知道怎么设置么?
回复

使用道具 举报

69

主题

691

帖子

4254

积分

论坛元老

Rank: 8Rank: 8

积分
4254
金钱
3558
HASS币
80
 楼主| 发表于 2019-4-3 23:27:24 | 显示全部楼层
jyz_0501 发表于 2019-4-3 10:25
你都运行 这么长时间0.88了 干嘛升级0.90呢    把你http配置里去掉 legacy_api_password 和 trusted_networ ...

可以登录了,非常感谢指点。有一段时间不折腾了,原来是登录认证写法改变了,按照新的写法就好了。
回复

使用道具 举报

69

主题

691

帖子

4254

积分

论坛元老

Rank: 8Rank: 8

积分
4254
金钱
3558
HASS币
80
 楼主| 发表于 2019-4-3 23:33:47 | 显示全部楼层
情非殇 发表于 2019-4-3 11:47
如果如楼上所说的话,需要改成这样,官方弃用了legacy的旧写法

[code]homeassist ...

可以登录了,非常感谢指点。有一段时间不折腾了,原来是登录认证写法改变了,按照你的写法就好了。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-27 13:36 , Processed in 0.173432 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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