# Rebuild failed S3 rake aborted

**URL:** <https://meta.discourse.org/t/rebuild-failed-s3-rake-aborted/208680>\
**Category:** Bug\
**Created:** [November 9, 2021, 3:35pm UTC](https://meta.discourse.org/t/rebuild-failed-s3-rake-aborted/208680 "2021-11-09T15:35:16Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Simon\_Manning](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon_manning/32/198596_2.png) [@Simon\_Manning](https://meta.discourse.org/u/Simon_Manning)\
**Post date:** [November 10, 2021, 3:36pm UTC](https://meta.discourse.org/t/rebuild-failed-s3-rake-aborted/208680/10 "2021-11-10T15:36:07Z")

</div>

The error suggests that rake tasks cannot return so I think the merged fix referenced earlier is incorrect. I don’t have an environment set up to do any testing or create a pull request but I think using the following instead would fix this. (cc @martin)

Replacing [lines 180 to 187](https://github.com/discourse/discourse/blob/295b998cccccdce644233cceb722962811d41771/lib/tasks/s3.rake#L180-L187):

```plaintext
  if !result
    puts "Skipping"
  else
    puts "Assets rules status: #{result[:assets_rules_status]}."
    puts "Backup rules status: #{result[:backup_rules_status]}."
    puts "Direct upload rules status: #{result[:direct_upload_rules_status]}."
  end

```

---

_[View the full topic](https://meta.discourse.org/t/rebuild-failed-s3-rake-aborted/208680)._
