Grafana service not starting after update

Hi
After I updated the grafana today the service is not starting.

DietPi v7.9.4 (stretch)
RPi 3 Model B (armv7l)

root@ServidorPi:~# sudo systemctl status grafana-server
● grafana-server.service - Grafana instance
   Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2022-10-17 07:33:25 -03; 8s ago
     Docs: http://docs.grafana.org
  Process: 15746 ExecStart=/usr/sbin/grafana-server --config=${CONF_FILE} --pidfile=${PID_FILE_DIR}/grafana-server.pid
 --packaging=deb cfg:default.paths.logs=${LOG_DIR} cfg:default.paths.data=${DATA_DIR} cfg:default.paths.plugins=${PLUG
INS_DIR} cfg:default.paths.provisioning=${PROVISIONING_CFG_DIR} (code=exited, status=1/FAILURE)
 Main PID: 15746 (code=exited, status=1/FAILURE)

out 17 07:33:25 ServidorPi systemd[1]: grafana-server.service: Failed with result 'exit-code'.
out 17 07:33:25 ServidorPi systemd[1]: grafana-server.service: Service hold-off time over, scheduling restart.
out 17 07:33:25 ServidorPi systemd[1]: Stopped Grafana instance.
out 17 07:33:25 ServidorPi systemd[1]: grafana-server.service: Start request repeated too quickly.
out 17 07:33:25 ServidorPi systemd[1]: Failed to start Grafana instance.
out 17 07:33:25 ServidorPi systemd[1]: grafana-server.service: Unit entered failed state.
out 17 07:33:25 ServidorPi systemd[1]: grafana-server.service: Failed with result 'exit-code'.

Welcome to our community.

pls can you restart your system and provide following log afterwards

journalctl -u grafana-server
root@ServidorPi:~# journalctl -u grafana-server
-- Logs begin at Thu 2016-11-03 15:16:42 -02, end at Mon 2022-10-17 08:25:00 -03. --
out 17 08:23:45 ServidorPi systemd[1]: [/usr/lib/systemd/system/grafana-server.service:24] Unknown lvalue 'LockPersonality' in section 'Service'
out 17 08:23:45 ServidorPi systemd[1]: [/usr/lib/systemd/system/grafana-server.service:29] Unknown lvalue 'ProtectClock' in section 'Service'
out 17 08:23:45 ServidorPi systemd[1]: [/usr/lib/systemd/system/grafana-server.service:32] Unknown lvalue 'ProtectHostname' in section 'Service'
out 17 08:23:45 ServidorPi systemd[1]: [/usr/lib/systemd/system/grafana-server.service:33] Unknown lvalue 'ProtectKernelLogs' in section 'Service'
out 17 08:23:45 ServidorPi systemd[1]: [/usr/lib/systemd/system/grafana-server.service:36] Unknown lvalue 'ProtectProc' in section 'Service'
out 17 08:23:45 ServidorPi systemd[1]: [/usr/lib/systemd/system/grafana-server.service:42] Unknown lvalue 'RestrictSUIDSGID' in section 'Service'
out 17 08:23:45 ServidorPi systemd[1]: Started Grafana instance.
out 17 08:23:45 ServidorPi systemd[1]: grafana-server.service: Main process exited, code=exited, status=1/FAILURE
out 17 08:23:45 ServidorPi systemd[1]: grafana-server.service: Unit entered failed state.
out 17 08:23:45 ServidorPi systemd[1]: grafana-server.service: Failed with result 'exit-code'.
out 17 08:23:46 ServidorPi systemd[1]: grafana-server.service: Service hold-off time over, scheduling restart.
out 17 08:23:46 ServidorPi systemd[1]: Stopped Grafana instance.
out 17 08:23:46 ServidorPi systemd[1]: Started Grafana instance.
out 17 08:23:46 ServidorPi grafana-server[873]: /usr/sbin/grafana-server: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by /usr/sbin/grafana-server)
out 17 08:23:46 ServidorPi systemd[1]: grafana-server.service: Main process exited, code=exited, status=1/FAILURE
out 17 08:23:46 ServidorPi systemd[1]: grafana-server.service: Unit entered failed state.
out 17 08:23:46 ServidorPi systemd[1]: grafana-server.service: Failed with result 'exit-code'.
out 17 08:23:46 ServidorPi systemd[1]: grafana-server.service: Service hold-off time over, scheduling restart.
out 17 08:23:46 ServidorPi systemd[1]: Stopped Grafana instance.
out 17 08:23:46 ServidorPi systemd[1]: Started Grafana instance.
out 17 08:23:47 ServidorPi systemd[1]: grafana-server.service: Main process exited, code=exited, status=1/FAILURE
out 17 08:23:47 ServidorPi systemd[1]: grafana-server.service: Unit entered failed state.
out 17 08:23:47 ServidorPi systemd[1]: grafana-server.service: Failed with result 'exit-code'.
out 17 08:23:47 ServidorPi systemd[1]: grafana-server.service: Service hold-off time over, scheduling restart.
out 17 08:23:47 ServidorPi systemd[1]: Stopped Grafana instance.
out 17 08:23:47 ServidorPi systemd[1]: Started Grafana instance.
out 17 08:23:47 ServidorPi systemd[1]: grafana-server.service: Main process exited, code=exited, status=1/FAILURE
out 17 08:23:47 ServidorPi systemd[1]: grafana-server.service: Unit entered failed state.
out 17 08:23:47 ServidorPi systemd[1]: grafana-server.service: Failed with result 'exit-code'.
out 17 08:23:48 ServidorPi systemd[1]: grafana-server.service: Service hold-off time over, scheduling restart.
out 17 08:23:48 ServidorPi systemd[1]: Stopped Grafana instance.
out 17 08:23:48 ServidorPi systemd[1]: Started Grafana instance.
out 17 08:23:48 ServidorPi systemd[1]: grafana-server.service: Main process exited, code=exited, status=1/FAILURE
out 17 08:23:48 ServidorPi systemd[1]: grafana-server.service: Unit entered failed state.
out 17 08:23:48 ServidorPi systemd[1]: grafana-server.service: Failed with result 'exit-code'.
out 17 08:23:48 ServidorPi systemd[1]: grafana-server.service: Service hold-off time over, scheduling restart.
out 17 08:23:48 ServidorPi systemd[1]: Stopped Grafana instance.
out 17 08:23:48 ServidorPi systemd[1]: grafana-server.service: Start request repeated too quickly.
out 17 08:23:48 ServidorPi systemd[1]: Failed to start Grafana instance.
out 17 08:23:48 ServidorPi systemd[1]: grafana-server.service: Unit entered failed state.
out 17 08:23:48 ServidorPi systemd[1]: grafana-server.service: Failed with result 'exit-code'.

You are running Debian Stretch still and your system might be too old now, to host Grafana. libc6 package version 2.28 is available on Debian Buster and above Debian -- Package Search Results -- libc6

I recommend creating a full backup of your SD card and have a look to our Stretch > Buster upgrade guide. Usage hints / HowTo - DietPi.com Docs

1 Like

Thank you so much.
I will try that.

For the moment how can I downgrade Grafana?

I found it how
sudo apt-get install grafana=9.1.7
And the versions list is here

yes, that’s the way.

Thanks.
For the record and for people later.
I need to downgrade to the 9.1.6 version.

better to check on the Stretch > Buster > Bullseye update. Staying on an outdated / unsupported os version is not really a good option :wink:

I will, it’s just a palliative measure because I cant stop the server until the weekend. :slightly_frowning_face:
Thanks for the help! :+1: