Login failed Internal Server Error

Hello,
I have reinstalled Grafana on a Raspberry Pi 5 and copied the grafana.db from the old system. I was able to log in once with admin admin and set a new password.

All the data was apparently there. After logging out, I wanted to log in again, but got an error:
“Login failed Internal Server Error”.

I then restored the default with
sudo grafana-cli admin reset-admin-password admin
but the error still occurs.

new installation. Result:

root@raspi2:/home/pi# systemctl status grafana-server
× grafana-server.service - Grafana instance
Loaded: loaded (/lib/systemd/system/grafana-server.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Thu 2024-11-21 18:09:57 CET; 6min ago
Duration: 136ms
Docs: http://docs.grafana.org
Process: 4213 ExecStart=/usr/share/grafana/bin/grafana server --config=${CONF_FILE} --pidfile=${PID_FILE_DIR}/grafana-server.pid --packaging=deb cfg:defa>
Main PID: 4213 (code=exited, status=1/FAILURE)
CPU: 165ms

Nov 21 18:09:57 raspi2 systemd[1]: grafana-server.service: Scheduled restart job, restart counter is at 5.
Nov 21 18:09:57 raspi2 systemd[1]: Stopped grafana-server.service - Grafana instance.
Nov 21 18:09:57 raspi2 systemd[1]: grafana-server.service: Start request repeated too quickly.
Nov 21 18:09:57 raspi2 systemd[1]: grafana-server.service: Failed with result ‘exit-code’.
Nov 21 18:09:57 raspi2 systemd[1]: Failed to start grafana-server.service - Grafana instance.

root@raspi2:/home/pi# service grafana start
Failed to start grafana.service: Unit grafana.service not found.
root@raspi2:/home/pi#