{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry-incubator/hwc/issues/1","repository_url":"https://api.github.com/repos/cloudfoundry-incubator/hwc","labels_url":"https://api.github.com/repos/cloudfoundry-incubator/hwc/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry-incubator/hwc/issues/1/comments","events_url":"https://api.github.com/repos/cloudfoundry-incubator/hwc/issues/1/events","html_url":"https://github.com/cloudfoundry-incubator/hwc/issues/1","id":210884357,"number":1,"title":"hwc.exe silently fails when missing dependencies","user":{"login":"sneal","id":197023,"avatar_url":"https://avatars3.githubusercontent.com/u/197023?v=3","gravatar_id":"","url":"https://api.github.com/users/sneal","html_url":"https://github.com/sneal","followers_url":"https://api.github.com/users/sneal/followers","following_url":"https://api.github.com/users/sneal/following{/other_user}","gists_url":"https://api.github.com/users/sneal/gists{/gist_id}","starred_url":"https://api.github.com/users/sneal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sneal/subscriptions","organizations_url":"https://api.github.com/users/sneal/orgs","repos_url":"https://api.github.com/users/sneal/repos","events_url":"https://api.github.com/users/sneal/events{/privacy}","received_events_url":"https://api.github.com/users/sneal/received_events","type":"User","site_admin":false},"labels":[{"id":538979695,"url":"https://api.github.com/repos/cloudfoundry-incubator/hwc/labels/unscheduled","name":"unscheduled","color":"D9D9D9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-28T19:39:07Z","updated_at":"2017-03-01T00:36:51Z","closed_at":null,"body":"This typically isn't something to worry about outside development since hwc.exe is typically only used from CloudFoundry which does a healthcheck for each app, but just in case...\r\n\r\n1. Standup clean Windows box _without_ IIS or HWC installed. I'm using Windows 10 here, but other OSs likely exhibit similar behavior.\r\n2. Install Web-WHC feature\r\n3. Start a web application, e.g. `& { $env:PORT=8080; .\\hwc.exe -appRootPath \"C:\\containerizer\\env\\ViewEnvironment\\\" }`\r\n\r\nThe stdout from hwc.exe displays something like:\r\n\r\n```\r\nServer Started for 41bd1a07-0909-41f1-9157-423a9e95cc14\r\n```\r\n\r\nHowever when browsing the site on port 8080, the browser cannot connect to the site. Looking at the Windows Application Event Log you'll notice a few errors:\r\n\r\n```\r\nThe worker process failed to initialize correctly and therefore could not be started.  The data is the error.\r\nThe Module DLL C:\\Windows\\System32\\inetsrv\\validcfg.dll failed to load.  The data is the error.\r\n```\r\n\r\nInstalling the IIS ASP.NET 4.6 feature along with it's dependencies and then restarting the hwc.exe produces a slightly different set of errors:\r\n\r\n```\r\nThe worker process failed to initialize correctly and therefore could not be started.  The data is the error.\r\nThe Module DLL C:\\Windows\\System32\\inetsrv\\iiswsock.dll failed to load.  The data is the error.\r\n```\r\n\r\nInstalling the WebSocket Protocol feature and restarting the hwc.exe process now properly starts the web server. There is a warning logged, but it the web server does work properly.\r\n\r\n```\r\nThe directory specified for caching compressed content C:\\Users\\vagrant\\tmp\\IIS Temporary Compressed Files\\AppPool9000 is invalid.  Static compression is being disabled.\r\n```"},"comment":{"url":"https://api.github.com/repos/cloudfoundry-incubator/hwc/issues/comments/283207250","html_url":"https://github.com/cloudfoundry-incubator/hwc/issues/1#issuecomment-283207250","issue_url":"https://api.github.com/repos/cloudfoundry-incubator/hwc/issues/1","id":283207250,"user":{"login":"sunjayBhatia","id":5337253,"avatar_url":"https://avatars3.githubusercontent.com/u/5337253?v=3","gravatar_id":"","url":"https://api.github.com/users/sunjayBhatia","html_url":"https://github.com/sunjayBhatia","followers_url":"https://api.github.com/users/sunjayBhatia/followers","following_url":"https://api.github.com/users/sunjayBhatia/following{/other_user}","gists_url":"https://api.github.com/users/sunjayBhatia/gists{/gist_id}","starred_url":"https://api.github.com/users/sunjayBhatia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunjayBhatia/subscriptions","organizations_url":"https://api.github.com/users/sunjayBhatia/orgs","repos_url":"https://api.github.com/users/sunjayBhatia/repos","events_url":"https://api.github.com/users/sunjayBhatia/events{/privacy}","received_events_url":"https://api.github.com/users/sunjayBhatia/received_events","type":"User","site_admin":false},"created_at":"2017-03-01T00:36:51Z","updated_at":"2017-03-01T00:36:51Z","body":"@sneal We recently made some changes to the default directories that hwc uses so the last error makes sense, we need to maybe create that directory. Should we document the Windows features needed to run hwc.exe? Looks like that is definitely missing from a README"}}
{"actor":{"display_login":"sunjayBhatia"}}