Unable to store data in Dgraph
Thank you for filling out a bug report, we really appreciate any help in improving the CloudGraph CLI and providers!
Describe the bug
In the process of executing CG_DEBUG=5 cg scan aws, there is some error messages such as "unable to store data in Dgraph". These are from "alb, apiGatewayRestAPI, cloudwatchEventRule, kinesisFirehose, s3, securityHubStandardSubscription, vpc" services.
I check "Your data for aws has been saved to /root/.local/share/cloudgraph/cg/version-9" messages, for example in "kinesisFirehose" service there is 2 resources in "cg/version-9/aws_1697656492879", but unable to store this data in Dgraph. Understand? Help me.
To Reproduce Steps to reproduce the behavior:
- cg init
- cg launch
- CG_DEBUG=5 cg scan aws
- and error
Please include the cg-debug.log file if applicable
Please solve this problem. Please able to store the data inDgraph.
Please solve this problem!!!
@JohnDevel, I got a same problem. At first time, My partner and I thought there would be any mismatched schema name. But It wasn't. Please let me share experiment scenario.
-
as result of
CG_DEBUG=5 cg scanAs you see, getting data is ok.
-
I tried to insert data gathered into dgraph, as defined mutation.
mutation($input: [AddawsVpcInput!]!) { addawsVpc(input: $input, upsert: true) { numUids } }It worked well as shown below snapshot.
I hope it would be very helpful to you.
I will Keep tracing on this bug.
Sincerely, Thank you.
Please check if the steps here help resolve your issue. Unfortunately it is an issue internal to Dgraph that they have not fixed yet. https://github.com/cloudgraphdev/cli/issues/117#issuecomment-1730837069