# Digital Ocean 上将 Teams 数据导出到自托管 Discourse 时出错

**URL:** <https://meta.discourse.org/t/errors-on-exporting-data-from-teams-to-self-hosted-discourse-on-digital-ocean/189789>\
**Category:** Support\
**Created:** [2021年五月8日 19:01 UTC](https://meta.discourse.org/t/errors-on-exporting-data-from-teams-to-self-hosted-discourse-on-digital-ocean/189789 "2021-05-08T19:01:06Z")\
**Posts on this page:** 1\
**Showing post:** 35

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2021年五月12日 15:11 UTC](https://meta.discourse.org/t/errors-on-exporting-data-from-teams-to-self-hosted-discourse-on-digital-ocean/189789/35 "2021-05-12T15:11:37Z")

</div>

@neil 找到了修复方案。真是出色的侦查！🕵️‍♂️

在命令行中执行：

```
cd /var/discourse
./launcher enter app
rails c
Upload.update_all(secure: false)

```

这对我来说让网站恢复了正常运行。@biyaniyash 请尝试一下，并告诉我们结果。

原因是，在 Discourse for Teams 上，启用了 [Secure Uploads](https://meta.discourse.org/t/secure-media-uploads/meta/140017?u=tobiaseigen) 功能，这需要 S3 支持。而在新恢复的自托管站点上，安全媒体上传功能已禁用，上传文件存储在服务器本地。但备份中的任何现有上传文件已被标记为安全，从而导致错误。

---

_[View the full topic](https://meta.discourse.org/t/errors-on-exporting-data-from-teams-to-self-hosted-discourse-on-digital-ocean/189789)._
