Cannot start dgraph after a reboot

I cannot start dgraph after a reboot. This is the log below, can you help me ?

docker run --rm -it -p 8080:8080 -p 9080:9080 -p 8000:8000 -v ~/dgraph:/dgraph dgraph/standalone

Warning: This standalone version is meant for quickstart purposes only.
         It is NOT RECOMMENDED for production environments.
2020/08/24 07:33:03 Listening on :8000...
[Decoder]: Using assembly version of decoder
[Decoder]: Using assembly version of decoder
[Sentry] 2020/08/24 07:33:03 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 07:33:03 Integration installed: Environment
[Sentry] 2020/08/24 07:33:03 Integration installed: Modules
[Sentry] 2020/08/24 07:33:03 Integration installed: IgnoreErrors
[Sentry] 2020/08/24 07:33:03 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 07:33:03 Integration installed: Environment
[Sentry] 2020/08/24 07:33:03 Integration installed: Modules
[Sentry] 2020/08/24 07:33:03 Integration installed: IgnoreErrors
[Decoder]: Using assembly version of decoder
[Decoder]: Using assembly version of decoder
[Sentry] 2020/08/24 07:33:04 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 07:33:04 Integration installed: Environment
[Sentry] 2020/08/24 07:33:04 Integration installed: Modules
[Sentry] 2020/08/24 07:33:04 Integration installed: IgnoreErrors
[Sentry] 2020/08/24 07:33:04 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 07:33:04 Integration installed: Environment
[Sentry] 2020/08/24 07:33:04 Integration installed: Modules
[Sentry] 2020/08/24 07:33:04 Integration installed: IgnoreErrors
I0824 07:33:04.795950      39 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable_sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0824 07:33:04.797840      40 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable_sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0824 07:33:04.798455      40 util_ee.go:126] KeyReader instantiated of type <nil>
I0824 07:33:05.060688      39 init.go:102]

Dgraph version   : v20.07.0
Dgraph codename  : shuri
Dgraph SHA-256   : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4
Commit SHA-1     : d65e20530
Commit timestamp : 2020-07-28 15:31:37 -0700
Branch           : HEAD
Go version       : go1.14.4

For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph     , visit http://discuss.dgraph.io.
To say hi to the community       , visit https://dgraph.slack.com.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.


I0824 07:33:05.060762      39 run.go:108] Setting up grpc listener at: 0.0.0.0:5080
I0824 07:33:05.061213      39 run.go:108] Setting up http listener at: 0.0.0.0:6080
I0824 07:33:05.060688      40 init.go:102]

Dgraph version   : v20.07.0
Dgraph codename  : shuri
Dgraph SHA-256   : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4
Commit SHA-1     : d65e20530
Commit timestamp : 2020-07-28 15:31:37 -0700
Branch           : HEAD
Go version       : go1.14.4

For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph     , visit http://discuss.dgraph.io.
To say hi to the community       , visit https://dgraph.slack.com.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.


I0824 07:33:05.060707      40 run.go:654] x.Config: {PortOffset:0 QueryEdgeLimit:1000000 NormalizeNodeLimit:10000 PollInterval:1s GraphqlExtension:true}
I0824 07:33:05.060744      40 run.go:655] x.WorkerConfig: {ExportPath:export NumPendingProposals:256 Tracing:0.01 MyAddr: ZeroAddr:[localhost:5080] RaftId:0 WhiteListedIPRanges:[{Lower:0.0.0.0 Upper:255.255.255.255}] MaxRetries:-1 StrictMutations:false AclEnabled:false AbortOlderThan:5m0s SnapshotAfter:10000 ProposedGroupId:0 StartTime:2020-08-24 07:33:04.25180805 +0000 UTC m=+0.012803265 LudicrousMode:false EncryptionKey:**** LogRequest:0}
I0824 07:33:05.060801      40 run.go:656] worker.Config: {PostingDir:p BadgerTables:mmap BadgerVlog:mmap BadgerCompressionLevel:3 WALDir:w MutationsMode:0 AuthToken: AllottedMemory:2566 HmacSecret:**** AccessJwtTtl:0s RefreshJwtTtl:0s AclRefreshInterval:0s}
[Sentry] 2020/08/24 07:33:05 Sending fatal event [5a14b6d4fb6e48b79e1d6d845fd31a0b] to o318308.ingest.sentry.io project: 1805390
[Sentry] 2020/08/24 07:33:05 Sending fatal event [b569501b978f496589f83aaedd1094db] to o318308.ingest.sentry.io project: 1805390
2020/08/24 07:33:05 mkdir w: permission denied
Error while creating WAL dir.
github.com/dgraph-io/dgraph/x.Checkf
	/ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:51
github.com/dgraph-io/dgraph/worker.(*ServerState).initStorage
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:127
github.com/dgraph-io/dgraph/worker.InitServerState
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:54
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:658
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.2.func1
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:95
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:70
main.main
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:78
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1373
2020/08/24 07:33:05 mkdir zw: permission denied
Error while creating WAL dir.
..
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1373

Hi @wwwjljj,

Thanks for your post. As mentioned in the logs,
2020/08/24 07:33:05 mkdir w: permission denied
Error while creating WAL dir.
2020/08/24 07:33:05 mkdir zw: permission denied
Error while creating WAL dir.
the command is not able to create w , d, zw directories. These directories are used by dgraph to store data. I suspect dgraph was run before reboot as root or by different user. Could you check permissions of d, z, zw directories ?

I have changed the right by the command :“chmod 777 -R ~/dgraph” , but there is still a error:

[root@kg ~]# chmod 777 -R dgraph
[root@kg ~]# docker run --rm  -it -p 8080:8080 -p 9080:9080 -p 8000:8000 -v ~/dgraph:/dgraph dgraph/standalone:latest

Warning: This standalone version is meant for quickstart purposes only.
         It is NOT RECOMMENDED for production environments.
