grafana fails to load application files in 9.0.3 [broken package]
Grafana replies with the infamous
If you're seeing this Grafana has failed to load its application files
message.
Checking the logs:
2022-07-17T13:04:18.905206+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=settings t=2022-07-17T13:04:18.904704274+02:00 level=info msg="Starting Grafana" version=9.0.3 commit=023f9251a9 branch=main compiled=2022-07-14T22:47:44+02:00
2022-07-17T13:04:18.906682+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=settings t=2022-07-17T13:04:18.906580356+02:00 level=info msg="Config loaded from" file=/usr/share/grafana/conf/defaults.ini
2022-07-17T13:04:18.907560+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=settings t=2022-07-17T13:04:18.906710023+02:00 level=info msg="Config loaded from" file=/etc/grafana.ini
2022-07-17T13:04:18.908123+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=settings t=2022-07-17T13:04:18.907858584+02:00 level=info msg="Config overridden from command line" arg="paths.data=/var/lib/grafana/data"
2022-07-17T13:04:18.908187+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=settings t=2022-07-17T13:04:18.908144833+02:00 level=info msg="Config overridden from command line" arg="paths.plugins=/var/lib/grafana/plugins"
2022-07-17T13:04:18.908295+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=settings t=2022-07-17T13:04:18.908226978+02:00 level=info msg="Config overridden from command line" arg="paths.provisioning=/var/lib/grafana/provisioning"
2022-07-17T13:04:18.908384+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=settings t=2022-07-17T13:04:18.908316801+02:00 level=info msg="Config overridden from command line" arg="server.http_addr=127.0.0.1"
2022-07-17T13:04:18.908436+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=settings t=2022-07-17T13:04:18.90839662+02:00 level=info msg="Config overridden from command line" arg="log.mode=syslog"
2022-07-17T13:04:18.908524+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=settings t=2022-07-17T13:04:18.908457455+02:00 level=info msg="Path Home" path=/usr/share/grafana
2022-07-17T13:04:18.908599+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=settings t=2022-07-17T13:04:18.908536658+02:00 level=info msg="Path Data" path=/var/lib/grafana/data
2022-07-17T13:04:18.908658+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=settings t=2022-07-17T13:04:18.908621106+02:00 level=info msg="Path Logs" path=/usr/share/grafana/data/log
2022-07-17T13:04:18.908707+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=settings t=2022-07-17T13:04:18.908670479+02:00 level=info msg="Path Plugins" path=/var/lib/grafana/plugins
2022-07-17T13:04:18.908813+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=settings t=2022-07-17T13:04:18.908718419+02:00 level=info msg="Path Provisioning" path=/var/lib/grafana/provisioning
2022-07-17T13:04:18.908874+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=settings t=2022-07-17T13:04:18.908837416+02:00 level=info msg="App mode production"
2022-07-17T13:04:18.909671+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=sqlstore t=2022-07-17T13:04:18.909600455+02:00 level=info msg="Connecting to DB" dbtype=sqlite3
2022-07-17T13:04:19.083255+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=migrator t=2022-07-17T13:04:19.082941904+02:00 level=info msg="Starting DB migrations"
2022-07-17T13:04:19.139245+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=migrator t=2022-07-17T13:04:19.138939513+02:00 level=info msg="migrations completed" performed=0 skipped=425 duration=3.681657ms
2022-07-17T13:04:19.482187+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=plugin.manager t=2022-07-17T13:04:19.482028097+02:00 level=info msg="Plugin registered" pluginId=input
2022-07-17T13:04:19.482435+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=plugin.finder t=2022-07-17T13:04:19.482385937+02:00 level=warn msg="Skipping finding plugins as directory does not exist" path=/var/lib/grafana/plugins
2022-07-17T13:04:19.484334+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=secrets t=2022-07-17T13:04:19.484175446+02:00 level=info msg="Envelope encryption state" enabled=true currentprovider=secretKey.v1
2022-07-17T13:04:19.507881+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=query_data t=2022-07-17T13:04:19.507700997+02:00 level=info msg="Query Service initialization"
2022-07-17T13:04:19.533778+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=live.push_http t=2022-07-17T13:04:19.533601689+02:00 level=info msg="Live Push Gateway initialization"
2022-07-17T13:04:20.473122+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=infra.usagestats.collector t=2022-07-17T13:04:20.472785252+02:00 level=info msg="registering usage stat providers" usageStatsProvidersLen=2
2022-07-17T13:04:20.484180+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=provisioning.plugins t=2022-07-17T13:04:20.483888985+02:00 level=error msg="Failed to read plugin provisioning files from directory" path=/var/lib/grafana/provisioning/plugins error="open /var/lib/grafana/provisioning/plugins: no such file or directory"
2022-07-17T13:04:20.486605+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=grafanaStorageLogger t=2022-07-17T13:04:20.486455781+02:00 level=info msg="storage starting"
2022-07-17T13:04:20.500967+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=ngalert t=2022-07-17T13:04:20.500653419+02:00 level=info msg="warming cache for startup"
2022-07-17T13:04:20.519945+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=http.server t=2022-07-17T13:04:20.519665944+02:00 level=info msg="HTTP Server Listen" address=127.0.0.1:3000 protocol=http subUrl= socket=
2022-07-17T13:04:20.534069+02:00 emonitor1 /usr/sbin/grafana-server[4265]: logger=ngalert.multiorg.alertmanager t=2022-07-17T13:04:20.524906659+02:00 level=info msg="starting MultiOrg Alertmanager"
The only error I spot are the plugins and it used to work before the apk upgrade. Investigating at the moment, just wanted to log it here already in case anyone else is facing it.