Replies: 1 comment 6 replies
-
Hi @devbaran! I'm Dosu and I’m helping the jaeger team. To persist Jaeger data with Badger storage in Docker Compose, use the jaegertracing/all-in-one image and configure storage via environment variables, not CLI flags—CLI flags are no longer supported in Jaeger 2.x+ and will cause errors. Your environment variables should include The "permission denied" error happens because the container user cannot write to the mounted directory. To fix this, ensure the host directory or Docker volume you mount to If you want to use a config file instead of environment variables (required for some advanced options in Jaeger 2.x+), mount your config file into the container and set the Example Docker Compose snippet for persistent Badger storage: services:
jaeger:
image: jaegertracing/all-in-one:latest
environment:
- SPAN_STORAGE_TYPE=badger
- BADGER_DIRECTORY=/badger
- BADGER_EPHEMERAL=false
volumes:
- jaeger-badger-data:/badger
ports:
- "16686:16686"
- "4317:4317"
- "4318:4318"
volumes:
jaeger-badger-data:
driver: local Before starting, ensure the volume directory is writable by the container user to avoid permission errors. This setup will persist tracing data across restarts as long as the volume is not deleted. If you need to fine-tune Badger (e.g., set TTL), use a config file and mount it, then reference it with If you still see permission errors, double-check the volume's permissions and ownership on the host. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue: Persisting Data in Jaeger with Badger Storage
Environment
Using Docker Compose to run Jaeger with Badger storage:
Expected Behavior
The Badger storage should persist tracing data across container restarts.
Actual Behavior
When running with the configuration above, logs show:
This indicates that the storage is not using Badger as expected and defaults to in-memory storage.
Attempted Fix 1: Using Command Flags
Updated Docker Compose to use command flags:
Result:
The
jaegertracing/jaeger:latest
image does not recognize--storage.type
flags, causing the container to crash.Attempted Fix 2: Using All-in-One Image
Tried switching to
all-in-one
image:Error:
This indicates a permission issue when trying to create directories inside the container.
Problem Summary
jaegertracing/jaeger
image does not support the--storage.type
flag and crashes when used.all-in-one
image with environment variables results in permission denied when Badger tries to create directories.Question
How can I properly configure Jaeger with Badger storage to persist tracing data across container restarts without encountering permission issues or unsupported flags?
Beta Was this translation helpful? Give feedback.
All reactions