2020/08/24 07:27:50 Listening on :8000...
[Decoder]: Using assembly version of decoder
[Decoder]: Using assembly version of decoder
[Sentry] 2020/08/24 07:27:50 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 07:27:50 Integration installed: Environment
[Sentry] 2020/08/24 07:27:50 Integration installed: Modules
[Sentry] 2020/08/24 07:27:50 Integration installed: IgnoreErrors
[Sentry] 2020/08/24 07:27:50 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 07:27:50 Integration installed: Environment
[Sentry] 2020/08/24 07:27:50 Integration installed: Modules
[Sentry] 2020/08/24 07:27:50 Integration installed: IgnoreErrors
[Decoder]: Using assembly version of decoder
[Decoder]: Using assembly version of decoder
[Sentry] 2020/08/24 07:27:51 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 07:27:51 Integration installed: Environment
[Sentry] 2020/08/24 07:27:51 Integration installed: Modules
[Sentry] 2020/08/24 07:27:51 Integration installed: IgnoreErrors
[Sentry] 2020/08/24 07:27:51 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 07:27:51 Integration installed: Environment
[Sentry] 2020/08/24 07:27:51 Integration installed: Modules
[Sentry] 2020/08/24 07:27:51 Integration installed: IgnoreErrors
I0824 07:27:51.390992      44 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable_sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0824 07:27:51.390992      43 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable_sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0824 07:27:51.394141      44 util_ee.go:126] KeyReader instantiated of type <nil>
I0824 07:27:51.659329      44 init.go:102]

Dgraph version   : v20.07.0
Dgraph codename  : shuri
Dgraph SHA-256   : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4
Commit SHA-1     : d65e20530
Commit timestamp : 2020-07-28 15:31:37 -0700
Branch           : HEAD
Go version       : go1.14.4

For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph     , visit http://discuss.dgraph.io.
To say hi to the community       , visit https://dgraph.slack.com.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.


I0824 07:27:51.659350      44 run.go:654] x.Config: {PortOffset:0 QueryEdgeLimit:1000000 NormalizeNodeLimit:10000 PollInterval:1s GraphqlExtension:true}
I0824 07:27:51.659388      44 run.go:655] x.WorkerConfig: {ExportPath:export NumPendingProposals:256 Tracing:0.01 MyAddr: ZeroAddr:[localhost:5080] RaftId:0 WhiteListedIPRanges:[{Lower:0.0.0.0 Upper:255.255.255.255}] MaxRetries:-1 StrictMutations:false AclEnabled:false AbortOlderThan:5m0s SnapshotAfter:10000 ProposedGroupId:0 StartTime:2020-08-24 07:27:50.848332311 +0000 UTC m=+0.010723817 LudicrousMode:false EncryptionKey:**** LogRequest:0}
I0824 07:27:51.659470      44 run.go:656] worker.Config: {PostingDir:p BadgerTables:mmap BadgerVlog:mmap BadgerCompressionLevel:3 WALDir:w MutationsMode:0 AuthToken: AllottedMemory:2566 HmacSecret:**** AccessJwtTtl:0s RefreshJwtTtl:0s AclRefreshInterval:0s}
I0824 07:27:51.659716      44 server_state.go:78] Setting Badger Compression Level: 3
I0824 07:27:51.659724      44 server_state.go:87] Setting Badger table load option: mmap
I0824 07:27:51.659729      44 server_state.go:99] Setting Badger value log load option: mmap
I0824 07:27:51.659736      44 server_state.go:144] Opening write-ahead log BadgerDB with options: {Dir:w ValueDir:w SyncWrites:false TableLoadingMode:1 ValueLogLoadingMode:2 NumVersionsToKeep:1 ReadOnly:false Truncate:true Logger:0x2bcf318 Compression:2 InMemory:false MaxTableSize:67108864 LevelSizeMultiplier:10 MaxLevels:7 ValueThreshold:1048576 NumMemtables:5 BlockSize:4096 BloomFalsePositive:0.01 KeepL0InMemory:false MaxCacheSize:10485760 MaxBfCacheSize:0 LoadBloomsOnOpen:false NumLevelZeroTables:5 NumLevelZeroTablesStall:10 LevelOneSize:268435456 ValueLogFileSize:1073741823 ValueLogMaxEntries:10000 NumCompactors:2 CompactL0OnClose:true LogRotatesToFlush:2 ZSTDCompressionLevel:3 VerifyValueChecksum:false EncryptionKey:[] EncryptionKeyRotationDuration:240h0m0s BypassLockGuard:false ChecksumVerificationMode:0 DetectConflicts:false KeepBlockIndicesInCache:false KeepBlocksInCache:false managedTxns:false maxBatchCount:0 maxBatchSize:0}
I0824 07:27:51.659329      43 init.go:102]

Dgraph version   : v20.07.0
Dgraph codename  : shuri
Dgraph SHA-256   : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4
Commit SHA-1     : d65e20530
Commit timestamp : 2020-07-28 15:31:37 -0700
Branch           : HEAD
Go version       : go1.14.4

For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph     , visit http://discuss.dgraph.io.
To say hi to the community       , visit https://dgraph.slack.com.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.


I0824 07:27:51.659404      43 run.go:108] Setting up grpc listener at: 0.0.0.0:5080
I0824 07:27:51.659826      43 run.go:108] Setting up http listener at: 0.0.0.0:6080
[Sentry] 2020/08/24 07:27:51 Sending fatal event [6c8f53a189804ce7b785d69b40f232aa] to o318308.ingest.sentry.io project: 1805390
2020/08/24 07:27:51 open zw: permission denied
cannot open directory "zw"
github.com/dgraph-io/badger/v2.acquireDirectoryLock
	/go/pkg/mod/github.com/dgraph-io/badger/v2@v2.0.1-rc1.0.20200718033852-37ee16d8ad1c/dir_unix.go:55
github.com/dgraph-io/badger/v2.Open
	/go/pkg/mod/github.com/dgraph-io/badger/v2@v2.0.1-rc1.0.20200718033852-37ee16d8ad1c/db.go:248
github.com/dgraph-io/dgraph/dgraph/cmd/zero.run
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/zero/run.go:237
github.com/dgraph-io/dgraph/dgraph/cmd/zero.init.0.func1
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/zero/run.go:76
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:70
main.main
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:78
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1373
Error while opening WAL store
github.com/dgraph-io/dgraph/x.Checkf
	/ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:51
github.com/dgraph-io/dgraph/dgraph/cmd/zero.run
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/zero/run.go:238
github.com/dgraph-io/dgraph/dgraph/cmd/zero.init.0.func1
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/zero/run.go:76
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:70
main.main
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:78
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1373
[Sentry] 2020/08/24 07:27:51 Sending fatal event [6e71e9e75c9b4c389c75e5639a23afe0] to o318308.ingest.sentry.io project: 1805390
2020/08/24 07:27:51 open w: permission denied
cannot open directory "w"
github.com/dgraph-io/badger/v2.acquireDirectoryLock
	/go/pkg/mod/github.com/dgraph-io/badger/v2@v2.0.1-rc1.0.20200718033852-37ee16d8ad1c/dir_unix.go:55
