Loki and promtail installation weird message

  • What Grafana version and what operating system are you using?
    Debian 12 and last loki/promtail

  • What are you trying to achieve?
    I’m trying to install loki and promtail using provided deb files

  • How are you trying to achieve it?
    sudo dpk -i *.deb

  • What happened?
    It appears it installed but with these messages:

Setting up loki (2.8.6) ...
 Post Install of a clean install
Adding system user `loki' (UID 103) ...
Adding new user `loki' (UID 103) with group `nogroup' ...
Not creating `/nonexistent'.
/var/lib/dpkg/info/loki.postinst: 21: [: Illegal number: 252 (252.17-1~deb12u1)
 Reload the service unit from disk

and similar with promtail:

Setting up promtail (2.8.6) ...
 Post Install of a clean install
Adding system user `promtail' (UID 104) ...
Adding new user `promtail' (UID 104) with group `nogroup' ...
Not creating `/nonexistent'.
/var/lib/dpkg/info/promtail.postinst: 21: [: Illegal number: 252 (252.17-1~deb12u1)
 Reload the service unit from disk
  • What did you expect to happen?
    No weird messages appears

thanks in advace

Hi @lupalupin,

Welcome to the :grafana: community support forums !!

We are excited that you joined our OSS community. Please read about some of the FAQs in the community :slight_smile:

As far as I know, we do not have a package file for Loki Debian.

Which resource you are using to install it?

Ok I am wrong as I see there is .deb packages available but still would like to know which documentation article you are following to install it.

Hi @usman.ahmad ,

I followed instructions here: Local | Grafana Loki documentation

And when access releases page I found .deb packages and installed it as always install .deb files.

The weird thing is there is no sha256 sum information for debs nor rpm packages, and then, the error it appears I documented before.

Thanks in advance,

are you using sudo command before the instructions provided in the documentation i.e.

sudo apt-get update
sudo apt-get install loki promtail

Yes, It got installed and works, but I think it’s important to:

  • Fix those warnings/errors
  • Add sha256 sum hashes

I checked on a secondary server and the same happens.

1 Like

Glad to hear that you figure it out:

  • Fix those warnings/errors
  • Add sha256 sum hashes

We would appreciate it if you can open a bug report about this in our official GitHub repository using this link.

Provide all the information (you can simply copy/paste your data + screenshot from here to there).

Lastly, paste the link to your GitHub issue here in this post so that all other community
users can also track it. I will also add more additional information to it :+1:

I added here: Loki / promtail: installation warning/error message and sha256sum · Issue #77385 · grafana/grafana · GitHub

Only note that I didn’t use apt because I didn’t use debian repos. I downloaded the .deb file and installed using sudo dpkg -i loki_2.8.6_amd64.deb as stated in the description.

Thanks a lot. I have already update the status of the issue you filed and would recommend to follow-up on the comments once an Engineer ask any questions.

1 Like