Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Badger storage still does not start in Docker #1746

Closed
roinou opened this issue Aug 20, 2019 · 1 comment
Closed

Badger storage still does not start in Docker #1746

roinou opened this issue Aug 20, 2019 · 1 comment

Comments

@roinou
Copy link

roinou commented Aug 20, 2019

I've read about issue #1543 but I still have an issue. Starting Jaeger 1.13 with badger in ephemeral mode on works OK. but when deactivating the mode and try to pass local folders for the key and the data, here is what I get:

{
  "level": "fatal",
  "ts": 1566295359.4033298,
  "caller": "all-in-one/main.go:104",
  "msg": "Failed to init storage factory",
  "error": "While syncing directory: /badger/key.: sync /badger/key: invalid argument",
  "errorVerbose": "sync /badger/key: invalid argument
While syncing directory: /badger/key.
github.com/jaegertracing/jaeger/vendor/github.com/dgraph-io/badger.syncDir
	/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/dgraph-io/badger/db.go:458
github.com/jaegertracing/jaeger/vendor/github.com/dgraph-io/badger.helpRewrite
	/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/dgraph-io/badger/manifest.go:275
github.com/jaegertracing/jaeger/vendor/github.com/dgraph-io/badger.helpOpenOrCreateManifestFile
	/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/dgraph-io/badger/manifest.go:134
github.com/jaegertracing/jaeger/vendor/github.com/dgraph-io/badger.openOrCreateManifestFile
	/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/dgraph-io/badger/manifest.go:116
github.com/jaegertracing/jaeger/vendor/github.com/dgraph-io/badger.Open
	/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/dgraph-io/badger/db.go:231
github.com/jaegertracing/jaeger/plugin/storage/badger.(*Factory).Initialize
	/home/travis/gopath/src/github.com/jaegertracing/jaeger/plugin/storage/badger/factory.go:104
github.com/jaegertracing/jaeger/plugin/storage.(*Factory).Initialize
	/home/travis/gopath/src/github.com/jaegertracing/jaeger/plugin/storage/factory.go:107
main.main.func1
	/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/all-in-one/main.go:103
github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).execute
	/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:762
github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).ExecuteC
	/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:852
github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).Execute
	/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:800
main.main
	/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/all-in-one/main.go:170
runtime.main
	/home/travis/.gimme/versions/go1.12.1.linux.amd64/src/runtime/proc.go:200
runtime.goexit
	/home/travis/.gimme/versions/go1.12.1.linux.amd64/src/runtime/asm_amd64.s:1337",
  "stacktrace": "main.main.func1
	/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/all-in-one/main.go:104
github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).execute
	/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:762
github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).ExecuteC
	/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:852
github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).Execute
	/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:800
main.main
	/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/all-in-one/main.go:170
runtime.main
	/home/travis/.gimme/versions/go1.12.1.linux.amd64/src/runtime/proc.go:200"
}

I tried changing folder location, putting both DATA and KEY in the same folder etc. without success. I'm running Docker on windows 10. My command:
docker run -p 16686:16686 -p 6831:6831/udp -v C:\dev\projects\other\docker-storage\badger-jaeger:/badger --name jaeger -d -e SPAN_STORAGE_TYPE=badger -e BADGER_EPHEMERAL=false -e BADGER_DIRECTORY_VALUE=/badger/data -e BADGER_DIRECTORY_KEY=/badger/key jaegertracing/all-in-one:1.13

@roinou
Copy link
Author

roinou commented Aug 20, 2019

OK, that was quick, we can close this one. Using a named volume rather than a direct volume mount solved the issue.

@roinou roinou closed this as completed Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant