Skip to content
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

Mimir from grafana ubuntu / debian repo service failed to start #3471

Closed
waleedsaud opened this issue Nov 19, 2022 · 3 comments · Fixed by #3720
Closed

Mimir from grafana ubuntu / debian repo service failed to start #3471

waleedsaud opened this issue Nov 19, 2022 · 3 comments · Fixed by #3720
Assignees
Labels
bug Something isn't working

Comments

@waleedsaud
Copy link

After install mimir from grafana debian/ubuntu repo it failed to start :

systemctl status mimir

● mimir.service - Horizontally scalable, highly available, multi-tenant, long term Prometheus.
     Loaded: loaded (/lib/systemd/system/mimir.service; disabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2022-11-19 18:03:28 UTC; 33s ago
       Docs: https://grafana.com/oss/mimir/
    Process: 8429 ExecStart=/usr/local/bin/mimir --log.level $LOG_LEVEL $CUSTOM_ARGS (code=exited, status=217/USER)
   Main PID: 8429 (code=exited, status=217/USER)

the reason is that the user in the service file is not created :

[Unit]
Description=Horizontally scalable, highly available, multi-tenant, long term Prometheus.
Documentation=https://grafana.com/oss/mimir/
Wants=network-online.target
After=network-online.target

[Service]
Restart=always
User=mimir
EnvironmentFile=/etc/default/mimir
ExecStart=/usr/local/bin/mimir --log.level $LOG_LEVEL $CUSTOM_ARGS
ExecReload=/bin/kill -HUP $MAINPID
TimeoutStopSec=20s
SendSIGKILL=no
WorkingDirectory=/var/lib/mimir

[Install]
WantedBy=multi-user.target

As you can see in this error log :

Nov 19 18:03:27 ubuntu-focal systemd[8429]: mimir.service: Failed to determine user credentials: No such process
Nov 19 18:03:27 ubuntu-focal systemd[8429]: mimir.service: Failed at step USER spawning /usr/local/bin/mimir: No such process

When I searched for the user it was not created :

root@ubuntu-focal:~# grep mimir /etc/passwd
root@ubuntu-focal:~# 
@pracucci
Copy link
Collaborator

👋 Thanks for opening this issue. The RPM and DEB packages are currently maintained by the community, since Mimir maintainers don't use them directly. A couple of follow up questions:

  • What do you suggest to solve this problem?
  • Willing to pick up the follow up work?

@aknuds1 aknuds1 added the bug Something isn't working label Nov 21, 2022
@bubu11e
Copy link
Collaborator

bubu11e commented Dec 8, 2022

Hi, starting to work on it.

@pracucci
Copy link
Collaborator

Hi, starting to work on it.

Thanks @bubu11e ! I've assigned the issue to you. Let me know if can't work on it and you want the issue to be unassigned. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants