If i run the following from the cmd prompt in windows, it works just fine:C:\Windows\System32\inetsrv\appcmd.exe set config -section:system.webServer/handlers /[name='ExtensionlessUrlHandler-Integrated-4.0'].verb:"GET,HEAD,POST,DEBUG,PUT,DELETE" /commit:apphostI have a iis_config resource block. Getting an error, indicating my syntax is incorrect. But note what the error says was run:==> default: RanC:\Windows\System32\inetsrv\appcmd.exe set config -section:system.webServer/handlers /[name='ExtensionlessUrlHandler-Integrated-4.0'].verb:"GET,HEAD,POST,DEBUG,PUT,DELETE" /commit:apphost returned 4312what gives?The provider uses cmd, and I am assuming that means, "just as if you were to open the cmd prompt in windows"FYI I get a similar error when trying the above command while in a powershell prompt.Full error below:==> default: ==================================================================================> default: Error executing action `config` on resource 'iis_config[-section:system.webServer/handlers /[name='ExtensionlessUrlHandler-Integrated-4.0'].verb:"GET,HEAD,POST,DEBUG,PUT,DELETE" /commit:apphost]'==> default: ==================================================================================> default: Mixlib::ShellOut::ShellCommandFailed==> default: ------------------------------------==> default: Expected process to exit with [0, 183], but received '4312'==> default: ---- Begin output of C:\Windows\System32\inetsrv\appcmd.exe set config -section:system.webServer/handlers /[name='ExtensionlessUrlHandler-Integrated-4.0'].verb:"GET,HEAD,POST,DEBUG,PUT,DELETE" /commit:apphost ----==> default: STDOUT: ERROR ( message:Cannot find requested collection element. )==> default: STDERR:==> default: ---- End output of C:\Windows\System32\inetsrv\appcmd.exe set config -section:system.webServer/handlers /[name='ExtensionlessUrlHandler-Integrated-4.0'].verb:"GET,HEAD,POST,DEBUG,PUT,DELETE" /commit:apphost ----==> default: Ran C:\Windows\System32\inetsrv\appcmd.exe set config -section:system.webServer/handlers /[name='ExtensionlessUrlHandler-Integrated-4.0'].verb:"GET,HEAD,POST,DEBUG,PUT,DELETE" /commit:apphost returned 4312==> default:==> default: Resource Declaration:==> default: ---------------------==> default: # In C:/var/chef/cache/cookbooks/tunein-iis/recipes/default.rb==> default:==> default: 119: iis_config cmd do==> default: 120: action :config==> default: 121: end==> default: 122: end==> default:==> default: Compiled Resource:==> default: ------------------==> default: # Declared in C:/var/chef/cache/cookbooks/tunein-iis/recipes/default.rb:119:in `block in from_file'==> default:==> default: iis_config("-section:system.webServer/handlers /[name='ExtensionlessUrlHandler-Integrated-4.0'].verb:"GET,HEAD,POST,DEBUG,PUT,DELETE" /commit:apphost") do==> default: action [:config]==> default: retries 0==> default: retry_delay 2==> default: cookbook_name "tunein-iis"==> default: recipe_name "default"==> default: cfg_cmd "-section:system.webServer/handlers /[name='ExtensionlessUrlHandler-Integrated-4.0'].verb:\"GET,HEAD,POST,DEBUG,PUT,DELETE\" /commit:apphost"==> default: returns [0, 183]==> default: end==> default:==> default: [2014-11-13T22:22:03-06:00] INFO: Running queued delayed notifications before re-raising exception==> default: [2014-11-13T22:22:03-06:00] ERROR: Running exception handlers==> default: [2014-11-13T22:22:03-06:00] ERROR: Exception handlers complete==> default: [2014-11-13T22:22:03-06:00] FATAL: Stacktrace dumped to C:/var/chef/cache/chef-stacktrace.out==> default: [2014-11-13T22:22:03-06:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: iis_config[-section:system.webServer/handlers /[name='ExtensionlessUrlHandler-Integrated-4.0'].verb:"GET,HEAD,POST,DEBUG,PUT,DELETE" /commit:apphost] (tunein-iis::default line 119) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0, 183], but received '4312'==> default: ---- Begin output of C:\Windows\System32\inetsrv\appcmd.exe set config -section:system.webServer/handlers /[name='ExtensionlessUrlHandler-Integrated-4.0'].verb:"GET,HEAD,POST,DEBUG,PUT,DELETE" /commit:apphost ----==> default: STDOUT: ERROR ( message:Cannot find requested collection element. )==> default: STDERR:==> default: ---- End output of C:\Windows\System32\inetsrv\appcmd.exe set config -section:system.webServer/handlers /[name='ExtensionlessUrlHandler-Integrated-4.0'].verb:"GET,HEAD,POST,DEBUG,PUT,DELETE" /commit:apphost ----==> default: Ran C:\Windows\System32\inetsrv\appcmd.exe set config -section:system.webServer/handlers /[name='ExtensionlessUrlHandler-Integrated-4.0'].verb:"GET,HEAD,POST,DEBUG,PUT,DELETE" /commit:apphost returned 4312Chef never successfully completed! Any errors should be visible in theoutput above. Please fix your recipes so that they properly complete.--Kenneth Barry
425.341.3619 – " style="color:rgb(17,85,204)" target="_blank"> my: Linkedin Twitter
CHEF | TM |
Archive powered by MHonArc 2.6.16.