github.com/dgraph-io/badger/v2.Open
	/go/pkg/mod/github.com/dgraph-io/badger/v2@v2.0.1-rc1.0.20200718033852-37ee16d8ad1c/db.go:248
github.com/dgraph-io/dgraph/worker.(*ServerState).initStorage
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:147
github.com/dgraph-io/dgraph/worker.InitServerState
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:54
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:658
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.2.func1
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:95
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:70
main.main
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:78
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1373
Error while creating badger KV WAL store
github.com/dgraph-io/dgraph/x.Checkf
	/ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:51
github.com/dgraph-io/dgraph/worker.(*ServerState).initStorage
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:148
github.com/dgraph-io/dgraph/worker.InitServerState
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:54
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:658
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.2.func1
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:95
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:70
main.main
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:78
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1373

And just now ,i delete the dgraph directory to reinstall ,But failed again:

[root@kg ~]# rm -rf dgraph
[root@kg ~]# ls
anaconda-ks.cfg  mysql-community-release-el7-5.noarch.rpm  nlp
[root@kg ~]# docker run --rm  -it -p 8080:8080 -p 9080:9080 -p 8000:8000 -v ~/dgraph:/dgraph dgraph/standalone:latest

Warning: This standalone version is meant for quickstart purposes only.
         It is NOT RECOMMENDED for production environments.
2020/08/24 07:28:56 Listening on :8000...
[Decoder]: Using assembly version of decoder
[Decoder]: Using assembly version of decoder
[Sentry] 2020/08/24 07:28:57 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 07:28:57 Integration installed: Environment
[Sentry] 2020/08/24 07:28:57 Integration installed: Modules
[Sentry] 2020/08/24 07:28:57 Integration installed: IgnoreErrors
[Sentry] 2020/08/24 07:28:57 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 07:28:57 Integration installed: Environment
[Sentry] 2020/08/24 07:28:57 Integration installed: Modules
[Sentry] 2020/08/24 07:28:57 Integration installed: IgnoreErrors
[Decoder]: Using assembly version of decoder
[Decoder]: Using assembly version of decoder
[Sentry] 2020/08/24 07:28:57 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 07:28:57 Integration installed: Environment
[Sentry] 2020/08/24 07:28:57 Integration installed: Modules
[Sentry] 2020/08/24 07:28:57 Integration installed: IgnoreErrors
[Sentry] 2020/08/24 07:28:57 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 07:28:57 Integration installed: Environment
[Sentry] 2020/08/24 07:28:57 Integration installed: Modules
[Sentry] 2020/08/24 07:28:57 Integration installed: IgnoreErrors
I0824 07:28:58.083219      37 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable_sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0824 07:28:58.083219      38 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable_sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0824 07:28:58.084117      38 util_ee.go:126] KeyReader instantiated of type <nil>
I0824 07:28:58.348054      37 init.go:102]

Dgraph version   : v20.07.0
Dgraph codename  : shuri
Dgraph SHA-256   : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4
Commit SHA-1     : d65e20530
Commit timestamp : 2020-07-28 15:31:37 -0700
Branch           : HEAD
Go version       : go1.14.4

For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph     , visit http://discuss.dgraph.io.
To say hi to the community       , visit https://dgraph.slack.com.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.


I0824 07:28:58.348055      38 init.go:102]

Dgraph version   : v20.07.0
Dgraph codename  : shuri
Dgraph SHA-256   : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4
Commit SHA-1     : d65e20530
Commit timestamp : 2020-07-28 15:31:37 -0700
Branch           : HEAD
Go version       : go1.14.4

For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph     , visit http://discuss.dgraph.io.
To say hi to the community       , visit https://dgraph.slack.com.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.


I0824 07:28:58.348082      38 run.go:654] x.Config: {PortOffset:0 QueryEdgeLimit:1000000 NormalizeNodeLimit:10000 PollInterval:1s GraphqlExtension:true}
I0824 07:28:58.348112      38 run.go:655] x.WorkerConfig: {ExportPath:export NumPendingProposals:256 Tracing:0.01 MyAddr: ZeroAddr:[localhost:5080] RaftId:0 WhiteListedIPRanges:[{Lower:0.0.0.0 Upper:255.255.255.255}] MaxRetries:-1 StrictMutations:false AclEnabled:false AbortOlderThan:5m0s SnapshotAfter:10000 ProposedGroupId:0 StartTime:2020-08-24 07:28:57.538578288 +0000 UTC m=+0.011510243 LudicrousMode:false EncryptionKey:**** LogRequest:0}
I0824 07:28:58.348177      38 run.go:656] worker.Config: {PostingDir:p BadgerTables:mmap BadgerVlog:mmap BadgerCompressionLevel:3 WALDir:w MutationsMode:0 AuthToken: AllottedMemory:2566 HmacSecret:**** AccessJwtTtl:0s RefreshJwtTtl:0s AclRefreshInterval:0s}
I0824 07:28:58.348135      37 run.go:108] Setting up grpc listener at: 0.0.0.0:5080
I0824 07:28:58.348633      37 run.go:108] Setting up http listener at: 0.0.0.0:6080
[Sentry] 2020/08/24 07:28:58 Sending fatal event [e23de69ef2d64d9fb8b17c2b5eca6613] to o318308.ingest.sentry.io project: 1805390
2020/08/24 07:28:58 mkdir w: permission denied
Error while creating WAL dir.
github.com/dgraph-io/dgraph/x.Checkf
	/ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:51
github.com/dgraph-io/dgraph/worker.(*ServerState).initStorage
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:127
github.com/dgraph-io/dgraph/worker.InitServerState
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:54
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:658
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.2.func1
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:95
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:70
main.main
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:78
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1373
[Sentry] 2020/08/24 07:28:58 Sending fatal event [39ea165b4c604743a6b85c047b2e8ecb] to o318308.ingest.sentry.io project: 1805390
2020/08/24 07:28:58 mkdir zw: permission denied
Error while creating WAL dir.
github.com/dgraph-io/dgraph/x.Checkf
	/ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:51
github.com/dgraph-io/dgraph/dgraph/cmd/zero.run
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/zero/run.go:231
github.com/dgraph-io/dgraph/dgraph/cmd/zero.init.0.func1
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/zero/run.go:76
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:70
main.main
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:78
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1373
[root@kg ~]# docker run --rm  -it -p 8080:8080 -p 9080:9080 -p 8000:8000 -v ~/dgraph:/dgraph dgraph/standalone:latest^Ct@kg ~]# docke[root@kg ~]# docker run --rm -it -p 8080:8080 -p 9080:9080 -p 8000:8000 -v ~/dgraph:/dgraph dgraph/standalone

