cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! Site migration is underway. Phase 2: migrate recent content

Neo4j database is not retaining the data

I have neo4j database started up as a process inside a container using an Entry point as "bin/neo4j console".
I see that, the data thats stored in the previous iteration is not stored after restart.
I see the process as below in the container.
" /jdk/bin/java -cp /var/lib/neo4j/plugins:/var/lib/neo4j/conf:/var/lib/neo4j/lib/:/var/lib/neo4j/plugins/ -XX:+UseG1GC -XX:-OmitStackTraceInFastThrow -XX:+AlwaysPreTouch -XX:+UnlockExperim"

Is there anything I am missing or doing wrongly?
Why is the database not retaining the data.

1 ACCEPTED SOLUTION

glilienfield
Ninja
Ninja

Are you referring to a docker container? If so, you need to use a volume to persist the data between restarts. I found this documentation helpful.

View solution in original post

3 REPLIES 3

glilienfield
Ninja
Ninja

Are you referring to a docker container? If so, you need to use a volume to persist the data between restarts. I found this documentation helpful.

Thank you @glilienfield
After adding the volume as data-0:/var/lib/neo4j/data, the data started retaining properly.

sameer_gijare14
Graph Buddy

Hi

Can you please inspect the logs more carefully and paste the stack trace.
Please check memory configuration to see if it is apt.

Many thanks
Mr Sameer G