Problem installing Grafana on Lenovo w. Raspbian - Architektur »i386« nicht unterstützt

  • What Grafana version and what operating system are you using?
    HW: Lenovo T410 setup w. Rasbpian OS:
    uname -a
    Linux raspc 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64 GNU/Linux
    System is working, installed ssh, XRDB Service, samba, apache2, mariadb, phpmyadmin (some test tables filled), all working ok.

  • What are you trying to achieve?
    Installed latest enterprice version (apt) according to
    Install on Debian or Ubuntu | Grafana documentation
    AS NEW USER I AM NOT ALLOWED TO use morethan 2 URLS,
    THEREFOIRE I replaces the https: by … in commands below

sudo apt-get install -y apt-transport-https
sudo apt-get install -y software-properties-common wget
sudo wget -q -O /usr/share/keyrings/grafana.key ...... /apt.grafana.com/gpg.key

and the stable release:

echo "deb [signed-by=/usr/share/keyrings/grafana.key] .... apt.grafana.com stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
  • How are you trying to achieve it?

  • What happened?

starting

sudo apt-get update

reported that grafanain»main/binary-i386/Packages« does not support architecture i386:
OK:1 …/deb.debian.org/debian bullseye InRelease
Holen:2 … /deb.debian.org/debian-security bullseye-security InRelease [48,4 kB]
OK:3 …/archive.raspberrypi.org/debian bullseye InRelease
OK:4 …/deb.debian.org/debian bullseye-updates InRelease
OK:5 …/apt.grafana.com stable InRelease
Es wurden 48,4 kB in 1 s geholt (48,9 kB/s).
Paketlisten werden gelesen… Fertig
N: Das Laden der konfigurierten Datei »main/binary-i386/Packages« wird übersprungen, da das Depot »…/apt.grafana.com stable InRelease« die Architektur »i386« nicht unterstützt.

??? is this ok???

Then I installed the package by

sudo apt-get install grafana-enterprise

all seemed to be ok, BUT
commands for starting also seemed ok:

sudo systemctl daemon-reload
sudo systemctl start grafana-server

BUT:
sudo systemctl status grafana-server
reported:
● grafana-server.service - Grafana instance
Loaded: loaded (/lib/systemd/system/grafana-server.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Thu 2023-01-05 19:35:49 CET; 2h 46min ago
Docs: …/docs.grafana.org
Process: 3516 ExecStart=/usr/sbin/grafana-server --config=${CONF_FILE} --pidfile=${PID_FILE_DIR}/grafana-serve>
Main PID: 3516 (code=killed, signal=SYS)
CPU: 50ms

Jan 05 19:35:49 raspc systemd[1]: grafana-server.service: Scheduled restart job, restart counter is at 5.
Jan 05 19:35:49 raspc systemd[1]: Stopped Grafana instance.
Jan 05 19:35:49 raspc systemd[1]: grafana-server.service: Start request repeated too quickly.
Jan 05 19:35:49 raspc systemd[1]: grafana-server.service: Failed with result ‘signal’.
Jan 05 19:35:49 raspc systemd[1]: Failed to start Grafana instance.
Jan 05 19:35:53 raspc systemd[1]: grafana-server.service: Start request repeated too quickly.
Jan 05 19:35:53 raspc systemd[1]: grafana-server.service: Failed with result ‘signal’.
Jan 05 19:35:53 raspc systemd[1]: Failed to start Grafana instance.

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    There was NO log in /var/log/grafana/ (empty directory)

  • Did you follow any online instructions? If so, what is the URL?
    official grafana page at docs/grafana/latest/setup-grafana/installation/debian/

BTW: All dirs and files mentionned in above URL at “Package details”
seem to be there.

Any Idea what is the problem???
Thanks for support!!!

You have systemd, so I guess journalctl manages your logs. Check logs with the command:

journalctl -u grafana-server

Thanks for quick answer.
That’s what I also already checked, but with no additional Info:
Have a nice day,
Klaus

Jan 05 19:35:48 raspc systemd[1]: grafana-server.service: Main process exited, code=killed, status=31/SYS
Jan 05 19:35:48 raspc systemd[1]: grafana-server.service: Failed with result ‘signal’.
Jan 05 19:35:49 raspc systemd[1]: grafana-server.service: Scheduled restart job, restart counter is at 4.
Jan 05 19:35:49 raspc systemd[1]: Stopped Grafana instance.
Jan 05 19:35:49 raspc systemd[1]: Started Grafana instance.
Jan 05 19:35:49 raspc systemd[1]: grafana-server.service: Main process exited, code=killed, status=31/SYS
Jan 05 19:35:49 raspc systemd[1]: grafana-server.service: Failed with result ‘signal’.
Jan 05 19:35:49 raspc systemd[1]: grafana-server.service: Scheduled restart job, restart counter is at 5.
Jan 05 19:35:49 raspc systemd[1]: Stopped Grafana instance.
Jan 05 19:35:49 raspc systemd[1]: grafana-server.service: Start request repeated too quickly.
Jan 05 19:35:49 raspc systemd[1]: grafana-server.service: Failed with result ‘signal’.
Jan 05 19:35:49 raspc systemd[1]: Failed to start Grafana instance.
Jan 05 19:35:53 raspc systemd[1]: grafana-server.service: Start request repeated too quickly.
Jan 05 19:35:53 raspc systemd[1]: grafana-server.service: Failed with result ‘signal’.
Jan 05 19:35:53 raspc systemd[1]: Failed to start Grafana instance.

What I wonder is that

sudo apt-get update

reports error in Depot »https://apt.grafana.com stable InRelease«

while
more /etc/apt/sources.list.d/grafana.list
deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main

This (stable main <-----> In Release) is ok???

I guess you have old systemd, where some new features are missing. Grafana instance fails to start - #2 by wnasich

Hi,
shouldn’t systemd be the newest one when I do
sudo apt-get update
sudo apt-get upgrade
BEFORE each new installation of a tool???

actual grafana version I try to install is grafana-enterprise_9.3.2_amd64.deb

systemd version is: 247 (247-3.7+deb11u1)

Especially I wonder why - when installing according the grafana install docu for APT and I do:
apt-get update
it reports not to do the load of configured »main/binary-i386/Packages« as not supporting i386 architecture:

N: Das Laden der konfigurierten Datei »main/binary-i386/Packages« wird übersprungen, da das Depot »…/apt.grafana.com stable InRelease« die Architektur »i386« nicht unterstützt.

Does this mean that apt tries to get a wrong image???

In addition (not reported in full description above) I tried the installation for DEBIAN according to the description here:

Same result for Debian installation L

Here I was not quite sure if I had to install Debian or an x86 (CentOS,…) installation:
As uname –a says:
Linux raspc 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64 GNU/Linux

But trying to install the x86 version did not succeed and reported to be awrong image.