# 系统禁用远程图片下载时发送通知？

**URL:** https://meta.discourse.org/t/send-a-notification-when-system-disables-remote-image-downloading/237080
**Category:** Feature
**Created:** [2022年八月24日 18:45 UTC](https://meta.discourse.org/t/send-a-notification-when-system-disables-remote-image-downloading/237080 "2022-08-24T18:45:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [2022年八月24日 18:45 UTC](https://meta.discourse.org/t/send-a-notification-when-system-disables-remote-image-downloading/237080/1 "2022-08-24T18:45:22Z")

</div>

您好！

我一直在努力弄清楚为什么我的论坛不再下载远程图片。

我终于在日志中看到了这个：

| 用户 | 操作 | 主题 | 时间 | 详情 |
| --- | --- | --- | --- | --- |
| system | 更改站点设置 | download\_remote\_images\_to\_local | 7月22日 | **新** : false  
**之前** : true  
由于磁盘空间不足，已禁用远程图片下载。 |

但是，我不记得收到过任何关于此事的通知。

如果没有发送通知，我认为应该发送（也许每当在没有管理员操作的情况下更改设置时都应该发送）。如果我只是错过了……您可以关闭此主题，然后像纳尔逊一样嘲笑我。 😅

---

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [2023年五月22日 14:36 UTC](https://meta.discourse.org/t/send-a-notification-when-system-disables-remote-image-downloading/237080/2 "2023-05-22T14:36:08Z")

</div>

我认为现在有一个消息，但可以改进。

今天，在升级论坛后，我收到了这条私人消息：

> **已禁用下载远程图片**
> 
> `download_remote_images_to_local` 设置已被禁用，因为已达到 `download_remote_images_threshold` 的磁盘空间限制。

我的解决方案是：

```plaintext
cd /var/discourse
./launcher cleanup

```

> （总共回收空间：23.09GB）

我想知道这个消息是否可以解释一些关于问题和潜在解决方案的内容。

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [2023年五月22日 16:47 UTC](https://meta.discourse.org/t/send-a-notification-when-system-disables-remote-image-downloading/237080/3 "2023-05-22T16:47:14Z")

</div>

你之所以会提起这个话题，是因为我今天早上又在看它。

事实上，我昨天（又）遇到了同样的问题。

我注意到我的实例上 **download\_remote\_images\_to\_local** 设置为 false 已经 3 个月了，但这一次，我还是不记得看到过警告。🤔

我不确定为什么。我查看了收件箱，但没有找到任何相关消息，包括在存档中。

> [@Jonathan5](#):
>
> 我想知道这条消息是否能解释一下问题和可能的解决方案。

我的实例上没有看到类似的消息，但我们先不管这个。

你收到的消息中有什么不清楚的地方吗？对我来说，它似乎相当直接。解决方案也是如此：释放一些磁盘空间。

---

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [2023年五月22日 16:54 UTC](https://meta.discourse.org/t/send-a-notification-when-system-disables-remote-image-downloading/237080/4 "2023-05-22T16:54:36Z")

</div>

> [@Canapin](#):
>
> 我注意到我的实例上将 **download\_remote\_images\_to\_local** 设置为 false 已有 3 个月，但这次我仍然不记得收到过警告。

也许对我来说也类似，消息直到今天才发送，因为我已更新到最新版本的 Discourse。（编辑 - 刚检查过，相关的日志条目是在今天升级时创建的。）

> [@Canapin](#):
>
> 你收到的消息有什么不清楚的地方吗？对我来说，它似乎相当直接。解决方案也是如此：释放一些磁盘空间。

我并没有说它不清楚。我认为它可以改进。如果存在文档，或者指向论坛主题，它可以链接到那里。
