# Colored loading dots because assets not uploaded

**URL:** https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701
**Category:** Self-hosting
**Tags:** s3
**Created:** [May 12, 2024, 7:04pm UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701 "2024-05-12T19:04:20Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![Jeff\_Vienneau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeff_vienneau/32/108772_2.png) [@Jeff\_Vienneau](https://meta.discourse.org/u/Jeff_Vienneau)
#### Post date: [May 12, 2024, 7:04pm UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/1 "2024-05-12T19:04:20Z")

</div>

Checking all of the boxes on [Safe mode](https://meta.discourse.org/t/53504?silent=true) does not help.

I removed all app.yml plugins except docker manager.

Any thoughts on how to troubleshoot this?

I don’t see anything obvious in the re-build app log either.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [May 12, 2024, 7:45pm UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/2 "2024-05-12T19:45:22Z")

</div>

Are you saying that the site is stuck at the loading?

Can you check your browser’s console and copy-paste or screenshot what you see? (click right on the page → inspect → click on Console tab)

---

<div class="post-metadata">

### Author: ![Jeff\_Vienneau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeff_vienneau/32/108772_2.png) [@Jeff\_Vienneau](https://meta.discourse.org/u/Jeff_Vienneau)
#### Post date: [May 12, 2024, 7:56pm UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/3 "2024-05-12T19:56:48Z")

</div>

This is what I’m seeing in the console:

```plaintext
Uncaught ReferenceError: define is not defined
    at apply-details.js:1:1
composer-presence-display.js:1 Uncaught ReferenceError: define is not defined
    at composer-presence-display.js:1:1
console.js:1 Uncaught ReferenceError: define is not defined
    at console.js:1:1
spoiler-alert.js:1 Uncaught ReferenceError: define is not defined
    at spoiler-alert.js:1:1
admin?v=b7ce39c01f13a2dce7d327b15c700163:1 Uncaught ReferenceError: I18n is not defined
    at admin?v=b7ce39c01f13a2dce7d327b15c700163:1:1
wizard?v=3f01c1ba4ca92c6d988a708eb22fa69a:1 Uncaught ReferenceError: I18n is not defined
    at wizard?v=3f01c1ba4ca92c6d988a708eb22fa69a:1:1

```

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [May 12, 2024, 8:28pm UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/4 "2024-05-12T20:28:23Z")

</div>

Is it an upgrade from the admin panel?

If so, can you try rebuilding Discourse from the command line and see it it helps?  
It can happen sometimes; you need to rebuild the container fully. 🤔

---

<div class="post-metadata">

### Author: ![Jeff\_Vienneau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeff_vienneau/32/108772_2.png) [@Jeff\_Vienneau](https://meta.discourse.org/u/Jeff_Vienneau)
#### Post date: [May 12, 2024, 8:33pm UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/5 "2024-05-12T20:33:15Z")

</div>

I’ve done several:

./launcher rebuild app tries from command line

Even re-booted my server.

I tried a rebuild app with all of the plugins commented out or the app.yml (except docker-manager).

The only odd thing I’m seeing is occasionally, redis shows up in the log when rebuilding the app as port already in use.

---

<div class="post-metadata">

### Author: ![Jeff\_Vienneau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeff_vienneau/32/108772_2.png) [@Jeff\_Vienneau](https://meta.discourse.org/u/Jeff_Vienneau)
#### Post date: [May 12, 2024, 8:39pm UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/6 "2024-05-12T20:39:05Z")

</div>

I also see this in the rebuild log:  
warning Resolution field “unset-value@2.0.1” is incompatible with requested version “unset-value@^1.0.0”

---

<div class="post-metadata">

### Author: ![Jeff\_Vienneau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeff_vienneau/32/108772_2.png) [@Jeff\_Vienneau](https://meta.discourse.org/u/Jeff_Vienneau)
#### Post date: [May 12, 2024, 8:40pm UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/7 "2024-05-12T20:40:36Z")

</div>

Maybe these warnings too:

```plaintext
warning "@discourse/lint-configs > eslint-plugin-ember > ember-eslint-parser@0.3.8" has unmet peer dependency "@typescript-eslint/parser@^6.15.0".
warning " > @glint/environment-ember-loose@1.4.0" has unmet peer dependency "@glimmer/component@^1.1.2".
warning " > discourse-markdown-it@1.0.0" has unmet peer dependency "xss@*".
warning "workspace-aggregator-dea9e772-66c3-4abc-b8ac-f93229bc0b9d > discourse > @uppy/aws-s3@3.0.6" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-dea9e772-66c3-4abc-b8ac-f93229bc0b9d > discourse > @uppy/aws-s3-multipart@3.1.3" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-dea9e772-66c3-4abc-b8ac-f93229bc0b9d > discourse > @uppy/xhr-upload@3.1.1" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-dea9e772-66c3-4abc-b8ac-f93229bc0b9d > discourse-plugins > ember-this-fallback@0.4.0" has unmet peer dependency "ember-source@^3.28.11 || ^4.0.0".
warning "workspace-aggregator-dea9e772-66c3-4abc-b8ac-f93229bc0b9d > admin > ember-source > router_js@8.0.3" has unmet peer dependency "rsvp@^4.8.5".
warning "workspace-aggregator-dea9e772-66c3-4abc-b8ac-f93229bc0b9d > discourse > @uppy/aws-s3 > @uppy/xhr-upload@3.3.0" has incorrect peer dependency "@uppy/core@^3.2.1".

```

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [May 12, 2024, 8:43pm UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/8 "2024-05-12T20:43:19Z")

</div>

Those warnings can be ignored. Don’t hesitate to paste the entire log here if we miss something.

Also, are you behind Cloudflare or similar?

---

<div class="post-metadata">

### Author: ![Jeff\_Vienneau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeff_vienneau/32/108772_2.png) [@Jeff\_Vienneau](https://meta.discourse.org/u/Jeff_Vienneau)
#### Post date: [May 12, 2024, 8:45pm UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/9 "2024-05-12T20:45:30Z")

</div>

It’s on a Digital Ocean droplet with new images on S3 bucket.

---

<div class="post-metadata">

### Author: ![Jeff\_Vienneau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeff_vienneau/32/108772_2.png) [@Jeff\_Vienneau](https://meta.discourse.org/u/Jeff_Vienneau)
#### Post date: [May 12, 2024, 9:12pm UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/10 "2024-05-12T21:12:42Z")

</div>

> [@Jeff\_Vienneau](#):
>
> Uncaught ReferenceError: define is not defined  
> at apply-details.js:1:1

What causes errors like this ^^^?

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [May 12, 2024, 11:30pm UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/11 "2024-05-12T23:30:05Z")

</div>

I’m not sure. I would say what we see is the consequence of an underlying issue (like a fatal error at early stage or something did not load properly). Hopefully someone can provide other insights on this. 🤔

Is it possible to share your Discourse URL (or by PM if you prefer)?

---

<div class="post-metadata">

### Author: ![Jeff\_Vienneau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeff_vienneau/32/108772_2.png) [@Jeff\_Vienneau](https://meta.discourse.org/u/Jeff_Vienneau)
#### Post date: [May 12, 2024, 11:34pm UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/12 "2024-05-12T23:34:41Z")

</div>

Sent the DM, @Arkshine.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [May 12, 2024, 11:48pm UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/13 "2024-05-12T23:48:10Z")

</div>

I misread; I thought you would use S3 only for images!

It seems you have permission issues (or outdated cache?) with files in your S3 bucket. Some of your Javascript files are blocked (403 forbidden), so Discourse can’t be loaded.

Unfortunately, I don’t know much about S3, but at least you know where the issue comes from. Hopefully, someone else can give you some guidance soon!

---

<div class="post-metadata">

### Author: ![Jeff\_Vienneau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeff_vienneau/32/108772_2.png) [@Jeff\_Vienneau](https://meta.discourse.org/u/Jeff_Vienneau)
#### Post date: [May 12, 2024, 11:52pm UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/14 "2024-05-12T23:52:26Z")

</div>

On second thought, there is no risk in sharing the url in case anyone else can spot the issue.

> **[ECMTB](https://ecmtb.net/)**
>
> East Coast Mountain Biking (ECMTB) is an online community mountain bikers in Atlantic Canada.

I was hesitant with the logs because I seen some S3 access keys in there and wasn’t sure if there was anything else in the log that should be private.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 13, 2024, 9:17am UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/15 "2024-05-13T09:17:09Z")

</div>

If you followed [Configure an S3 compatible object storage provider for uploads](https://meta.discourse.org/t/configure-an-s3-compatible-object-storage-provider-for-uploads/148916) did you include the bit that uploads assets to s3?

---

<div class="post-metadata">

### Author: ![Jeff\_Vienneau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeff_vienneau/32/108772_2.png) [@Jeff\_Vienneau](https://meta.discourse.org/u/Jeff_Vienneau)
#### Post date: [May 13, 2024, 10:00am UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/16 "2024-05-13T10:00:58Z")

</div>

Thanks, I’m looking into it…

I had the section with after\_assets\_precompile, commented out because something was failing.

I’ll re-enable and see what’s up.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 13, 2024, 10:24am UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/17 "2024-05-13T10:24:41Z")

</div>

The thing to do is something like

```plaintext
./launcher enter app
rake s3:i_cannot_remember_the_name

```

and see what error you get.

But if you don’t have that, then the assets are not in s3 and they can’t load, and your site can’t work.

You need to figure out why it’s failing, not just remove it.

---

<div class="post-metadata">

### Author: ![Jeff\_Vienneau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeff_vienneau/32/108772_2.png) [@Jeff\_Vienneau](https://meta.discourse.org/u/Jeff_Vienneau)
#### Post date: [May 13, 2024, 10:37am UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/18 "2024-05-13T10:37:28Z")

</div>

Thanks guys, you are legends!

When I switched uploads to S3 a month ago, I was not able to get the assets part to work. The images were being stored though.

It turns out I missed an ‘s’ when copy pasting the rake task for assets into my app.yml.

Then when I went to upgrade on Friday, it failed because I was only partially converted over and, I’m guessing I was running from old local assets that did not upgrade.

I’m rebaking uncooked posts now and the site is up again.

---

<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: [June 12, 2024, 10:38am UTC](https://meta.discourse.org/t/colored-loading-dots-because-assets-not-uploaded/307701/19 "2024-06-12T10:38:08Z")

</div>

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