Git Product home page Git Product logo

Comments (7)

jywarren avatar jywarren commented on July 17, 2024

We had changed creds and not updated on stable, so made new keys, let's reboot and see!

from mapknitter.

jywarren avatar jywarren commented on July 17, 2024

Didn't work -- i do see this though, maybe we missed something? But it is working on production so i'm not sure why this wouldn't work:

Post-install message from paperclip:
##################################################
#  NOTE FOR UPGRADING FROM 4.3.0 OR EARLIER      #
##################################################

Paperclip is now compatible with aws-sdk-s3.

If you are using S3 storage, aws-sdk-s3 requires you to make a few small
changes:

* You must set the `s3_region`
* If you are explicitly setting permissions anywhere, such as in an initializer,
  note that the format of the permissions changed from using an underscore to
  using a hyphen. For example, `:public_read` needs to be changed to
  `public-read`.

For a walkthrough of upgrading from 4 to *5* (not 6) and aws-sdk >= 2.0 you can watch
http://rubythursday.com/episodes/ruby-snack-27-upgrade-paperclip-and-aws-sdk-in-prep-for-rails-5

from mapknitter.

jywarren avatar jywarren commented on July 17, 2024

I don't think the above is relevant, we have been on aws-sdk-s3 for a few years it seems.

Aws::Sigv4::Errors::MissingCredentialsError is exact - i checked AWS logs and there was no access at all. Why isn't it picking up the keys?

from mapknitter.

jywarren avatar jywarren commented on July 17, 2024

We just got staging working, by standardizing all references of AWS_ACCESS_KEY_ID -- it had been missing _ID in: amazon_s3.yml and mapknitter.env.

Strange because it was working in production in Google Cloud, where it drew on a stored app.yaml file that used _ID.

But now strangely AWS console says images are being uploaded (from stable, i believe, based on having done so in the timeframe successfully) but NOT using the newly made key we put in environment.sh. So is there another place it could be getting the key?

from mapknitter.

jywarren avatar jywarren commented on July 17, 2024

OK, no, correction - the new key IS being used. the access log must have been slow to load. It shows usage within a minute of my successful upload to staging. So that seems all good.

The only question now is whether we will break things upon deploying MK, by having changed some env var names in a working system.

from mapknitter.

jywarren avatar jywarren commented on July 17, 2024

We tried deploying to production but got:

error [email protected]: The engine "node" is incompatible with this module. Expected version ">= 13.0.0". Got "12.22.5"

from mapknitter.

jywarren avatar jywarren commented on July 17, 2024

Will try setting this here:

"node": ">=10.0.0"

from mapknitter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.