question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

automation not installing after upgrade

See original GitHub issue

System Health details

Version core-2022.7.2 Installation Type Home Assistant OS Development false Supervisor true Docker true User root Virtual Environment false Python Version 3.10.5 Operating System Family Linux Operating System Version 5.15.32-v8 CPU Architecture aarch64 Timezone America/New_York Configuration Directory /config Home Assistant Community Store  MANAGE GitHub API ok GitHub Content ok GitHub Web ok GitHub API Calls Remaining 4407 Installed Version 1.26.0 Stage running Available Repositories 1136 Downloaded Repositories 24

Checklist

  • I’m running the newest version of HACS https://github.com/hacs/integration/releases/latest
  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • I have read https://hacs.xyz/docs/issues
  • This issue is related to the backend (integration part) of HACS.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently open or issues pending release.

Describe the issue

I recently upgraded HACS and HA to the latest version. One of my components installed with HACS went from installed to ‘new’. When I attempt to reinstall it, I get this:

2022-07-11 13:57:47 INFO (MainThread) [custom_components.hacs] <Appdaemon wernerhp/ha.appdaemon.wasp> Running pre installation steps
2022-07-11 13:57:47 INFO (MainThread) [custom_components.hacs] <Appdaemon wernerhp/ha.appdaemon.wasp> Pre installation steps completed
2022-07-11 13:57:47 INFO (MainThread) [custom_components.hacs] <Appdaemon wernerhp/ha.appdaemon.wasp> Running installation steps
2022-07-11 13:57:48 INFO (MainThread) [custom_components.hacs] <Appdaemon wernerhp/ha.appdaemon.wasp> Trying experimental download
2022-07-11 13:57:48 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547487720848] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/config/custom_components/hacs/websocket/repository.py", line 212, in hacs_repository_download
    await repository.async_install()
  File "/config/custom_components/hacs/repositories/base.py", line 833, in async_install
    await self.async_install_repository()
  File "/config/custom_components/hacs/repositories/base.py", line 916, in async_install_repository
    await self.download_content()
  File "/config/custom_components/hacs/repositories/base.py", line 572, in download_content
    await self.download_repository_zip()
  File "/config/custom_components/hacs/repositories/base.py", line 626, in download_repository_zip
    zip_file.extractall(self.content.path.local, extractable)
  File "/usr/local/lib/python3.10/zipfile.py", line 1645, in extractall
    self._extract_member(zipinfo, path, pwd)
  File "/usr/local/lib/python3.10/zipfile.py", line 1693, in _extract_member
    if member.is_dir():
  File "/usr/local/lib/python3.10/zipfile.py", line 530, in is_dir
    return self.filename[-1] == '/'
IndexError: string index out of range

I should note that this was already installed and only now comes up as a ‘new’ automation even though it was already there… . It was only after the latest HACS and HA 2022.07.3 upgrade that this happened (which I tried to roll back and it is still broken)

Reproduction steps

  1. Simply try to install automation Appdaemon wernerhp/ha.appdaemon.wasp

Debug logs

I can gather these

Diagnostics dump

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ludeeuscommented, Jul 13, 2022

https://github.com/hacs/integration/releases/tag/1.26.1 Makes it so this can be installed again. BUT! this is not supposed to work, and that is a bug in HACS that will be fixed in the future and then it will stop working again.

0reactions
calisrocommented, Jul 13, 2022

Yes it did in fact fix it. I’ve linked an issue in the repo I was having trouble with.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Power Automate Desktop installation troubleshooting
Cause. Go to Settings > Apps > Apps & features and uninstall it, then re-install Power Automate Desktop. The Power Automate Desktop installer...
Read more >
Common Installation Errors - UiPath Documentation Portal
Download the latest UiPath Studio version from the Resource Center in Automation Cloud and install it. After installing the latest version, Studio will...
Read more >
Update to latest Automation 360 version
You must perform the following steps before you upgrade to the latest version of Automation 360: Ensure you reconfigure the settings for log4j2....
Read more >
Error upgrading SQL Change Automation extension in Visual ...
Within the Cloud, database and server section, uncheck SQL Change Automation Core (alternatively, it can appear as SQL Change Automation for ...
Read more >
Case Management
XXX was not installed. ... CAR00188301 - Automation API fail to work after upgrading from EM 9.0.18 to EM 9.0.18.100 on Windows platform....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found