Warning: This standalone version is meant for quickstart purposes only.
         It is NOT RECOMMENDED for production environments.
2020/08/24 07:33:03 Listening on :8000...
[Decoder]: Using assembly version of decoder
[Decoder]: Using assembly version of decoder
[Sentry] 2020/08/24 07:33:03 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 07:33:03 Integration installed: Environment
[Sentry] 2020/08/24 07:33:03 Integration installed: Modules
[Sentry] 2020/08/24 07:33:03 Integration installed: IgnoreErrors
[Sentry] 2020/08/24 07:33:03 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 07:33:03 Integration installed: Environment
[Sentry] 2020/08/24 07:33:03 Integration installed: Modules
[Sentry] 2020/08/24 07:33:03 Integration installed: IgnoreErrors
[Decoder]: Using assembly version of decoder
[Decoder]: Using assembly version of decoder
[Sentry] 2020/08/24 07:33:04 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 07:33:04 Integration installed: Environment
[Sentry] 2020/08/24 07:33:04 Integration installed: Modules
[Sentry] 2020/08/24 07:33:04 Integration installed: IgnoreErrors
[Sentry] 2020/08/24 07:33:04 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 07:33:04 Integration installed: Environment
[Sentry] 2020/08/24 07:33:04 Integration installed: Modules
[Sentry] 2020/08/24 07:33:04 Integration installed: IgnoreErrors
I0824 07:33:04.795950      39 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable_sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0824 07:33:04.797840      40 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable_sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0824 07:33:04.798455      40 util_ee.go:126] KeyReader instantiated of type <nil>
I0824 07:33:05.060688      39 init.go:102]

Dgraph version   : v20.07.0
Dgraph codename  : shuri
Dgraph SHA-256   : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4
Commit SHA-1     : d65e20530
Commit timestamp : 2020-07-28 15:31:37 -0700
Branch           : HEAD
Go version       : go1.14.4

For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph     , visit http://discuss.dgraph.io.
To say hi to the community       , visit https://dgraph.slack.com.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.


I0824 07:33:05.060762      39 run.go:108] Setting up grpc listener at: 0.0.0.0:5080
I0824 07:33:05.061213      39 run.go:108] Setting up http listener at: 0.0.0.0:6080
I0824 07:33:05.060688      40 init.go:102]

Dgraph version   : v20.07.0
Dgraph codename  : shuri
Dgraph SHA-256   : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4
Commit SHA-1     : d65e20530
Commit timestamp : 2020-07-28 15:31:37 -0700
Branch           : HEAD
Go version       : go1.14.4

For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph     , visit http://discuss.dgraph.io.
To say hi to the community       , visit https://dgraph.slack.com.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.


I0824 07:33:05.060707      40 run.go:654] x.Config: {PortOffset:0 QueryEdgeLimit:1000000 NormalizeNodeLimit:10000 PollInterval:1s GraphqlExtension:true}
I0824 07:33:05.060744      40 run.go:655] x.WorkerConfig: {ExportPath:export NumPendingProposals:256 Tracing:0.01 MyAddr: ZeroAddr:[localhost:5080] RaftId:0 WhiteListedIPRanges:[{Lower:0.0.0.0 Upper:255.255.255.255}] MaxRetries:-1 StrictMutations:false AclEnabled:false AbortOlderThan:5m0s SnapshotAfter:10000 ProposedGroupId:0 StartTime:2020-08-24 07:33:04.25180805 +0000 UTC m=+0.012803265 LudicrousMode:false EncryptionKey:**** LogRequest:0}
I0824 07:33:05.060801      40 run.go:656] worker.Config: {PostingDir:p BadgerTables:mmap BadgerVlog:mmap BadgerCompressionLevel:3 WALDir:w MutationsMode:0 AuthToken: AllottedMemory:2566 HmacSecret:**** AccessJwtTtl:0s RefreshJwtTtl:0s AclRefreshInterval:0s}
[Sentry] 2020/08/24 07:33:05 Sending fatal event [5a14b6d4fb6e48b79e1d6d845fd31a0b] to o318308.ingest.sentry.io project: 1805390
[Sentry] 2020/08/24 07:33:05 Sending fatal event [b569501b978f496589f83aaedd1094db] to o318308.ingest.sentry.io project: 1805390
2020/08/24 07:33:05 mkdir w: permission denied
Error while creating WAL dir.
github.com/dgraph-io/dgraph/x.Checkf
	/ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:51
github.com/dgraph-io/dgraph/worker.(*ServerState).initStorage
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:127
github.com/dgraph-io/dgraph/worker.InitServerState
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:54
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:658
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.2.func1
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:95
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:70
main.main
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:78
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1373
2020/08/24 07:33:05 mkdir zw: permission denied
Error while creating WAL dir.
github.com/dgraph-io/dgraph/x.Checkf
	/ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:51
github.com/dgraph-io/dgraph/dgraph/cmd/zero.run
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/zero/run.go:231
github.com/dgraph-io/dgraph/dgraph/cmd/zero.init.0.func1
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/zero/run.go:76
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:70
main.main
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:78
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1373

can you tell me how to reinstall dgraph with docker ?

Are you running dgraph as a root user ? Are you able to create any other directories using mkdir in /root directory ?

To reinstall dgraph with docker, you will have to delete dgraph images using

docker image rm

and then run

docker run --rm -it -p 8080:8080 -p 9080:9080 -p 8000:8000 -v ~/dgraph:/dgraph dgraph/standalone

command. It will again download dgraph image and run dgraph.

Sorry,it not works with the root user:

