Open machadovilaca opened 1 month ago
Hey @machadovilaca š, I'm here to help you with your bug report. I'm Dosu, a bot that can assist with bug fixes, answer questions, and guide you on becoming a contributor. Let's dive into the issue you're experiencing.
To address the issue of the OpenTelemetry Collector hanging during startup inside a Podman container, consider the following:
Network Configuration: Ensure that the network settings are correctly configured. The default endpoints might be binding to localhost
instead of 0.0.0.0
, which can cause connectivity issues inside containers. Verify and adjust the configuration if necessary.
User Permissions: The Dockerfile sets a specific USER_UID
. Ensure that this user has the necessary permissions to execute the collector and access required resources.
Resource Limits: Check if there are any resource constraints (CPU, memory) imposed by Podman that might be affecting the startup. Adjust these limits if needed.
Null Maps in Configuration: Ensure that your configuration files do not contain null values. Use {}
for empty maps to avoid issues.
Debugging Tools: Utilize the debug
exporter to gain insights into what might be causing the hang. This can help identify if the issue is related to specific components or configurations.
Internal Telemetry: Enable internal telemetry to monitor the collector's performance and identify potential bottlenecks.
These steps should help in diagnosing and resolving the startup hang issue.
To continue talking to Dosu, mention @dosu.
From your code it seems like you are using a custom component. Are you able to reproduce this with the official Docker images and components in contrib?
If not, it's hard for us to help you, you can you try and attach a live debugger (e.g. by doing delve attach) and print the stack trace to see where it is stuck
Describe the bug
Running a custom collector locally works as expected, but when running inside a container (Podman), execution hangs in the initial setup steps.
Steps to reproduce
ocb
Expected Result
(observed only running locally)