-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
"systemctl --user" doesn't work #38421
Comments
Please give us more information to reproduce. A good way to debug this type of issue is to try and run the process outside systemd. Also check journalctl for logs. |
outside systemd it works fine. |
That's still not enough to debug, sorry. Please provide a reproducible case. |
We resolved, even if we put in bash_profile some variables, the process started via systemd doesn't load the environment variables. |
Component(s)
No response
Describe the issue you're reporting
Trying to install and configure systectl --user (without root permission) on Linux server, even if we have followed the instruction on Otel documentation, it doesn't work.
Here the otel.service file:
Starting the process via systemctl: "systemctl --user start otel", we receive a generic error without any information:
● otel.service - OpenTelemetry Collector Contrib
Loaded: loaded (/opt/SP/home/.config/systemd/user/otel.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2025-03-06 11:15:02 UTC; 16min ago
Process: 293494 ExecStart=/opt/SP/home/otel/otelcol-contrib $OTELCOL_OPTIONS (code=exited, status=1/FAILURE)
Main PID: 293494 (code=exited, status=1/FAILURE)
Mar 06 11:15:01 systemd[1678]: otel.service: Failed with result 'exit-code'.
Mar 06 11:15:02 systemd[1678]: otel.service: Service RestartSec=100ms expired, scheduling restart.
Mar 06 11:15:02 systemd[1678]: otel.service: Scheduled restart job, restart counter is at 5.
Mar 06 11:15:02 systemd[1678]: Stopped OpenTelemetry Collector Contrib.
Mar 06 11:15:02 systemd[1678]: otel.service: Start request repeated too quickly.
Mar 06 11:15:02 systemd[1678]: otel.service: Failed with result 'exit-code'.
Mar 06 11:15:02 systemd[1678]: Failed to start OpenTelemetry Collector Contrib.
The text was updated successfully, but these errors were encountered: