Closed JustinWalravens closed 2 years ago
try deleting cookie file. its probably corrupted
What is its name and location?
.omv_cookies file in /config
This file is not exist.
not in custom components, thats just code. its directly in /config it starts with dot, so it may be hidden in browser
Ok, sorry. It's working. Thanks
np
Describe the issue
It is no longer possible to connect to OMV, since I updated Home Assistant.
How to reproduce the issue
Steps to reproduce the behavior:
Expected behavior
To be able to connect to OpenMediaVault.
Screenshots
Software versions
Traceback/Error logs
Cette erreur provient d'une intégration personnalisée
Logger: aiohttp.server Source: custom_components/openmediavault/omv_api.py:24 Integration: OpenMediaVault (documentation, issues) First occurred: 00:06:37 (3 occurrences) Last logged: 00:06:48
Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 222, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 82, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 178, in post return await super().post(request, flow_id) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper result = await method(view, request, data, *args, *kwargs) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post result = await self._flow_mgr.async_configure(flow_id, data) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 280, in async_configure result = await self._async_handle_step( File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step result: FlowResult = await getattr(flow, method)(user_input) File "/config/custom_components/openmediavault/config_flow.py", line 74, in async_step_user if not await self.hass.async_add_executor_job(api.connect): File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(self.args, **self.kwargs) File "/config/custom_components/openmediavault/omv_api.py", line 129, in connect if cookies := load_cookies(self._cookie_jar_file): File "/config/custom_components/openmediavault/omv_api.py", line 24, in load_cookies return pickle_load(f) EOFError: Ran out of input