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

non-helpful error codes during GCP snapshot scan #1627

Closed
czunker opened this issue Sep 4, 2023 · 3 comments
Closed

non-helpful error codes during GCP snapshot scan #1627

czunker opened this issue Sep 4, 2023 · 3 comments
Assignees

Comments

@czunker
Copy link
Contributor

czunker commented Sep 4, 2023

Describe the bug
While scanning a GCP snapshot, I got these error messages:

FTL failed to run query error="operation failed: [0xc000928200]"
x could not complete snapshot disk creation error="operation failed: [0xc000bfe200]" disk=
FTL failed to run query error="could not create disk from snapshot: operation failed: [0xc000bfe200]"

These error codes didn't help me to solve the problem.

The first error code had a corresponding message in the logs:
Screenshot from 2023-09-01 13-03-04

For the second error code, I couldn't find anything in the VM logs, but only in debug:
Screenshot from 2023-09-01 14-22-01

To Reproduce
Steps to reproduce the behavior:

  1. Run cnquery and attach the snapshot disk with the name cnspec
  2. Run a snapshot scan on the VM
  3. Note the error

Expected behavior
I'd like to see a helpful error message in cnquery

Desktop (please complete the following information):

  • GCP VM: debian 11
  • cnquery latest main
@czunker czunker self-assigned this Sep 4, 2023
czunker added a commit that referenced this issue Sep 4, 2023
Fixes #1613
Fixes #1627

Signed-off-by: Christian Zunker <[email protected]>
@czunker
Copy link
Contributor Author

czunker commented Sep 4, 2023

With the linked PR, it now looks like this:

DBG created disk from snapshot disk=https://www.googleapis.com/compute/v1/projects/mondoo-dev-262313/zones/europe-west1-b/disks/cnspec--snapshot-2023-09-04t08-29-59z00-00
DBG operation failed error="{\"errors\":[{\"code\":\"INVALID_USAGE\",\"message\":\"Device name is not unique: cnspec\"}]}"
FTL failed to run query error="attach disk failed: Device name is not unique: cnspec"

czunker added a commit that referenced this issue Sep 4, 2023
Fixes #1613
Fixes #1627

Signed-off-by: Christian Zunker <[email protected]>
czunker added a commit that referenced this issue Sep 4, 2023
Fixes #1613
Fixes #1627

Signed-off-by: Christian Zunker <[email protected]>
czunker added a commit that referenced this issue Sep 5, 2023
Fixes #1613
Fixes #1627

Signed-off-by: Christian Zunker <[email protected]>
czunker added a commit that referenced this issue Sep 6, 2023
Fixes #1613
Fixes #1627

Signed-off-by: Christian Zunker <[email protected]>
czunker added a commit that referenced this issue Sep 8, 2023
Fixes #1613
Fixes #1627

Signed-off-by: Christian Zunker <[email protected]>
czunker added a commit that referenced this issue Sep 8, 2023
Fixes #1613
Fixes #1627

Signed-off-by: Christian Zunker <[email protected]>
czunker added a commit that referenced this issue Sep 8, 2023
Fixes #1613
Fixes #1627

Signed-off-by: Christian Zunker <[email protected]>
czunker added a commit that referenced this issue Sep 8, 2023
Fixes #1613
Fixes #1627

Signed-off-by: Christian Zunker <[email protected]>
czunker added a commit that referenced this issue Sep 11, 2023
Fixes #1613
Fixes #1627

Signed-off-by: Christian Zunker <[email protected]>
@czunker
Copy link
Contributor Author

czunker commented Sep 18, 2023

Duplicate of #1582

@czunker czunker marked this as a duplicate of #1582 Sep 18, 2023
@czunker
Copy link
Contributor Author

czunker commented Sep 18, 2023

Fixed with #1616

@czunker czunker closed this as completed Sep 18, 2023
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