# 站点因更新失败而关闭：创建扩展名“unaccent”的权限被拒绝

**URL:** <https://meta.discourse.org/t/site-down-after-failed-update-permission-denied-to-create-extension-unaccent/232313>\
**Category:** Self-hosting\
**Created:** [2022 年7 月 8 日 14:26 UTC](https://meta.discourse.org/t/site-down-after-failed-update-permission-denied-to-create-extension-unaccent/232313 "2022-07-08T14:26:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
发布日期： [2022 年7 月 8 日 14:38 UTC](https://meta.discourse.org/t/site-down-after-failed-update-permission-denied-to-create-extension-unaccent/232313/2 "2022-07-08T14:38:43Z")

</div>

此服务器是如何安装的？

您是否对 Postgres 配置进行了任何更改？

如果您仍在使用 Postgres 10，请尝试在 `app.yml` 的 `hooks:` 部分之后添加以下内容：

```plaintext
afer_postgres:
    - exec: su postgres -c 'psql discourse -c "create extension if not exists unaccent;"'

```

---

_[View the full topic](https://meta.discourse.org/t/site-down-after-failed-update-permission-denied-to-create-extension-unaccent/232313)._
