When running the db::do_primary_backup recipe using a v12.11 ServerTemplate, you may experience an error message that contains the following:
The error occurred line 184 of /opt/rightscale/sandbox/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb in method 'transmit' while executing: 182 raise RestClient::ServerBrokeConnection 183 rescue Timeout::Error *** raise RestClient::RequestTimeout 185 end 186 *ERROR> Subprocess exited with 1 *RS> failed: db::do_primary_backup
This is due to a timeout issue with the "rightscale_tools" gem.
The timeout in the "rightscale_tools" gem is set to 15 seconds. The ServerTemplate uses this gem to manage volumes and backups. Each device takes about 1-2 seconds to complete, so depending on the number of devices, the timeout length may be too short.
To fix the issue, do the following:
@snapshot_timeout = 15 @platform = RightScale::Tools::Platform.factory options end
If you are seeing the same issue for v13.4 ServerTemplates and newer, there is a RightScript available to patch this issue. You can import and add this RightScript to the end of the boot scripts section of your editable ServerTemplate which will apply the patch and automatically remove the timeout from the gem and allow the API to handle it.
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.