Grafana Service Fails to Start After OS Upgrade to RHEL 8.10

I am currently running Grafana version 4 on a server with RHEL 7.9. Due to the end-of-life status of RHEL 7.9, I need to upgrade the server to RHEL 8.10. After performing the OS upgrade, the Grafana service fails to start.

In an attempt to resolve the issue, I upgraded Grafana to the latest version 11 and repeated the steps, but the Grafana service still does not start. Can you help me the steps needs to be followed for base OS upgrade of grafana server?

Jul 24 11:16:20 grafana-uat systemd[1]: Starting Grafana instance…

Jul 24 11:16:20 grafana-uat grafana-server[745069]: Grafana server is running with elevated privileges. This is not recommended

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=settings t=2024-07-24T11:16:20.83881405+01:00 level=info msg=“Starting Grafana” version=9.2>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=settings t=2024-07-24T11:16:20.838978075+01:00 level=info msg=“Config loaded from” file=/us>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=settings t=2024-07-24T11:16:20.838989842+01:00 level=info msg=“Config loaded from” file=/et>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=settings t=2024-07-24T11:16:20.838997135+01:00 level=info msg="Config overridden from comma>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=settings t=2024-07-24T11:16:20.839004562+01:00 level=info msg="Config overridden from comma>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=settings t=2024-07-24T11:16:20.839010978+01:00 level=info msg="Config overridden from comma>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=settings t=2024-07-24T11:16:20.839018269+01:00 level=info msg="Config overridden from comma>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=settings t=2024-07-24T11:16:20.83902523+01:00 level=info msg=“Path Home” path=/usr/share/gr>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=settings t=2024-07-24T11:16:20.839031844+01:00 level=info msg=“Path Data” path=/mnt/grafana>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=settings t=2024-07-24T11:16:20.839038167+01:00 level=info msg=“Path Logs” path=/var/log/gra>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=settings t=2024-07-24T11:16:20.839043828+01:00 level=info msg=“Path Plugins” path=/mnt/graf>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=settings t=2024-07-24T11:16:20.839050259+01:00 level=info msg=“Path Provisioning” path=/usr>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=settings t=2024-07-24T11:16:20.83905626+01:00 level=info msg=“App mode production”

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=sqlstore t=2024-07-24T11:16:20.839247257+01:00 level=info msg=“Connecting to DB” dbtype=sql>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=sqlstore t=2024-07-24T11:16:20.839302498+01:00 level=warn msg="SQLite database file has bro>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=migrator t=2024-07-24T11:16:20.929475062+01:00 level=info msg=“Starting DB migrations”

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=migrator t=2024-07-24T11:16:20.935344155+01:00 level=info msg=“migrations completed” perfor>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=plugin.loader t=2024-07-24T11:16:20.968650723+01:00 level=info msg=“Plugin registered” plug>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=plugin.loader t=2024-07-24T11:16:20.974377141+01:00 level=warn msg="Skipping loading plugin>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=plugin.loader t=2024-07-24T11:16:20.974395912+01:00 level=warn msg="Skipping loading plugin>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=secrets t=2024-07-24T11:16:20.974423695+01:00 level=info msg=“Envelope encryption state” en>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=query_data t=2024-07-24T11:16:20.975766774+01:00 level=info msg="Query Service initializati>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=live.push_http t=2024-07-24T11:16:20.978657439+01:00 level=info msg="Live Push Gateway init>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=ngalert.multiorg.alertmanager t=2024-07-24T11:16:20.979821574+01:00 level=error msg="unable>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: logger=cli t=2024-07-24T11:16:20.983664845+01:00 level=error msg=“Critical error” reason="runtime >

Jul 24 11:16:20 grafana-uat grafana-server[745069]: panic: runtime error: invalid memory address or nil pointer dereference [recovered]

Jul 24 11:16:20 grafana-uat grafana-server[745069]: panic: runtime error: invalid memory address or nil pointer dereference

Jul 24 11:16:20 grafana-uat grafana-server[745069]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x563b567b0140]

Jul 24 11:16:20 grafana-uat grafana-server[745069]: goroutine 1 [running]:

Jul 24 11:16:20 grafana-uat grafana-server[745069]: panic({0x563b57fcf840?, 0x563b5a09a470?})

Jul 24 11:16:20 grafana-uat grafana-server[745069]: /usr/lib/golang/src/runtime/panic.go:1017 +0x3ac fp=0xc000d8ffe8 sp=0xc000d8ff38 pc=0x563b>

Jul 24 11:16:20 grafana-uat grafana-server[745069]: github.com/grafana/grafana/pkg/cmd/grafana-server/commands.executeServer.func2()