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

solbuild init fails if /var/lib/solbuild/images/$repo-x86_64.img.xz out of date #23

Closed
TraceyC77 opened this issue Apr 30, 2023 · 1 comment

Comments

@TraceyC77
Copy link

Recently I ran into an issue where running solbuild init failed. This was after the outage.
The error was that it failed to decompress the downloaded file.
The file that was downloaded was a 404 page in html rather than the tarball because the file /var/lib/solbuild/images/unstable-x86_64.img.xz pointed to a resource that was no longer available

The manual workaround was to delete /var/lib/solbuild/images/unstable-x86_64.img.xz and run the command again

Proposed solution: Add logic to solbuild init that if it gets an error trying to uncompress the repo archive, that it offers the user an action to fix (delete the bad tarball).

Logic flow:

When running solbuild init
If an error is encountered when trying to decompress the downloaded repo archive file
Check /var/lib/solbuild/images for a pre-existing file like unstable-x86_64.img.xz
Check if that file is valid. If not:
Offer user to delete that file,

If user chooses no, exit with warning that things may still be bork
If yes, delete that file. Rerun solbuild init, check for success.

@TraceyC77 TraceyC77 changed the title solbuild ini fails if /var/lib/solbuild/images/$repo-x86_64.img.xz out of date solbuild init fails if /var/lib/solbuild/images/$repo-x86_64.img.xz out of date Apr 30, 2023
@TraceyC77
Copy link
Author

Wrong tracker. Filed at getsolus/solbuild#29

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

1 participant