project-flogo / aws-contrib

Project Flogo Activities and Triggers for AWS
BSD 3-Clause "New" or "Revised" License
3 stars 8 forks source link

Install of S3 activity is failing #8

Open neethuabacker opened 4 years ago

neethuabacker commented 4 years ago

Hi I am using Flogo webui, and install is failing with below error, I can install other activities, like this one https://github.com/retgits/flogo-components/activity/amazons3, so I dont think its a problem with my docker container or flogo or proxy.

error: [17:03:44.095] [error] Encountered error while installing the 'https://github.comproject-flogo/aws-contrib/activity/s3' to the engine: error: [17:03:44.097] Error in installing 'github.comproject-flogo/aws-contrib/activity/s3' Error installing contribution/dependency: go get github.comproject-flogo/aws-contrib/activity/s3@latest: unrecognized import path "github.comproject-flogo/aws-contrib/activity/s3" (https fetch: Get https://github.comproject-flogo/aws-contrib/activity/s3?go-get=1: Bad Gateway)

debug: [17:03:44.099] Installation of 'https://github.comproject-flogo/aws-contrib/activity/s3' failed in 'installing-to' step. debug: [17:03:44.099] Starting engine recovery. debug: [17:03:44.100] [Log] Recovering engine to previous working state.. debug: [17:03:44.109] Resource cleaning: removing the backup folder. warn: [17:04:23.507] Engine does not exist. Creating... info: [17:04:23.511] Exec command: flogo create -f /flogo-web/local/engines/exported-app-build.json app-build in /flogo-web/local/engines info: [17:04:23.530] run command: flogo create -f /flogo-web/local/engines/exported-app-build.json app-build engine:create: 7889.257ms info: [17:04:31.401] undefined {"durationMs":7894} info: [17:04:31.410] [log] Build flogo: "flogo build -o,-e" compileOpts: info: [17:04:31.425] run command: flogo build -o -e [log] build output: [build] Found binary file: /flogo-web/local/engines/app-build/bin/app-build.exe info: [17:04:47.590] undefined {"durationMs":24093} info: [17:05:09.688] [log] Install : 'https://github.comproject-flogo/aws-contrib/activity/s3' debug: [17:05:09.689] Backing up 'src' to 'backupsrc'. debug: [17:05:09.697] Started installing 'https://github.comproject-flogo/aws-contrib/activity/s3' to the engine. info: [17:05:09.699] Exec command: flogo install github.comproject-flogo/aws-contrib/activity/s3 in /flogo-web/local/engines/flogo-web info: [17:05:09.715] run command: flogo install github.comproject-flogo/aws-contrib/activity/s3 warn: [17:05:11.423] command exited with code 1: flogo install github.comproject-flogo/aws-contrib/activity/s3 error: [17:05:11.434] [error] Encountered error while installing the 'https://github.comproject-flogo/aws-contrib/activity/s3' to the engine: error: [17:05:11.434] Error in installing 'github.comproject-flogo/aws-contrib/activity/s3' Error installing contribution/dependency: go get github.comproject-flogo/aws-contrib/activity/s3@latest: unrecognized import path "github.comproject-flogo/aws-contrib/activity/s3" (https fetch: Get https://github.comproject-flogo/aws-contrib/activity/s3?go-get=1: Bad Gateway)

debug: [17:05:11.435] Installation of 'https://github.comproject-flogo/aws-contrib/activity/s3' failed in 'installing-to' step. debug: [17:05:11.435] Starting engine recovery. debug: [17:05:11.442] [Log] Recovering engine to previous working state.. debug: [17:05:11.459] Resource cleaning: removing the backup folder. info: [17:06:33.779] [log] Install : 'https://github.com/retgits/flogo-components/activity/amazons3' debug: [17:06:33.779] Backing up 'src' to 'backupsrc'. debug: [17:06:33.781] Started installing 'https://github.com/retgits/flogo-components/activity/amazons3' to the engine. info: [17:06:33.782] Exec command: flogo install github.com/retgits/flogo-components/activity/amazons3 in /flogo-web/local/engines/flogo-web info: [17:06:33.808] run command: flogo install github.com/retgits/flogo-components/activity/amazons3

retgits commented 4 years ago

Can you doublecheck what URL you've pasted into the install box? It seems it's missing a / after github.com. The URL should be https://github.com/project-flogo/aws-contrib/activity/s3

mellistibco commented 4 years ago

Hi @neethuabacker I think perhaps you specified the wrong path: https://github.comproject-flogo/aws-contrib/activity/s3 should be https://github.com/project-flogo/aws-contrib/activity/s3

However, I found a missing comma in the descriptor.json, as well @skothari-tibco can you take a look?

neethuabacker commented 4 years ago

Hi @mellistibco the url was definitely wrong, I copied from the readme :) Please correct there. But its still not working, different error now though: info: [17:53:41.473] run command: flogo install github.com/project-flogo/aws-contrib/activity/s3 warn: [17:53:41.901] command exited with code 1: flogo install github.com/project-flogo/aws-contrib/activity/s3 error: [17:53:41.902] [error] Encountered error while installing the 'https://github.com/project-flogo/aws-contrib/activity/s3' to the engine: error: [17:53:41.903] Error in installing 'github.com/project-flogo/aws-contrib/activity/s3' Error installing contribution/dependency: go get github.com/project-flogo/aws-contrib/activity/s3@latest: git ls-remote -q https://github.com/project-flogo/aws-contrib in /go/pkg/mod/cache/vcs/cd19646a8239415cb70da3b73b533de5b0a9e17a7c242010cff509c11b07fc44: exit status 128: fatal: unable to access 'https://github.com/project-flogo/aws-contrib/': Could not resolve proxy: proxy.inbcu.com

debug: [17:53:41.903] Installation of 'https://github.com/project-flogo/aws-contrib/activity/s3' failed in 'installing-to' step. debug: [17:53:41.903] Starting engine recovery. debug: [17:53:41.904] [Log] Recovering engine to previous working state.. debug: [17:53:41.908] Resource cleaning: removing the backup folder. info: [18:13:59.892] [log] Install : 'https://github.com/project-flogo/aws-contrib/activity/s3' debug: [18:13:59.893] Backing up 'src' to 'backupsrc'. debug: [18:13:59.895] Started installing 'https://github.com/project-flogo/aws-contrib/activity/s3' to the engine. info: [18:13:59.896] Exec command: flogo install github.com/project-flogo/aws-contrib/activity/s3 in /flogo-web/local/engines/flogo-web info: [18:13:59.916] run command: flogo install github.com/project-flogo/aws-contrib/activity/s3 engine:install:contribution: 3409.033ms debug: [18:14:03.305] Building engine. info: [18:14:03.309] [log] Build flogo: "flogo build " compileOpts: info: [18:14:03.319] run command: flogo build warn: [18:14:04.145] command exited with code 1: flogo build error: [18:14:04.146] [error] Encountered error while installing the 'https://github.com/project-flogo/aws-contrib/activity/s3' to the engine: error: [18:14:04.153] Error building project: # github.com/project-flogo/flow/instance /go/pkg/mod/github.com/project-flogo/flow@v0.9.2/instance/recorder.go:33:37: undefined: "github.com/project-flogo/core/support".ServiceConfig /go/pkg/mod/github.com/project-flogo/flow@v0.9.2/instance/recorder.go:180:23: undefined: "github.com/project-flogo/core/support".ServiceConfig /go/pkg/mod/github.com/project-flogo/flow@v0.9.2/instance/recorder.go:181:10: undefined: "github.com/project-flogo/core/support".ServiceConfig /go/pkg/mod/github.com/project-flogo/flow@v0.9.2/instance/taskinst.go:292:7: cannot use ti (type TaskInst) as type activity.Context in assignment: TaskInst does not implement activity.Context (missing GetTracingContext method) /go/pkg/mod/github.com/project-flogo/flow@v0.9.2/instance/taskinst.go:294:8: cannot use &LegacyCtx literal (type LegacyCtx) as type activity.Context in assignment: LegacyCtx does not implement activity.Context (missing GetTracingContext method) /go/pkg/mod/github.com/project-flogo/flow@v0.9.2/instance/taskinst.go:380:30: cannot use ti (type TaskInst) as type activity.Context in argument to aa.PostEval: TaskInst does not implement activity.Context (missing GetTracingContext method) /go/pkg/mod/github.com/project-flogo/flow@v0.9.2/instance/util.go:200:21: impossible type assertion: *TaskInst does not implement activity.Context (missing GetTracingContext method)

debug: [18:14:04.155] Installation of 'https://github.com/project-flogo/aws-contrib/activity/s3' failed in 'building' step.

skothari-tibco commented 4 years ago

Can you try installing github.com/project-flogo/flow@latest? The error seems to be due to old version of flow.

neethuabacker commented 4 years ago

After I installed the flow it doesnt throw the error for install of S3. however more serious problem now, I cannot add any activity on the UI when I click the "+" the activity selection doesnt show up. Something is not right with github.com/project-flogo/flow@latest. My flogo UI version is Flogo v0.9.2

skothari-tibco commented 4 years ago

@fcastill . Can you look into this.