V20.11.0-rc3 doesn't start

Report a Dgraph Bug

v20.11.0-rc3 image crashes on startup. With the following stack trace:

[Sentry] 2020/12/09 07:16:54 Sending fatal event [40ce315983df47658dde34700e81dfeb] to o318308.ingest.sentry.io project: 1805390
2020/12/09 07:16:54 manifest has unsupported version: 7 (we support 8).
Please see https://github.com/dgraph-io/badger/blob/master/README.md#i-see-manifest-has-unsupported-version-x-we-support-y-error on how to fix this.
Error while creating badger KV posting 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:124
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:700
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:94
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:914
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:71
main.main
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:102
runtime.main
	/usr/local/go/src/runtime/proc.go:204
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1374

What version of Dgraph are you using?

v20.11.0-rc3

Have you tried reproducing the issue with the latest release?

master and latest are fine.

What is the hardware spec (RAM, OS)?

gcp standard node

Steps to reproduce the issue (command/config used to run Dgraph).

try and run an image using v20.11.0-rc3

Expected behaviour and actual result.

Dgraph should start without crashing

Hey @ahctangU

Are you using the release with a data directory from an older version? Which version are you upgrading from?

@ahctangU dgraph v20.07 and v20.11 are incompatible. You’ll have to do a backup/restore or an export/import.

I see. In that case, why does master work? Isn’t master newer than rc3?

@ibrahim can you point me where in the docs is this stated? also, is Dgraph using semver? because an incompatible change like this worth a major version change

Also, the error the throw the logs are outdated, as it included a broken link Please see https://github.com/dgraph-io/badger/blob/master/README.md#i-see-manifest-has-unsupported-version-x-we-support-y-error on how to fix this.