Pivotal Knowledge Base


How to Increase the Timeout on Bosh CPI Command Calls


  • Pivotal Cloud Foundry Version 1.6.X
  • Bosh CPI
  • Ops Manager


A bosh task process times out if it exceeds 60 minutes. This can occur through bosh cli or when applying changes in Ops Manager. The reason for this is the default tasks timeout is set to 60 minutes which causes a timeout similar to the following:

Failed updating job nfs_server-partition-d29a7e415aac7257b200 > nfs_server-partition-d29a7e415aac7257b200/0 (canary): Task exceeded 60 minutes, task properties: {:obj=>#<VimSdk::Vim::Task:0x0055daf7d7c030 @__mo_id__="task-49715",


Bosh CPI timeout is set to 60 minutes.


Use the following procedure to increase the timeout as required:

1. ssh into the microbosh director.

2. Run the following command to find the client.rb file:

find /var/vcap/data/packages|grep 'vsphere/client.rb'

3. Edit the file:

vim vsphere/client.rb  

4. Change this line within the client.rb file: 

"Task exceeded 60 minutes, task properties: #{properties}" if duration > 3600 # 1 hour


"Task exceeded 60 minutes, task properties: #{properties}" if duration > 21600 # 6 hours

5. Save the file and restart the directory by running the following command:

monit restart director

6. Run the following command to check if director restarted correctly:

watch monit summary

Once changes are made, continue with deployment.


Note- This issue has been fixed in 1.7+ https://github.com/cloudfoundry-incubator/bosh-vsphere-cpi-release/releases/tag/v20


Powered by Zendesk