-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Running gcpviz errors #1238
Comments
Do other queries work? |
Hi, I got the same error, the other queries won't help either, they all result in the same errors. I wonder if there is any updates on this. |
Steps to reproduce the errors: Update the docker file to avoid failure when building
mkdir cai
cp resource_inventory.json cai/resource_inventory.json
docker run --rm -v $PWD/cai:/gcpviz/cai gcpviz gcpviz.sh network --query-file queries/everything.js What I got is: WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
██████ ██████ ██████ ██ ██ ██ ███████
██ ██ ██ ██ ██ ██ ██ ███
██ ███ ██ ██████ ██ ██ ██ ███
██ ██ ██ ██ ██ ██ ██ ███
██████ ██████ ██ ████ ██ ███████
Reading assets: 1348101/1348101 bytes processed.
Creating reference aliases for assets...
Creating references between assets...
Processing resource IP addresses...
Integrating subassets as part of main assets...
Total vertexes: 1173, total edges: 1299, total aliases: 16, total IPs: 0
██████ ██████ ██████ ██ ██ ██ ███████
██ ██ ██ ██ ██ ██ ██ ███
██ ███ ██ ██████ ██ ██ ██ ███
██ ██ ██ ██ ██ ██ ██ ███
██████ ██████ ██ ████ ██ ███████
2024/07/15 07:18:20 Failed to create graph: SyntaxError: (anonymous): Line 32:16 Unexpected token ILLEGAL (and 2 more errors)
I have tried all the files under queries/ All of them failed with this error, except @rosmo Do you have any suggestions? Thanks |
@rosmo I can create GCP support ticket if needed. Can you suggest how can I reach out with a GCP support ticket? |
@yiqingzhang if you do, please post the number here, and I'll put it on our GCP TAMs radar to push internally. |
@yiqingzhang @rosmo, is the Docker build error a platform problem? As I read the errors, it appears you are building on M1 / arm arch. I'm speculating that one of the dependencies is not compatible. However, to test my hypothesis, I spun up the GCE Debian instance and ran the original and then again with @yiqingzhang Dockerfile, and both failed to build. |
For anyone else it might be worth reviewing the older issue #573 as that seems to be the same issue. You have to export the organisation not a single project. |
Looks like the build process was broken due to things being updated, I create a PR with fixes. |
@codeangler The Docker build ought to be fixed now. However, you can always install the tool using |
Im trying to run gcpviz on my environment. ive setup everything needed.
now when i created the json, im trying to create a graph:
VirtualBox:~$ ~/go/bin/gcpviz -query-file /home/ubuntu/professional-services/tools/gcpviz/queries/network-basic.js -mode visualize -relations-file /home/ubuntu/professional-services/tools/gcpviz/relations.yaml -labels-file /home/ubuntu/professional-services/tools/gcpviz/labels.yaml -style-file /home/ubuntu/professional-services/tools/gcpviz/style.yaml
I get the following error:
██████ ██████ ██████ ██ ██ ██ ███████
██ ██ ██ ██ ██ ██ ██ ███
██ ███ ██ ██████ ██ ██ ██ ███
██ ██ ██ ██ ██ ██ ██ ███
██████ ██████ ██ ████ ██ ███████
2024/03/26 17:00:58 Failed to create graph: SyntaxError: (anonymous): Line 116:16 Unexpected token ILLEGAL (and 2 more errors)
The text was updated successfully, but these errors were encountered: