Skip to content
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

Upgrade during virualenv rebuild fails, then restore fails after Bookworm migration #394

Open
lyynd opened this issue Nov 5, 2024 · 6 comments

Comments

@lyynd
Copy link

lyynd commented Nov 5, 2024

Describe the bug

Symptoms are similar to #360, but errors in logs are different, so I think a separate issue is appropriate.
0030_rebuild_python_venv_in_bookworm thinks that it should handle homeassistant and fails, and then restoring fails as well.

Context

  • Hardware: x86_64 mini PC
  • YunoHost version: 12.0.6
  • I have access to my server: incus shell
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: 2024.10.4~ynh1
  • If upgrading, current package version: 2024.10.4~ynh1

Steps to reproduce

  • Perform migration to bookworm (0027_migrate_to_bookworm).
  • Perform virtualenv migration (0030_rebuild_python_venv_in_bookworm).

Expected behavior

Home Assistant is still installed and works.

Logs

Failed upgrade log: https://paste.yunohost.org/raw/uvezorimix
Failed restore log: https://paste.yunohost.org/raw/iqimuzavuc

@chexxor
Copy link
Contributor

chexxor commented Nov 6, 2024

I also experienced that failed restore:
Exception: Original path for "/home/yunohost.app/homeassistant" not found

However, my HomeAssistant installation is reporting as being not installed, and restore from backup fails.

@ewilly
Copy link
Member

ewilly commented Nov 6, 2024

Reported and mentionned here. Have to check

@lyynd
Copy link
Author

lyynd commented Nov 6, 2024

However, my HomeAssistant installation is reporting as being not installed, and restore from backup fails.

Yes, before restoring the app is deleted, so if restoring fails the app will be missing.

@lyynd
Copy link
Author

lyynd commented Nov 6, 2024

Actually, what I have dove was running yunohost app upgrade --force homeassistant before the migration (since I knew it will be problematic because this was the second attempt to upgrade to bookworm), and this succeeds. Then the migration will say that it could not rebuild homeassistant's virtualenv and suggest upgrading again, and this time upgrading fails.

@chexxor
Copy link
Contributor

chexxor commented Nov 9, 2024

The workaround I did was to simply re-install HomeAssistant from the Yunohost app catalog. It looks like all my settings were found and work correctly in the re-installed instance.

@ewilly
Copy link
Member

ewilly commented Nov 9, 2024

issue reported upstream YunoHost/yunohost#1996

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants