# Missing theme-javascripts assets (http 404) on 2.8 stable

**URL:** https://meta.discourse.org/t/missing-theme-javascripts-assets-http-404-on-2-8-stable/226124
**Category:** Support
**Created:** [May 4, 2022, 3:27pm UTC](https://meta.discourse.org/t/missing-theme-javascripts-assets-http-404-on-2-8-stable/226124 "2022-05-04T15:27:09Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![dmorlock](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dmorlock](https://meta.discourse.org/u/dmorlock)
#### Post date: [May 4, 2022, 3:27pm UTC](https://meta.discourse.org/t/missing-theme-javascripts-assets-http-404-on-2-8-stable/226124/1 "2022-05-04T15:27:09Z")

</div>

We run into an error where the theme-javascripts seems to be missing:

```plaintext
$ curl https://mydomain.com | grep "theme-javascript"
<script src="/theme-javascripts/ff7f780a40bfd1e31a2cdc99c7dbc616f619d7d9.js?__ws=mydomain.com"></script>
<script src="/theme-javascripts/1bb8395b8d8d9daecdbef830d8c9418b93a7b5f9.js?__ws=mydomain.com"></script>

```

But when we try to access these files (in a browser with a logged in user) we get an 404 error:

```plaintext
Hoppla! Diese Seite existiert nicht oder ist privat.

```

![image](https://global.discourse-cdn.com/meta/optimized/4X/b/d/f/bdfe126b469a4b029762cbe317bf980d8d80e197_2_690x33.png)

When we check the `javascript-cache`, the files exist:

```plaintext
$ find /var/www/discourse/tmp/javascript-cache -iname 'ff7f780a40bfd1e31a2cdc99c7dbc616f619d7d9*'
/var/www/discourse/tmp/javascript-cache/ff7f780a40bfd1e31a2cdc99c7dbc616f619d7d9.js

```

The current workaround is to edit the custom theme by changing and saving the theme.  
After 1-2 days, the problem occurs again.

We’d appreciate any help for further investigation.

Thanks,  
Daniel.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [May 4, 2022, 5:10pm UTC](https://meta.discourse.org/t/missing-theme-javascripts-assets-http-404-on-2-8-stable/226124/2 "2022-05-04T17:10:25Z")

</div>

What version of Discourse are you running? We fixed a similar-sounding issue back in February:

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

---

<div class="post-metadata">

### Author: ![dmorlock](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dmorlock](https://meta.discourse.org/u/dmorlock)
#### Post date: [May 5, 2022, 7:32pm UTC](https://meta.discourse.org/t/missing-theme-javascripts-assets-http-404-on-2-8-stable/226124/3 "2022-05-05T19:32:36Z")

</div>

We are using V2.8.0. Which version contains the mentioned fix?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [May 6, 2022, 9:51am UTC](https://meta.discourse.org/t/missing-theme-javascripts-assets-http-404-on-2-8-stable/226124/4 "2022-05-06T09:51:22Z")

</div>

This fix is only in 2.9.0 (beta). I’ll see whether we can get it backported to stable since it’s a relatively simple fix: (PR [here](https://github.com/discourse/discourse/pull/16669))

Edit: that’s merged into the stable branch @dmorlock. So if you run an upgrade (via the console, or via `/admin/upgrade`, the issue should be resolved.

---

<div class="post-metadata">

### Author: ![dmorlock](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dmorlock](https://meta.discourse.org/u/dmorlock)
#### Post date: [May 6, 2022, 9:38pm UTC](https://meta.discourse.org/t/missing-theme-javascripts-assets-http-404-on-2-8-stable/226124/5 "2022-05-06T21:38:00Z")

</div>

We just updated to the stable branch and are currently testing whether this fixed our issue.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [June 5, 2022, 9:38pm UTC](https://meta.discourse.org/t/missing-theme-javascripts-assets-http-404-on-2-8-stable/226124/6 "2022-06-05T21:38:56Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
