VMware Tanzu Kubernetes Grid Integrated Edition

 Installing Pivotal Container Service failed with pre-start scripts

Shanthakumar K's profile image
Shanthakumar K posted Jul 17, 2018 02:49 PM

Deploying PKS 1.0 - with below builds

 

pivotal-container-service-1.1.0-build.311.pivotal

bosh-stemcell-3586.24-vsphere-esxi-ubuntu-trusty-go_agent

pcf-vsphere-2.1-build.326

 

During PKS container service deployment, it failed with below error , can someone let me know what is the issue

 

Task 23 | 09:42:37 | Compiling packages: pks-nsx-t-osb-proxy/bd59f8390dfbd588682e38423a865dbf6867c04f (00:00:42)

Task 23 | 09:42:49 | Creating missing vms: pivotal-container-service/d2b335c4-142a-4adb-9371-2204dbf5a1c9 (0) (00:00:50)

Task 23 | 09:43:40 | Updating instance pivotal-container-service: pivotal-container-service/d2b335c4-142a-4adb-9371-2204dbf5a1c9 (0) (canary) (00:02:20)

L Error: Action Failed get_task: Task 6214c0cf-5f87-4913-5e9c-40704de4882a result: 1 of 6 pre-start scripts failed. Failed Jobs: bosh-update-config. Successful Jobs: bosh-dns, syslog_forwarder, pks-api, mysql, uaa.

Task 23 | 09:46:00 | Error: Action Failed get_task: Task 6214c0cf-5f87-4913-5e9c-40704de4882a result: 1 of 6 pre-start scripts failed. Failed Jobs: bosh-update-config. Successful Jobs: bosh-dns, syslog_forwarder, pks-api, mysql, uaa.

 

Task 23 Started Tue Jul 17 09:40:09 UTC 2018

Task 23 Finished Tue Jul 17 09:46:00 UTC 2018

Task 23 Duration 00:05:51

Task 23 error

 

 

Updating deployment:

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

Exit code 1

===== 2018-07-17 09:46:00 UTC Finished "/usr/local/bin/bosh --no-color --non-interactive --tty --environment=172.29.16.150 --deployment=pivotal-container-service-df55aacb4600028f8dfc deploy /var/tempest/workspaces/default/deployments/pivotal-container-service-df55aacb4600028f8dfc.yml"; Duration: 351s; Exit Status: 1

Exited with 1.

Attachment  View in library
pks1.txt 103 KB
Daniel Mikusa's profile image
Daniel Mikusa

You've got a pre-start script that's failing. The name of the failing script is `bosh-update-config`. You need to look at the instance `pivotal-container-service/d2b335c4-142a-4adb-9371-2204dbf5a1c9` and check the logs to see why it's failing. Either with `bosh ssh` or `bosh logs`.

 

The logs should be under `/var/vcap/sys/log/`. I'm not familiar with that particular job, but I'd expect a sub folder that's the same as the failing job name or close to that and a file under that with "pre-start" in the name. There might be two, one for stdout and one for stderr. Check both.

 

Hope that helps!

Shanthakumar K's profile image
Shanthakumar K

Thanks Daniel, I will take look into logs for further information.

Shanthakumar K's profile image
Shanthakumar K

Solved.

 

Used incorrect version of BOSH after using the supported version it started working.