# FATAL: Mixlib::ShellOut::ShellCommandFailed: gem\_pac kage (sql\_server::client line 45) had an error: Mixlib::ShellOut::Shel lCommandFailed: Expected process to exit with , but received '2'

**URL:** <https://discourse.chef.io/t/fatal-mixlib-shellout-shellcommandfailed-gem-pac-kage-sql-server-client-line-45-had-an-error-mixlib-shellout-shel-lcommandfailed-expected-process-to-exit-with-but-received-2/4865>\
**Category:** Chef Infra (archive)\
**Created:** [January 9, 2014, 11:27am UTC](https://discourse.chef.io/t/fatal-mixlib-shellout-shellcommandfailed-gem-pac-kage-sql-server-client-line-45-had-an-error-mixlib-shellout-shel-lcommandfailed-expected-process-to-exit-with-but-received-2/4865 "2014-01-09T11:27:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seema\_Khalkar](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@Seema\_Khalkar](https://discourse.chef.io/u/Seema_Khalkar)\
**Post date:** [January 9, 2014, 11:27am UTC](https://discourse.chef.io/t/fatal-mixlib-shellout-shellcommandfailed-gem-pac-kage-sql-server-client-line-45-had-an-error-mixlib-shellout-shel-lcommandfailed-expected-process-to-exit-with-but-received-2/4865/1 "2014-01-09T11:27:51Z")

</div>

Hi ,  
Please give me solution for below error:-

c:/opscode/chef/bin/chef-solo:23:in `'  
Chef Client failed. 0 resources updated←[0m  
[2014-01-09T03:15:56-08:00] FATAL: Mixlib::ShellOut::ShellCommandFailed:  
gem\_pac  
kage[tiny\_tds] (sql\_server::client line 45) had an error:  
Mixlib::ShellOut::Shel  
lCommandFailed: Expected process to exit with [0], but received ‘2’  
---- Begin output of C:\opscode\chef\embedded\bin\gem install tiny\_tds -q  
–no-r  
doc --no-ri -v “” ----  
STDOUT:  
STDERR: ERROR: Could not find a valid gem ‘tiny\_tds’ (\>= 0), here is why:  
Unable to download data from [https://rubygems.org/](https://rubygems.org/) -  
Errno::ECONNREFUS  
ED: No connection could be made because the target machine actively refused it.

- connect(2) ([https://api.rubygems.org/latest\_specs.4.8.gz](https://api.rubygems.org/latest_specs.4.8.gz))  
---- End output of C:\opscode\chef\embedded\bin\gem install tiny\_tds -q  
–no-rdo  
c --no-ri -v “” ----  
Ran C:\opscode\chef\embedded\bin\gem install tiny\_tds -q --no-rdoc --no-ri -v  
""  
returned 2

Thanks and Regards,  
Seema Khalkar.
