What I want to do
I have installed Dgraph as a systemctl service for which i have used the following setup :
What I did
I have enabled chkconfig ON for this service as well so that if server restarts, this service should also restart . The service is not restarting and giving the following error :
Error Logs :
> *worker.Config: {PostingDir:/$$/dgraph/p BadgerTables:mmap BadgerVlog:mmap BadgerKeyFile: WALDIR:/$$/dgraph/w MutationMode:0}*
> *mkdir /**/dgraph: permission denied*
>
> *Error while creating WAL dir*
My Queries :
- Is this simply permission issue which i can handle ?
- On restart, why does dgraph need to create the directories again if they are already there , this comes at the risk of losing the current data ?