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

Re: Jeniks builds problems on private paas



I got it :)

In /etc/openshift/env have some files that must be changed as well!

The first one is OPENSHIFT_BROKER_HOST and the second one is OPENSHIFT_CLOUD_DOMAIN

OPENSHIFT_BROKER_HOST was with localhost as value
OPENSHIFT_CLOUD_DOMAIN was with example.com as value

Now it works!

:)

Thanks for the help :)

Поздрави,
Мариан Игнев

---
www: http://m.ignev.net/
twitter: @mignev



2013/11/22 Marian Ignev <m ignev gmail com>
Yeah jenkis is trying to access https://localhost/rest/api ...

Nov 22, 2013 5:33:37 PM com.openshift.internal.client.RestService request
INFO: Requesting GET with protocol 1.2 on https://localhost/broker/rest/api
Nov 22, 2013 5:33:37 PM hudson.plugins.openshift.OpenShiftCloud provision
WARNING: Caught java.io.IOException: com.openshift.client.NotFoundOpenShiftException: Could not find any OpenShift resource at "https://localhost/broker/rest/api". Will retry 1 more times before canceling build.
Nov 22, 2013 5:33:42 PM hudson.plugins.openshift.OpenShiftCloud getOpenShiftConnection
INFO: Initiating Java Client Service - Configured for OpenShift Server https://localhost
Nov 22, 2013 5:33:42 PM com.openshift.internal.client.RestService request
INFO: Requesting GET with protocol 1.2 on https://localhost/broker/rest/api
Nov 22, 2013 5:33:42 PM hudson.plugins.openshift.OpenShiftCloud provision
WARNING: Caught java.io.IOException: com.openshift.client.NotFoundOpenShiftException: Could not find any OpenShift resource at "https://localhost/broker/rest/api". Will retry 0 more times before canceling build.


Nov 22, 2013 5:33:47 PM hudson.plugins.openshift.OpenShiftCloud provision
WARNING: Cancelling build due to earlier exceptions
java.io.IOException: com.openshift.client.NotFoundOpenShiftException: Could not find any OpenShift resource at "https://localhost/broker/rest/api"
at hudson.plugins.openshift.OpenShiftCloud.getOpenShiftConnection(OpenShiftCloud.java:183)
at hudson.plugins.openshift.OpenShiftCloud.getSlaves(OpenShiftCloud.java:863)
at hudson.plugins.openshift.OpenShiftCloud.provisionSlave(OpenShiftCloud.java:440)
at hudson.plugins.openshift.OpenShiftCloud.provision(OpenShiftCloud.java:402)
at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:264)
at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:51)
at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:347)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
at java.util.TimerThread.mainLoop(Timer.java:534)
at java.util.TimerThread.run(Timer.java:484)
Caused by: com.openshift.client.NotFoundOpenShiftException: Could not find any OpenShift resource at "https://localhost/broker/rest/api"
at com.openshift.internal.client.RestService.request(RestService.java:132)
at com.openshift.internal.client.RestService.request(RestService.java:109)
at com.openshift.internal.client.RestService.request(RestService.java:92)
at com.openshift.internal.client.AbstractOpenShiftConnectionFactory.getConnection(AbstractOpenShiftConnectionFactory.java:34)
at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:149)
at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:135)
at hudson.plugins.openshift.OpenShiftCloud.getOpenShiftConnection(OpenShiftCloud.java:172)

Поздрави,
Мариан Игнев

---
www: http://m.ignev.net/
twitter: @mignev



2013/11/22 Andy Goldstein <agoldste redhat com>
Have you looked at the jenkins gear's log (jen)? You'll probably find something in there.

Andy

On Nov 22, 2013, at 3:24 AM, Marian Ignev <m ignev gmail com> wrote:

Hi guys,
on my private installation of openshift i just decided to try jenkins builds.

So i have Jenkins Server:

jen @ http://jen-apps.example.com/ (uuid: 528e7d08bfbf5a287d000184)
-------------------------------------------------------------------
  Domain:     apps
  Created:    Nov 21 11:37 PM
  Gears:      1 (defaults to small)
  Deployment: auto (on git push)

  jenkins-1 (Jenkins Server)
  --------------------------
    Gears: 1 small

And application with jenkins client:

test123 @ http://test123-apps.example.com/ (uuid: 528e8638bfbf5a287d0001db)
---------------------------------------------------------------------------
  Domain:     apps
  Created:    12:16 AM
  Gears:      1 (defaults to small)
  Deployment: auto (on git push)

  php-5.3 (PHP 5.3)
  -----------------
    Gears: Located with jenkins-client-1

  jenkins-client-1 (Jenkins Client)
  ---------------------------------
    Gears:   Located with php-5.3

The test123 app is simple php add created with "rhc app create test123 php"

So when i make some changes to the code and i try to push them to the openshift i receive this error:

→ git push
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 283 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Executing Jenkins build.
remote:
remote: You can track your build at https://jen-apps.example.com/job/test123-build
remote:
remote: ERROR - Couldn't schedule job
remote: !!!!!!!!
remote: Deployment Halted!
remote: If the build failed before the deploy step, your previous
remote: build is still running.  Otherwise, your application may be
remote: partially deployed or inaccessible.
remote: Fix the build and try again.
remote: !!!!!!!!
remote: An error occurred executing 'gear postreceive' (exit code: 1)
remote: Error message: Failed to execute: 'control post-receive' for /var/lib/openshift/528e8638bfbf5a287d0001db/jenkins-client
remote:
remote: For more details about the problem, try running the command again with the '--trace' option.
   1cc0344..5d1ce84  master -> master

Runing with --trace doesn't help, because just show me the error above "ERROR - Couldn't schedule job"

In jenkins-client/logs doesn't have any logs also tail_all doesn't help because there are only notice messages and other stuff from apache.

Any idea how can debug it?

Thanks in advance guys!

Поздрави,
Мариан Игнев

---
www: http://m.ignev.net/
twitter: @mignev

_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users




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