Skip to content

Latest commit

 

History

History
74 lines (65 loc) · 3.16 KB

ricgraph_known_bugs.md

File metadata and controls

74 lines (65 loc) · 3.16 KB

Ricgraph known bugs

Error while emptying Ricgraph with Neo4j

While deleting nodes and edges in Ricgraph you might get a Python error, similar to:

Deleting all nodes and edges in Ricgraph...

Transaction failed and will be retried in [number]s (The allocation of an extra [number] MiB 
  would use more than the limit [number] MiB. Currently using [number] MiB. 
  dbms.memory.transaction.total.max threshold reached)

Traceback (most recent call last):
  File "[path]/harvest_to_ricgraph_examples/harvest_pure_to_ricgraph.py", 
    line 729, in <module> rcg.empty_ricgraph()
  File "[path]/ricgraph/ricgraph.py", line [number], in empty_ricgraph
    _graph.execute_query('MATCH (node) DETACH DELETE node', database_=GRAPHDB_NAME)
  […]
  [module].errors.TransientError: [General.MemoryPoolOutOfMemoryError] 
    The allocation of an extra 2.0 MiB would use more than the limit 716.8 MiB. Currently 
    using 715.0 MiB. dbms.memory.transaction.total.max threshold reached.

This is caused by the free-to-use version of Neo4j, which does not have a statement similar to DROP [database]. If you empty the graph database, it needs to delete every node and edge and this fails when there are a lot of nodes and edges. This happens when you use Neo4j Desktop, and might happen sometimes when you are using Neo4j Community Edition.

Solution for Neo4j Desktop

You can do the following for Neo4j Desktop and Ricgraph:

  1. Start Neo4j Desktop if it is not running yet.
  2. Move your mouse to "Project" in the left column. A red trash can icon appears. Click it to remove the database. Confirm.
  3. The text "No projects found" will appear. Create a project by clicking the button "+ New Project".
  4. The text "Project" appears with the text "Add a DBMS to get started". Click on the "+ Add" button next to it and select "Local DBMS". Leave the name as it is ("Graph DBMS") and fill in a password. Choose an easy to type and short one since the DBMS will only be accessible from your own machine. Click "Create". Also, insert the password in field graphdb_password in the Ricgraph initialization file.
  5. Ready.

Solution for Neo4j Community Edition

You can do the following for Neo4j Community Edition and Ricgraph:

  1. Login as user root.
  2. Stop Neo4j Community Edition:
    systemctl stop neo4j.service
    
  3. Save the old database:
    cd /var/lib/neo4j
    mv data/ data-old
    
  4. Start Neo4j Community Edition:
    systemctl start neo4j.service
    
    Check the log for any errors, use one of:
    systemctl -l status neo4j.service
    journalctl -u neo4j.service
    
  5. In your web browser, go to http://localhost:7474/browser.
  6. Neo4j will ask you to login, use username neo4j and password neo4j.
  7. Neo4j will ask you to change your password, for the new password, enter the password you have specified in the Ricgraph initialization file (this saves you from entering a new password in that file).
  8. Exit from user root.