[cf-dev] 1 of 3 pre-start scripts failed. Failed Jobs: cloud_controller_ng. Successful Jobs: route_registrar, consul_agent.

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[cf-dev] 1 of 3 pre-start scripts failed. Failed Jobs: cloud_controller_ng. Successful Jobs: route_registrar, consul_agent.

Arpit Sharma
Dear Team,
We are deploying cloud foundry on vsphere using bosh. We are getting following error on deployment of cf. Can anyone help me with this? 

Task 56 | 16:37:14 | Updating instance api_z1: api_z1/da2b9778-64dd-444d-9b90-d22397ba83de (0) (canary) (00:00:33)

                   L Error: Action Failed get_task: Task 535ba5ee-07f6-4750-4ad2-f527d0e4126c result: 1 of 3 pre-start scripts failed. Failed Jobs: cloud_controller_ng. Successful Jobs: route_registrar, consul_agent.

Task 56 | 16:37:47 | Error: Action Failed get_task: Task 535ba5ee-07f6-4750-4ad2-f527d0e4126c result: 1 of 3 pre-start scripts failed. Failed Jobs: cloud_controller_ng. Successful Jobs: route_registrar, consul_agent.

 

Task 56 Started  Thu Nov  9 16:26:01 UTC 2017

Task 56 Finished Thu Nov  9 16:37:47 UTC 2017

Task 56 Duration 00:11:46

Task 56 error

 

Updating deployment:

  Expected task '56' to succeed but state is 'error'

 

Exit code 1 ​

_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#7505) | [hidden email] | [hidden email] | Mute This Topic | New Topic

Change Your Subscription
Group Home
[hidden email]
Terms Of Service
Unsubscribe From This Group

_._,_._,_
DHR
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] 1 of 3 pre-start scripts failed. Failed Jobs: cloud_controller_ng. Successful Jobs: route_registrar, consul_agent.

DHR
You should probably start by looking at the cloud_controller_ng process logs in the /var/vcap/sys/log/cloud_controller_ng folder on the api_z1 VM

On 9 Nov 2017, at 17:50, Arpit Sharma <[hidden email]> wrote:

Dear Team,
We are deploying cloud foundry on vsphere using bosh. We are getting following error on deployment of cf. Can anyone help me with this? 

Task 56 | 16:37:14 | Updating instance api_z1: api_z1/da2b9778-64dd-444d-9b90-d22397ba83de (0) (canary) (00:00:33)

                   L Error: Action Failed get_task: Task 535ba5ee-07f6-4750-4ad2-f527d0e4126c result: 1 of 3 pre-start scripts failed. Failed Jobs: cloud_controller_ng. Successful Jobs: route_registrar, consul_agent.

Task 56 | 16:37:47 | Error: Action Failed get_task: Task 535ba5ee-07f6-4750-4ad2-f527d0e4126c result: 1 of 3 pre-start scripts failed. Failed Jobs: cloud_controller_ng. Successful Jobs: route_registrar, consul_agent.

 

Task 56 Started  Thu Nov  9 16:26:01 UTC 2017

Task 56 Finished Thu Nov  9 16:37:47 UTC 2017

Task 56 Duration 00:11:46

Task 56 error

 

Updating deployment:

  Expected task '56' to succeed but state is 'error'

 

Exit code 1 ​

_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#7506) | [hidden email] | [hidden email] | Mute This Topic | New Topic

Change Your Subscription
Group Home
[hidden email]
Terms Of Service
Unsubscribe From This Group

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] 1 of 3 pre-start scripts failed. Failed Jobs: cloud_controller_ng. Successful Jobs: route_registrar, consul_agent.

Arpit Sharma
from std.err log file i am getting these logs

