# \[Bezahlt\] Wiederherstellung von defekten Bildern, die auf S3 hochgeladen wurden

**URL:** https://meta.discourse.org/t/paid-restore-broken-images-uploaded-to-s3/86027
**Category:** Support
**Created:** [24. April 2018 um 02:50 UTC](https://meta.discourse.org/t/paid-restore-broken-images-uploaded-to-s3/86027 "2018-04-24T02:50:50Z")
**Posts on this page:** 5
**Page:** 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: [24. April 2018 um 02:50 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

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [24. April 2018 um 04:01 UTC](https://meta.discourse.org/t/paid-restore-broken-images-uploaded-to-s3/86027/4 "2018-04-24T04:01:29Z")

</div>

Did you run the migrate from s3 task?

> [@User uploaded avatars not displaying](https://meta.discourse.org/t/user-uploaded-avatars-not-displaying/26386/14):
>
> I think
> 
> ./launcher enter app  
> rake uploads:migrate\_from\_s3

This js the task that downloads all images from S3 to local server.

---

<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: [24. April 2018 um 04:02 UTC](https://meta.discourse.org/t/paid-restore-broken-images-uploaded-to-s3/86027/5 "2018-04-24T04:02:26Z")

</div>

Will it repair posts having transparent.png files?

---

<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: [27. April 2018 um 01:09 UTC](https://meta.discourse.org/t/paid-restore-broken-images-uploaded-to-s3/86027/6 "2018-04-27T01:09:12Z")

</div>

Hi guys,

We got @pfaffman to help us with this issue. We did have to move pictures back to the server and run few rake commands. Not trivial 🙂

Big thank you to @pfaffman for his professionalism and his expertise. I highly recommend him if you need support!

Seb

---

<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: [27. Mai 2018 um 01:09 UTC](https://meta.discourse.org/t/paid-restore-broken-images-uploaded-to-s3/86027/7 "2018-05-27T01:09:15Z")

</div>

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