# Downloading remote images disabled due to disk space

**URL:** https://meta.discourse.org/t/downloading-remote-images-disabled-due-to-disk-space/30992
**Category:** Support
**Created:** [2015年七月12日 02:43 UTC](https://meta.discourse.org/t/downloading-remote-images-disabled-due-to-disk-space/30992 "2015-07-12T02:43:53Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![rnovino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rnovino/32/115865_2.png) [@rnovino](https://meta.discourse.org/u/rnovino)
#### Post date: [2015年七月12日 02:43 UTC](https://meta.discourse.org/t/downloading-remote-images-disabled-due-to-disk-space/30992/1 "2015-07-12T02:43:53Z")

</div>

I just received this notification on my discourse how to fix?

> The `download_remote_images_to_local` setting was disabled because the disk space limit at `download_remote_images_threshold` was reached.

---

<div class="post-metadata">

### Author: ![ColdSun](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/coldsun/32/66668_2.png) [@ColdSun](https://meta.discourse.org/u/ColdSun)
#### Post date: [2015年七月12日 05:26 UTC](https://meta.discourse.org/t/downloading-remote-images-disabled-due-to-disk-space/30992/2 "2015-07-12T05:26:33Z")

</div>

Either clear up more room on the server or change the threshold in the settings.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [2015年七月12日 07:09 UTC](https://meta.discourse.org/t/downloading-remote-images-disabled-due-to-disk-space/30992/3 "2015-07-12T07:09:15Z")

</div>

You can try running `./launcher cleanup` to clean up space.

---

<div class="post-metadata">

### Author: ![rnovino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rnovino/32/115865_2.png) [@rnovino](https://meta.discourse.org/u/rnovino)
#### Post date: [2015年七月12日 07:28 UTC](https://meta.discourse.org/t/downloading-remote-images-disabled-due-to-disk-space/30992/4 "2015-07-12T07:28:34Z")

</div>

> [@ColdSun](#):
>
> Either clear up more room on the server or change the threshold in the settings.

where can I fond the threshold settings?

---

<div class="post-metadata">

### Author: ![rnovino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rnovino/32/115865_2.png) [@rnovino](https://meta.discourse.org/u/rnovino)
#### Post date: [2015年七月12日 07:33 UTC](https://meta.discourse.org/t/downloading-remote-images-disabled-due-to-disk-space/30992/5 "2015-07-12T07:33:14Z")

</div>

> [@fefrei](#):
>
> You can try running ./launcher cleanup to clean up space.

is this safe? what does it do? does it just give space or delete things?

---

<div class="post-metadata">

### Author: ![rnovino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rnovino/32/115865_2.png) [@rnovino](https://meta.discourse.org/u/rnovino)
#### Post date: [2015年七月12日 07:38 UTC](https://meta.discourse.org/t/downloading-remote-images-disabled-due-to-disk-space/30992/6 "2015-07-12T07:38:11Z")

</div>

also where do I do this?

**allow animated avatars**  
Allow users to use animated gif avatars. WARNING: run the **avatars:refresh** rake task after changing this setting.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [2015年七月12日 07:46 UTC](https://meta.discourse.org/t/downloading-remote-images-disabled-due-to-disk-space/30992/7 "2015-07-12T07:46:37Z")

</div>

> [@rnovino](#):
>
> is this safe? what does it do? does it just give space or delete things?

It will delete any docker containers that haven’t been running for 24 hours.

It is safe to run if you don’t use docker for anything else and your Discourse installation is running.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [2015年七月12日 07:50 UTC](https://meta.discourse.org/t/downloading-remote-images-disabled-due-to-disk-space/30992/8 "2015-07-12T07:50:35Z")

</div>

To run `avatars:refresh`, SSH into your server and run:

```
cd /var/discourse
./launcher enter app
rake avatars:refresh

```

---

<div class="post-metadata">

### Author: ![AdamCapriola](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adamcapriola/32/5192_2.png) [@AdamCapriola](https://meta.discourse.org/u/AdamCapriola)
#### Post date: [2016年一月30日 17:19 UTC](https://meta.discourse.org/t/downloading-remote-images-disabled-due-to-disk-space/30992/12 "2016-01-30T17:19:16Z")

</div>

I just got the disk space limit message. I’ve been periodically cleaning up old Docker containers but my available disk space has simply depleted over time.

Is the only solution to upgrade my droplet (on Digital Ocean)? My memory usage seems fine; it’s just a disk space issue. Seems overkill to move up to their next plan. Would [enabling a CND](https://meta.discourse.org/t/enable-a-cdn-for-your-discourse/14857) or configuring [uploads to S3](https://meta.discourse.org/t/setting-up-file-and-image-uploads-to-s3/7229) help?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016年一月30日 23:33 UTC](https://meta.discourse.org/t/downloading-remote-images-disabled-due-to-disk-space/30992/13 "2016-01-30T23:33:05Z")

</div>

log in via SSH and

```
apt-get autoclean
apt-get autoremove
git pull
./launcher rebuild app
./launcher cleanup

```

That should fix you up nicely, cleaning both Docker containers and cleaning up old Ubuntu automatic kernel upgrade archives too, which can be quite large over a year.

---

<div class="post-metadata">

### Author: ![AdamCapriola](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adamcapriola/32/5192_2.png) [@AdamCapriola](https://meta.discourse.org/u/AdamCapriola)
#### Post date: [2016年一月31日 22:42 UTC](https://meta.discourse.org/t/downloading-remote-images-disabled-due-to-disk-space/30992/14 "2016-01-31T22:42:58Z")

</div>

Thanks! The really helped. Went from 90% to 57% disk space used. Should be good for a while now. 😅

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2019年八月9日 18:19 UTC](https://meta.discourse.org/t/downloading-remote-images-disabled-due-to-disk-space/30992/15 "2019-08-09T18:19:51Z")

</div>



---

<div class="post-metadata">

### Author: ![REALITY](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/reality/32/199798_2.png) [@REALITY](https://meta.discourse.org/u/REALITY)
#### Post date: [2020年十一月30日 10:54 UTC](https://meta.discourse.org/t/downloading-remote-images-disabled-due-to-disk-space/30992/19 "2020-11-30T10:54:33Z")

</div>

这是否仍然相关且运行安全？

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2020年十二月1日 00:44 UTC](https://meta.discourse.org/t/downloading-remote-images-disabled-due-to-disk-space/30992/20 "2020-12-01T00:44:25Z")

</div>

是的，这些命令仍然有效。

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2023年十月4日 15:44 UTC](https://meta.discourse.org/t/downloading-remote-images-disabled-due-to-disk-space/30992/21 "2023-10-04T15:44:26Z")

</div>


