Unable to find log file when start the alpha node

when I restart the dgraph alpha,it would occur this exception:Unable to find log file. Please retry. I don’t have any ways to solve it.
The total logfile is find in this logfile.txt (6 KB)

2019/11/12 03:05:26 Error while creating badger KV posting store error: Unable to find log file. Please retry
github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger.init.ializers
	/tmp/go/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/errors.go:66
runtime.main
	/usr/local/go/src/runtime/proc.go:188
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1337
failed to read value pointer from vlog file: {Fid:238 Len:1844 Offset:29808603}
github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger.(*valueLog).populateDiscardStats
	/tmp/go/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/value.go:1441
github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger.(*valueLog).open
	/tmp/go/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/value.go:855
github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger.Open
	/tmp/go/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/db.go:317
github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger.OpenManaged
	/tmp/go/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/managed_db.go:26
github.com/dgraph-io/dgraph/edgraph.(*ServerState).initStorage
	/tmp/go/src/github.com/dgraph-io/dgraph/edgraph/server.go:170
github.com/dgraph-io/dgraph/edgraph.InitServerState
	/tmp/go/src/github.com/dgraph-io/dgraph/edgraph/server.go:77
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run
	/tmp/go/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:465
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.1.func1
	/tmp/go/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:81
github.com/dgraph-io/dgraph/vendor/github.com/spf13/cobra.(*Command).execute
	/tmp/go/src/github.com/dgraph-io/dgraph/vendor/github.com/spf13/cobra/command.go:702
github.com/dgraph-io/dgraph/vendor/github.com/spf13/cobra.(*Command).ExecuteC
	/tmp/go/src/github.com/dgraph-io/dgraph/vendor/github.com/spf13/cobra/command.go:783
github.com/dgraph-io/dgraph/vendor/github.com/spf13/cobra.(*Command).Execute
	/tmp/go/src/github.com/dgraph-io/dgraph/vendor/github.com/spf13/cobra/command.go:736
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
	/tmp/go/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:60
main.main
	/tmp/go/src/github.com/dgraph-io/dgraph/dgraph/main.go:33
runtime.main
	/usr/local/go/src/runtime/proc.go:200
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1337

I met the same problem.before restart,how did you stop your alpha node.if I stop the alpha by shell command ‘kill’.it was happened frequently

The alpha node may shut down by a mistake, however I could not capture any useful information in the alpha log. Then we meet this problem. This is a very serious situation, especially when we use dgraph in the product environment.

maybe the error occured by alpha node shutdown ungraceful(ig. mistake or kill)

If there is a “lock” file in any path, please delete it and try again. If not so, this must be some mistake. Have you upgraded jumping its versions?

The right way to upgrade https://docs.dgraph.io/deploy/#upgrade-database

What OS are you using? if you’re in windows, please upgrade.

This issue was fixed in badger via https://github.com/dgraph-io/badger/pull/929 . Latest dgraph should have the fix for this.

Hi,it will be fixed by the next Dgraph version? now,I used v1.1.0

Looks like v1.1.0 actually has the fix for this issue. https://github.com/dgraph-io/dgraph/blob/ef7cdb287c3242b9350765bc7e87f5e2924c84af/vendor/github.com/dgraph-io/badger/value.go#L1488-L1526

Are you sure you’re seeing the same issue on Dgraph v1.1.0?

Oh,I have not met the problem again.

Thanks,we use the dgraph 1.0.16 version. We will upgrade our dgraph and check this.