cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

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

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

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.

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