# An error occurred while restoring from a backup: discourse\_functions.raise\_discourse\_voting\_category\_settings\_readonly() does not exist

**URL:** <https://meta.discourse.org/t/an-error-occurred-while-restoring-from-a-backup-discourse-functions-raise-discourse-voting-category-settings-readonly-does-not-exist/319988>\
**Category:** Self-hosting\
**Tags:** backups\
**Created:** [August 3, 2024, 8:22pm UTC](https://meta.discourse.org/t/an-error-occurred-while-restoring-from-a-backup-discourse-functions-raise-discourse-voting-category-settings-readonly-does-not-exist/319988 "2024-08-03T20:22:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![exlabs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/exlabs/32/437527_2.png) [@exlabs](https://meta.discourse.org/u/exlabs)\
**Post date:** [August 3, 2024, 8:22pm UTC](https://meta.discourse.org/t/an-error-occurred-while-restoring-from-a-backup-discourse-functions-raise-discourse-voting-category-settings-readonly-does-not-exist/319988/1 "2024-08-03T20:22:36Z")

</div>

Hello,

I have a back-up made using our main instance Discourse 3.4.0.beta1-dev version [633a19fcc09a41a31eadd176519483217b2ec241](https://github.com/discourse/discourse/commit/633a19fcc09a41a31eadd176519483217b2ec241)

I want to upload this back-up to a local instance, it’s a fresh install running Discourse 3.4.0.beta1-dev version [2b577950af5b24ed0d32eecc4ab6475619998fba](https://github.com/discourse/discourse/commit/2b577950af5b24ed0d32eecc4ab6475619998fba)

Here is the log, any suggestions for a workaround?

```plaintext
[2024-08-03 16:45:29] CREATE INDEX
[2024-08-03 16:45:29] CREATE INDEX
[2024-08-03 16:45:29] ERROR: function discourse_functions.raise_discourse_voting_category_settings_readonly() does not exist
[2024-08-03 16:45:29] EXCEPTION: psql failed: ERROR: function discourse_functions.raise_discourse_voting_category_settings_readonly() does not exist

```

---

_[View the full topic](https://meta.discourse.org/t/an-error-occurred-while-restoring-from-a-backup-discourse-functions-raise-discourse-voting-category-settings-readonly-does-not-exist/319988)._
