Upgrade Grafana 9.4.3 to 10.4.7 sending error startup

I have downloaded tar.gz from Grafana and executed below steps

  1. Stop actual version 9.4.3
  2. Back up grafana.db
  3. Extract files for 10.4.7
  4. Copy grafana.db to new installation
  5. Start Grafana 10.4.7

On logs I am getting below and not able to start my grafana, what could be the issue and fix for the same?

logger=migrator t=2024-08-21T16:47:53.736217204-06:00 level=info msg=“migrations completed” performed=74 skipped=572 duration=1.413083406s
logger=licensing t=2024-08-21T16:47:53.737540379-06:00 level=info msg=“Validated license token” appURL=http://localhost:8085/ source=disk status=NotFound
logger=accesscontrol t=2024-08-21T16:47:53.854605117-06:00 level=error msg=“Error saving permissions” migration=scopeSplit error=“unable to open database file: no such file or directory”
logger=accesscontrol t=2024-08-21T16:47:53.857700322-06:00 level=error msg=“Error updating permission batch” migration=scopeSplit start=0 end=1000
logger=accesscontrol t=2024-08-21T16:47:53.857805696-06:00 level=error msg=“Could not migrate permissions” migration=scopeSplit total=1349 succeeded=0 left=1349 error=“unable to open database file: no such file or directory”

Thanks

what folder did you copy it to?

I already copied the grafana.db to my actual folder, we are not installing Grafana as service as we do not have the root access so we do on local path of our linux server, we copied the file under /monitor/WORK/grafana-10.4.7/data

1 Like

not sure what you mean by “my actual folder”
generally it should be copied to the data folder.

image

I copied to data folder after installation

1 Like

this is the concerning error

error=“unable to open database file: no such file or directory”

after you extracted the file, wonder if permissions are not set in folders appropriately

this is the first thing we saw on logs, so we put 777 on full directory and subdirectories, but still issue is there, are there any specific permissions folders may have?

I would check on the previous grafana folder.