hacs / integration

HACS gives you a powerful UI to handle downloads of all your custom needs.
https://hacs.xyz
MIT License
5.4k stars 1.28k forks source link

HACS not updating past past 1.15.2 #2553

Closed JackPala closed 2 years ago

JackPala commented 2 years ago

System Health details

System Health

version core-2022.3.3
installation_type Home Assistant Container
dev false
hassio false
docker true
user root
virtualenv false
python_version 3.9.9
os_name Linux
os_version 5.4.0-96-generic
arch x86_64
timezone America/Bogota
Home Assistant Community Store GitHub API | ok -- | -- Github API Calls Remaining | 4903 Installed Version | 1.15.2 Stage | running Available Repositories | 1008 Installed Repositories | 6
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Lovelace dashboards | 1 -- | -- resources | 1 views | 5 mode | storage
Spotify api_endpoint_reachable | ok -- | --
Xiaomi Miot Auto component_version | 0.5.3 -- | -- can_reach_server | ok can_reach_spec | ok logged_accounts | 1 total_devices | 1

Checklist

Describe the issue

Using the GUI to update HACS (Or any of it's frontend or backend plugins) Results in what appears in the GUI to be a successful update. The system asks for a restart of the instance as normal, however upon a reboot it appears that the previous version of HACS remains as the installed version

Reproduction steps

  1. Attempt to update
  2. Restart HASS
  3. System remains on old version ...

Debug logs

No logs related to Hacs appear

Diagnostics dump

No response

cremor commented 2 years ago

I have a similar issue. The first version of HACS I ever installed was 1.21.0. And that is the version I'm still on. There are no update notifications. And it seems like I also can't manually trigger an update.

I found a few things that might be related:

JackPala commented 2 years ago

@cremor do you know if manually removing the HACS instance and reinstalling it will break the relationship between the HACS instance & the child frontend/backend integrations?

cremor commented 2 years ago

No, I don't know that, sorry.

crudolphy commented 2 years ago

I am having same or similar issue. Got notice the the LG ThinQ integration needed to update. Clicked update button had spinning arrow, then notice a top of page went pink stating needed a restart. Clicked navigate button to right of message and then clicked restart. After restart still says I need to update LG ThinQ.

Also just installed a NetGate firewall appliance running their pfSense firewall to my network. Went to HACS found the pfSense for Home Assistant integration. Downloaded the integration. Went to Configuration --> Devices & Services --> + Integration and searched for pfSense not in the list to install. Went to file editor --> Custom_Components folder. There is a folder for pfSense and it is populated with 8 files and one more folder named "Translations". So HACS downloaded the integration but for what ever reason it is not registering itself with "Integrations" so it can be installed.

New behavior for me but it has been a few days since I updated anything with HACS.

Hope this is related and helps you out.

Thanks for the good work on HACS!

EDIT:

I am running HASS OS (7 .4), Supervisor (2022.03.3), Core (2022.03.3) on Raspi Pi4. HACS Verision 1.23.0. Have also restarted Core twice with no affect on the above and re-booted the system with no affect on the above.

Found the following message in the "Core" logs:

2022-03-12 17:52:33 ERROR (MainThread) [custom_components.hacs] HacsTask<update_critical_repositories> failed: <Integration custom-components/sensor.custom_aftership> Repository has been requested to be removed. config_entry-hacs-60724a567da090ff459983707fb7f7b5.json.txt

See the attached "Diagnostics" download.

Again hope this helps!

teras commented 2 years ago

I have a similar issue with @cfrudolphy

Actually the integrations that asks me to upgrade are

For me the problem is even worse, since the gateway upgrade is mandatory, since the current version broke the compatibility with latest HA and the hub stopped working :open_mouth:

Zugdar commented 2 years ago

Same here. Won't let me update anything else either.

Log of Error Logger: custom_components.hacs Source: custom_components/hacs/helpers/methods/installation.py:92 Integration: HACS (documentation, issues) First occurred: 8:34:54 PM (1 occurrences) Last logged: 8:34:54 PM

Download was not completed

crudolphy commented 2 years ago

Updated core to 2022.03.4 then tried to update LG ThinQ and install adsense for HA. Same problems as before. No change in behavior.

Zugdar commented 2 years ago

I did run the normal setup script in the SSH and that seems to have taken care of it

wget -O - https://get.hacs.xyz | bash -

ludeeus commented 2 years ago

HA 2022.3.X removed the loop argument compatibility layer for async_timeout. There are 2 ways to fix that issue. 1) Run the download script again as @Zugdar mentioned. 2) Downgrade HA, upgrade HACS, then upgrade HA again.

teras commented 2 years ago

I'd suggest, if possible, to leave this issue open for a few days, to help people coming to this page for help, to be easy to find this solution :smile:

cremor commented 2 years ago

Also, please clearify if this workaround is needed only once. So was HACS already updated to handle the change in HA? Or do we need to "reinstall" for all updates for now?

ludeeus commented 2 years ago

HACS was adjusted a long time ago, this is one-time thing if you are on earlier version.

cremor commented 2 years ago

@ludeeus I just executed the download command again and that caused a HACS downgrade to 1.19.3. Please see my previous comment in this issue where I describe that the download package contains version 1.19.3. I assume this is the source of the problem.

ludeeus commented 2 years ago

no, this issue is about 1.15.2

cremor commented 2 years ago

So should I open a separate issue?

ludeeus commented 2 years ago

if you have similar on 1.19.3 then yes.

crudolphy commented 2 years ago

I can confirm that running Zugdar's command: wget -O - https://get.hacs.xyz/ | bash -` Worked for me. Problem solved.

JGNi commented 2 years ago

I can confirm that running Zugdar's command:

wget -O - https://get.hacs.xyz/ | bash -`

Worked for me. Problem solved.

You had 1.15?

crudolphy commented 2 years ago

No I was at 1.23 but after running the command I am at 1.19.3. All I know is it works now when it didn't on 1.23