Code Monkey home page Code Monkey logo

Comments (10)

ybastide avatar ybastide commented on July 18, 2024 1

Hi Frederico,

simpleflow's configuration looks a bit misdocumented :-/
The examples work for me with

  • creds in ~/.aws/credentials:
    [default]
    aws_secret_access_key = <my key>
    aws_access_key_id = <my id>
  • no ~/.swf
  • nothing useful in ~/.boto I think

If this helps you, I'll update the doc. Thanks!

from simpleflow.

fchevitarese avatar fchevitarese commented on July 18, 2024

Hey man!

I've updated the settings but still got the same error :(

I was already doing it cause i saw this way on boto's documentation.
Anyway, the error still the same.

I included even the region on the settings file but it didn't worked.
aws_default_region=sa-east-1

In this gist i have the mode detailed stacktrace.
https://gist.github.com/fchevitarese/7cc5e07843bd7e8175671f050a46cdd3

If you can give me some idea of what can cause that ...

Thanks in advance! =D

from simpleflow.

ybastide avatar ybastide commented on July 18, 2024

Can you try with another domain?

from simpleflow.

fchevitarese avatar fchevitarese commented on July 18, 2024

Will do ;)

from simpleflow.

fchevitarese avatar fchevitarese commented on July 18, 2024

Changed domain, it didn't worked :|

from simpleflow.

jbbarth avatar jbbarth commented on July 18, 2024

Sorry you hit this, this is really a mess and it's mostly due to bad docs (our fault) and poor historical choices on our side (our fault too). We try to support many configuration options and we didn't maintain it very well because we don't use it ourselves :(

Also to be honest simpleflow commands are alpha quality and we don't use them in production right now, only developers use them for specific tasks. The decider and worker parts are production ready though (and used in production for thousands of workflows by us for 2-3 years now). We're committed to improve all that and super-interested by your feedback, so thanks for that!

To have a better idea of what happens you could increase log level to debug and gist the result:

  • you can increment simpleflow's log level to debug by setting an environment variable: LOG_LEVEL=DEBUG
  • you can increment boto's log level to debug by having a /etc/.boto.cfg (~/.boto.cfg doesn't work on my OSX machine fwiw...) containing:
[Boto]
debug = 2

Maybe we'll see in boto debug logs that you don't hit the correct region, or which call ends up failing with more details.

If you prefer we can chat about that on Slack or IRC (Freenode?). Let me know.

NB: note that in your gist you have a little typo in your "input", a dot instead of a coma after the "5" ; but definitely not the problem here of course...

from simpleflow.

fchevitarese avatar fchevitarese commented on July 18, 2024

Hi there!
I'm really glad to help. Im now writing my own worker, but i see that the project is really good, i was going to use it, but my boss dont want to wait :P
Anyway, i want to help so i did all you said...

Tried the TestDomain and another domain to see, put the environment variables and boto config and fixed the typo :P

Heres both tracebacks, but i guess it's the very same error:

a-new-test-domain: https://gist.github.com/fchevitarese/c5121ed3b8b4fd62e822d6bfd53196c4
TestDomain: https://gist.github.com/fchevitarese/91821cd176af585a00a3fd0f392db142

Thanks for the help =D

Ah, i can use Slack. How do i found you?

from simpleflow.

jbbarth avatar jbbarth commented on July 18, 2024

I invited you on a private Slack domain.

As for the logs, I don't see boto debug logs, and actually they're the same you're right. I expected to see something like that:

send: 'POST / HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 81\r\nContent-Encoding: amz-1.0\r\nUser-Agent: Boto/2.40.0 Python/2.7.10 Darwin/14.5.0\r\nHost: swf.us-east-1.amazonaws.com\r\nX-Amz-Date: 20160805T122727Z\r\nX-Amz-Target: com.amazonaws.swf.service.model.SimpleWorkflowService.DescribeWorkflowType\r\nContent-Type: application/json; charset=UTF-8\r\nAuthorization: AWS4-HMAC-SHA256 Credential=AKIAJIOeee547A6A/20160805/us-east-1/swf/aws4_request,SignedHeaders=host;x-amz-date;x-amz-target,Signature=1234\r\n\r\n{"domain": "TestDomain", "workflowType": {"version": "example", "name": "basic"}}'
send: 'POST / HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 178\r\nContent-Encoding: amz-1.0\r\nUser-Agent: Boto/2.40.0 Python/2.7.10 Darwin/14.5.0\r\nHost: swf.us-east-1.amazonaws.com\r\nX-Amz-Date: 20160805T122727Z\r\nX-Amz-Target: com.amazonaws.swf.service.model.SimpleWorkflowService.PollForActivityTask\r\nContent-Type: application/json; charset=UTF-8\r\nAuthorization: AWS4-HMAC-SHA256 Credential=AKIAJIOOa47A6A/20160805/us-east-1/swf/aws4_request,SignedHeaders=host;x-amz-date;x-amz-target,Signature=e78448194a6d220e5ee419e8\r\n\r\n{"domain": "TestDomain", "taskList": {"name": "basic-2098373e1920eef08f540a2fa"}, "identity": "{\\"hostname\\": \\"acropolis.local\\", \\"pid\\": 32407, \\"user\\": \\"jbbarth\\"}"}'

^ of course there can be secrets in such logs, so let's discuss that on slack if you want!

from simpleflow.

jbbarth avatar jbbarth commented on July 18, 2024

For other people: we tried to debug this on Slack last Friday, didn't succeed, and will give another shot today or tomorrow.

from simpleflow.

jumping avatar jumping commented on July 18, 2024

please try to add

[SWF]
region = sa-east-1

@fchevitarese

from simpleflow.

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.