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

[Bug] Error while configuring integration on 2021.4 #42

Closed
Gino1606 opened this issue Apr 11, 2021 · 25 comments
Closed

[Bug] Error while configuring integration on 2021.4 #42

Gino1606 opened this issue Apr 11, 2021 · 25 comments
Assignees
Labels
bug Something isn't working

Comments

@Gino1606
Copy link

Hi Tomaae, I ask you for help because I get this error when I try to integrate OMV. In your opinion, how could I solve? Thanks so much.
Immagine 2021-04-11 155534
Immagine 2021-04-11 155609

@Gino1606
Copy link
Author

Immagine 2021-04-11 161722

@tomaae tomaae added the bug Something isn't working label Apr 11, 2021
@tomaae
Copy link
Owner

tomaae commented Apr 11, 2021

I see, its something HA changed in last release. I will have to look into changing setup procedure.

@tomaae tomaae self-assigned this Apr 11, 2021
@tomaae tomaae added the planned To be implemented in future release label Apr 11, 2021
@tomaae tomaae pinned this issue Apr 11, 2021
@tomaae tomaae changed the title Error starting integration [Bug] Error while configuring integration on 2021.4 Apr 11, 2021
@Gino1606
Copy link
Author

Thank you very much for everything and for the work you do ... We will wait for the update :-)

Copy link
Owner

tomaae commented Apr 11, 2021

I dont have access to OMV instance right now, so I will need something to test it.
I will test it on another integration first tho.

@BebeMischa
Copy link

BebeMischa commented Apr 11, 2021

I don't know, where you are living, tomaae, but you are welcome in Amsterdam for some coffee and testing ;-)

Copy link
Owner

tomaae commented Apr 11, 2021

:)

@judie07
Copy link

judie07 commented Apr 12, 2021

Hi Tomaae, I have the "same" problem!
Version core-2021.4.3
Version supervisor-2021.03.9
No 'version' key in the manifest file for custom integration 'openmediavault'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'openmediavault

Copy link
Owner

tomaae commented Apr 12, 2021

that one is already in master. but it wont work most likely anyway

@judie07
Copy link

judie07 commented Apr 12, 2021

RuntimeError: I/O must be done in the executor; Use await hass.async_add_executor_job() at custom_components/openmediavault/omv_api.py, line 128: response = self.connection.post(
2021-04-12 17:56:15 WARNING (MainThread) [homeassistant.util.async
] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for openmediavault doing I/O at custom_components/openmediavault/omv_api.py, line 128: response = self._connection.post(
2021-04-12 17:56:15 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 74, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 129, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 131, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 155, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 60, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 107, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 156, in async_configure
result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 214, in _async_handle_step
result: dict = await getattr(flow, method)(user_input)
File "/config/custom_components/openmediavault/config_flow.py", line 78, in async_step_user
if not api.connect():
File "/config/custom_components/openmediavault/omv_api.py", line 128, in connect
response = self._connection.post(
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 590, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.8/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1266, in send_request
self.putrequest(method, url, **skips)
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 214, in putrequest
return HTTPConnection.putrequest(self, method, url, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/util/async
.py", line 150, in protected_loop_func
check_loop()
File "/usr/src/homeassistant/homeassistant/util/async
.py", line 139, in check_loop
raise RuntimeError(
RuntimeError: I/O must be done in the executor; Use await hass.async_add_executor_job() at custom_components/openmediavault/omv_api.py, line 128: response = self._connection.post

@tomaae
Copy link
Owner

tomaae commented Apr 12, 2021

dont worry, I know what the issue is

@judie07
Copy link

judie07 commented Apr 12, 2021

sorry

@tomaae tomaae removed the planned To be implemented in future release label Apr 12, 2021
@tomaae
Copy link
Owner

tomaae commented Apr 12, 2021

no worries.
fix is already released.

@tomaae tomaae closed this as completed Apr 12, 2021
@judie07
Copy link

judie07 commented Apr 12, 2021

Thank you very much for the quick help.
Works perfectly again!

@Gino1606
Copy link
Author

Thanks Tomaae now it works perfectly. You are a myth😊💪

@BebeMischa
Copy link

Your Co-Fi is on it's way... ;-)

Copy link
Owner

tomaae commented Apr 12, 2021

thank you :)

@Gino1606
Copy link
Author

A question Tomaae, I saw that the integration gives some disconnections (I am attaching the LOG) in your opinion how can it be solved?
Uploading Screenshot_2021-04-13-10-36-23-91_c3a231c25ed346e59462e84656a70e50.jpg…

@tomaae
Copy link
Owner

tomaae commented Apr 13, 2021

I cannot see that screenshot, it didnt upload right

@Gino1606
Copy link
Author

Sorry, here's the screenshot. Practically it always repeats the same mistake. logs out and then comes back online.
Hope you can help me. Thanks so much...
Immagine 2021-04-13 120145
Immagine 2021-04-13 120301

@tomaae
Copy link
Owner

tomaae commented Apr 13, 2021

that part above that you cut off may be the problem. check your SSL settings are correct

@Gino1606
Copy link
Author

Hi Tomaae, it's definitely my ssl configuration problem. Although I've only noticed it now.
I use duckdns and can connect remotely via https. What do you think I can change to solve? If you need more screenshots with data, I'm at your disposal (I have attached that log that was cut). It seems he wants an attribute that he thinks is wrong, but I don't understand.
Thank you and good evening.
Immagine 2021-04-13 225459

@tomaae
Copy link
Owner

tomaae commented Apr 13, 2021

try unchecking verify ssl when setting up the integration. that could help. or dont use ssl when connecting to omv if its in your network.

@Gino1606
Copy link
Author

I tried but nothing to do. i checked the ssl and it is correct. I unchecked the checkbox when configuring the integration, but to no avail. I can't understand, may it be that I need to make some changes on OMV? I have no certificates set up and I am running home assistant in docker on OMV. Do you have any advice? It's a shame because the integration works perfectly but it gives me constant disconnections and fills my register with HA.

@tomaae
Copy link
Owner

tomaae commented Apr 14, 2021

it actually works? I though it does not work at all based on your screenshot.
If you can provide me first few minutes of debug log after HA restart, we cam find something out.

But open it as new issue, this one is closed since the issue mentioned was resolved and there are many more people involved here.

@Gino1606
Copy link
Author

Okay, later I do everything and I update you on a new report. Thank you...

@tomaae tomaae unpinned this issue May 5, 2021
@github-actions github-actions bot locked and limited conversation to collaborators May 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants