# 500 error in AWS s3 code

**URL:** <https://meta.discourse.org/t/500-error-in-aws-s3-code/33333>\
**Category:** Product Support\
**Created:** [16. September 2015 um 02:52 UTC](https://meta.discourse.org/t/500-error-in-aws-s3-code/33333 "2015-09-16T02:52:07Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mc0e](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@mc0e](https://meta.discourse.org/u/mc0e)\
**Post date:** [16. September 2015 um 02:52 UTC](https://meta.discourse.org/t/500-error-in-aws-s3-code/33333/1 "2015-09-16T02:52:07Z")

</div>

I’ve just been setting up s3 backups for a discourse installation, and have run into problems. the site is now giving me 500 errors for all pages.

I’d entered at least most of the s3 setup, but the backups weren’t getting uploaded, and I was looking for why that was. I had entered bucket details for the backups, but not bucket details for general file uploads.

I’m a bit hazy on the sequence of events. I wound up doing a container restart and even a rebuild at one point, which hasn’t fixed things, but I’m fairly sure the error had started occurring before that.

In the `rails/production.log` file, I see:

```
Job exception: undefined method `every' for Jobs::CreateBackup:Class

Job exception: undefined method `every' for Jobs::CreateBackup:Class

Started GET "/" for 161.202.72.162 at 2015-09-16 02:35:11 +0000
Processing by ListController#latest as HTML
  Rendered list/list.erb within layouts/application (1.6ms)
  Rendered layouts/_head.html.erb (3.7ms)
  Rendered common/_special_font_face.html.erb (0.6ms)
  Rendered common/_discourse_stylesheet.html.erb (0.3ms)
  Rendered application/_header.html.erb (0.3ms)
  Rendered common/_discourse_javascript.html.erb (2.3ms)
Completed 500 Internal Server Error in 75ms (ActiveRecord: 22.1ms)
ActionView::Template::Error (s3_upload_bucket)
/var/www/discourse/lib/file_store/s3_store.rb:95:in `s3_bucket'

Job exception: undefined method `every' for Jobs::CreateBackup:Class

Job exception: undefined method `every' for Jobs::CreateBackup:Class

```

The Job exception lines repeat at around one such error per second. The bit in between is the output for a single web page request.

Any suggestions on how I should proceed? I’m guessing I might need to go in through the rails console to adjust settings. What are the names of the settings involved?

---

_[View the full topic](https://meta.discourse.org/t/500-error-in-aws-s3-code/33333)._
