Skip to content

Instantly share code, notes, and snippets.

View samsonkolge's full-sized avatar

Samson samsonkolge

View GitHub Profile
@samsonkolge
samsonkolge / .gitignore
Created June 14, 2018 07:22 — forked from karmi/.gitignore
Example Nginx configurations for Elasticsearch (https://www.elastic.co/blog/playing-http-tricks-nginx)
nginx/
!nginx/.gitkeep
!nginx/logs/.gitkeep
src/
tmp/
@samsonkolge
samsonkolge / gist:13d7d8c1b5771a13728bac8faddb37c7
Created August 21, 2016 07:57
"This user is allowed a maximum number of 5 concurrent shells" error while doing a kitchen create with windows 2008 r2
kolge@kolge2 MINGW64 ~/repos/chef-repo/cookbooks/m1-2.0 (master)
$ kitchen create default-windows-2008-r2
-----> Starting Kitchen (v1.8.0)
-----> Creating <default-windows-2008-r2>...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Configuring proxy environment variables...
C:/HashiCorp/Vagrant/embedded/gems/gems/winrm-1.8.1/lib/winrm/http/response_handler.rb:64:in `raise_if_wsman_fault': [WSMAN ERROR CODE: 2150859173]: <f:WSManFault Code='2150859173' Machine='127.0.0.1' xmlns:f='http://schemas.microsoft.com/wbem/wsman/1/wsmanfault'><f:Message>The WS-Management service cannot process the request. This user is allowed a maximum number of 5 concurrent shells, which has been exceeded. Close existing shells or raise the quota for this user. </f:Message></f:WSManFault> (WinRM::WinRMWSManFault)
from C:/HashiCorp/Vagrant/embedded/gems/gems/winrm-1.8.1/lib/winrm/http/response_handler.rb:51:in `raise_if_error'
from C:/HashiCorp/Vagrant/embedded/gems/gems/wi
@samsonkolge
samsonkolge / gist:37844f72a18c39a64a94aaf7445fc0bf
Created August 1, 2016 07:40
Chef Windows Bootstrap error dump
$ /c/opscode/chefdk/bin/knife bootstrap windows winrm node1 -x administrator -P 'run.bat-58' -N winnode --run-list 'recipe[learn_chef_iis]' -VV
INFO: Using configuration from C:/Users/kolge/learn-chef/chef-repo/.chef/knife.rb
DEBUG: Looking for key winrm_authentication_protocol and found value negotiate
DEBUG: Looking for key winrm_authentication_protocol and found value negotiate
DEBUG: Looking for key ca_trust_file and found value
DEBUG: Looking for key winrm_user and found value administrator
DEBUG: Looking for key winrm_authentication_protocol and found value negotiate
DEBUG: Looking for key winrm_transport and found value plaintext
DEBUG: Looking for key winrm_authentication_protocol and found value negotiate
DEBUG: Looking for key winrm_password and found value run.bat-58