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 #29

Open
TraceyC77 opened this issue Apr 30, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@TraceyC77
Copy link
Contributor

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.

@ermo ermo added this to the 1.6.x milestone Feb 27, 2024
@ermo ermo added bug Something isn't working enhancement New feature or request and removed enhancement New feature or request labels Feb 27, 2024
@silkeh silkeh modified the milestones: 1.6.1, 1.6.2 Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

3 participants