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

Configuration check fails after installing HACS - Unable to install package aiofiles #102

Closed
etricky opened this issue Jun 16, 2019 · 7 comments

Comments

@etricky
Copy link

etricky commented Jun 16, 2019

Version of HACS

Describe the bug

After installing HACS 0.70 on HASSIO 0.94.3, when I perform a configuration check it fails. I have not restarted HA since I installed HACS.

Debug log

2019-06-16 02:40:36 ERROR (SyncWorker_8) [homeassistant.util.package] Unable to install package aiofiles: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')"))': /simple/aiofiles/
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')"))': /simple/aiofiles/
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')"))': /simple/aiofiles/
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')"))': /simple/aiofiles/
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')"))': /simple/aiofiles/
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')"))': /packages/cf/f2/a67a23bc0bb61d88f82aa7fb84a2fb5f278becfbdc038c5cbb36c31feaf1/aiofiles-0.4.0-py3-none-any.whl
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')"))': /packages/cf/f2/a67a23bc0bb61d88f82aa7fb84a2fb5f278becfbdc038c5cbb36c31feaf1/aiofiles-0.4.0-py3-none-any.whl
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')"))': /packages/cf/f2/a67a23bc0bb61d88f82aa7fb84a2fb5f278becfbdc038c5cbb36c31feaf1/aiofiles-0.4.0-py3-none-any.whl
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')"))': /packages/cf/f2/a67a23bc0bb61d88f82aa7fb84a2fb5f278becfbdc038c5cbb36c31feaf1/aiofiles-0.4.0-py3-none-any.whl
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')"))': /packages/cf/f2/a67a23bc0bb61d88f82aa7fb84a2fb5f278becfbdc038c5cbb36c31feaf1/aiofiles-0.4.0-py3-none-any.whl
ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/cf/f2/a67a23bc0bb61d88f82aa7fb84a2fb5f278becfbdc038c5cbb36c31feaf1/aiofiles-0.4.0-py3-none-any.whl (Caused by SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')")))
2019-06-16 02:40:36 ERROR (MainThread) [homeassistant.requirements] Not initializing hacs because could not install requirement aiofiles

@chipriley
Copy link

Same. Logs posted in #100.

@ludeeus
Copy link
Member

ludeeus commented Jun 16, 2019

It looks like you have/had some network issues, try a reboot of the host.

@etricky
Copy link
Author

etricky commented Jun 16, 2019

@ludeeus I have restarted the host but the problem persists. I'm able to update HA, install HassIO addons and I have addons, such as Dark Sky, that are able to connect just fine. All of these uses secured connections and this is the only one that fails. Is there a way to install these dependencies manually? Do you have any suggestion on how to proceed?

@etricky
Copy link
Author

etricky commented Jun 17, 2019

I accessed via SSH add-on and tried to install aiofiles to verify if indeed is a network issue and I was able to install it. What strikes me as odd is that it gave the same Connection reset by peer errors but then it got installed. As I'm running this in SSH add-on container, I don't know how to manually install aiofiles in HA.

➜  /config pip install aiofiles
Collecting aiofiles
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/aiofiles/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/aiofiles/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/aiofiles/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/aiofiles/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/aiofiles/
  Downloading https://files.pythonhosted.org/packages/cf/f2/a67a23bc0bb61d88f82aa7fb84a2fb5f278becfbdc038c5cbb36c31feaf1/aiofiles-0.4.0-py3-none-any.whl
Installing collected packages: aiofiles
Successfully installed aiofiles-0.4.0

@etricky
Copy link
Author

etricky commented Jun 17, 2019

@ludeeus I was able to fix this. I did some research and found this: pypa/pip#5374. I had to disable IPv6 on the host and when I restart it the issue was solved. From my part, this can be closed.

@chipriley
Copy link

@etricky what steps did you take to disable IPv6 on the host?

@ludeeus
Copy link
Member

ludeeus commented Jun 19, 2019

there are some examples in that linked issue, if they do not work try a google search "Disable IPv6 YOUR_OS_TYPE"

@ludeeus ludeeus closed this as completed Jun 19, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Aug 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants