# S3から画像が消えています！

**URL:** <https://meta.discourse.org/t/images-are-disappearing-off-of-s3/96801>\
**Category:** Bug\
**Created:** [2018 年 9 月 9 日午後 7:58 UTC](https://meta.discourse.org/t/images-are-disappearing-off-of-s3/96801 "2018-09-09T19:58:51Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2018 年 9 月 9 日午後 11:42 UTC](https://meta.discourse.org/t/images-are-disappearing-off-of-s3/96801/19 "2018-09-09T23:42:06Z")

</div>

> [@davidkingham](#):
>
> It seems to me that something I did this morning caused tombstone to run, is there any way I can identify that?

@tgxworld and I isolated a condition where uploads were missing associations with posts.

For the last 5 or so years we had a sidekiq deferred job create the association saying that upload X belongs to post Y. This has worked OK but has some pretty bad edge conditions.

If for some reason the job was mega delayed or lost then the associations are not created. If the associations are missing there is a regular job that moves the uploads to tombstone, there is a second policy that eventually deletes from tombstone.

Our new process is to create the association **just as you save** the post. This means this edge case can not happen anymore. I recommended a rebake to make sure if the job missed on a few posts that we would still create the associations.

We fixed this issue late last week, so there is a short transition period in place.

---

_[View the full topic](https://meta.discourse.org/t/images-are-disappearing-off-of-s3/96801)._
