GithubHelp home page GithubHelp logo

Comments (7)

marksweiss avatar marksweiss commented on June 20, 2024

Can you please give us more context. I don't understand how to resolve this
from what you have sent.

On Fri, Feb 7, 2014 at 4:46 PM, msempere [email protected] wrote:

RotatingCloudOutput can't connect to S3 bucket and I'm getting a 403
error. The error output sais that it can't access to
https://s3.amazonaws.com/BUCKET_NAME

RotatingCloudOutput(SOME_DIR, BUCKET_NAME, ACCESS_KEY_ID, ACCESS_KEY);

Reply to this email directly or view it on GitHubhttps://github.com//issues/72
.

Mark Weiss
Head of Client Solutions

Datacratic
New York, NY, US
www.datacratic.com

http://www.linkedin.com/in/marksweiss

from soa.

marksweiss avatar marksweiss commented on June 20, 2024

Also, can you give me any idea why you alerted me about this? I've not taken any actions in the soa repo recently, other than trying to pull it down today and having that hang. If this is related to that action, you can close the ticket, as I was later able to pull the repo.

Thanks,
Mark

from soa.

msempere avatar msempere commented on June 20, 2024

I mean, when I make:
make_shared(BACKUPDIR, BUCKET, .......)

with BUCKET = "s3://my-test2", I'm getting:

--------------------------[Exception thrown]---------------------------
time: 2014-02-10-104536
type: ML::Exception
pid: 10707; tid: 10797
what: attempt to perform s3 request with double slash: /s3://my-test2/

If I use BUCKET = "my-test2", I get:

--------------------------[Exception thrown]---------------------------
time: 2014-02-10-110152
type: ML::Exception
pid: 11649; tid: 11747
what: wrong scheme (should start with s3://)

from soa.

marksweiss avatar marksweiss commented on June 20, 2024

You need to configure that with an actual valid S3 bucket that your process has permission to write to. That will also require modifying the config this code is using to have your credentials. You don't specify where this code is, but given my experience with the codebase in general you want to:

  • read the code to see where config is being read from
  • modify the S3_KEY and S3_ACCESS_KEY in that file with your credentials

from soa.

msempere avatar msempere commented on June 20, 2024

The only I've found related to that config file is this:

/** Parse the ~/.cloud_credentials file and add those buckets in.

The format of that file is as follows:

  1. One entry per line
  2. Tab separated
  3. Comments are '#' in the first position
  4. First entry is the name of the URI scheme (here, s3)
  5. Second entry is the "version" of the configuration (here, 1)
    for forward compatibility
  6. The rest of the entries depend upon the scheme; for s3 they are
    tab-separated and include the following:
  • Access key ID
  • Access key
  • Bandwidth from this machine to the server (MBPS)
  • Protocol (http)
  • S3 machine host name (s3.amazonaws.com)

If S3_ACCESS_KEY_ID and S3_ACCESS_KEY environment variables are specified,
they will be used first.
*/

But, Why do I need to create a credentials file if I'm using parameters?
make_shared (BACKUPDIR, BACKUP, KEYID, KEY)

from soa.

msempere avatar msempere commented on June 20, 2024

And now:

S3 REST error: [SignatureDoesNotMatch] message [The request signature we calculated does not match the signature you provided. Check your key and signing method.]

from soa.

marksweiss avatar marksweiss commented on June 20, 2024

These are errors connecting to S3, and not with this code per se. This code has been used in production to connect to S3. My suggestions:

  • print debug to make sure all config values are where they should be
  • use a simple, isolated, independent like s3cmd with the same credentials, from the same host and running as the same user, to see if that can connect

Also, note that there is community support for RTBKit, which is an open source project using soa, on Google groups, but for soa itself there isn't any additional support offered.

from soa.

Related Issues (1)

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.