jcwillox / hass-auto-backup

🗃️ Improved Backup Service for Home Assistant that can Automatically Remove Backups and Supports Generational Backup Schemes.
https://jcwillox.github.io/hass-auto-backup
MIT License
368 stars 27 forks source link

Error "Config flow could not be loaded" at intall #40

Closed AdrienBigot closed 3 years ago

AdrienBigot commented 3 years ago

Hi,

When I try to install your integration I have the error "Config flow could not be loaded" . Home Assistant OS 6.2 ; Version : core-2021.8.8

I've also setup correctly my internal and external access URL because I've seen that it could be the reason of this error.

Thank you .

Regards,

Adrien

jcwillox commented 3 years ago

Hmm from my quick research on that error it seems like its probably an issue occuring outside of Auto Backup. I'll have a proper look later. For now I'd recommend, reinstalling the integration, restarting Home Assistant, and also checking if there are any errors in your log that might be related to that issue.

picotrain77 commented 3 years ago

Same issue here when trying to install via "MY - Add integration" Noted my core and hacs had some updates available so have just updated everything in HA and still have the same issue!

When trying to install via HACS i get the following error: You are running Home Assistant version '2021.8.8', but this repository requires minimum version '2021.9.0b0' to be installed.

The error is because the install is trying to install version 0.9.1 and that has requirement of HA 2021.9 so wont install and causes the errors above.

If I try to install custom repo (version 0.9.0 or 0.8.0) via HACS it also wont install and errors with: Repository 'jcwillox/hass-auto-backup' exists in the store

So it seems at present until HA 2021.9 is installed the above cannot be install at all ?

AdrienBigot commented 3 years ago

Hi,

I've tried again today after restarting HA and when I click on the badge ( https://my.home-assistant.io/redirect/config_flow_start/?domain=auto_backup ) same error. Bellow logs I collected , maybe it will help .

Logger: homeassistant.components.websocket_api.http.connection
Source: loader.py:561
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 11:02:03 AM (2 occurrences)
Last logged: 11:02:03 AM

[139727277101456] Error handling message: Unknown error
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 25, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/frontend/__init__.py", line 693, in websocket_get_translations
    resources = await async_get_translations(
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 311, in async_get_translations
    cached = await cache.async_fetch(language, category, components)
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 221, in async_fetch
    await self._async_load(language, components_to_load)
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 236, in _async_load
    for translation_strings in await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 156, in async_get_component_strings
    await gather_with_concurrency(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 170, in gather_with_concurrency
    return await gather(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 168, in sem_task
    return await task
  File "/usr/src/homeassistant/homeassistant/loader.py", line 536, in async_get_integration
    integration = await _async_get_integration(hass, domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 561, in _async_get_integration
    raise IntegrationNotFound(domain)
homeassistant.loader.IntegrationNotFound: Integration 'auto_backup' not found.
Logger: homeassistant.config_entries
Source: config_entries.py:689
First occurred: 11:02:03 AM (1 occurrences)
Last logged: 11:02:03 AM

Cannot find integration auto_backup
picotrain77 commented 3 years ago

Hi,

I've tried again today after restarting HA and when I click on the badge ( https://my.home-assistant.io/redirect/config_flow_start/?domain=auto_backup ) same error. Bellow logs I collected , maybe it will help .

Logger: homeassistant.components.websocket_api.http.connection
Source: loader.py:561
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 11:02:03 AM (2 occurrences)
Last logged: 11:02:03 AM

[139727277101456] Error handling message: Unknown error
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 25, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/frontend/__init__.py", line 693, in websocket_get_translations
    resources = await async_get_translations(
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 311, in async_get_translations
    cached = await cache.async_fetch(language, category, components)
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 221, in async_fetch
    await self._async_load(language, components_to_load)
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 236, in _async_load
    for translation_strings in await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/helpers/translation.py", line 156, in async_get_component_strings
    await gather_with_concurrency(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 170, in gather_with_concurrency
    return await gather(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 168, in sem_task
    return await task
  File "/usr/src/homeassistant/homeassistant/loader.py", line 536, in async_get_integration
    integration = await _async_get_integration(hass, domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 561, in _async_get_integration
    raise IntegrationNotFound(domain)
homeassistant.loader.IntegrationNotFound: Integration 'auto_backup' not found.
Logger: homeassistant.config_entries
Source: config_entries.py:689
First occurred: 11:02:03 AM (1 occurrences)
Last logged: 11:02:03 AM

Cannot find integration auto_backup

I think the best bet is to wait for HA 2021.9 based on my above comment

jcwillox commented 3 years ago

Auto Backup should be fully working in HA 2021.8.8, the latest release 0.9.1 which is really a beta release at the moment, is only for 2021.9 and higher and you won't be able to install that on older versions, but you should be able to select version 0.8.0 when you go to install it, which will work versions before 2021.9.

HACS won't let you add it as a custom repo as it already exists in the store, but you shouldn't need to, just make sure you have version 0.8.0 installed and it should hopefully work. HACS will give the option to select the version when installing.

picotrain77 commented 3 years ago

Thanks although I didn't see the option to install older version (probably me to be honest) I love the look of this and as the 2021.9 is only a matter or a few days away I will wait for that and then set this up. Thanks again 👍🏻

jcwillox commented 3 years ago

Ok wow, you're right, I just tried it and you actually cant install it even if you try and select an older version that is compatible. That's very unfortunate and not what I expected at all, I might file a bug report for this.

So for anyone who wants to install Auto Backup on versions <2021.9, currently the only way to do it is to manually download auto_backup.zip from release 0.8.0, and then extract the contents to custom_components/auto_backup. If you later upgrade to 2021.9 you can just install or reinstall Auto Backup through HACS to upgrade to the newer version.

AdrienBigot commented 3 years ago

Hi,

Even with the latest HomeAssitant version, I'm still not able to install you add-on. I've got the same errorthan I described in my first post.

Adrien

jcwillox commented 3 years ago

I just tested this and I was definitely able to download and install the integration, so I'm not sure what's happening. I'd recommend you try and fully reinstall Auto Backup:

Hopefully that'll get it working otherwise it may be an issue external to Auto Backup such as this https://community.home-assistant.io/t/hacs-installing-problem-via-integration-error-config-flow-could-not-be-loaded/314501

AdrienBigot commented 3 years ago

Hi,

I already have the latest 0.9.2 revision and restarted many times my HA :) I can't uninstall it because I never manage to intall it :-D When I go in Configuration -> Integrations -> Add Integration menu your integration never appears in the list. It's the reason why I used the Badge link to install it . I'll try to install it directly uncompresssing custom_components/auto_backup on the filsystem.

Thanks,

Adrien.

AdrienBigot commented 3 years ago

It's OK for , me , I've just manage to install it throught HACS. I close this issue.

Thank you for your time and help.

Adrien.