[root@kg ~]# docker image ls
REPOSITORY                    TAG                 IMAGE ID            CREATED             SIZE
docker.io/dgraph/standalone   latest              5a3e6bd2129b        3 weeks ago         165 MB
[root@kg ~]# docker rm 5a3e6bd2129b
Error response from daemon: No such container: 5a3e6bd2129b
[root@kg ~]# docker image rm 5a3e6bd2129b
Untagged: docker.io/dgraph/standalone:latest
Untagged: docker.io/dgraph/standalone@sha256:ce6e3ecdcb477efebd6cbe14e2df5c7e7c1fa93d36979cb3bceb05565a429ebe
Deleted: sha256:5a3e6bd2129bce199d4f471deb6553c78b6f745472124d10304a01e1db4d0e63
Deleted: sha256:914121f3bca92cd9a13378eb9f75b463cda373acfeab9e11968ac38f3e043437
Deleted: sha256:8c7da4b04996ab6f02eea9763e8e36e1c8cdf9eca6df7a6d8675e98fa07c24c3
Deleted: sha256:4810e81e11202f2063a2f2edfd8fbbbc8a7dacd69f41cf3aecfe25b5f29696ff
Deleted: sha256:89702c6059155ce2b03a6bf7ace3c4d28fdbf217fa729b543e23bd6c72205fe0
Deleted: sha256:c5735e175e78295be475d51f72e52aa499bce61ceeb409d0b070dfc1dace3440
Deleted: sha256:be38051dda60e749f9d5ed85797298f29189687892a8a6bc53ca03a60559662c
Deleted: sha256:88bebd8434e1404be18216a8570c5d271def87d51cb78e5bb6c5a7c17a64f55e
Deleted: sha256:54a124f068afcdda2f8640596bfab1ffb1589d6dc31214e61824362303dd4112
Deleted: sha256:d22cfd6a8b16689838c570b91794ed18acc752a08a10bce891cc64acc1533b3f
[root@kg ~]# docker run --rm  -it -p 8080:8080 -p 9080:9080 -p 8000:8000 -v ~/dgraph:/dgraph dgraph/standalone:latest
Unable to find image 'dgraph/standalone:latest' locally
Trying to pull repository docker.io/dgraph/standalone ...
latest: Pulling from docker.io/dgraph/standalone
692c352adcf2: Pull complete
97058a342707: Pull complete
2821b8e766f4: Pull complete
4e643cc37772: Pull complete
1c53bf7d9436: Pull complete
e7be5b38aff8: Pull complete
c1324a267774: Pull complete
c929db74b44c: Pull complete
5b92fba44001: Pull complete
Digest: sha256:ce6e3ecdcb477efebd6cbe14e2df5c7e7c1fa93d36979cb3bceb05565a429ebe
Status: Downloaded newer image for docker.io/dgraph/standalone:latest

Warning: This standalone version is meant for quickstart purposes only.
         It is NOT RECOMMENDED for production environments.
2020/08/24 10:41:11 Listening on :8000...
[Decoder]: Using assembly version of decoder
[Decoder]: Using assembly version of decoder
[Sentry] 2020/08/24 10:41:11 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 10:41:11 Integration installed: Environment
[Sentry] 2020/08/24 10:41:11 Integration installed: Modules
[Sentry] 2020/08/24 10:41:11 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 10:41:11 Integration installed: IgnoreErrors
[Sentry] 2020/08/24 10:41:11 Integration installed: Environment
[Sentry] 2020/08/24 10:41:11 Integration installed: Modules
[Sentry] 2020/08/24 10:41:11 Integration installed: IgnoreErrors
[Decoder]: Using assembly version of decoder
[Decoder]: Using assembly version of decoder
[Sentry] 2020/08/24 10:41:12 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 10:41:12 Integration installed: Environment
[Sentry] 2020/08/24 10:41:12 Integration installed: Modules
[Sentry] 2020/08/24 10:41:12 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 10:41:12 Integration installed: IgnoreErrors
[Sentry] 2020/08/24 10:41:12 Integration installed: Environment
[Sentry] 2020/08/24 10:41:12 Integration installed: Modules
[Sentry] 2020/08/24 10:41:12 Integration installed: IgnoreErrors
I0824 10:41:12.484475      37 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable_sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0824 10:41:12.484475      38 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable_sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0824 10:41:12.485798      37 util_ee.go:126] KeyReader instantiated of type <nil>
I0824 10:41:12.749420      38 init.go:102]

Dgraph version   : v20.07.0
Dgraph codename  : shuri
Dgraph SHA-256   : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4
Commit SHA-1     : d65e20530
Commit timestamp : 2020-07-28 15:31:37 -0700
Branch           : HEAD
Go version       : go1.14.4

For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph     , visit http://discuss.dgraph.io.
To say hi to the community       , visit https://dgraph.slack.com.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.


I0824 10:41:12.749513      38 run.go:108] Setting up grpc listener at: 0.0.0.0:5080
I0824 10:41:12.749420      37 init.go:102]

Dgraph version   : v20.07.0
Dgraph codename  : shuri
Dgraph SHA-256   : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4
Commit SHA-1     : d65e20530
Commit timestamp : 2020-07-28 15:31:37 -0700
Branch           : HEAD
Go version       : go1.14.4

For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph     , visit http://discuss.dgraph.io.
To say hi to the community       , visit https://dgraph.slack.com.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.


I0824 10:41:12.749440      37 run.go:654] x.Config: {PortOffset:0 QueryEdgeLimit:1000000 NormalizeNodeLimit:10000 PollInterval:1s GraphqlExtension:true}
I0824 10:41:12.749476      37 run.go:655] x.WorkerConfig: {ExportPath:export NumPendingProposals:256 Tracing:0.01 MyAddr: ZeroAddr:[localhost:5080] RaftId:0 WhiteListedIPRanges:[{Lower:0.0.0.0 Upper:255.255.255.255}] MaxRetries:-1 StrictMutations:false AclEnabled:false AbortOlderThan:5m0s SnapshotAfter:10000 ProposedGroupId:0 StartTime:2020-08-24 10:41:11.940918657 +0000 UTC m=+0.011472419 LudicrousMode:false EncryptionKey:**** LogRequest:0}
I0824 10:41:12.749532      37 run.go:656] worker.Config: {PostingDir:p BadgerTables:mmap BadgerVlog:mmap BadgerCompressionLevel:3 WALDir:w MutationsMode:0 AuthToken: AllottedMemory:2566 HmacSecret:**** AccessJwtTtl:0s RefreshJwtTtl:0s AclRefreshInterval:0s}
I0824 10:41:12.750062      38 run.go:108] Setting up http listener at: 0.0.0.0:6080
[Sentry] 2020/08/24 10:41:12 Sending fatal event [940704ac0f94456ba3a1ed0efde0d8b2] to o318308.ingest.sentry.io project: 1805390
2020/08/24 10:41:12 mkdir zw: permission denied
Error while creating WAL dir.
github.com/dgraph-io/dgraph/x.Checkf
	/ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:51
github.com/dgraph-io/dgraph/dgraph/cmd/zero.run
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/zero/run.go:231
github.com/dgraph-io/dgraph/dgraph/cmd/zero.init.0.func1
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/zero/run.go:76
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:70
main.main
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:78
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1373
[Sentry] 2020/08/24 10:41:12 Sending fatal event [0a725e447ac74532a322f691427d1ec1] to o318308.ingest.sentry.io project: 1805390
2020/08/24 10:41:12 mkdir w: permission denied
Error while creating WAL dir.
github.com/dgraph-io/dgraph/x.Checkf
	/ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:51
