title: Rails keeps asking for AWS credentials for MySQL storage
body: <p>I’m trying out Sharetribe Community Edition on a Debian 10 server (not AWS) following these instructions: <a href="https://github.com/sharetribe/sharetribe#installation" rel="nofollow noreferrer">https://github.com/sharetribe/sharetribe#installation</a></p>
  <p>I am stuck on step 7 with the following error:</p>
  <blockquote>
  <p>Aws::Sigv4::Errors::MissingCredentialsError: missing credentials,
  provide credentials with one of the following options:</p>
  <pre><code>    :access_key_id and :secret_access_key
      :credentials
      :credentials_provider
  </code></pre>
  </blockquote>
  <p>However, Rails knows that I am not using Amazon but rather local storage because I have the following two settings:</p>
  <pre><code>File: config/environments/development.rb
  config.active_storage.service = :local
  
  File: config/environments/production.rb
  config.active_storage.service = :local
  </code></pre>
  <p>After changing those settings, I ran the following command:</p>
  <pre><code>~/sharetribe$ EDITOR=“sub1 --wait” bin/rails credentials:edit
  </code></pre>
  <p>And got the output below:</p>
  <blockquote>
  <p>Adding config/master.key to store the master encryption key:
  [REDACTED]</p>
  <p>Save this in a password manager your team can access. If you lose the
  key, no one, including you, can access anything encrypted with it.</p>
  <p>create  config/master.key</p>
  <p>Ignoring config/master.key so it won’t end up in Git history:</p>
  <p>append  .gitignore</p>
  <p>New credentials encrypted and saved.</p>
  </blockquote>
  <p>But after running this:</p>
  <pre><code>~/sharetribe$ bundle exec rake db:create db:structure:load
  </code></pre>
  <p>I get the error above.</p>
  <p>Edit: Here's config/storage.yml. Not sure if I should comment out the Amazon section</p>
  <pre><code>test:
    service: Disk
    root: &lt;%= Rails.root.join(&quot;tmp/storage&quot;) %&gt;
  
  local:
    service: Disk
    root: &lt;%= Rails.root.join(&quot;storage&quot;) %&gt;
  
  # Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
  amazon:
    service: S3
    access_key_id: &lt;%= APP_CONFIG.aws_access_key_id%&gt;
    secret_access_key: &lt;%= APP_CONFIG.aws_secret_access_key %&gt;
    region: &lt;%= APP_CONFIG.s3_region %&gt;
    bucket: &lt;%= APP_CONFIG.clp_s3_bucket_name %&gt;
    upload:
      acl: &quot;public-read&quot;
      cache_control: 'max-age=3600'
  </code></pre>
  <p>TLDR: I want to store Sharetribe's database in its own server but Rails keeps asking for AWS/Amazon credentials despite local setting</p>