-
Notifications
You must be signed in to change notification settings - Fork 162
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
User names inconsistent between core and contrib #606
Comments
Привет, @mowies! Я здесь, чтобы помочь вам решить проблему. Я бот, который может помочь вам исправить ошибки, ответить на вопросы и стать участником. To standardize the usernames for the For [Unit]
Description=OpenTelemetry Collector
After=network.target
[Service]
EnvironmentFile=/etc/otelcol/otelcol.conf
ExecStart=/usr/bin/otelcol $OTELCOL_OPTIONS
KillMode=mixed
Restart=on-failure
Type=simple
User=otel
Group=otel
[Install]
WantedBy=multi-user.target For [Unit]
Description=OpenTelemetry Collector Contrib
After=network.target
[Service]
EnvironmentFile=/etc/otelcol-contrib/otelcol-contrib.conf
ExecStart=/usr/bin/otelcol-contrib $OTELCOL_CONTRIB_OPTIONS
KillMode=mixed
Restart=on-failure
Type=simple
User=otel
Group=otel
[Install]
WantedBy=multi-user.target Additionally, in the Dockerfile for FROM alpine:3.19 as certs
RUN apk --update add ca-certificates
FROM scratch
ARG USER_UID=10001
USER ${USER_UID}
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --chmod=755 otelcol-contrib /otelcol-contrib
COPY config.yaml /etc/otelcol-contrib/config.yaml
ENTRYPOINT ["/otelcol-contrib"]
CMD ["--config", "/etc/otelcol-contrib/config.yaml"]
EXPOSE 4317 55678 55679 By setting |
I believe this is a bug :-) |
Changing the username sounds like a potentially breaking change to me. Do I need to keep anything in mind while fixing this? |
I can't think of anything important other than taking care of the files created by the previous user, like the persistent sending queue files. |
i guess this is a duplicate of #417 |
I just noticed that the user names for the linux services for otelcol and otelcol-contrib are not consistently named.
The text was updated successfully, but these errors were encountered: