Skip to content

"hacstag" not always correct? #4501

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

Open
8 tasks done
Clooos opened this issue Mar 23, 2025 · 41 comments · May be fixed by #4603
Open
8 tasks done

"hacstag" not always correct? #4501

Clooos opened this issue Mar 23, 2025 · 41 comments · May be fixed by #4603
Labels
issue:backend For issues with the backend/integration

Comments

@Clooos
Copy link

Clooos commented Mar 23, 2025

System Health details

Not relevant

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/help/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 is a bug and not a feature request.
  • This issue is not a duplicate issue of currently open or issues pending release.

Describe the issue

Hi!

I'm the Bubble Card developer, and since a few releases, I often have users reporting that updating Bubble Card with HACS give them the "Custom Element doesn't exist" error, this was not the case before and I don't think that I've made a change that could break that (but I might be wrong).

It seems that manually editing the hacstag to an higher number is working for some users, but also downgrading then reinstalling the new version (sometime twice?), but not for everyone. This issue is discussed here and here if you're interested on the users feedback.

What I don't understand is that this issue seems to be random, some users don't have it. I tried myself and I haven't had this issue. This issue seems to happen more with my beta releases, but I'm not sure of that.

I also checked if it was a common issue on your GitHub page, but I haven't really found something similar.

Thank you so much in advance for your help and your time! 🙂

Reproduction steps

  1. Install Bubble Card update in HACS from a previous version
  2. "Custom Element doesn't exist" error for some users

Debug logs

I haven't any logs to provide

Diagnostics dump

Not relevant

@Clooos Clooos added the issue:backend For issues with the backend/integration label Mar 23, 2025
@hacs-bot
Copy link

hacs-bot bot commented Mar 23, 2025

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

If you have an issue identical to this, do not add comments like "same here", "i have this too", instead add a 👍 reaction to the issue description. Thanks! 👍

@ngocjohn
Copy link

maybe adding the .js file to the release assets can solve the problem?

@Clooos
Copy link
Author

Clooos commented Mar 24, 2025

What do you mean by that? The .js file is in the archive, here's my latest release:

https://github.com/Clooos/Bubble-Card/releases

One more thing, some users also get a previous release when they update, this has been reported yesterday and this is not the first time they report me this.

I really suspect an issue with the hacstag number, this could also cause the "downgrade" issue.

Also I've seen this issue reported on some other custom cards as well, this was not the case before HACS v2.

Edit: This issue is really unusual 😅

Image

@ngocjohn
Copy link

I meant that you could directly upload the module .js file to assets in the corresponding release.

Image

@Clooos
Copy link
Author

Clooos commented Mar 26, 2025

Yes that's what I thought, but I still don't understand why you think this would help (just curious to know), and I still believe it should works without as it was before, this is definitely a bug to me.

I will try for my next release, but please consider taking a look at this, I'm definitely not alone in that boat.

@ludeeus
Copy link
Member

ludeeus commented Mar 26, 2025

The "hacstag" will not cause "Custom Element doesn't exist", only failure to load the recourse will do that.
For the "hacstag" itself, that is generated by https://github.com/hacs/integration/blob/main/custom_components/hacs/repositories/plugin.py#L149-L156 so unless you create a new version without changing any numeric values, that will generate a new value each time.

As for the issues described, it sounds to me that they have the same resource defined several times, and these are fighting.
Or they have some sort of proxy (like Cloudflare) that are caching too hard.

If that is not it, without providing debug logs of the "failed" update, there would be too much guessing for me to even start troubleshooting here.

@Clooos
Copy link
Author

Clooos commented Mar 26, 2025

Thank you so much for your answer @ludeeus.

And what about the "downgrade" issue, they see the correct version in HACS, but the previous cached version is loaded, changing the hacstag to an higher one fix the issue in that case.

Can this be related to the fact that my releases are named like "Bubble Card v2.5.0-beta.9"? The version of the release is of course just "v2.5.0-beta.9". Or even the structure of my releases? I'm still not sure to understand how this can happen and if something can be changed on my side.

I'm sorry for not having provided logs (I asked to my users, without any luck). I will try again to reproduce this myself, then if I can I will provide you the logs.

I'm not a backend dev at all, so I can't help much on this even if I would love to.

@ludeeus
Copy link
Member

ludeeus commented Mar 26, 2025

