# Can't set download remote images

**URL:** https://meta.discourse.org/t/cant-set-download-remote-images/89035
**Category:** Support
**Created:** [June 3, 2018, 8:32am UTC](https://meta.discourse.org/t/cant-set-download-remote-images/89035 "2018-06-03T08:32:20Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Danpiel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danpiel/32/119890_2.png) [@Danpiel](https://meta.discourse.org/u/Danpiel)
#### Post date: [June 3, 2018, 8:32am UTC](https://meta.discourse.org/t/cant-set-download-remote-images/89035/1 "2018-06-03T08:32:20Z")

</div>

Hello, got issue with option “Download remote images”, I set this option, reload admin page, the option stays unchecked. More details follow:

**What I have:**

Fresh Discourse install 2.1.0 with imported posts and users from IPBoard3, the import was successful, no issues there. The forum uses valid Let’s Encrypt certificate and `force_https` option.

Two plugins, which I disabled, but it didn’t helped.

**The issue itself and what I tried:**

In admin panel the option is selectable, but upon reload it’s kinda not saved, the miniprofiler shows that query was successful.

Tried `rake posts:rebake`, no changes  
No admin actions to download the images (option to suppress the output of downloads are disabled) are logged  
No stalled queues in sidekiq, no errors in logs.

Seems like something blocks this functionality, where to dig to fix this.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 3, 2018, 9:52pm UTC](https://meta.discourse.org/t/cant-set-download-remote-images/89035/2 "2018-06-03T21:52:48Z")

</div>

How much free disk space you have?

---

<div class="post-metadata">

### Author: ![Danpiel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danpiel/32/119890_2.png) [@Danpiel](https://meta.discourse.org/u/Danpiel)
#### Post date: [June 4, 2018, 5:44am UTC](https://meta.discourse.org/t/cant-set-download-remote-images/89035/3 "2018-06-04T05:44:15Z")

</div>

890 GB of 1TB, dedicated disks, separate lvm vg, separate partition.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [June 5, 2018, 10:28am UTC](https://meta.discourse.org/t/cant-set-download-remote-images/89035/4 "2018-06-05T10:28:27Z")

</div>

What does this command returns (inside the container)

```
df -P /var/www/discourse/public/uploads | tail -1 | tr -s ' ' | cut -d ' ' -f 5

```

Also, what is the value of the “`download remote images threshold`” site setting?

Are there any logs about that setting being automatically disabled?

---

<div class="post-metadata">

### Author: ![Danpiel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danpiel/32/119890_2.png) [@Danpiel](https://meta.discourse.org/u/Danpiel)
#### Post date: [June 5, 2018, 10:33am UTC](https://meta.discourse.org/t/cant-set-download-remote-images/89035/5 "2018-06-05T10:33:39Z")

</div>

The output is `10%`

The full

```df
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ag02-container--storage 932G 90G 840G 10% /
tmpfs 64M 0 64M 0% /dev
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
/dev/mapper/ag02-container--storage 932G 90G 840G 10% /shared
shm 512M 8.0K 512M 1% /dev/shm
tmpfs 7.9G 0 7.9G 0% /proc/scsi
tmpfs 7.9G 0 7.9G 0% /sys/firmware

```

Download threshold is default 10%, so it would be nearly 93Gb

Will recheck logs

---

<div class="post-metadata">

### Author: ![Danpiel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danpiel/32/119890_2.png) [@Danpiel](https://meta.discourse.org/u/Danpiel)
#### Post date: [June 5, 2018, 10:59am UTC](https://meta.discourse.org/t/cant-set-download-remote-images/89035/6 "2018-06-05T10:59:43Z")

</div>

Nothing in logs, but I found that reloading admin page with option multiple times, sometimes shows the checkmark in the box, sometimes checkmark is missing.

Seems I found the issue, the record in database was duplicate

```plaintext
 id | name | data_type | value | created_at | updated_at
----+---------------------------------+-----------+-------+----------------------------+----------------------------
 46 | download_remote_images_to_local | 5 | t | 2018-05-28 21:27:26.542915 | 2018-06-05 10:40:51.894279
 47 | download_remote_images_to_local | 5 | f | 2018-05-28 21:27:26.543519 | 2018-06-05 10:40:49.163287
(2 rows)

```

Removed both records, reapplied option from admin panel, new proper record applied.

---

<div class="post-metadata">

### Author: ![Danpiel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danpiel/32/119890_2.png) [@Danpiel](https://meta.discourse.org/u/Danpiel)
#### Post date: [June 5, 2018, 11:43am UTC](https://meta.discourse.org/t/cant-set-download-remote-images/89035/7 "2018-06-05T11:43:46Z")

</div>

@zogstrip @Falco thank you for your help and pointing in right direction.

---

<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: [June 8, 2024, 12:37pm UTC](https://meta.discourse.org/t/cant-set-download-remote-images/89035/8 "2024-06-08T12:37:24Z")

</div>

This topic was automatically closed after 2197 days. New replies are no longer allowed.
