-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
journald_receiver does not work with the filestorage extension #31476
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Based on the stack trace, it seems the receiver is trying to call a non-existent cancel method here. It's not clear to me how this is possible though because we save the cancel function immediately upon start and do nothing else with it until stopping. Still looking into it but I don't see any obvious connection to the storage extension. @lionas32, can you confirm this only happens when using the storage extension? |
If I remove |
Printing the error message of the error produced here gives me |
I see that the storage client is being set here, which is also where the above error is generated. Could it be that it never reaches |
Thanks for digging into it further to expose that error message. Of course the error should be shown and no panic should occur. The surprising behavior here is that |
Thank you for looking into it! Much appreciated. |
…sage due to panic during shutdown (open-telemetry#31550) Fixes open-telemetry#31476
…sage due to panic during shutdown (open-telemetry#31550) Fixes open-telemetry#31476
…sage due to panic during shutdown (open-telemetry#31550) Fixes open-telemetry#31476
Component(s)
extension/storage/filestorage, receiver/journald
What happened?
Description
journald_receiver does not work as specified with the filestorage extension
Steps to Reproduce
storage
attribute to the ID of a filestorage componentExpected Result
The collector runs and stores the cursor
Actual Result
The collector crashes
Collector version
v0.95.0
Environment information
Environment
OS: Ubuntu 22.04
Compiler: go 1.22
OpenTelemetry Collector configuration
Log output
Additional context
Using the ocb builder to build the collector with the mentioned components.
The folder /var/lib/otelcol/file_storage is created with the user running the otel collector having access to it.
The text was updated successfully, but these errors were encountered: