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

Error while building image - Uploading directory "oc-build" as binary input #79

Open
deepjyotsingh opened this issue Mar 8, 2018 · 13 comments

Comments

@deepjyotsingh
Copy link

Has anyone seen the below error while building the tasks app?

Error running start-build on at least one item: [buildconfig/tasks];

{reference={}, err=Uploading directory "oc-build" as binary input for the build ...

Error from server (BadRequest): unable to wait for build tasks-2 to run: timed out waiting for the condition, verb=start-build, cmd=oc start-build buildconfig/tasks --from-dir=oc-build --wait=true -o=name --server=https://172.30.0.1:443 --namespace=dev-admin --token=XXXXX , out=, status=1}

@deepjyotsingh deepjyotsingh changed the title Error while building image Error while building image - Uploading directory "oc-build" as binary input Mar 8, 2018
@obryg
Copy link

obryg commented Mar 11, 2018

Hi everyone,

I got similar issue:

Error running start-build on at least one item: [buildconfig/tasks];

{reference={}, err=Uploading directory "oc-build" as binary input for the build ...
error: The build dev/tasks-4 status is "Failed", verb=start-build, cmd=oc start-build buildconfig/tasks --from-dir=oc-build --wait=true -o=name --server=https://172.30.0.1:443 --namespace=dev --token=XXXXX , out=build/tasks-4, status=1}
cicd-result

I would be appreciated if somebody can explain this issue. Thank you.

@deepjyotsingh
Copy link
Author

deepjyotsingh commented Mar 11, 2018 via email

@deepjyotsingh
Copy link
Author

deepjyotsingh commented Mar 11, 2018 via email

@deepjyotsingh
Copy link
Author

@siamaksade @thoraxe @ryanj @mhausenblas @jorgemoralespou

Can either of you provide your valuable inputs on this error?

@mhausenblas
Copy link

Sorry, never used that one here …

@siamaksade
Copy link
Owner

@deepjyotsingh could you provide some more info?

  • Where do you deploy the demo?
  • How do you deploy the demo (script or template)?
  • How much memory you have available in your OpenShift cluster?
  • Is SoanrQube deployed?

@deepjyotsingh
Copy link
Author

deepjyotsingh commented Mar 12, 2018 via email

@deepjyotsingh
Copy link
Author

Do we need a docker registry to run this build? I don't see registry as a prerequisite but just wondering if that's causing the image build process to fail.

@deepjyotsingh
Copy link
Author

Any inputs or feedback on how to get past this error?

@obryg
Copy link

obryg commented Mar 14, 2018

Hi @mhausenblas,

I can try to answer on your questions:

Where do you deploy the demo?

Deployed Openshift-Origin on Azure public cloud.

How do you deploy the demo (script or template)?

Link to repository: https://github.com/Microsoft/openshift-origin
Parameter file:
azuredeploy.parameters.json.txt

How much memory you have available in your OpenShift cluster?

3 masters - 2 CPU - 8GB
2 Infra Nodes - 2 CPU - 8GB
2 User Nodes - 2 CPU - 8GB

Is SoanrQube deployed?

False.

@deepjyotsingh
Copy link
Author

Any update on this error? @siamaksade - can you please review and advice?

@svsik
Copy link

svsik commented Jul 12, 2018

Also experiencing this issue. Any update on this, please?

@niiku
Copy link

niiku commented Jul 18, 2018

I ran into the same issue. I'm pretty sure it's because the image jboss-eap70-openshift:1.5 referenced in the Jenkinsfile is not available (maybe because there's no eap subscription). Either you make sure the image jboss-eap70-openshift:1.5 is available as image stream or you replace it with the corresponding wildfly image from docker hub.
To replace it you need to tag the image stream with a version:
oc tag openshift/wildfly-101-centos7 openshift/wildfly-101-centos7:v10.1
then you can replace the line
openshift.newBuild("--name=tasks", "--image-stream=jboss-eap70-openshift:1.5", "--binary=true")
in your Jenkinsfile with
openshift.newBuild("--name=tasks", "--image-stream=openshift/wildfly-101-centos7:v10.1", "--binary=true")

You can edit the Jenkinsfile in your web console under Builds > Pipelines > Select task-pipeline > Actions > Edit YAML

Alternatively you can checkout my fork which I created to get this CI/CD demo working on OpenShift Origin 3.9 without issues (https://github.com/niiku/openshift-origin-cicd-demo)

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

No branches or pull requests

6 participants