project-flogo / flogo-web

Project Flogo Web UI
http://flogo.io
BSD 3-Clause "New" or "Revised" License
65 stars 36 forks source link

failed to import from URLs at flogo-components, e.g. activity #1369

Open jenmwms opened 3 years ago

jenmwms commented 3 years ago

Environment

How are you running Flogo Web?

Describe the bug

Consistently fails to 'Install contribution'. Attempting to modify the HelloWorld app with 'null', 'readfile', 'writetofile', etc. to learn about Flogo.

To Reproduce

Steps to reproduce the behavior:

  1. Pull and Run the Docker image using docker run -it -p 3303:3303 flogo/flogo-docker eula-accept
  2. Go to Flogo Web
  3. In the top menu banner, click on 'Install Contribution'
  4. Type the URL for a contribution at flogo-components, such as null. The link for flogo web would be 'https://github.com/retgits/flogo-components/activity/null'
  5. See error - 'Install Failed'

Expected behavior

Expected behavior is to install the contribution (e.g. activity, trigger, app) without error and add contribution to Flows thereafter using the (+) and see the newly installed component in the list.

Additional context

I am using a fresh Docker image and Hello World sample app. Built-in components appear to work ok (e.g. Counter Activity, Log), but fails to install any new ones.

If I attach a shell to the container and attempt the CLI install, I get more information:

flogo install github.com/retgits/flogo-components/activity/null
Error validating project: not a valid flogo app project directory, missing flogo.json

This does not appear to be a network or proxy issue. The error message above indicates the connection is made but the contents were not as expected, but perhaps it did not connect to github at all? I can click on the external links in the localhost:3033 and navigates fine so that does not seem to be the issue.

Any suggestions?

fcastill commented 3 years ago

I think there is an issue with one of the dependencies of that activity github.com/retgits/flogo-components/activity/null, this is the error I see:

Error installing contribution/dependency: go: finding github.com/apcera/termtables v0.0.0-20170405184538-bcbc5dc54055
go: finding github.com/rivo/uniseg v0.2.0
go: github.com/apcera/termtables@v0.0.0-20170405184538-bcbc5dc54055: git fetch -f https://github.com/apcera/termtables refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs/b84d3fb231169dee63344bc945b90483f9f0814eaa2866481b69a8c876088c78: exit status 128:
    fatal: could not read Username for 'https://github.com': terminal prompts disabled

and I cannot access that github project github.com/apcera/termtables so perhaps it was deleted or made private?

If I attach a shell to the container and attempt the CLI install, I get more information:

 flogo install github.com/retgits/flogo-components/activity/null

Error validating project: not a valid flogo app project directory, missing flogo.json

Did you run this inside the folder /flogo-web/local/engines/flogo-web ? that's where the flogo engine is inside the flogo-docker container.