Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法加载配置向导: 500 Internal Server Error Server got itself in trouble #846

Open
yellowcaicai opened this issue Mar 6, 2025 · 4 comments

Comments

@yellowcaicai
Copy link

Describe the Bug / 描述问题

haos最新版添加即成报错无法加载配置向导: 500 Internal Server Error Server got itself in trouble

How to Reproduce / 复现步骤

haos最新版添加即成报错无法加载配置向导: 500 Internal Server Error Server got itself in trouble

Expected Behavior / 预期结果

成功

Reproduce Time / 问题复现的时间点

2025.3.6

Home Assistant Logs / 系统日志

No response

Log Timezone / 日志时区

Asia/Shanghai

Home Assistant Core Version / Home Assistant Core 版本

2025.3.0

Home Assistant Operation System Version / Home Assistant Operation System 版本

15.0.rc1

Xiaomi Home Integration Version / 米家集成版本

0.2

Additional Context / 其他说明

No response

@MISAKIGA
Copy link

MISAKIGA commented Mar 6, 2025

哥们,跟你一样,我看了下日志是因为第三方库版本冲突了。

@MISAKIGA
Copy link

MISAKIGA commented Mar 6, 2025

2025-03-06T23:38:51.131860941+08:00 2025-03-06 23:38:51.121 ERROR (MainThread) [aiohttp.server] Error handling request from 10.10.10.1

2025-03-06T23:38:51.131912731+08:00 Traceback (most recent call last):

2025-03-06T23:38:51.131924685+08:00   File "/usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py", line 480, in _handle_request

2025-03-06T23:38:51.131933389+08:00     resp = await request_handler(request)

2025-03-06T23:38:51.131941738+08:00            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.131950592+08:00   File "/usr/local/lib/python3.13/site-packages/aiohttp/web_app.py", line 569, in _handle

2025-03-06T23:38:51.131963475+08:00     return await handler(request)

2025-03-06T23:38:51.131972737+08:00            ^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.131981193+08:00   File "/usr/local/lib/python3.13/site-packages/aiohttp/web_middlewares.py", line 117, in impl

2025-03-06T23:38:51.131989569+08:00     return await handler(request)

2025-03-06T23:38:51.131997989+08:00            ^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132006859+08:00   File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware

2025-03-06T23:38:51.132015376+08:00     return await handler(request)

2025-03-06T23:38:51.132023692+08:00            ^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132032182+08:00   File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 210, in forwarded_middleware

2025-03-06T23:38:51.132040731+08:00     return await handler(request)

2025-03-06T23:38:51.132049118+08:00            ^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132057788+08:00   File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware

2025-03-06T23:38:51.132066174+08:00     return await handler(request)

2025-03-06T23:38:51.132074473+08:00            ^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132083234+08:00   File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware

2025-03-06T23:38:51.132091697+08:00     return await handler(request)

2025-03-06T23:38:51.132100113+08:00            ^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132108636+08:00   File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware

2025-03-06T23:38:51.132116995+08:00     return await handler(request)

2025-03-06T23:38:51.132125368+08:00            ^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132133748+08:00   File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware

2025-03-06T23:38:51.132142197+08:00     response = await handler(request)

2025-03-06T23:38:51.132150516+08:00                ^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132175281+08:00   File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle

2025-03-06T23:38:51.132182481+08:00     result = await handler(request, **request.match_info)

2025-03-06T23:38:51.132188759+08:00              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132194883+08:00   File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin

2025-03-06T23:38:51.132200987+08:00     return await func(self, request, *args, **kwargs)

2025-03-06T23:38:51.132207278+08:00            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132213523+08:00   File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper

2025-03-06T23:38:51.132219914+08:00     return await method(view, request, data, *args, **kwargs)

2025-03-06T23:38:51.132226082+08:00            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132232390+08:00   File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 182, in post

2025-03-06T23:38:51.132238798+08:00     return await self._post_impl(request, data)

2025-03-06T23:38:51.132244876+08:00            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132251020+08:00   File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 189, in _post_impl

2025-03-06T23:38:51.132257248+08:00     return await super()._post_impl(request, data)

2025-03-06T23:38:51.132263953+08:00            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132270204+08:00   File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 83, in _post_impl

