Giter Club home page Giter Club logo

Comments (9)

adamstruck avatar adamstruck commented on July 24, 2024

What is the error message being returned and what version of Funnel are you using?

from funnel.

AlexanderSenf avatar AlexanderSenf commented on July 24, 2024

This is the version I am using (I am running this on a Mac, I used the Homebrew instructions from here https://ohsu-comp-bio.github.io/funnel/download/):

git commit: 3eaec933
git branch: master
git upstream: 
build date: 2018-06-20T16:17:18Z
version: 0.8.0

This is an example of the error I get (I shortened the URL a bit, but the relevant parts are there):

funnel task get bpnlopovlv353e62s680
{
  "id": "bpnlopovlv353e62s680",
  "state": "SYSTEM_ERROR",
  "name": "Hello world",
  "inputs": [
    {
      "url": "\"https://[...].s3.amazonaws.com/ga4gh_demo/README?AWSAccessKeyId=[...]5DT\u0026Signature=cUa[...]g%3D\u0026Expires=158[...]02\"",
      "path": "/inputs/README"
    }

If I look at the task in the Web UI (http://localhost:8000/v1/tasks/bpnlopovlv353e62s680) I get the correct URL:
"https://[...].s3.amazonaws.com/ga4gh_demo/README?AWSAccessKeyId=[...]5DT&Signature=cUa[...]g%3D&Expires=158[...]02"

from funnel.

adamstruck avatar adamstruck commented on July 24, 2024

What is the error message that gets logged by the storage backend when the task is run?

The encoding stuff you are seeing is probably related to golang/protobuf#407, but I am not sure that it is the underlying issue.

from funnel.

AlexanderSenf avatar AlexanderSenf commented on July 24, 2024

The storage back (s3) end simply responds with an authorization error:

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>2F[...]87</RequestId><HostId>ss[...]0K/w=</HostId></Error>

But I think this is due to the access credentials not being formatted correctly.

from funnel.

adamstruck avatar adamstruck commented on July 24, 2024

I don't think it is an issue with the access credential formatting - Funnel tries to execute a HEAD request on URL prior to downloading which is going to fail for a pre-signed URL that authorizes a GET request.

I will see what I can do to resolve this.

from funnel.

AlexanderSenf avatar AlexanderSenf commented on July 24, 2024

Thank you!

from funnel.

adamstruck avatar adamstruck commented on July 24, 2024

Are you using presigned URLs just for the inputs or for the outputs as well?

I was able to add download support, but upload support would be a bit more work.

from funnel.

AlexanderSenf avatar AlexanderSenf commented on July 24, 2024

I would like to do both, eventually. But being able to access data first would be OK.

(Related to this: if I could specify s3 URLs for input/output formatted like s3://[...]/ga4gh_demo/ via cwl-tes that would also be helpful; but that is a separate issue).

from funnel.

AlexanderSenf avatar AlexanderSenf commented on July 24, 2024

I think it works! I just tested the commit locally, and I do no longer get an error. Thank you.

from funnel.

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.