cli icon indicating copy to clipboard operation
cli copied to clipboard

Unable to store data in Dgraph

Open JohnDevel opened this issue 2 years ago • 3 comments

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:

  1. cg init
  2. cg launch
  3. CG_DEBUG=5 cg scan aws
  4. and error

Please include the cg-debug.log file if applicable 123

Please solve this problem. Please able to store the data inDgraph.

JohnDevel avatar Oct 19 '23 05:10 JohnDevel

Please solve this problem!!!

JohnDevel avatar Oct 23 '23 09:10 JohnDevel

@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 scan Screenshot from 2023-11-02 21-52-44 As 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. Screenshot from 2023-11-02 21-58-33

I hope it would be very helpful to you.

I will Keep tracing on this bug.

Sincerely, Thank you.

novad03 avatar Nov 02 '23 20:11 novad03

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

tyler-dunkel avatar Nov 08 '23 17:11 tyler-dunkel