2025-03-06T23:38:51.132276456+08:00     result = await self._flow_mgr.async_init(

2025-03-06T23:38:51.132282817+08:00              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132289399+08:00     ...<2 lines>...

2025-03-06T23:38:51.132295787+08:00     )

2025-03-06T23:38:51.132302362+08:00     ^

2025-03-06T23:38:51.132308981+08:00   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1457, in async_init

2025-03-06T23:38:51.132315603+08:00     flow, result = await self._async_init(flow_id, handler, context, data)

2025-03-06T23:38:51.132321921+08:00                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132328216+08:00   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1482, in _async_init

2025-03-06T23:38:51.132334457+08:00     flow = await self.async_create_flow(handler, context=context, data=data)

2025-03-06T23:38:51.132340768+08:00            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132347197+08:00   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1679, in async_create_flow

2025-03-06T23:38:51.132353444+08:00     handler = await _async_get_flow_handler(

2025-03-06T23:38:51.132359615+08:00               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132368259+08:00         self.hass, handler_key, self._hass_config

2025-03-06T23:38:51.132374567+08:00         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132380758+08:00     )

2025-03-06T23:38:51.132386999+08:00     ^

2025-03-06T23:38:51.132393491+08:00   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3807, in _async_get_flow_handler

2025-03-06T23:38:51.132399715+08:00     await _load_integration(hass, domain, hass_config)

2025-03-06T23:38:51.132406040+08:00   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3784, in _load_integration

2025-03-06T23:38:51.132412438+08:00     await async_process_deps_reqs(hass, hass_config, integration)

2025-03-06T23:38:51.132446183+08:00   File "/usr/src/homeassistant/homeassistant/setup.py", line 581, in async_process_deps_reqs

2025-03-06T23:38:51.132453493+08:00     await requirements.async_get_integration_with_requirements(

2025-03-06T23:38:51.132460169+08:00         hass, integration.domain

2025-03-06T23:38:51.132466450+08:00     )

2025-03-06T23:38:51.132473179+08:00   File "/usr/src/homeassistant/homeassistant/requirements.py", line 54, in async_get_integration_with_requirements

2025-03-06T23:38:51.132479487+08:00     return await manager.async_get_integration_with_requirements(domain)

2025-03-06T23:38:51.132485752+08:00            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132491943+08:00   File "/usr/src/homeassistant/homeassistant/requirements.py", line 170, in async_get_integration_with_requirements

2025-03-06T23:38:51.132498117+08:00     await future

2025-03-06T23:38:51.132504542+08:00   File "/usr/src/homeassistant/homeassistant/requirements.py", line 159, in async_get_integration_with_requirements

2025-03-06T23:38:51.132510950+08:00     await self._async_process_integration(integration, done)

2025-03-06T23:38:51.132517412+08:00   File "/usr/src/homeassistant/homeassistant/requirements.py", line 182, in _async_process_integration

2025-03-06T23:38:51.132523750+08:00     await self.async_process_requirements(

2025-03-06T23:38:51.132529991+08:00         integration.domain, integration.requirements

2025-03-06T23:38:51.132537542+08:00     )

2025-03-06T23:38:51.132544358+08:00   File "/usr/src/homeassistant/homeassistant/requirements.py", line 264, in async_process_requirements

2025-03-06T23:38:51.132551645+08:00     self._raise_for_failed_requirements(name, missing)

2025-03-06T23:38:51.132558594+08:00     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^

2025-03-06T23:38:51.132566148+08:00   File "/usr/src/homeassistant/homeassistant/requirements.py", line 292, in _raise_for_failed_requirements

2025-03-06T23:38:51.132573472+08:00     raise RequirementsNotFound(integration, [req])

2025-03-06T23:38:51.132580097+08:00 homeassistant.requirements.RequirementsNotFound: Requirements for xiaomi_home not found: ['paho-mqtt<2.0.0'].

@MISAKIGA
Copy link

MISAKIGA commented Mar 6, 2025

我的解决办法:

# 找到 xiaomi_home 集成目录(通常在 `custom_components/xiaomi_home`)
vi custom_components/xiaomi_home/manifest.json

# 修改 requirements 中的版本限制
{
  "requirements": ["paho-mqtt<=2.1.0"]
}

@yellowcaicai
Copy link
Author

成功了兄弟,我把mqtt的版本限制直接删了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants