hacs / integration

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

HACS won't show plugin installed even when it is #990

Closed scfigg closed 4 years ago

scfigg commented 4 years ago

I've had the mini-graph-card installed on HACS for a while, since the latest version of HA, I was having issues. I updated HACS to latest 0.22.2 and mini-graph-card to 0.9.3 - but no matter how many times I hit "install", it never shows up as installed in HACS at all now. I can see the folder/files downloading in my community folder, but still doesn't show as installed. I've tried manually removing the folder/files, reloading HACS, rebooting HA - nothing seems to fix it.

Debug Log:

Details ``` 2020-03-04 14:08:33 DEBUG (MainThread) [hacs] Running set_state for kalkih/mini-graph-card 2020-03-04 14:08:33 DEBUG (MainThread) [hacs.data] Saving data 2020-03-04 14:08:34 DEBUG (MainThread) [hacs] Running install for kalkih/mini-graph-card 2020-03-04 14:08:34 DEBUG (MainThread) [hacs.repository.plugin.kalkih.mini-graph-card] Getting repository information 2020-03-04 14:08:34 DEBUG (MainThread) [hacs.repository.plugin.kalkih.mini-graph-card] Running checks against v0.9.3 2020-03-04 14:08:35 DEBUG (MainThread) [hacs.repository.plugin.kalkih.mini-graph-card] 2020-03-04 14:08:35 DEBUG (MainThread) [hacs.repository.plugin.kalkih.mini-graph-card] Downloading mini-graph-card-bundle.js 2020-03-04 14:08:35 DEBUG (MainThread) [hacs.download.downloader] Downloading https://github.com/kalkih/mini-graph-card/releases/download/v0.9.3/mini-graph-card-bundle.js 2020-03-04 14:08:36 DEBUG (MainThread) [hacs.download.save] Saving /config/www/community/mini-graph-card/mini-graph-card-bundle.js 2020-03-04 14:08:36 INFO (MainThread) [hacs.repository.plugin.kalkih.mini-graph-card] download of mini-graph-card-bundle.js complete 2020-03-04 14:08:36 ERROR (MainThread) [hacs.repository.plugin.kalkih.mini-graph-card] Repository is archived. 2020-03-04 14:08:36 DEBUG (MainThread) [hacs.data] Saving data ```
hacs-bot[bot] commented 4 years ago

Make sure you have read the issue guidelines and that you filled out the entire template.

ludeeus commented 4 years ago

Can you use hastebin or similar to upload the contents of .storage/hacs.repositories?

scfigg commented 4 years ago

Hastebin said it was too big. Here is a pastebin link:

https://pastebin.com/uWWSTcyX

ludeeus commented 4 years ago

Can you replace the content of /config/custom_components/hacs/helpers/validate_repository.py with this https://hastebin.com/erubudokam.py, then restart HA, then install it again and give me the new log?

scfigg commented 4 years ago

HACS doesn't even work after replacing that:

https://hastebin.com/lehinefowo.sql

ludeeus commented 4 years ago

You got a little too much in there ;) Try this instead https://hastebin.com/raw/erubudokam

scfigg commented 4 years ago

https://hastebin.com/buvosoqute.sql

ludeeus commented 4 years ago

WTF... In both the response from GitHub, and in repository.data they both say 'archived': False,

ludeeus commented 4 years ago

Can you replace the content of /config/custom_components/hacs/helpers/install.py with this https://hastebin.com/raw/akozapubaw, then restart HA, then install it again and give me the new log?

scfigg commented 4 years ago

looks like the same thing: https://hastebin.com/ozohuqarot.sql

ludeeus commented 4 years ago

That does not make sense at all...

ludeeus commented 4 years ago

https://hastebin.com/raw/exonuhekiw as /config/custom_components/hacs/helpers/install.py should work, but I currently have no clue why that happens for some, and not all...

scfigg commented 4 years ago

Sorry for the delay getting back to you on this - had a long night. Used the latest install.py config you gave me, and looks like that worked correctly. Looks like it's showing installed now.

scfigg commented 4 years ago

One other quick question - with the latest version of HACS and certain plugins, I'm starting to see this path: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js

Instead of the old path: /community_plugin/mini-graph-card/mini-graph-card-bundle.js

Is that accurate?

ludeeus commented 4 years ago

yes, see release notes for 0.22.0

ludeeus commented 4 years ago

Issue is still present.

