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

Windows scan cannot store data #1968

Open
czunker opened this issue Sep 28, 2023 · 1 comment
Open

Windows scan cannot store data #1968

czunker opened this issue Sep 28, 2023 · 1 comment
Labels
bug Something isn't working windows

Comments

@czunker
Copy link
Contributor

czunker commented Sep 28, 2023

Describe the bug

C:\Users\christian>cnquery.exe scan local --config sa-prod-us-default.json
! CLI pre-processing encountered an issue error="unknown flag: --config"
→ loaded configuration from sa-prod-us-default.json using source --config
→ using service account credentials
→ discover related assets for 1 asset(s)
→ synchronize assets

 cz-v9-test-win-2022 ────────────────────────────────────────────────────────────────────────────────────────    X


! resolver.db> failed to store data, types don't match asset=//assets.api.mondoo.app/spaces/charming-almeida-134558/assets/2W16gzOHNtkVKLhUAkQwT6gyuCC checksum=2ZjrLd8fQDq4XjaXRcd9Gsi8+5+tMEaKAOaMdyxlnANy4IOU5tMtdeRDGuEP8OWLY9Onapb1dNUgiF1hjycZEA== data={"type":"\u0006","value":"AAAAALT4r0A="} expected=dict received=float
Summary (1 assets)
==================

Target:     cz-v9-test-win-2022
error: 1 error occurred:
        * failed to store data for "2ZjrLd8fQDq4XjaXRcd9Gsi8+5+tMEaKAOaMdyxlnANy4IOU5tMtdeRDGuEP8OWLY9Onapb1dNUgiF1hjycZEA==", types don't match: expected dict, got float

Active query packs: "Asset Overview"

To Reproduce
Steps to reproduce the behavior:

  1. Run local scan on Windows 2022 datacenter
  2. Note the error

Expected behavior
Data gets stored.

Desktop (please complete the following information):

  • Windows 2022 Datacenter
  • cnquery v9-beta7
@czunker czunker added bug Something isn't working windows labels Sep 28, 2023
@czunker
Copy link
Contributor Author

czunker commented Sep 28, 2023

Also happens with v8:

C:\Users\christian>cnqueryv8.exe version
cnquery 8.28.3 (cc3ce67d, 2023-09-19T17:33:07Z)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows
Projects
None yet
Development

No branches or pull requests

1 participant