[2017-11-09 16:37:45+0000] + set -e
[2017-11-09 16:37:45+0000] + exit 0
[2017-11-09 16:37:45+0000] + popd
[2017-11-09 16:37:45+0000] + seed_db
[2017-11-09 16:37:45+0000] + pushd /var/vcap/packages/cloud_controller_ng/cloud_controller_ng
[2017-11-09 16:37:45+0000] + chpst -u vcap:vcap /var/vcap/jobs/cloud_controller_ng/bin/seed_db
[2017-11-09 16:37:47+0000] rake aborted!
[2017-11-09 16:37:47+0000] Membrane::SchemaValidationError: { info => { app_ssh_host_key_fingerprint => Expected instance of String, given an instance of NilClass } }
[2017-11-09 16:37:47+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/membrane-1.1.0/lib/membrane/schemas/record.rb:81:in `fail!'
[2017-11-09 16:37:47+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/membrane-1.1.0/lib/membrane/schemas/record.rb:60:in `validate'
[2017-11-09 16:37:47+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/membrane-1.1.0/lib/membrane/schemas/record.rb:23:in `validate'
[2017-11-09 16:37:47+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/vcap_common-4.0.4/lib/vcap/config.rb:19:in `from_file'
[2017-11-09 16:37:47+0000] /var/vcap/data/packages/cloud_controller_ng/94a0e0d602f4bc0c2d999ec2580701059d3910c1/cloud_controller_ng/lib/cloud_controller/config.rb:21:in `load_from_file'
[2017-11-09 16:37:47+0000] /var/vcap/data/packages/cloud_controller_ng/94a0e0d602f4bc0c2d999ec2580701059d3910c1/cloud_controller_ng/lib/tasks/rake_config.rb:13:in `config'
[2017-11-09 16:37:47+0000] /var/vcap/data/packages/cloud_controller_ng/94a0e0d602f4bc0c2d999ec2580701059d3910c1/cloud_controller_ng/lib/tasks/db.rake:196:in `block (2 levels) in <top (required)>'
[2017-11-09 16:37:47+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/exe/rake:27:in `<top (required)>'
[2017-11-09 16:37:47+0000] /var/vcap/packages/ruby-2.4/bin/bundle:23:in `load'
[2017-11-09 16:37:47+0000] /var/vcap/packages/ruby-2.4/bin/bundle:23:in `<main>'
[2017-11-09 16:37:47+0000] Tasks: TOP => db:seed
[2017-11-09 16:37:47+0000] (See full trace by running task with --trace)


From the other file std.out I am getting following
 
[2017-11-09 16:37:42+0000] Running migrations
[2017-11-09 16:37:42+0000] Running migration try number 1 of 3
[2017-11-09 16:37:42+0000] `/` is not writable.
[2017-11-09 16:37:42+0000] Bundler will use `/tmp/bundler/home/unknown' as your home directory temporarily.
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#7509) | [hidden email] | [hidden email] | Mute This Topic | New Topic

Change Your Subscription
Group Home
[hidden email]
Terms Of Service
Unsubscribe From This Group

_._,_._,_
DHR
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] 1 of 3 pre-start scripts failed. Failed Jobs: cloud_controller_ng. Successful Jobs: route_registrar, consul_agent.

DHR
Looks like your app_ssh_host_key_fingerprint is empty.

"app_ssh_host_key_fingerprint => Expected instance of String, given an instance of NilClass"




On 10 Nov 2017, at 12:21, Arpit Sharma <[hidden email]> wrote:

from std.err log file i am getting these logs

[2017-11-09 16:37:45+0000] + set -e
[2017-11-09 16:37:45+0000] + exit 0
[2017-11-09 16:37:45+0000] + popd
[2017-11-09 16:37:45+0000] + seed_db
[2017-11-09 16:37:45+0000] + pushd /var/vcap/packages/cloud_controller_ng/cloud_controller_ng
[2017-11-09 16:37:45+0000] + chpst -u vcap:vcap /var/vcap/jobs/cloud_controller_ng/bin/seed_db
[2017-11-09 16:37:47+0000] rake aborted!
[2017-11-09 16:37:47+0000] Membrane::SchemaValidationError: { info => { app_ssh_host_key_fingerprint => Expected instance of String, given an instance of NilClass } }
[2017-11-09 16:37:47+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/membrane-1.1.0/lib/membrane/schemas/record.rb:81:in `fail!'
[2017-11-09 16:37:47+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/membrane-1.1.0/lib/membrane/schemas/record.rb:60:in `validate'
[2017-11-09 16:37:47+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/membrane-1.1.0/lib/membrane/schemas/record.rb:23:in `validate'
[2017-11-09 16:37:47+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/vcap_common-4.0.4/lib/vcap/config.rb:19:in `from_file'
[2017-11-09 16:37:47+0000] /var/vcap/data/packages/cloud_controller_ng/94a0e0d602f4bc0c2d999ec2580701059d3910c1/cloud_controller_ng/lib/cloud_controller/config.rb:21:in `load_from_file'
[2017-11-09 16:37:47+0000] /var/vcap/data/packages/cloud_controller_ng/94a0e0d602f4bc0c2d999ec2580701059d3910c1/cloud_controller_ng/lib/tasks/rake_config.rb:13:in `config'
[2017-11-09 16:37:47+0000] /var/vcap/data/packages/cloud_controller_ng/94a0e0d602f4bc0c2d999ec2580701059d3910c1/cloud_controller_ng/lib/tasks/db.rake:196:in `block (2 levels) in <top (required)>'
[2017-11-09 16:37:47+0000] /var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/exe/rake:27:in `<top (required)>'
[2017-11-09 16:37:47+0000] /var/vcap/packages/ruby-2.4/bin/bundle:23:in `load'
[2017-11-09 16:37:47+0000] /var/vcap/packages/ruby-2.4/bin/bundle:23:in `<main>'
[2017-11-09 16:37:47+0000] Tasks: TOP => db:seed
[2017-11-09 16:37:47+0000] (See full trace by running task with --trace)


From the other file std.out I am getting following
 
[2017-11-09 16:37:42+0000] Running migrations
[2017-11-09 16:37:42+0000] Running migration try number 1 of 3
[2017-11-09 16:37:42+0000] `/` is not writable.
[2017-11-09 16:37:42+0000] Bundler will use `/tmp/bundler/home/unknown' as your home directory temporarily.

_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#7510) | [hidden email] | [hidden email] | Mute This Topic | New Topic

Change Your Subscription
Group Home
[hidden email]
Terms Of Service
Unsubscribe From This Group

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] 1 of 3 pre-start scripts failed. Failed Jobs: cloud_controller_ng. Successful Jobs: route_registrar, consul_agent.

Arpit Sharma
Thanks DHR


Its working finally...
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#7520) | [hidden email] | [hidden email] | Mute This Topic | New Topic

Change Your Subscription
Group Home
[hidden email]
Terms Of Service
Unsubscribe From This Group

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] 1 of 3 pre-start scripts failed. Failed Jobs: cloud_controller_ng. Successful Jobs: route_registrar, consul_agent.

rakkasan187
how did you end up resolving this?



--
Sent from: http://cf-dev.70369.x6.nabble.com/

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#7522): https://lists.cloudfoundry.org/g/cf-dev/message/7522
View All Messages In Topic (6): https://lists.cloudfoundry.org/g/cf-dev/topic/6374172
Mute This Topic: https://lists.cloudfoundry.org/mt/6374172/474226
New Topic: https://lists.cloudfoundry.org/g/cf-dev/post

Change Your Subscription: https://lists.cloudfoundry.org/g/cf-dev/editsub/474226
Group Home: https://lists.cloudfoundry.org/g/cf-dev
Contact Group Owner: [hidden email]
Terms of Service: https://lists.cloudfoundry.org/static/tos
Unsubscribe: https://lists.cloudfoundry.org/g/cf-dev/leave/920759/1741049355/xyzzy
-=-=-=-=-=-=-=-=-=-=-=-

Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] 1 of 3 pre-start scripts failed. Failed Jobs: cloud_controller_ng. Successful Jobs: route_registrar, consul_agent.

Arpit Sharma
Just replied on your mailid
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#7523) | [hidden email] | [hidden email] | Mute This Topic | New Topic

Change Your Subscription
Group Home
[hidden email]
Terms Of Service
Unsubscribe From This Group

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] 1 of 3 pre-start scripts failed. Failed Jobs: cloud_controller_ng. Successful Jobs: route_registrar, consul_agent.