github.com/dgraph-io/dgraph/worker.(*ServerState).initStorage
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:127
github.com/dgraph-io/dgraph/worker.InitServerState
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:54
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:658
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.2.func1
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:95
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:70
main.main
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:78
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1373
[root@kg ~]#

And I can create any directory or files in /root:

[root@kg ~]# ls
anaconda-ks.cfg  dgraph  mysql-community-release-el7-5.noarch.rpm  nlp
[root@kg ~]# mkdir test
[root@kg ~]# ls
anaconda-ks.cfg  dgraph  mysql-community-release-el7-5.noarch.rpm  nlp  test
[root@kg ~]#

run command "chmod 777 -R dgraph " in centos system, and try to run docker again. It still failed to run dgrap:


[root@kg ~]# ls -l
total 12
-rwxrwxrwx. 1 root root 1535 Aug 14 11:09 anaconda-ks.cfg
drwxr-xr-x. 2 root root    6 Aug 24 15:28 dgraph
-rwxrwxrwx. 1 root root 6140 Nov 12  2015 mysql-community-release-el7-5.noarch.rpm
drwxrwxrwx. 3 root root   16 Aug 14 16:21 nlp
drwxr-xr-x. 2 root root    6 Aug 24 18:43 test
[root@kg ~]# chmod 777 -R dgraph
[root@kg ~]# ls -l
total 12
-rwxrwxrwx. 1 root root 1535 Aug 14 11:09 anaconda-ks.cfg
drwxrwxrwx. 2 root root    6 Aug 24 15:28 dgraph
-rwxrwxrwx. 1 root root 6140 Nov 12  2015 mysql-community-release-el7-5.noarch.rpm
drwxrwxrwx. 3 root root   16 Aug 14 16:21 nlp
drwxr-xr-x. 2 root root    6 Aug 24 18:43 test

[root@kg ~]# ls -al dgraph
total 0
drwxrwxrwx. 2 root root   6 Aug 24 15:28 .
dr-xr-x---. 7 root root 282 Aug 24 18:43 ..


[root@kg ~]# docker run --rm  -it -p 8080:8080 -p 9080:9080 -p 8000:8000 -v ~/dgraph:/dgraph dgraph/standalone:latest

Warning: This standalone version is meant for quickstart purposes only.
         It is NOT RECOMMENDED for production environments.
2020/08/24 10:45:07 Listening on :8000...
[Decoder]: Using assembly version of decoder
[Decoder]: Using assembly version of decoder
[Sentry] 2020/08/24 10:45:07 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 10:45:07 Integration installed: Environment
[Sentry] 2020/08/24 10:45:07 Integration installed: Modules
[Sentry] 2020/08/24 10:45:07 Integration installed: IgnoreErrors
[Sentry] 2020/08/24 10:45:07 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 10:45:07 Integration installed: Environment
[Sentry] 2020/08/24 10:45:07 Integration installed: Modules
[Sentry] 2020/08/24 10:45:07 Integration installed: IgnoreErrors
[Decoder]: Using assembly version of decoder
[Decoder]: Using assembly version of decoder
[Sentry] 2020/08/24 10:45:08 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 10:45:08 Integration installed: Environment
[Sentry] 2020/08/24 10:45:08 Integration installed: Modules
[Sentry] 2020/08/24 10:45:08 Integration installed: IgnoreErrors
[Sentry] 2020/08/24 10:45:08 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 10:45:08 Integration installed: Environment
[Sentry] 2020/08/24 10:45:08 Integration installed: Modules
[Sentry] 2020/08/24 10:45:08 Integration installed: IgnoreErrors
I0824 10:45:08.438174      39 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable_sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0824 10:45:08.439735      40 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable_sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0824 10:45:08.440395      40 util_ee.go:126] KeyReader instantiated of type <nil>
I0824 10:45:08.703578      40 init.go:102]

Dgraph version   : v20.07.0
Dgraph codename  : shuri
Dgraph SHA-256   : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4
Commit SHA-1     : d65e20530
Commit timestamp : 2020-07-28 15:31:37 -0700
Branch           : HEAD
Go version       : go1.14.4

For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph     , visit http://discuss.dgraph.io.
To say hi to the community       , visit https://dgraph.slack.com.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.


I0824 10:45:08.703596      40 run.go:654] x.Config: {PortOffset:0 QueryEdgeLimit:1000000 NormalizeNodeLimit:10000 PollInterval:1s GraphqlExtension:true}
I0824 10:45:08.703639      40 run.go:655] x.WorkerConfig: {ExportPath:export NumPendingProposals:256 Tracing:0.01 MyAddr: ZeroAddr:[localhost:5080] RaftId:0 WhiteListedIPRanges:[{Lower:0.0.0.0 Upper:255.255.255.255}] MaxRetries:-1 StrictMutations:false AclEnabled:false AbortOlderThan:5m0s SnapshotAfter:10000 ProposedGroupId:0 StartTime:2020-08-24 10:45:07.894619218 +0000 UTC m=+0.011785366 LudicrousMode:false EncryptionKey:**** LogRequest:0}
I0824 10:45:08.703696      40 run.go:656] worker.Config: {PostingDir:p BadgerTables:mmap BadgerVlog:mmap BadgerCompressionLevel:3 WALDir:w MutationsMode:0 AuthToken: AllottedMemory:2566 HmacSecret:**** AccessJwtTtl:0s RefreshJwtTtl:0s AclRefreshInterval:0s}
I0824 10:45:08.703578      39 init.go:102]

Dgraph version   : v20.07.0
Dgraph codename  : shuri
Dgraph SHA-256   : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4
Commit SHA-1     : d65e20530
Commit timestamp : 2020-07-28 15:31:37 -0700
Branch           : HEAD
Go version       : go1.14.4

For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph     , visit http://discuss.dgraph.io.
To say hi to the community       , visit https://dgraph.slack.com.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.


I0824 10:45:08.703653      39 run.go:108] Setting up grpc listener at: 0.0.0.0:5080
I0824 10:45:08.704048      39 run.go:108] Setting up http listener at: 0.0.0.0:6080
[Sentry] 2020/08/24 10:45:08 Sending fatal event [fed7cb76a0d045aaaff9f95156c0a71a] to o318308.ingest.sentry.io project: 1805390
[Sentry] 2020/08/24 10:45:08 Sending fatal event [2e608c6ac71c4f12a94de4e52a5ec5dd] to o318308.ingest.sentry.io project: 1805390
2020/08/24 10:45:08 mkdir w: permission denied
Error while creating WAL dir.
github.com/dgraph-io/dgraph/x.Checkf
	/ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:51
