# Troubleshooting S3 Uploads: Site hangs after rebuild, JS assets fail to load with net::ERR\_... on both R2 and GCS

**URL:** https://meta.discourse.org/t/troubleshooting-s3-uploads-site-hangs-after-rebuild-js-assets-fail-to-load-with-net-err-on-both-r2-and-gcs/380668
**Category:** Support
**Created:** [August 28, 2025, 4:36am UTC](https://meta.discourse.org/t/troubleshooting-s3-uploads-site-hangs-after-rebuild-js-assets-fail-to-load-with-net-err-on-both-r2-and-gcs/380668 "2025-08-28T04:36:57Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [August 28, 2025, 3:44pm UTC](https://meta.discourse.org/t/troubleshooting-s3-uploads-site-hangs-after-rebuild-js-assets-fail-to-load-with-net-err-on-both-r2-and-gcs/380668/2 "2025-08-28T15:44:55Z")

</div>

> [@Ryze\_Chen](#):
>
> the site hangs on the initial loading screen (the blue spinner).

Did you include bit to upload those assets to S3?

> [@Configure an S3 compatible object storage provider for uploads](https://meta.discourse.org/t/configure-an-s3-compatible-object-storage-provider-for-uploads/148916/1):
>
> In order to store Discourse static assets in your Object Storage add this configuration on your app.yml under the `hooks` section:
> 
> ```plaintext
> after_assets_precompile:
> - exec:
> cd: $home
> cmd:
> - sudo -E -u discourse bundle exec rake s3:upload_assets
> - sudo -E -u discourse bundle exec rake s3:expire_missing_assets
> 
> ```

If you don’t do that, none of the assets are on S3 and the site won’t load.

---

_[View the full topic](https://meta.discourse.org/t/troubleshooting-s3-uploads-site-hangs-after-rebuild-js-assets-fail-to-load-with-net-err-on-both-r2-and-gcs/380668)._
