@pcarranzav docker file template is exactly same as in this file.
Is new Datastore() supposed to create the /data/DB folder if it doesn’t exist? Or are you creating it somewhere else?
I am not sure whether it is created this folder or not, but when I am running it is running OK, seems like it is creating folder automatically, when it dooesn’t exist. I am using same folder for creating database. My issue is it is Run Ok when there is no update or patch been pushed, when I pushed any patch, All data is removed from device.
How exactly are you pushing the update (git push? balena deploy?), and how are you checking that the data is not there after the update?
pushing update by git push . As i say earlier that, when I pushed any patch my application doesn’t find any DB on that path which I have set, once I created DB again, It is working every time, until any patch is been pushed.