github.com/dgraph-io/dgraph/worker.(*ServerState).initStorage
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:127
github.com/dgraph-io/dgraph/worker.InitServerState
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:54
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:658
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.2.func1
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:95
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:70
main.main
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:78
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1373
2020/08/24 10:45:08 mkdir zw: permission denied
Error while creating WAL dir.
github.com/dgraph-io/dgraph/x.Checkf
	/ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:51
github.com/dgraph-io/dgraph/dgraph/cmd/zero.run
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/zero/run.go:231
github.com/dgraph-io/dgraph/dgraph/cmd/zero.init.0.func1
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/zero/run.go:76
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:70
main.main
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:78
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1373

Now I have re-installed my CentOS 7, but it failed again:

[root@kg ~]# docker run --rm -it -p 8080:8080 -p 9080:9080 -p 8000:8000 -v ~/dgraph:/dgraph dgraph/standalone
/usr/bin/docker-current: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See '/usr/bin/docker-current run --help'.
[root@kg ~]# systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[root@kg ~]# systemctl start docker
[root@kg ~]# docker run --rm -it -p 8080:8080 -p 9080:9080 -p 8000:8000 -v ~/dgraph:/dgraph dgraph/standalone
Unable to find image 'dgraph/standalone:latest' locally
Trying to pull repository docker.io/dgraph/standalone ...
latest: Pulling from docker.io/dgraph/standalone
692c352adcf2: Pull complete
97058a342707: Pull complete
2821b8e766f4: Pull complete
4e643cc37772: Pull complete
1c53bf7d9436: Pull complete
e7be5b38aff8: Pull complete
c1324a267774: Pull complete
c929db74b44c: Pull complete
5b92fba44001: Pull complete
Digest: sha256:ce6e3ecdcb477efebd6cbe14e2df5c7e7c1fa93d36979cb3bceb05565a429ebe
Status: Downloaded newer image for docker.io/dgraph/standalone:latest

Warning: This standalone version is meant for quickstart purposes only.
         It is NOT RECOMMENDED for production environments.
2020/08/24 12:49:59 Listening on :8000...
[Decoder]: Using assembly version of decoder
[Decoder]: Using assembly version of decoder
[Sentry] 2020/08/24 12:49:59 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 12:49:59 Integration installed: Environment
[Sentry] 2020/08/24 12:49:59 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 12:49:59 Integration installed: Modules
[Sentry] 2020/08/24 12:49:59 Integration installed: IgnoreErrors
[Sentry] 2020/08/24 12:49:59 Integration installed: Environment
[Sentry] 2020/08/24 12:49:59 Integration installed: Modules
[Sentry] 2020/08/24 12:49:59 Integration installed: IgnoreErrors
[Decoder]: Using assembly version of decoder
[Decoder]: Using assembly version of decoder
[Sentry] 2020/08/24 12:50:00 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 12:50:00 Integration installed: Environment
[Sentry] 2020/08/24 12:50:00 Integration installed: Modules
[Sentry] 2020/08/24 12:50:00 Integration installed: IgnoreErrors
[Sentry] 2020/08/24 12:50:00 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 12:50:00 Integration installed: Environment
[Sentry] 2020/08/24 12:50:00 Integration installed: Modules
[Sentry] 2020/08/24 12:50:00 Integration installed: IgnoreErrors
I0824 12:50:00.642879      38 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable_sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0824 12:50:00.643534      38 util_ee.go:126] KeyReader instantiated of type <nil>
I0824 12:50:00.644751      37 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable_sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0824 12:50:00.908681      37 init.go:102]

Dgraph version   : v20.07.0
Dgraph codename  : shuri
Dgraph SHA-256   : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4
Commit SHA-1     : d65e20530
Commit timestamp : 2020-07-28 15:31:37 -0700
Branch           : HEAD
Go version       : go1.14.4

For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph     , visit http://discuss.dgraph.io.
To say hi to the community       , visit https://dgraph.slack.com.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.


I0824 12:50:00.908677      38 init.go:102]

Dgraph version   : v20.07.0
Dgraph codename  : shuri
Dgraph SHA-256   : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4
Commit SHA-1     : d65e20530
Commit timestamp : 2020-07-28 15:31:37 -0700
Branch           : HEAD
Go version       : go1.14.4

For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph     , visit http://discuss.dgraph.io.
To say hi to the community       , visit https://dgraph.slack.com.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.


I0824 12:50:00.908703      38 run.go:654] x.Config: {PortOffset:0 QueryEdgeLimit:1000000 NormalizeNodeLimit:10000 PollInterval:1s GraphqlExtension:true}
I0824 12:50:00.908742      38 run.go:655] x.WorkerConfig: {ExportPath:export NumPendingProposals:256 Tracing:0.01 MyAddr: ZeroAddr:[localhost:5080] RaftId:0 WhiteListedIPRanges:[{Lower:0.0.0.0 Upper:255.255.255.255}] MaxRetries:-1 StrictMutations:false AclEnabled:false AbortOlderThan:5m0s SnapshotAfter:10000 ProposedGroupId:0 StartTime:2020-08-24 12:50:00.099605763 +0000 UTC m=+0.011194675 LudicrousMode:false EncryptionKey:**** LogRequest:0}
I0824 12:50:00.908802      38 run.go:656] worker.Config: {PostingDir:p BadgerTables:mmap BadgerVlog:mmap BadgerCompressionLevel:3 WALDir:w MutationsMode:0 AuthToken: AllottedMemory:2566 HmacSecret:**** AccessJwtTtl:0s RefreshJwtTtl:0s AclRefreshInterval:0s}
I0824 12:50:00.908767      37 run.go:108] Setting up grpc listener at: 0.0.0.0:5080
[Sentry] 2020/08/24 12:50:00 Sending fatal event [f0e352202075425eb64f1bf13a20e863] to o318308.ingest.sentry.io project: 1805390
2020/08/24 12:50:00 mkdir w: permission denied
Error while creating WAL dir.
github.com/dgraph-io/dgraph/x.Checkf
	/ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:51
github.com/dgraph-io/dgraph/worker.(*ServerState).initStorage
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:127
github.com/dgraph-io/dgraph/worker.InitServerState
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:54
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:658
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.2.func1
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:95
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:70
main.main
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:78
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1373
I0824 12:50:00.910198      37 run.go:108] Setting up http listener at: 0.0.0.0:6080
[root@kg ~]# ls
anaconda-ks.cfg  dgraph
[root@kg ~]# ls dgraph/