it sounds to me that they have the same resource defined several times, and these are fighting.
Or they have some sort of proxy (like Cloudflare) that are caching too hard.

This could explain any "downgrade" / "Custom Element doesn't exist" issues.

@Clooos
Copy link
Author

Clooos commented Mar 26, 2025

Thank you again, I will share your answer to see if I can get some feedback about that 🙂

@PineappleEmperor
Copy link

Just jumping in as a user - I'm experiencing the teh 'Custom Element doesn't exist" error, most definitely haven't defined it in multiple places, have tried clearing cache, using private browsing mode to avoid the cache, am not using cloudflare/proxy other than using nabu, and can see nothing in home-assistant.log mentioning bubblecard.

Oddly enough, it's not occurring in the iOS app, but is on numerous cheap tablets, and my main Win11 machine (firefox & chrome).

I'd be happy to delve deeper if you can steer me?

@ludeeus
Copy link
Member

ludeeus commented Mar 26, 2025

For "Custom Element doesn't exist" there would not be anything in the home assistant log, that would be in the browser console.

@PineappleEmperor
Copy link

facepalms of course. I need more coffee today it seems. Even worse, I've just fixed it by following steps another user reported - redownloading (the specific latest version, not latest) via HACS. Hopefully someone else can grab the logs.

@LoznOz
Copy link

LoznOz commented May 3, 2025

Hi
I'm a user and (for the last several hours) a, consistently getting the problem when I try download latest Beta (version 5) via HACS - it indicates it's done that but is actually downloading the latest NON beta software (ie a earlier version). If I download Beta version 4 - that works.

Since this (apparently random) issue appears to be happening reliably (every time) for me it appears an opportunity to send you any logs you may require to assist you (and I) of the cause?
I'd be grateful if you could summarise (assume some technical know-how of me) what you require and I'll send those logs etc.
FYI I've

  • cleared iOS tablet app cache (made no difference)
  • attempted Beta 5 download via HACS multiple times, with both delete existing first & restarting, rebooting HA etc none of these steps corrected / fixed.
  • I checked Resources tab in Dashboard for potential duplicates - was not sure exactly what I may find - did not see any references to bubblecard & so did not edit anything there.
    Cheers
    Loz

@ludeeus
Copy link
Member

ludeeus commented May 6, 2025

https://hacs.xyz/docs/use/troubleshooting/logs/ would be the logs needed.

@Clooos
Copy link
Author

Clooos commented May 13, 2025

Hi, someone sent me his logs, in this case v3.0.0-beta.6 is going to be installed but v2.4.0 is installed instead.

2025-05-12 17:03:41.236 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:03:44.384 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Getting hacs.json for version=v3.0.0-beta.6
2025-05-12 17:03:44.384 DEBUG (MainThread) [custom_components.hacs] Trying to download https://raw.githubusercontent.com/Clooos/Bubble-Card/v3.0.0-beta.6/hacs.json
2025-05-12 17:03:44.479 INFO (MainThread) [custom_components.hacs] Starting download, v3.0.0-beta.6
2025-05-12 17:03:44.481 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Running pre installation steps
2025-05-12 17:03:44.481 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Pre installation steps completed
2025-05-12 17:03:44.481 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Running installation steps
2025-05-12 17:03:44.481 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Getting repository information
2025-05-12 17:03:44.589 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Did not update, content was not modified
2025-05-12 17:03:44.590 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Local path is set to /config/www/community/Bubble-Card
2025-05-12 17:03:44.590 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Remote path is set to dist
2025-05-12 17:03:44.590 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Version to install: v3.0.0-beta.6
2025-05-12 17:03:44.590 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> bubble-card.js
2025-05-12 17:03:44.591 DEBUG (MainThread) [custom_components.hacs] <QueueManager> Checking out tasks to execute
2025-05-12 17:03:44.591 DEBUG (MainThread) [custom_components.hacs] <QueueManager> Starting queue execution for 3 tasks
2025-05-12 17:03:44.592 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Downloading bubble-card.js
2025-05-12 17:03:44.592 DEBUG (MainThread) [custom_components.hacs] Trying to download https://raw.githubusercontent.com/Clooos/Bubble-Card/v2.4.0/dist/bubble-card.js
2025-05-12 17:03:44.594 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Downloading bubble-card.js.LICENSE.txt
2025-05-12 17:03:44.594 DEBUG (MainThread) [custom_components.hacs] Trying to download https://raw.githubusercontent.com/Clooos/Bubble-Card/v2.4.0/dist/bubble-card.js.LICENSE.txt
2025-05-12 17:03:44.596 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Downloading bubble-pop-up-fix.js
2025-05-12 17:03:44.596 DEBUG (MainThread) [custom_components.hacs] Trying to download https://raw.githubusercontent.com/Clooos/Bubble-Card/v2.4.0/dist/bubble-pop-up-fix.js
2025-05-12 17:03:44.689 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Download of bubble-card.js completed
2025-05-12 17:03:44.689 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Download of bubble-card.js.LICENSE.txt completed
2025-05-12 17:03:44.697 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Download of bubble-pop-up-fix.js completed
2025-05-12 17:03:45.698 DEBUG (MainThread) [custom_components.hacs] <QueueManager> Queue execution finished for 3 tasks finished in 1.11 seconds
2025-05-12 17:03:45.699 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Installation steps completed
2025-05-12 17:03:45.699 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Running post installation steps
2025-05-12 17:03:45.700 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Adding dashboard resource /hacsfiles/Bubble-Card/bubble-card.js?hacstag=6801129193006
2025-05-12 17:03:45.701 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Post installation steps completed
2025-05-12 17:03:45.734 INFO (MainThread) [homeassistant.components.update] Setting up hacs.update
2025-05-12 17:03:45.759 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new update.hacs entity: update.bubble_card_update
2025-05-12 17:03:45.828 DEBUG (MainThread) [custom_components.hacs] <HacsData async_write> Saving data

