[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Error from server: Timeout: timed out waiting for build ruby-hello-world-1 to start after 10s



Hi,
I just installed Openshift in a Cluster
etcd
infrastructure
NFS
LB
Master1
Master2
Node1
Node2
Node3

At first I have some problems because on the NFS host,  the  directory  /exports/registry/ was bussy and openshift couldn't write there

Then I removed it and created a new one with:
mkdir /exports/registry; chown nfsnobody:nfsnobody /exports/registry; chmod 0777 /exports/registry

Then when I tried to deploy a sample application, the  log, simply doesn't works, and I don't know how find the problem source.

The log does not response from web, neither from  command line

I check the NFS host and it has no data in the registry diredctory

Theis is the  log history on Master1

[root ip-172-31-42-197 ec2-user]# oc logs build/cakephp-example-1 -n other-project
Error from server: Timeout: timed out waiting for build cakephp-example-1 to start after 10s
[root ip-172-31-42-197 ec2-user]# oc get bc
[root ip-172-31-42-197 ec2-user]# oc new-project forth-project
Now using project "forth-project" on server "https://ip-172-31-40-129.us-west-2.compute.internal:8443".

You can add applications to this project with the 'new-app' command. For example, try:

    $ oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-hello-world.git

to build a new hello-world application in Ruby.
[root ip-172-31-42-197 ec2-user]# oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-hello-world.git
--> Found Docker image bffbe0b (7 days old) from Docker Hub for "centos/ruby-22-centos7"

    Ruby 2.2 
    -------- 
    Platform for building and running Ruby 2.2 applications

    Tags: builder, ruby, ruby22

    * An image stream will be created as "ruby-22-centos7:latest" that will track the source image
    * A source build using source code from https://github.com/openshift/ruby-hello-world.git will be created
      * The resulting image will be pushed to image stream "ruby-hello-world:latest"
      * Every time "ruby-22-centos7:latest" changes a new build will be triggered
    * This image will be deployed in deployment config "ruby-hello-world"
    * Port 8080/tcp will be load balanced by service "ruby-hello-world"
      * Other containers can access this service through the hostname "ruby-hello-world"

--> Creating resources with label app=ruby-hello-world ...
    imagestream "ruby-22-centos7" created
    imagestream "ruby-hello-world" created
    buildconfig "ruby-hello-world" created
    deploymentconfig "ruby-hello-world" created
    service "ruby-hello-world" created
--> Success
    Build scheduled, use 'oc logs -f bc/ruby-hello-world' to track its progress.
    Run 'oc status' to view your app.
[root ip-172-31-42-197 ec2-user]# oc logs -f bc/ruby-hello-world
Error from server: Timeout: timed out waiting for build ruby-hello-world-1 to start after 10s
[root ip-172-31-42-197 ec2-user]# oc desribe build ruby-hello-world-1
Error: unknown command "desribe" for "oc"

Did you mean this?
describe

Run 'oc --help' for usage.
[root ip-172-31-42-197 ec2-user]# oc describe build ruby-hello-world-1
Name: ruby-hello-world-1
Created: 6 minutes ago
Labels: app=ruby-hello-world
buildconfig=ruby-hello-world
openshift.io/build-config.name=ruby-hello-world
Annotations: openshift.io/build-config.name=ruby-hello-world
openshift.io/build.number=1
openshift.io/build.pod-name=ruby-hello-world-1-build

Status: Pending
Duration: waiting for 6m6s
Build Config: ruby-hello-world
Build Pod: ruby-hello-world-1-build

Strategy: Source
URL: https://github.com/openshift/ruby-hello-world.git
From Image: DockerImage centos/ruby-22-centos7 sha256:a217f6e1a7f84d31a2eaa1722aaf5247884c26246e2b0812850630ee0c8f17aa
Output to: ImageStreamTag ruby-hello-world:latest
Push Secret: builder-dockercfg-lfjuw

Events:
  FirstSeen LastSeen Count From SubobjectPath Type Reason Message
  --------- -------- ----- ---- ------------- -------- ------ -------
  6m 6m 1 {default-scheduler } Normal Scheduled Successfully assigned ruby-hello-world-1-build to ip-172-31-36-127.us-west-2.compute.internal


[root ip-172-31-42-197 ec2-user]# oc events ruby-hello-world-1
Error: unknown command "events" for "oc"
Run 'oc --help' for usage.
[root ip-172-31-42-197 ec2-user]# oc get events --namespace=forth-project
FIRSTSEEN   LASTSEEN   COUNT     NAME                       KIND      SUBOBJECT   TYPE      REASON      SOURCE                 MESSAGE
8m          8m         1         ruby-hello-world-1-build   Pod                   Normal    Scheduled   {default-scheduler }   Successfully assigned ruby-hello-world-1-build to ip-172-31-36-127.us-west-2.compute.internal
[root ip-172-31-42-197 ec2-user]# "oc start-build
> ^C
[root ip-172-31-42-197 ec2-user]# oc start-build
error: Must pass a name of a build config or specify build name with '--from-build' flag
See 'oc start-build -h' for help and examples.
[root ip-172-31-42-197 ec2-user]# oc start-build ruby-hello-world-1-build
Error from server: buildconfigs "ruby-hello-world-1-build" not found
[root ip-172-31-42-197 ec2-user]# oc start-build bv/ruby-hello-world-1-build
the server doesn't have a resource type "bv"
[root ip-172-31-42-197 ec2-user]# oc start-build bc/ruby-hello-world-1-build
Error from server: buildconfigs "ruby-hello-world-1-build" not found
[root ip-172-31-42-197 ec2-user]# oc start-build ruby-hello-world
ruby-hello-world-2
[root ip-172-31-42-197 ec2-user]# oc logs ruby-hello-world-2
Error from server: pods "ruby-hello-world-2" not found
[root ip-172-31-42-197 ec2-user]# oc logs ruby-hello-world
Error from server: pods "ruby-hello-world" not found
[root ip-172-31-42-197 ec2-user]# oc logs ruby-hello-world-2
Error from server: pods "ruby-hello-world-2" not found
[root ip-172-31-42-197 ec2-user]# oc get pods
NAME                       READY     STATUS    RESTARTS   AGE
ruby-hello-world-1-build   0/1       Pending   0          18m
ruby-hello-world-2-build   0/1       Pending   0          41s
[root ip-172-31-42-197 ec2-user]# oc logs ruby-hello-world-1-build
Error from server: the server could not find the requested resource ( pods/log ruby-hello-world-1-build)
[root ip-172-31-42-197 ec2-user]# oc logs ruby-hello-world-2-build
Error from server: the server could not find the requested resource ( pods/log ruby-hello-world-2-build)
[root ip-172-31-42-197 ec2-user]# oc logs build/ruby-hello-world-1
Error from server: Timeout: timed out waiting for build ruby-hello-world-1 to start after 10s




--


--Ricardo Aguirre
Software Engineer

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]