Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
02-14-2022 09:56 PM
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.
Solved! Go to Solution.
02-15-2022 05:21 AM
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.
02-15-2022 05:21 AM
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.
02-16-2022 11:41 PM
Thank you @glilienfield
After adding the volume as data-0:/var/lib/neo4j/data, the data started retaining properly.
02-16-2022 07:35 PM
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
All the sessions of the conference are now available online