Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gosdk pipelines with arguments fail to start #292

Closed
lonnc opened this issue Nov 26, 2020 · 7 comments · Fixed by #294
Closed

gosdk pipelines with arguments fail to start #292

lonnc opened this issue Nov 26, 2020 · 7 comments · Fixed by #294
Assignees

Comments

@lonnc
Copy link

lonnc commented Nov 26, 2020

Start gaia using docker:
docker run -d -p 8080:8080 -v $PWD:/data gaiapipeline/gaia:latest

Create pipeline using http://localhost:8080/#/pipeline/create with fields:

Status Output:

Git repository has been cloned.
Starting build process. This may take some time...
Pipeline has been successfully compiled.
Verifying pipeline...
Pipeline has been verified.
Finalizing creation process...
Copy was successful.
Finished.
  1. View pipeline at http://localhost:8080/#/pipeline/detail?pipelineid=1
  2. Hit "Start Pipeline" button then populate fields:
    • Username for the database schema: Bob
    • Description for username: Hello World
  3. Hit "Start Pipeline" button
  4. Fails to start returning the error:
Error: 400
invalid content provided in request

Pipelines with no arguments are working for me (e.g. https://github.com/gaia-pipeline/go-example Branch refs/heads/master), but any pipelines that I've tried to create which do have an argument are failing to start.

@Skarlso
Copy link
Member

Skarlso commented Nov 26, 2020

Hi. Thanks for opening an issue. I'll look into it.

@Skarlso
Copy link
Member

Skarlso commented Nov 27, 2020

The parameters branch is most likely outdated by now since I updated a lot of things. I'll do a push into that so you can try again. :)

@Skarlso
Copy link
Member

Skarlso commented Nov 27, 2020

@lonnc
Copy link
Author

lonnc commented Nov 27, 2020

Unfortunately still getting the same error when trying to start the pipeline:

Error: 400
invalid content provided in request

Available logs are below:

2020-11-27T17:15:45.828Z [INFO ] Gaia: worker gRPC server about to start on port: 8989
2020-11-27T17:16:32.999Z [DEBUG] plugin: starting plugin: path=/data/tmp/golang/src/67655188-e3bf-4126-b2fa-c5077809aaf4/test_golang args=[]
2020-11-27T17:16:33.000Z [DEBUG] plugin: waiting for RPC address: path=/data/tmp/golang/src/67655188-e3bf-4126-b2fa-c5077809aaf4/test_golang
2020-11-27T17:16:33.266Z [DEBUG] plugin: plugin process exited: path=/data/tmp/golang/src/67655188-e3bf-4126-b2fa-c5077809aaf4/test_golang
2020-11-27T17:16:36.706Z [DEBUG] plugin: starting plugin: path=/data/pipelines/test_golang args=[]
2020-11-27T17:16:36.706Z [DEBUG] plugin: waiting for RPC address: path=/data/pipelines/test_golang
2020-11-27T17:16:36.971Z [DEBUG] plugin: plugin process exited: path=/data/pipelines/test_golang

@Skarlso
Copy link
Member

Skarlso commented Nov 27, 2020 via email

@Skarlso Skarlso self-assigned this Nov 28, 2020
@Skarlso
Copy link
Member

Skarlso commented Nov 28, 2020

Uh, I found the problem. When the docker runner was introduced it wasn't tested with parameterised builds and the docker parameter code is conflicting with the regular parameter things. :/ I'll attempt a nice fix. :)

@Skarlso
Copy link
Member

Skarlso commented Nov 28, 2020

@lonnc I found out what was wrong.
I still have to test the fix throughly first, but generally I think I fixed it in this PR: #294

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants