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

Download Script Inconstancy #477

Open
benr opened this issue Sep 24, 2024 · 1 comment
Open

Download Script Inconstancy #477

benr opened this issue Sep 24, 2024 · 1 comment
Assignees

Comments

@benr
Copy link
Member

benr commented Sep 24, 2024

Describe the bug
The following Github action (https://github.com/mondoohq/installer/actions/runs/11004404283/job/30555253799) intermittently fails. The download script should install cnspec using Ubuntu APT, but from time to time it will instead install cnspec using the TGZ. The job doesn't expect the path to differ and fails.

The detected installation type should not be changing.

To Reproduce

Install cnquery using the following and wait for it to install via TGZ instead of APT on an Ubuntu conteiner:

  bash -c "$(curl -sSL https://install.mondoo.com/sh/cnspec)"

Expected behavior
On an Ubuntu container it should detect it properly and use Apt.

Additional context

According to the job setup it is an Ubuntu 22.04.5 container but it is entirely possible that the container version is changing from run to run causing the problem, but this seems unlikely.

Screenshot 2024-09-23 at 5 54 21 PM
philipbalinov added a commit that referenced this issue Sep 26, 2024
There is an intermittent issue where the installer will not detect
deb-based distros properly, attempting to understand when this happens

Signed-off-by: Philip Balinov <[email protected]>
philipbalinov added a commit that referenced this issue Sep 26, 2024
)

There is an intermittent issue where the installer will not detect
deb-based distros properly, attempting to understand when this happens

Signed-off-by: Philip Balinov <[email protected]>
@benr
Copy link
Member Author

benr commented Sep 27, 2024

The problem is that usually install.mondoo.com is returning the proper install script, however from time to time it's getting the download.sh script instead. Most requests are answered by the Google CDN and we don't see logs.

I've deployed release v1.5.0 of https://github.com/mondoohq/minstaller which now includes cache expiration support.

@benr benr self-assigned this Sep 27, 2024
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