# \[Pago\] Restaurar imagens quebradas enviadas para S3

**URL:** <https://meta.discourse.org/t/paid-restore-broken-images-uploaded-to-s3/86027>\
**Category:** Product Support\
**Created:** [Abril 24, 2018, 2:50am UTC](https://meta.discourse.org/t/paid-restore-broken-images-uploaded-to-s3/86027 "2018-04-24T02:50:50Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![sebastien](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@sebastien](https://meta.discourse.org/u/sebastien)\
**Post date:** [Abril 24, 2018, 2:50am UTC](https://meta.discourse.org/t/paid-restore-broken-images-uploaded-to-s3/86027/1 "2018-04-24T02:50:50Z")

</div>

Hi Guys,

While we were trying to setup a second CDN (check why [here](https://meta.discourse.org/t/serve-all-s3-images-from-cdn/85769/7)), we broke most of our images. Not sure what happened but now we have the following issues:

- 25-40% of all pictures have been replaced by transparent.png
- Corresponding pictures have been moved to tombstone
- When I browse through revisions of some posts, I can find references to an old (since removed) CDN. I guess one rebake operation did fail

Our ultimate goal would be to:  
1/ Restore images copied to the tombstone folder  
2/ Restore/rebuild HMTL so images appear again

The rake task “recover\_from\_tombstone” could do the job but it does not work on S3 (external storage).

So far, we tried to

- rebake all posts
- remove s3 cdn from the settings and then rebake all posts

No success…

Any idea?

We would happy to pay for some support. The best option (maybe the quickest) would be to use TeamViewer so we can run commands through my terminal.

Thank you for your help

---

_[View the full topic](https://meta.discourse.org/t/paid-restore-broken-images-uploaded-to-s3/86027)._