Now I have re-installed my CentOS 7, but it failed again:

[root@kg ~]# docker run --rm -it -p 8080:8080 -p 9080:9080 -p 8000:8000 -v ~/dgraph:/dgraph dgraph/standalone
/usr/bin/docker-current: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See '/usr/bin/docker-current run --help'.
[root@kg ~]# systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[root@kg ~]# systemctl start docker
[root@kg ~]# docker run --rm -it -p 8080:8080 -p 9080:9080 -p 8000:8000 -v ~/dgraph:/dgraph dgraph/standalone
Unable to find image 'dgraph/standalone:latest' locally
Trying to pull repository docker.io/dgraph/standalone ...
latest: Pulling from docker.io/dgraph/standalone
692c352adcf2: Pull complete
97058a342707: Pull complete
2821b8e766f4: Pull complete
4e643cc37772: Pull complete
1c53bf7d9436: Pull complete
e7be5b38aff8: Pull complete
c1324a267774: Pull complete
c929db74b44c: Pull complete
5b92fba44001: Pull complete
Digest: sha256:ce6e3ecdcb477efebd6cbe14e2df5c7e7c1fa93d36979cb3bceb05565a429ebe
Status: Downloaded newer image for docker.io/dgraph/standalone:latest

Warning: This standalone version is meant for quickstart purposes only.
         It is NOT RECOMMENDED for production environments.
2020/08/24 12:49:59 Listening on :8000...
[Decoder]: Using assembly version of decoder
[Decoder]: Using assembly version of decoder
[Sentry] 2020/08/24 12:49:59 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 12:49:59 Integration installed: Environment
[Sentry] 2020/08/24 12:49:59 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 12:49:59 Integration installed: Modules
[Sentry] 2020/08/24 12:49:59 Integration installed: IgnoreErrors
[Sentry] 2020/08/24 12:49:59 Integration installed: Environment
[Sentry] 2020/08/24 12:49:59 Integration installed: Modules
[Sentry] 2020/08/24 12:49:59 Integration installed: IgnoreErrors
[Decoder]: Using assembly version of decoder
[Decoder]: Using assembly version of decoder
[Sentry] 2020/08/24 12:50:00 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 12:50:00 Integration installed: Environment
[Sentry] 2020/08/24 12:50:00 Integration installed: Modules
[Sentry] 2020/08/24 12:50:00 Integration installed: IgnoreErrors
[Sentry] 2020/08/24 12:50:00 Integration installed: ContextifyFrames
[Sentry] 2020/08/24 12:50:00 Integration installed: Environment
[Sentry] 2020/08/24 12:50:00 Integration installed: Modules
[Sentry] 2020/08/24 12:50:00 Integration installed: IgnoreErrors
I0824 12:50:00.642879      38 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable_sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0824 12:50:00.643534      38 util_ee.go:126] KeyReader instantiated of type <nil>
I0824 12:50:00.644751      37 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable_sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0824 12:50:00.908681      37 init.go:102]

Dgraph version   : v20.07.0
Dgraph codename  : shuri
Dgraph SHA-256   : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4
Commit SHA-1     : d65e20530
Commit timestamp : 2020-07-28 15:31:37 -0700
Branch           : HEAD
Go version       : go1.14.4

For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph     , visit http://discuss.dgraph.io.
To say hi to the community       , visit https://dgraph.slack.com.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.


I0824 12:50:00.908677      38 init.go:102]

Dgraph version   : v20.07.0
Dgraph codename  : shuri
Dgraph SHA-256   : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4
Commit SHA-1     : d65e20530
Commit timestamp : 2020-07-28 15:31:37 -0700
Branch           : HEAD
Go version       : go1.14.4

For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph     , visit http://discuss.dgraph.io.
To say hi to the community       , visit https://dgraph.slack.com.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.


I0824 12:50:00.908703      38 run.go:654] x.Config: {PortOffset:0 QueryEdgeLimit:1000000 NormalizeNodeLimit:10000 PollInterval:1s GraphqlExtension:true}
I0824 12:50:00.908742      38 run.go:655] x.WorkerConfig: {ExportPath:export NumPendingProposals:256 Tracing:0.01 MyAddr: ZeroAddr:[localhost:5080] RaftId:0 WhiteListedIPRanges:[{Lower:0.0.0.0 Upper:255.255.255.255}] MaxRetries:-1 StrictMutations:false AclEnabled:false AbortOlderThan:5m0s SnapshotAfter:10000 ProposedGroupId:0 StartTime:2020-08-24 12:50:00.099605763 +0000 UTC m=+0.011194675 LudicrousMode:false EncryptionKey:**** LogRequest:0}
I0824 12:50:00.908802      38 run.go:656] worker.Config: {PostingDir:p BadgerTables:mmap BadgerVlog:mmap BadgerCompressionLevel:3 WALDir:w MutationsMode:0 AuthToken: AllottedMemory:2566 HmacSecret:**** AccessJwtTtl:0s RefreshJwtTtl:0s AclRefreshInterval:0s}
I0824 12:50:00.908767      37 run.go:108] Setting up grpc listener at: 0.0.0.0:5080
[Sentry] 2020/08/24 12:50:00 Sending fatal event [f0e352202075425eb64f1bf13a20e863] to o318308.ingest.sentry.io project: 1805390
2020/08/24 12:50:00 mkdir w: permission denied
Error while creating WAL dir.
github.com/dgraph-io/dgraph/x.Checkf
	/ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:51
github.com/dgraph-io/dgraph/worker.(*ServerState).initStorage
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:127
github.com/dgraph-io/dgraph/worker.InitServerState
	/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:54
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:658
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.2.func1
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:95
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:70
main.main
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:78
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1373
I0824 12:50:00.910198      37 run.go:108] Setting up http listener at: 0.0.0.0:6080
[root@kg ~]# ls
anaconda-ks.cfg  dgraph
[root@kg ~]# ls dgraph/
[root@kg ~]#

After stopped se-Linux , it works for me now . :grinning: :grinning: :grinning:

That’s great to know.

I have been trying to recreate the issue but went into issues with aufs mounting while running docker on docker. Could you share any other details of your setup. Are you using centos docker container and trying to run dgraph over it ? Can I close this topic if your issue has been resolved ?

Sure, you can close this topic.
Just colse Se-linux, nothing else:

setenforce 0
vim  /etc/sysconfig/selinux
# set SELINUX=disabled