ahmad.abed
Hi Arpit,

How did you solve this issue ?
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#7674) | [hidden email] | [hidden email] | Mute This Topic | New Topic

Change Your Subscription
Group Home
[hidden email]
Terms Of Service
Unsubscribe From This Group

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] 1 of 3 pre-start scripts failed. Failed Jobs: cloud_controller_ng. Successful Jobs: route_registrar, consul_agent.

PulPham
In reply to this post by Arpit Sharma
Hi Arpit Sharma,

Could you share your way to fix it?



--
Sent from: http://cf-dev.70369.x6.nabble.com/

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8020): https://lists.cloudfoundry.org/g/cf-dev/message/8020
View All Messages In Topic (9): https://lists.cloudfoundry.org/g/cf-dev/topic/6374172
Mute This Topic: https://lists.cloudfoundry.org/mt/6374172/474226
New Topic: https://lists.cloudfoundry.org/g/cf-dev/post

Change Your Subscription: https://lists.cloudfoundry.org/g/cf-dev/editsub/474226
Group Home: https://lists.cloudfoundry.org/g/cf-dev
Contact Group Owner: [hidden email]
Terms of Service: https://lists.cloudfoundry.org/static/tos
Unsubscribe: https://lists.cloudfoundry.org/g/cf-dev/leave/920759/1741049355/xyzzy
-=-=-=-=-=-=-=-=-=-=-=-