-
Notifications
You must be signed in to change notification settings - Fork 2.8k
filelog strogae directory must exist: stat /var/lib/otelcol/file_storage: no such file or directory #34277
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
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I guess the error message is quite precise: Indeed, the directory for the file_storage must exist: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/storage/filestorage#file-storage Hence we can close it, unless the purpose is to propose to change this behavior. |
@wangjinxiang0522 create a directory with |
I'm running in a Kubernetes environment, and the directory is not created in the otel-contrib-collector image.
I created the file using an initContainer, which solved the problem. Thanks, everyone! |
@ChrsMark I think this is good to close |
@wangjinxiang0522 since you are on K8s you can check how the Collector Helm Charts deal with that. Specifically the |
Uh oh!
There was an error while loading. Please reload this page.
Component(s)
extension/storage
Describe the issue you're reporting
version: v0.105.0
extensions:
health_check:
endpoint: ${env:MY_POD_IP}:13133
file_storage/default:
directory: /var/lib/otelcol/file_storage
Error: invalid configuration: extensions::file_storage/default: directory must exist: stat /var/lib/otelcol/file_storage: no such file or directory
The text was updated successfully, but these errors were encountered: