lyft / cartography

Cartography is a Python tool that consolidates infrastructure assets and the relationships between them in an intuitive graph view powered by a Neo4j database.
https://lyft.github.io/cartography/
Apache License 2.0
2.95k stars 329 forks source link

ERROR:cartography.sync:Unhandled exception during sync stage 'create-indexes' #1194

Open filipi86 opened 1 year ago

filipi86 commented 1 year ago

Problem to solve

Title: ERROR:cartography.sync:Unhandled exception during sync stage 'create-indexes'

Description: I was using my Cartography, and after deleting my old DB and updating the machine, my Cartography didn't work more.

Screenshots:

image

Please complete the following information::

  • cartography: 0.81.0
  • Python version: python3.11
  • Linux research 6.1.0-kali9-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.27-1kali1 (2023-05-12) x86_64 GNU/Linux
ramonpetgrave64 commented 1 year ago

Are you sure you're running Neo4j 4.4 and not 3.x or 5.x?

achantavy commented 1 year ago

Hi @filipi86 - please make sure you are using Neo4j 4.4. I think that that message only happens on old versions of Neo4j.

filipi86 commented 7 months ago

Hi guys @achantavy and @ramonpetgrave64 I solve the problem with the Version!.

But, Now I have another issue.

image image image

Any feedbacks or ideas?

heryxpc commented 7 months ago

Hi @filipi86 the problem seems to be on these lines of code: https://github.com/lyft/cartography/blob/0e06029cd8f1032c360ddcb01e10f444072eff4e/cartography/intel/aws/ec2/images.py#L24C6-L33

Can you run each query separately from the above (without using the OPTIONAL) and share what information it returns?