cchrkk commented 4 years ago
Logs ``` 2020-03-05 15:37:00 ERROR (MainThread) [hacs.repository.plugin.cbulock.lovelace-battery-entity] Repository is archived. 2020-03-05 15:37:00 ERROR (MainThread) [hacs.repository.plugin.cbulock.lovelace-battery-entity] Repository is archived. 2020-03-05 15:37:10 ERROR (MainThread) [hacs.repository.plugin.cbulock.lovelace-battery-entity] Repository is archived. 2020-03-05 15:37:10 ERROR (MainThread) [hacs.repository.plugin.cbulock.lovelace-battery-entity] Repository is archived. 2020-03-05 15:37:55 ERROR (MainThread) [hacs.repository.plugin.custom-cards.state-attribute-element] Repository is archived. 2020-03-05 15:37:55 ERROR (MainThread) [hacs.repository.plugin.custom-cards.state-attribute-element] Repository is archived. 2020-03-05 15:37:59 ERROR (MainThread) [hacs.repository.plugin.custom-cards.canvas-gauge-card] Repository is archived. 2020-03-05 15:37:59 ERROR (MainThread) [hacs.repository.plugin.custom-cards.canvas-gauge-card] Repository is archived. 2020-03-05 15:38:05 ERROR (MainThread) [hacs.repository.plugin.dnguyen800.air-visual-card] Repository is archived. 2020-03-05 15:38:05 ERROR (MainThread) [hacs.repository.plugin.dnguyen800.air-visual-card] Repository is archived. 2020-03-05 15:38:11 ERROR (MainThread) [hacs.repository.plugin.gadgetchnnel.lovelace-home-feed-card] Repository is archived. 2020-03-05 15:38:11 ERROR (MainThread) [hacs.repository.plugin.gadgetchnnel.lovelace-home-feed-card] Repository is archived. 2020-03-05 15:38:15 ERROR (MainThread) [hacs.repository.plugin.cbulock.lovelace-battery-entity] Repository is archived. 2020-03-05 15:38:15 ERROR (MainThread) [hacs.repository.plugin.cbulock.lovelace-battery-entity] Repository is archived. 2020-03-05 15:38:23 ERROR (MainThread) [hacs.repository.theme.bbbenji.synthwave-hass] Repository is archived. 2020-03-05 15:38:23 ERROR (MainThread) [hacs.repository.theme.bbbenji.synthwave-hass] Repository is archived. ```

Not sure if it's related to this issue, but I can't upgrade anything except for HACS

ludeeus commented 4 years ago

it is.

cchrkk commented 4 years ago

it is.

Should I try to clean re-install HACS?

ludeeus commented 4 years ago

no

ludeeus commented 4 years ago

Since I'm not able to reproduce this, @scfigg or @cherokee93 can you try this https://hastebin.com/raw/arizelojay as /config/custom_components/hacs/helpers/install.py and see if that still works?

cchrkk commented 4 years ago

Sure, do I need to restart hacs/reboot hassio/restart HA? I'm reloading data actually

ludeeus commented 4 years ago

Any changes to custom_components will need a restart of Home Assistant

cchrkk commented 4 years ago

Any changes to custom_components will need a restart of Home Assistant

Thanks, TIL

Since I'm not able to reproduce this, @scfigg or @cherokee93 can you try this https://hastebin.com/raw/arizelojay as /config/custom_components/hacs/helpers/install.py and see if that still works?

Perfect, it worked 👌

shreram commented 4 years ago

One other quick question - with the latest version of HACS and certain plugins, I'm starting to see this path: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js

Instead of the old path: /community_plugin/mini-graph-card/mini-graph-card-bundle.js

Is that accurate?

I had the same question. ~Where is the release notes for the 0.22.0 release?~

Update: Found the link for 0.22.0 release notes https://github.com/hacs/integration/releases/tag/0.22.2

ludeeus commented 4 years ago

@shreram https://github.com/hacs/integration/releases/tag/0.22.0

h4nc commented 4 years ago

Had the same issue.

https://github.com/hacs/integration/issues/990#issuecomment-595325085 worked for me too.

gadgetchnnel commented 4 years ago

I've had this same issue, with the error "Repository is archived" when trying to update a plugin or integration in HACS. It seems to work again if I restart Home Assistant. This makes it hard to tell if any changes made to HACS have fixed it (since that will need a restart) and also to get debug logs since, unless i leave HACS on debug logging permanently (which I try to avoid), changing the logging level for HACS also needs a restart.

ludeeus commented 4 years ago

changing the logging level for HACS also needs a restart.

Not if you use the UI instead of YAML for HACS config.

ludeeus commented 4 years ago

https://github.com/hacs/integration/releases/tag/0.22.3

h4nc commented 4 years ago

@ludeeus should we change back to the old install.py file or will it be overwritten by the update anyway?

hacs-bot[bot] commented 4 years ago

This issue is closed, closed issues are ignored.

If you have issues similar to this, please open a seperate issue. https://github.com/custom-components/hacs/issues/new/choose

And remember to fill out the entire issue template :)

ludeeus commented 4 years ago

https://hacs.xyz/docs/faq/installation https://hacs.xyz/docs/faq/upgrade

hacs-bot[bot] commented 4 years ago

This issue is closed, closed issues are ignored.

If you have issues similar to this, please open a seperate issue. https://github.com/custom-components/hacs/issues/new/choose

And remember to fill out the entire issue template :)