# Downloading backups fails with missing template

**URL:** https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630
**Category:** Support
**Tags:** unsupported-install
**Created:** [7. Dezember 2017 um 15:41 UTC](https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630 "2017-12-07T15:41:56Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![darix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darix/32/114280_2.png) [@darix](https://meta.discourse.org/u/darix)
#### Post date: [7. Dezember 2017 um 15:41 UTC](https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630/1 "2017-12-07T15:41:56Z")

</div>

```plaintext
Started GET "/admin/backups/backupid.tar.gz?token=supersecret" for 255.255.255.255 at 2017-12-07 15:32:50 +0000
Processing by Admin::BackupsController#show as GZIP
  Parameters: {"token"=>"supersecret", "id"=>"backupid.tar.gz"}
Completed 500 Internal Server Error in 81ms (ActiveRecord: 11.8ms)
ActionView::MissingTemplate (Missing template admin/backups/show, admin/admin/show, application/show with {:locale=>[:en], :formats=>[:gzip], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby]}. Search
ed in:
  * "/srv/www/vhosts/discourse/app/views"
)
/usr/lib64/ruby/gems/2.4.0/gems/actionview-5.1.4/lib/action_view/path_set.rb:46:in `find'

```

The file /srv/www/vhosts/discourse/public/backups/default/backupid.tar.gz exists.

```plaintext
759789 4 drwx------ 3 discourse discourse 4096 Jun 5 2017 /srv/www/vhosts/discourse/public/backups
759793 4 drwxr-xr-x 2 discourse discourse 4096 Dez 7 03:11 /srv/www/vhosts/discourse/public/backups/default
766573 2308924 -rw-r--r-- 1 discourse discourse 2364332981 Nov 27 03:35 /srv/www/vhosts/discourse/public/backups/default/backupid.tar.gz

```

even u=rw,go=x on /srv/www/vhosts/discourse/public/backups the backup download doesnt work.

---

<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: [7. Dezember 2017 um 23:40 UTC](https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630/3 "2017-12-07T23:40:26Z")

</div>

Can we repro this @techapj?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [8. Dezember 2017 um 04:05 UTC](https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630/4 "2017-12-08T04:05:45Z")

</div>

I am not able to repro this on latest Discourse version.

@darix have you installed Discourse using our [official guide](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md)?

---

<div class="post-metadata">

### Author: ![darix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darix/32/114280_2.png) [@darix](https://meta.discourse.org/u/darix)
#### Post date: [8. Dezember 2017 um 11:49 UTC](https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630/5 "2017-12-08T11:49:11Z")

</div>

We are using my [RPM](https://build.opensuse.org/package/show/home:darix:apps/discourse) to install discourse. [The build description is here](https://build.opensuse.org/package/view_file/home:darix:apps/discourse/discourse.spec?expand=1). After updating the package [the following script is run](https://build.opensuse.org/package/view_file/home:darix:apps/discourse/discourse-update?expand=1).

---

<div class="post-metadata">

### Author: ![darix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darix/32/114280_2.png) [@darix](https://meta.discourse.org/u/darix)
#### Post date: [8. Dezember 2017 um 11:49 UTC](https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630/6 "2017-12-08T11:49:48Z")

</div>

A download of a newly created backup works now.

Ok this happens when the permissions on the download dir are too strict. (o+rX missing)

Why are backups in the public dir at all?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [8. Dezember 2017 um 12:34 UTC](https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630/7 "2017-12-08T12:34:16Z")

</div>

Moving this to #Support category. We only support official docker installation method.

---

<div class="post-metadata">

### Author: ![darix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darix/32/114280_2.png) [@darix](https://meta.discourse.org/u/darix)
#### Post date: [8. Dezember 2017 um 13:13 UTC](https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630/8 "2017-12-08T13:13:46Z")

</div>

Another way to trigger the missing template warning:

try to use the same download link twice … I think then it fails to render the error message. So basically everytime it wants to render an error message here it fails to find a template because it doesnt find a template for type GZIP

Which makes this more of a bug and not a support case.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [8. Dezember 2017 um 15:56 UTC](https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630/9 "2017-12-08T15:56:08Z")

</div>

~~Have you reported the openSUSE bug to then yet? If you are satisfied with having them support your Discourse you will probably have better luck reporting their bugs to them.~~

EDIT: D’oh !

There is a possibility that others that have installed Discourse as you have will offer some help here, but AFAIK most members have followed the [official install](https://meta.discourse.org/t/142537?silent=true) and won’t be able to help with problems they don’t have.

---

<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: [8. Dezember 2017 um 16:02 UTC](https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630/10 "2017-12-08T16:02:25Z")

</div>

> [@Mittineague](#):
>
> Have you reported the openSUSE bug to then yet?

Based on the name of the package `darix:apps/discourse` I believe that @darix is the author of this Suse package.

@darix very cool to see a Discourse package, but we can’t support installs that differ from our [official guide](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md).

---

<div class="post-metadata">

### Author: ![darix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darix/32/114280_2.png) [@darix](https://meta.discourse.org/u/darix)
#### Post date: [8. Dezember 2017 um 16:07 UTC](https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630/11 "2017-12-08T16:07:52Z")

</div>

You are just arguing around how we trigger the bug but _not_ the real issue that we discovered with it.

It is _my_ own package. I already put some things in place to make this situation from happen less.

But you can still trigger it with using the same download token twice. Also I did not move this to the support category.

---

<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: [8. Dezember 2017 um 16:18 UTC](https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630/12 "2017-12-08T16:18:30Z")

</div>

> [@darix](#):
>
> But you can still trigger it with using the same download token twice. Also I did not move this to the support category.

> [@darix](#):
>
> Ok this happens when the permissions on the download dir are too strict. (o+rX missi

Which is correct? Because if is the latter, it won’t happen in the [official install](https://meta.discourse.org/t/142537?silent=true).

---

<div class="post-metadata">

### Author: ![darix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darix/32/114280_2.png) [@darix](https://meta.discourse.org/u/darix)
#### Post date: [8. Dezember 2017 um 16:19 UTC](https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630/13 "2017-12-08T16:19:12Z")

</div>

both cases trigger it.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [8. Dezember 2017 um 16:28 UTC](https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630/14 "2017-12-08T16:28:51Z")

</div>

Have you found what changes would be needed to solve your problem?

Though the CDCK team may not have the resources to track down the issue, if you have a fix that won’t break things there’s a chance your PR might be accepted.

---

<div class="post-metadata">

### Author: ![darix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darix/32/114280_2.png) [@darix](https://meta.discourse.org/u/darix)
#### Post date: [19. Dezember 2017 um 15:35 UTC](https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630/15 "2017-12-19T15:35:10Z")

</div>

any error while trying to download a backup will trigger the missing template error.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [5. Januar 2018 um 15:58 UTC](https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630/16 "2018-01-05T15:58:40Z")

</div>

This is now fixed via:

[https://github.com/discourse/discourse/commit/ed4b845930e0893fe5c1eab1849b7c92c23c7da8](https://github.com/discourse/discourse/commit/ed4b845930e0893fe5c1eab1849b7c92c23c7da8)

Apologies @darix, I overlooked this issue initially.

---

<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: [5. Januar 2018 um 23:47 UTC](https://meta.discourse.org/t/downloading-backups-fails-with-missing-template/75630/17 "2018-01-05T23:47:27Z")

</div>


