# 构建错误：创建扩展“vector”的权限被拒绝

**URL:** <https://meta.discourse.org/t/build-error-permission-denied-to-create-extension-vector/378562>\
**Category:** Support\
**Created:** [2025年八月14日 10:40 UTC](https://meta.discourse.org/t/build-error-permission-denied-to-create-extension-vector/378562 "2025-08-14T10:40:21Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![yaxu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yaxu/32/178942_2.png) [@yaxu](https://meta.discourse.org/u/yaxu)\
**Post date:** [2025年八月14日 13:05 UTC](https://meta.discourse.org/t/build-error-permission-denied-to-create-extension-vector/378562/4 "2025-08-14T13:05:22Z")

</div>

我在 PostgreSQL 中解决了它（首先我必须使用 `service restart docker` 重启 docker）

```plaintext
./launcher enter app
sudo -u postgres psql

```

然后为每个站点的数据库运行此命令：

```plaintext
\c b_discourse
CREATE EXTENSION IF NOT EXISTS vector;

```

---

_[View the full topic](https://meta.discourse.org/t/build-error-permission-denied-to-create-extension-vector/378562)._
