# All dashboards show "Dashboard not found" after changing organizations

**URL:** <https://forums.percona.com/t/all-dashboards-show-dashboard-not-found-after-changing-organizations/14652>\
**Category:** PMM 2.x\
**Created:** [March 7, 2022, 3:06pm UTC](https://forums.percona.com/t/all-dashboards-show-dashboard-not-found-after-changing-organizations/14652 "2022-03-07T15:06:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![psumner](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@psumner](https://forums.percona.com/u/psumner)\
**Post date:** [March 7, 2022, 3:06pm UTC](https://forums.percona.com/t/all-dashboards-show-dashboard-not-found-after-changing-organizations/14652/1 "2022-03-07T15:06:47Z")

</div>

After some users who were evaluating PMM have left the company, I removed some users and organisations, now I can’t see any dashboards. They all show “Dashboard not found”.

v 2.26

The only relevant I can see in the server diagnostic bundle is in grafana.log:

> t=2022-03-07T15:01:56+0000 lvl=info msg=“Request Completed” logger=context userId=5 orgId=5 uname=psumner method=GET path=/api/dashboards/uid/pmm-home status=404 remote\_addr=xx.xx.xx.xx time\_ms=1 size=33 referer=[http://xx.xx.xx.xx/graph/d/pmm-home/home-dashboard](http://xx.xx.xx.xx/graph/d/pmm-home/home-dashboard)

I’m guessing I’ve deleted some kind of master organization but I’ve no idea how to get it back - what can I do?

---

<div class="post-metadata">

**Author:** ![psumner](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@psumner](https://forums.percona.com/u/psumner)\
**Post date:** [March 9, 2022, 2:46pm UTC](https://forums.percona.com/t/all-dashboards-show-dashboard-not-found-after-changing-organizations/14652/2 "2022-03-09T14:46:12Z")

</div>

I tried restarting everything from the CLI using supervisorctl and now I’m getting a “502 Bad Gateway” error in the web browser.

After lots of poking round I found this in supervisorctl tail -f grafana:

service init failed: Datasource provisioning error: failed to provision “Metrics” data source: organization not found

What do I need to do to recover from this?

---

<div class="post-metadata">

**Author:** ![psumner](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@psumner](https://forums.percona.com/u/psumner)\
**Post date:** [March 9, 2022, 3:06pm UTC](https://forums.percona.com/t/all-dashboards-show-dashboard-not-found-after-changing-organizations/14652/3 "2022-03-09T15:06:58Z")

</div>

I’ve got half-way there through lots of searching and guesswork. I found the grafana sqlite DB and added a new Main Org. with ID1:

[root@xxxxx grafana]# sqlite3 /srv/grafana/grafana.db  
SQLite version 3.7.17 2013-05-20 00:56:22  
Enter “.help” for instructions  
Enter SQL statements terminated with a “;”  
sqlite\> INSERT INTO “org” VALUES(1,0,‘Main Org.’,NULL,NULL,NULL,NULL,NULL,NULL,NULL,‘2022-03-09 15:00:00’,‘2022-03-09 15:00:00’);

I added my user to the Main Org.

I can now load the main home dashboard, the inventory still shows all the servers I have added in the past but I can’t load any other dashboards - “Dashboard not found” error.