And the logs when successful (the user can't install v3.0.0-beta.6 and try to install v3.0.0-beta.4 instead):

2025-05-12 17:12:48.795 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:51.979 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Getting hacs.json for version=v3.0.0-beta.4
2025-05-12 17:12:51.979 DEBUG (MainThread) [custom_components.hacs] Trying to download https://raw.githubusercontent.com/Clooos/Bubble-Card/v3.0.0-beta.4/hacs.json
2025-05-12 17:12:52.142 INFO (MainThread) [custom_components.hacs] Starting download, v3.0.0-beta.4
2025-05-12 17:12:52.145 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Running pre installation steps
2025-05-12 17:12:52.146 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Pre installation steps completed
2025-05-12 17:12:52.146 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Running installation steps
2025-05-12 17:12:52.147 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Getting repository information
2025-05-12 17:12:52.510 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.511 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.511 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.512 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.512 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.513 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.513 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.513 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.514 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.514 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.515 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.515 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.515 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.515 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.517 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.517 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.518 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.518 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.519 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.519 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.519 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.520 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.520 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.521 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.521 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.521 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.522 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.522 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.523 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.523 DEBUG (MainThread) [aiogithubapi] 'GitHubBaseUserModel' is missing key 'user_view_type' for <class 'str'>
2025-05-12 17:12:52.524 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Running checks against v3.0.0-beta.4
2025-05-12 17:12:52.855 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Getting documentation for version=v3.0.0-beta.6,filename=README.md
2025-05-12 17:12:52.855 DEBUG (MainThread) [custom_components.hacs] Trying to download https://raw.githubusercontent.com/Clooos/Bubble-Card/v3.0.0-beta.6/README.md
2025-05-12 17:12:53.123 DEBUG (SyncWorker_0) [custom_components.hacs] Backup for /config/www/community/Bubble-Card, created in /tmp/hacs_backup/Bubble-Card
2025-05-12 17:12:53.127 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Local path is set to /config/www/community/Bubble-Card
2025-05-12 17:12:53.127 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Remote path is set to dist
2025-05-12 17:12:53.127 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Version to install: v3.0.0-beta.4
2025-05-12 17:12:53.129 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> bubble-card.js
2025-05-12 17:12:53.130 DEBUG (MainThread) [custom_components.hacs] <QueueManager> Checking out tasks to execute
2025-05-12 17:12:53.131 DEBUG (MainThread) [custom_components.hacs] <QueueManager> Starting queue execution for 8 tasks
2025-05-12 17:12:53.131 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Downloading bubble-card.js
2025-05-12 17:12:53.132 DEBUG (MainThread) [custom_components.hacs] Trying to download https://raw.githubusercontent.com/Clooos/Bubble-Card/v3.0.0-beta.4/dist/bubble-card.js
2025-05-12 17:12:53.137 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Downloading bubble-card.js.LICENSE.txt
2025-05-12 17:12:53.138 DEBUG (MainThread) [custom_components.hacs] Trying to download https://raw.githubusercontent.com/Clooos/Bubble-Card/v3.0.0-beta.4/dist/bubble-card.js.LICENSE.txt
2025-05-12 17:12:53.139 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Downloading bubble-card.js.LICENSE.txt.gz
2025-05-12 17:12:53.139 DEBUG (MainThread) [custom_components.hacs] Trying to download https://raw.githubusercontent.com/Clooos/Bubble-Card/v3.0.0-beta.4/dist/bubble-card.js.LICENSE.txt.gz
2025-05-12 17:12:53.140 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Downloading bubble-card.js.gz
2025-05-12 17:12:53.141 DEBUG (MainThread) [custom_components.hacs] Trying to download https://raw.githubusercontent.com/Clooos/Bubble-Card/v3.0.0-beta.4/dist/bubble-card.js.gz
2025-05-12 17:12:53.142 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Downloading bubble-modules-example.yaml
2025-05-12 17:12:53.142 DEBUG (MainThread) [custom_components.hacs] Trying to download https://raw.githubusercontent.com/Clooos/Bubble-Card/v3.0.0-beta.4/dist/bubble-modules-example.yaml
2025-05-12 17:12:53.145 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Downloading bubble-modules.yaml
2025-05-12 17:12:53.145 DEBUG (MainThread) [custom_components.hacs] Trying to download https://raw.githubusercontent.com/Clooos/Bubble-Card/v3.0.0-beta.4/dist/bubble-modules.yaml
2025-05-12 17:12:53.146 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Downloading bubble-pop-up-fix.js
2025-05-12 17:12:53.146 DEBUG (MainThread) [custom_components.hacs] Trying to download https://raw.githubusercontent.com/Clooos/Bubble-Card/v3.0.0-beta.4/dist/bubble-pop-up-fix.js
2025-05-12 17:12:53.147 DEBUG (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Downloading bubble-pop-up-fix.js.gz
2025-05-12 17:12:53.148 DEBUG (MainThread) [custom_components.hacs] Trying to download https://raw.githubusercontent.com/Clooos/Bubble-Card/v3.0.0-beta.4/dist/bubble-pop-up-fix.js.gz
2025-05-12 17:12:53.313 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Download of bubble-card.js.LICENSE.txt.gz completed
2025-05-12 17:12:53.338 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Download of bubble-modules.yaml completed
2025-05-12 17:12:53.343 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Download of bubble-card.js.LICENSE.txt completed
2025-05-12 17:12:53.346 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Download of bubble-pop-up-fix.js completed
2025-05-12 17:12:53.347 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Download of bubble-card.js.gz completed
2025-05-12 17:12:53.350 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Download of bubble-modules-example.yaml completed
2025-05-12 17:12:53.357 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Download of bubble-pop-up-fix.js.gz completed
2025-05-12 17:12:53.381 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Download of bubble-card.js completed
2025-05-12 17:12:54.381 DEBUG (MainThread) [custom_components.hacs] <QueueManager> Queue execution finished for 8 tasks finished in 1.25 seconds
2025-05-12 17:12:54.389 DEBUG (SyncWorker_0) [custom_components.hacs] Backup dir /tmp/hacs_backup/ cleared
2025-05-12 17:12:54.392 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Installation steps completed
2025-05-12 17:12:54.393 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Running post installation steps
2025-05-12 17:12:54.394 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Updating existing dashboard resource from /hacsfiles/Bubble-Card/bubble-card.js?hacstag=6801129193006 to /hacsfiles/Bubble-Card/bubble-card.js?hacstag=6801129193004
2025-05-12 17:12:54.394 INFO (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Post installation steps completed
2025-05-12 17:12:54.396 DEBUG (MainThread) [custom_components.hacs] <HacsData async_write> Saving data

Thank you so much in advance for taking a look at this 🙂

@ludeeus
Copy link
Member

ludeeus commented May 13, 2025

How was the install done?
(there are several ways to trigger it)

@LoznOz
Copy link

LoznOz commented May 13, 2025

That was not my HACS DEBUG log but I too have been experiencing same issue. I attach another HACS debug log for reference and I added notes at the beginning of the file explaining how I went about installing which may assist

HACS DEBUG LOG BubbleCard Beta 3.6 Install home-assistant_hacs_2025-05-13T07-50-41.160Z.log

@ludeeus
Copy link
Member

ludeeus commented May 13, 2025

But how are you "installing" betas?
Did you enable betas for the repository?
Are you using a service?
Are you using the HACS UI?

@LoznOz
Copy link

LoznOz commented May 13, 2025

Sorry thought I was clear in the notes I sent
YES using the HACS UI

... I selected HACS, filtered to BubbleCard, selected three vertical dots 'Redownload'.
was offered 'Version v2.4.0 will be downloaded'. I rather selected from resulting dropdown (Need a different version) and selected v3.0.0-beta.6 (pre-release)

@ludeeus
Copy link
Member

ludeeus commented May 13, 2025

Thanks!
Looking at your logs, that is also what happened, and it seems to behave as it should.
These logs say that it downloaded b6, and updated the resource to reflect that.
it also say it was b7 before that, but I assume that is the instance you mentioned in your file where you manually changed things.
So these logs do not point to an issue with HACS, maybe you have the logs from the attempt before?

@ludeeus
Copy link
Member

ludeeus commented May 13, 2025

FYI: The "hacstag" is not incremented by 1, it is a concatenation of the repository ID (680112919) and all the numbers in the version that was used (3006 for v3.0.0-beta.6), which (in this case) becomes 6801129193006.

@LoznOz
Copy link

LoznOz commented May 13, 2025

Thanks for reviewing and explanation of Hacstag - I did not mean to convey I knew how Hacstag number is created - rather to specifically describe the steps I took (as suggested by others). There is a but though..

AFTER I sent you that message I was busy. I can back to HA a short while ago to find that HA was again showing BubbleCard doesn’t exist!!

  • having explained to you already how I fixed it last time I did the same thing (incremented the Hacstag number by one digit in Dashboard Resources) and now it’s working again?

  • So (from the symptoms I’m seeing in this example) for whatever reason (and I’ve no idea - just a user looking for help) the HACS install of this beta software IS failing (reliably - ie it can be replicated) and by the action I described, got it to work again. ( but there definitely is something weird going on here I trust you agree?)

  • With my limited experience I’m quite happy to try provide you as much information as I can to assist you in hopefully finding and resolving this - it’s certainly affecting others too. Just let me know/ us know.

Edit: for completeness the (working) Dashboard Resource entry for BubbleCard, after the install (as described in the HACS Debug Log I sent earlier is:

/hacsfiles/Bubble-Card/bubble-card.js?hacstag=6801129193007

/hacsfiles/Bubble-Card/bubble-card.js?hacstag=6801129193006 FAILS

Cheers
Loz

@Clooos
Copy link
Author

Clooos commented May 13, 2025

I just thought of something. A few months ago, someone opened a PR to include a gzipped version of the project in the dist folder. Could this change be causing one of the issues here? I'm not even sure if that's supported.

Edit: Also, I asked to the user who shared his logs, to answer here to your previous question about how he did the update.

@ludeeus
Copy link
Member

ludeeus commented May 13, 2025

I doubt it, but at this stage it is not clear what it is.
One thing is certain: "fixing" it by manually adding +1 will push the issue to next time.

@LoznOz
Copy link

LoznOz commented May 13, 2025

If I have time tomorrow I'll try deleting and reverting back to non-beta version then progressively adding a few of beta versions to see if there is any pattern to this incrementing - would that be useful & let me know if there is anything particular you wish me to check / log.
I'll report back here with anything (hopefully) useful
Cheers

@MarqBarq
Copy link

MarqBarq commented May 13, 2025

Good morning. The logs that Clooos shared where from me.

I first deleted the resource in the dashboard for bubble (I had been trying to get this installed for a while)
I then went to HACS and filtered Bubble Card, opened it. From the 3 dots. I removed BC
Then restarted HA, just because
Went to HACS and BC, hit the 3 dots, selected download OTHER Versions and Beta-6.

Just in case it may be relevant (think it is not, but I was in QA for over a decase), this is an HA Green Hardware. Fully updated.

@LoznOz
Copy link

LoznOz commented May 13, 2025

Just info
I noticed in my multiple attempts that when I removed Bubblecard from HA, that also deleted the dashboard resource entry, which was logically expected. In other words unnecessary to manually delete resource entry before removing Bubblecard.

@MarqBarq
Copy link

I understand, this was part of the a list of things that we were doing trying to force it to install the correct version. Sometimes, if you changed the number at the end of the resource HACS would let you install. I got BC Beta-5 to install once by doing this. Was hit or miss.

@ludeeus
Copy link
Member

ludeeus commented May 13, 2025

It was pretty hidden in this report, but I could reproduce it, it only happens on new installations, not on updates, as I thought by how this was presented.
I have opened #4603 to mitigate that. Are any of you able to test it?

@Clooos
Copy link
Author

Clooos commented May 13, 2025

Thank you so much! I was unable to reproduce this, so I hope someone here can try it.

Some instructions for them to know how to test it?

@ludeeus
Copy link
Member

ludeeus commented May 13, 2025

If you need instructions on how to patch a custom integration, please don't try.
Only do that if you know how it works, as it can break your system.
And remember off-site/off-device backups.

@Clooos
Copy link
Author

Clooos commented May 13, 2025

I'm indeed not aware of how this works, I'm "just" a frontend dev.

Also are you sure this is not happening for users who were on latest first then updated to the beta? Anyway, I truly hope this fix will works, you can't imagine how many new issues I got because of this 😂

Thank you so much again for your work and your time on this!

@ludeeus
Copy link
Member

ludeeus commented May 13, 2025

Going "stable" -> "beta" would probably also trigger the same bug, but I did not specifically test that.

Edit: Re-tested that, no it does not apply.
If you, however for some reason, do:
Stable -> Remove -> Beta, it will apply because after the remove it will be a new download.

@LoznOz
Copy link

LoznOz commented May 14, 2025

Thank-you
Regret I don't have the experience to test either.
Have got a stable system at the moment (without the increment) running Beta 6.

I removed Bubble card, installed non-
Beta 2.4, then beta 1,2 then 6.
Hopefully sorted, massive effort for all.
Cheers

@TheClonker
Copy link

It was pretty hidden in this report, but I could reproduce it, it only happens on new installations, not on updates, as I thought by how this was presented.
I have opened #4603 to mitigate that. Are any of you able to test it?

Hey, i was facing this exact issue, tried to update from Bubble-Card v2.4.0 to v3.0.0-beta.7 for some fixes and kept getting stuck in caching issues and JS Errors. I tried downgrading / updating / reinstalling and a few fixes from the Issues on the Bubble-Card Repo to no avail before reading this issue.

I did not see your Comment in time, so with v.2.4.0 installed, i applied your PR #4603 locally, restarted Home Assistant, updated to v3.0.0-beta.7 and reloaded the Tab.
It didn't work immediately, so i added some basic logging to get the value of force_updated and tried restarting again but by then the issue was already fixed. So it might have been some stuck cache on my end which survived reloading the Page after the update.
For the record, my current hacstag for v3.0.0-beta.7 is 6801129193007.

But as i said, before applying your patch nothing else worked, so in my opinion this a valid fix for the issue.
Thanks for your work and i hope some more people test the fix and give some feedback.

@Clooos
Copy link
Author

Clooos commented May 26, 2025

Hi again, someone just shared these logs, is it related to the issue you fixed? I asked him to send the full logs, I'm waiting for his answer.

2025-05-26 05:08:24.280 ERROR (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> [bubble-card.js] was not downloaded.

2025-05-26 05:08:24.284 ERROR (MainThread) [custom_components.hacs] <Plugin Clooos/Bubble-Card> Downloading Clooos/Bubble-Card with version v3.0.0-beta.8 failed with (Could not download, see log for details)

@ludeeus
Copy link
Member

ludeeus commented May 26, 2025

No, is most likely due to GitHub breaking today https://www.githubstatus.com/incidents/d0nm3xcdc5jw

@Clooos
Copy link
Author

Clooos commented May 26, 2025

Oh ok! Thank you for that quick answer 🙂

Also, when can we expect a new HACS update with that fix?

@ludeeus
Copy link
Member

ludeeus commented May 26, 2025

At least not in the next 2 weeks.

@MarqBarq
Copy link

So what’s the fix, because I went and got BC Beta 9, and I’m back to 2.4.0.

@dragonlee429
Copy link

3.0.0 b7 -> b8 was OK for me, but when I went to b9 it broke. Going back to b7 or b8 from b9 fix this issue instantly. It also happens beta to beta upgrade as well.

@hacs hacs locked and limited conversation to collaborators May 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue:backend For issues with the backend/integration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants