Pivotal Knowledge Base

Follow

Export installation fails with "unexpected response" error for Ops Manager

Environment

Pivotal Cloud Foundry 1.11

Symptom

When exporting an installation with Ops Manager 1.11.3.0 through the Web UI or with the cli utility om, the export times out. Here is an example when using om. It returns the following unexpected response error:

om-linux --target https://ops-man.net --skip-ssl-validation --username user --password 'PW' 
--request-timeout 6000 export-installation --output-file /tmp/build/0f36ad4e/pcf-pipelines/tasks/export-opsmgr-settings/opsmgr-settings/installation.zip exporting installation 30m1s elapsed, waiting for response from Ops Manager... could not execute "export-installation": failed to export installation: request failed: unexpected response real 30m1.270s user 0m39.648s sys 1m44.332s

Cause

This issue could appear if the export takes longer than the timeout defined in `thin.production.yml`.  This defaults to 30 minutes.

Resolution

To workaround this issue, modify the tempest-web configuration at /home/tempest-web/tempest/web/config/thin.production.yml as follows:

socket: /tmp/tempest-web.sock
rackup: config.ru
threaded: true
timeout: 1800

Change the timeout from its default setting of 30min (1800 sec) to 100 minutes (6000 sec):

socket: /tmp/tempest-web.sock
rackup: config.ru
threaded: true
timeout: 6000

Then restart Ops Manager and the export should be successful.

sudo service tempest-web stop
sudo service tempest-web start

 

Comments

Powered by Zendesk