# Cannot access admin pages after old backup restore

**URL:** https://meta.discourse.org/t/cannot-access-admin-pages-after-old-backup-restore/333981
**Category:** Support
**Tags:** backups
**Created:** [November 1, 2024, 9:25am UTC](https://meta.discourse.org/t/cannot-access-admin-pages-after-old-backup-restore/333981 "2024-11-01T09:25:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![michel3](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@michel3](https://meta.discourse.org/u/michel3)
#### Post date: [November 1, 2024, 9:25am UTC](https://meta.discourse.org/t/cannot-access-admin-pages-after-old-backup-restore/333981/1 "2024-11-01T09:25:09Z")

</div>

I’m trying to restore a backup taken from a self-hosted discourse instance that was not updated since May 2021. The app.yml was not customized (no plugin).

I restored the backup on a fresh instance. The messages and users were fortunately restored. However, the sidebar does not give access to most administration options:

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/1/1/5115ae2fcaa785b4f64c93dd71e536abe07116ad.png)

Moreover, most administration pages are no longer accessible. For example, I cannot access the backups admin page `https://<mydomain.org>/admin/backups/settings` as it gives a “Page not found” error.

I still can administer that instance using the command line (`./launcher enter app`). However that’s not very convenient and I fear the database could be in a somewhat inconsistent state.

Can you think of a means to restore the admin pages? Thanks!

---

<div class="post-metadata">

### Author: ![Mike\_Taku](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mike_taku/32/458580_2.png) [@Mike\_Taku](https://meta.discourse.org/u/Mike_Taku)
#### Post date: [November 1, 2024, 10:38am UTC](https://meta.discourse.org/t/cannot-access-admin-pages-after-old-backup-restore/333981/2 "2024-11-01T10:38:20Z")

</div>

Hey there, I hope you are well.  
It sounds like there may be a version difference between your backup and the new Discourse instance, especially since the original instance was last updated in May 2021.

To resolve this, try matching the versions by checking the old version in your `app.yml` file, switching the new instance to that version, and then rebuilding. If that doesn’t work, reset the settings and clear any cache by running `Rails.cache.clear` inside the container and then rebuilding the app.

This should help restore access to your admin pages and ensure everything is compatible.

Thank You,  
Mike Taku.

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [November 1, 2024, 11:45am UTC](https://meta.discourse.org/t/cannot-access-admin-pages-after-old-backup-restore/333981/3 "2024-11-01T11:45:15Z")

</div>

Maybe your account is a moderator account but not an admin account?

---

<div class="post-metadata">

### Author: ![michel3](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@michel3](https://meta.discourse.org/u/michel3)
#### Post date: [November 1, 2024, 3:34pm UTC](https://meta.discourse.org/t/cannot-access-admin-pages-after-old-backup-restore/333981/4 "2024-11-01T15:34:23Z")

</div>

Thanks a lot @Mike_Taku and @Ed_S for your quick and relevant replies!

My user was indeed only moderator, and not administrator! I was able to change the permission of my user using the console and then see all the admin settings.

While my initial misunderstanding of the discourse roles is the cause of my issue, the symbol displayed in the user tab could be different between admin and moderator. It’s only when the cursor is hovering over that symbol that a tooltip displays “Administrator” or “Moderator”.

![image](https://global.discourse-cdn.com/meta/original/4X/d/0/6/d06a09036f02e58c2f1f12d108586cf3437a3009.png)
