# After switching (back) to S3, avatars are not pointing to S3

**URL:** https://meta.discourse.org/t/after-switching-back-to-s3-avatars-are-not-pointing-to-s3/29530
**Category:** Support
**Created:** [1 juni 2015 om 20:14 UTC](https://meta.discourse.org/t/after-switching-back-to-s3-avatars-are-not-pointing-to-s3/29530 "2015-06-01T20:14:02Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Vocino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vocino/32/85136_2.png) [@Vocino](https://meta.discourse.org/u/Vocino)
#### Post date: [1 juni 2015 om 20:14 UTC](https://meta.discourse.org/t/after-switching-back-to-s3-avatars-are-not-pointing-to-s3/29530/1 "2015-06-01T20:14:02Z")

</div>

I may be doing something wrong. After switching back to S3 uploads, custom avatars are broken.

The image file uploads correctly and appears in the S3 bucket but the image tag is:

```html
<img alt="" width="120" height="120" src="/user_avatar/[forum.hostname]/vocino/120/5155.png" class="avatar">

```

This is on **v1.3.0.beta10 +22**.

Image uploads seem to be displaying correctly when uploading an image in a post.

---

<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: [1 juni 2015 om 20:17 UTC](https://meta.discourse.org/t/after-switching-back-to-s3-avatars-are-not-pointing-to-s3/29530/2 "2015-06-01T20:17:13Z")

</div>

Is the issue that avatars aren’t pointing to S3 (which is intended _for now_) or that they don’t work?

---

<div class="post-metadata">

### Author: ![Vocino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vocino/32/85136_2.png) [@Vocino](https://meta.discourse.org/u/Vocino)
#### Post date: [1 juni 2015 om 20:34 UTC](https://meta.discourse.org/t/after-switching-back-to-s3-avatars-are-not-pointing-to-s3/29530/3 "2015-06-01T20:34:36Z")

</div>

Upon further investigation, it looks like Discourse is redirecting that link but it’s not loading the image. If I go to the URL directly it still doesn’t work.

However, if I upload an image directly to S3 myself it doesn’t indeed load from the url. The bucket policy seems to check out, as well as the permissions, not sure why it wouldn’t be loading from Discourse-uploaded images.

---

<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: [1 juni 2015 om 20:55 UTC](https://meta.discourse.org/t/after-switching-back-to-s3-avatars-are-not-pointing-to-s3/29530/4 "2015-06-01T20:55:00Z")

</div>

> [@Vocino](#):
>
> it looks like Discourse is redirecting that link

That’s intended for the transition period.

> [@Vocino](#):
>
> If I go to the URL directly it still doesn’t work.

So. the image isn’t on S3?

---

<div class="post-metadata">

### Author: ![Vocino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vocino/32/85136_2.png) [@Vocino](https://meta.discourse.org/u/Vocino)
#### Post date: [1 juni 2015 om 22:09 UTC](https://meta.discourse.org/t/after-switching-back-to-s3-avatars-are-not-pointing-to-s3/29530/5 "2015-06-01T22:09:39Z")

</div>

> [@zogstrip](#):
>
> So. the image isn’t on S3?

Yup, looks like it’s not uploading.

~~EDIT: Scratch that, it _is_ uploading. The issue is that for some reason the URL is not actually working. I’m looking further.~~

I don’t know, I’m at a loss, it’s almost sporadic. It’s like it’s just choosing to half ignore the S3 setting. It points to it but doesn’t upload.

All the permissions check out and the same permission set works perfectly with backup uploads.

**EDIT:** Ok, sorry for all the edits. Looks like Discourse is uploading the `/original/` but isn’t uploading the file that’s getting referenced by the post.

So `/512773671fde4c557592493db7b8e77d1a0b4b1c4f17.jpg` does not exist but `/original/a/a/aa4c1105445c3565bc8f1b8011da4f1e8ad93517.jpg` does.

---

<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: [21 juli 2022 om 21:43 UTC](https://meta.discourse.org/t/after-switching-back-to-s3-avatars-are-not-pointing-to-s3/29530/6 "2022-07-21T21:43:04Z")

</div>



---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [21 juli 2022 om 21:48 UTC](https://meta.discourse.org/t/after-switching-back-to-s3-avatars-are-not-pointing-to-s3/29530/7 "2022-07-21T21:48:42Z")

</div>


