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

can't install new version of cnspec #303

Closed
misterpantz opened this issue Apr 27, 2023 · 1 comment
Closed

can't install new version of cnspec #303

misterpantz opened this issue Apr 27, 2023 · 1 comment

Comments

@misterpantz
Copy link
Contributor

Describe the bug
I used Homebrew to uninstall cnspec from my mac. Homebrew now says it's gone. But it's not gone! I still have cnspec v8.6 on my machine.

So... then I ran bash -c "$(curl -sSL https://install.mondoo.com/sh)" and got this message:

* mondoo package for cnquery and cnspec is already installed. Updating Mondoo...

* Upgrade mondoo package for cnquery and cnspec via 'brew upgrade'
Error: mondoohq/mondoo/mondoo not installed
The mondoo package for cnquery and cnspec install script encountered a problem. For assistance, please join our community on GitHub Discussions.

And I still have version 8.6. I can't upgrade to 8.7.

To Reproduce

  1. With cnspec 8.6 installed, run brew uninstall cnspec.
  2. Run bash -c "$(curl -sSL https://install.mondoo.com/sh)".
  3. Run cnspec version.

Expected behavior
I expected brew uninstall cnspec to remove cnspec from my machine.
Given that cnspec v8.6 is still on my machine, I expected the package installer to upgrade to 8.7.

Screenshots or CLI Output

➜  ~ brew list
==> Formulae
autoconf	c-ares		gh		libnghttp2	mpdecimal	prettier	xz
automake	ca-certificates	git		libuv		node		[email protected]	yarn
azure-cli	gdbm		icu4c		m4		[email protected]	readline
brotli		gettext		kubernetes-cli	minikube	pcre2		sqlite

==> Casks
docker
➜  ~ bash -c "$(curl -sSL https://install.mondoo.com/sh)"
mondoo package for cnquery and cnspec Installer

                        .-.
                        : :
,-.,-.,-. .--. ,-.,-. .-' : .--.  .--. ™
: ,. ,. :' .; :: ,. :' .; :' .; :' .; :
:_;:_;:_;`.__.':_;:_;`.__.'`.__.'`.__.


Welcome to the mondoo package for cnquery and cnspec installer. We
will auto-detect your operating system to determine the best installation
method. If you experience any issues, please reach us at:

  * Mondoo Community GitHub Discussions:
    https://github.com/orgs/mondoohq/discussions

This installer is licensed under the Apache License, Version 2.0

  * GitHub:
  https://github.com/mondoohq/installer


* mondoo package for cnquery and cnspec is already installed. Updating Mondoo...

* Upgrade mondoo package for cnquery and cnspec via 'brew upgrade'
Error: mondoohq/mondoo/mondoo not installed
The mondoo package for cnquery and cnspec install script encountered a problem. For assistance, please join our community on GitHub Discussions.

* Mondoo Community GitHub Discussions https://github.com/orgs/mondoohq/discussions

* GitHub: https://github.com/mondoohq/installer

➜  ~ cnspec version
cnspec 8.6.0 (d8cf5a8, 2023-04-18T17:26:39Z)
➜  ~ which cnspec
/usr/local/bin/cnspec
➜  ~ which mondoo
/usr/local/bin/mondoo
➜  ~ cnspec scan local
→ no Mondoo configuration file provided. using defaults
→ discover related assets for 1 asset(s)
→ resolved assets resolved-assets=1

 Letha-Dunn.home ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% score: B


Asset: Letha-Dunn.home
----------------------

Controls:
! Error: Disable Remote Apple Events
✓ Pass:  Disable Bonjour advertising service
✓ Pass:  Enable FileVault
✓ Pass:  Disable Media Sharing
✕ Fail:  Enable security auditing
✓ Pass:  Disable DVD or CD Sharing
! Error: Ensure security auditing retention
✓ Pass:  Enable Firewall
✓ Pass:  Disable Content Caching
✓ Pass:  Ensure NFS server is not running
✓ Pass:  Retain install.log for 365 or more days with no maximum size
✓ Pass:  Disable Remote Management
✕ Fail:  Ensure AirDrop Is Disabled
✓ Pass:  Disable Screen Sharing
✓ Pass:  Ensure automatic checking of software updates enabled
✓ Pass:  Disable File Sharing
✓ Pass:  Disable Internet Sharing
✓ Pass:  Ensure automatic download of software updates enabled
! Error: Reduce the sudo timeout period
✓ Pass:  Password History
✓ Pass:  Disable Printer Sharing
✓ Pass:  Enable Gatekeeper
✓ Pass:  Ensure http server is not running
✓ Pass:  Disable Bluetooth Sharing
✕ Fail:  Enable Firewall Stealth Mode
✕ Fail:  Set a minimum password length
✓ Pass:  Control access to audit records
✕ Fail:  Ensure Firewall is configured to log
✓ Pass:  Do not enable the "root" account
✓ Pass:  Enable "Show Wi-Fi status in menu bar"
✓ Pass:  Ensure critical updates are installed automatically
! Error: Disable Remote Login
✕ Fail:  Password Age


Scanned 1 assets

macOS
    B Letha-Dunn.home

For detailed output, run this scan with "-o full".

➜  ~ brew update --auto-update
➜  ~ brew list
==> Formulae
autoconf	c-ares		gh		libnghttp2	mpdecimal	prettier	xz
automake	ca-certificates	git		libuv		node		[email protected]	yarn
azure-cli	gdbm		icu4c		m4		[email protected]	readline
brotli		gettext		kubernetes-cli	minikube	pcre2		sqlite

==> Casks
docker
➜  ~ bash -c "$(curl -sSL https://install.mondoo.com/sh)"
mondoo package for cnquery and cnspec Installer

                        .-.
                        : :
,-.,-.,-. .--. ,-.,-. .-' : .--.  .--. ™
: ,. ,. :' .; :: ,. :' .; :' .; :' .; :
:_;:_;:_;`.__.':_;:_;`.__.'`.__.'`.__.


Welcome to the mondoo package for cnquery and cnspec installer. We
will auto-detect your operating system to determine the best installation
method. If you experience any issues, please reach us at:

  * Mondoo Community GitHub Discussions:
    https://github.com/orgs/mondoohq/discussions

This installer is licensed under the Apache License, Version 2.0

  * GitHub:
  https://github.com/mondoohq/installer


* mondoo package for cnquery and cnspec is already installed. Updating Mondoo...

* Upgrade mondoo package for cnquery and cnspec via 'brew upgrade'
Error: mondoohq/mondoo/mondoo not installed
The mondoo package for cnquery and cnspec install script encountered a problem. For assistance, please join our community on GitHub Discussions.

* Mondoo Community GitHub Discussions https://github.com/orgs/mondoohq/discussions

* GitHub: https://github.com/mondoohq/installer

Desktop (please complete the following information):

  • OS: Vetura
  • OS Version: 13.3
  • Browser if applicable: NA
  • Browser Version: NA

Additional context

@misterpantz
Copy link
Contributor Author

So... I still get the same error when I upgrade. But I do successfully upgrade. So that's the status on this forgotten issue. :)

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

2 participants