Installing tentacle.exe using chef: "The paging file is too small for this operation to complete"

HI there,

I’m trying to use chef (http://www.opscode.com/chef/) to install the Octopus tentacle on a Windows 2012 server, and getting various memory errors. The node is a Windows 2012 Server running in VMware Workstation; 2Gb of RAM, 2Gb of paging, and I’ve run

winrm set winrm/config/winrs @{MaxMemoryPerShellMB="4096"}

The error I’m seeing is:

192.168.202.137 Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.ComponentModel.Composition, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The paging file is too small for this operation to complete. (Exception from HRESULT: 0x800705AF)
192.168.202.137    at Octopus.Shared.Startup.CommandModule.Load(ContainerBuilder builder)
192.168.202.137    at Autofac.Module.Configure(IComponentRegistry componentRegistry)
192.168.202.137    at Autofac.ContainerBuilder.Build(IComponentRegistry componentRegistry, Boolean excludeDefaultModules)
192.168.202.137    at Autofac.Module.Configure(IComponentRegistry componentRegistry)
192.168.202.137    at Autofac.ContainerBuilder.Build(IComponentRegistry componentRegistry, Boolean excludeDefaultModules)
192.168.202.137    at Autofac.ContainerBuilder.Build(ContainerBuildOptions options)
192.168.202.137    at Octopus.Tentacle.Program.Main(String[] args)
192.168.202.137
192.168.202.137 Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.ComponentModel.Composition, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The paging file is too small for this operation to complete. (Exception from HRESULT: 0x800705AF)
192.168.202.137    at Octopus.Shared.Startup.CommandModule.Load(ContainerBuilder builder)
192.168.202.137    at Autofac.Module.Configure(IComponentRegistry componentRegistry)
192.168.202.137    at Autofac.ContainerBuilder.Build(IComponentRegistry componentRegistry, Boolean excludeDefaultModules)
192.168.202.137    at Autofac.Module.Configure(IComponentRegistry componentRegistry)
192.168.202.137    at Autofac.ContainerBuilder.Build(IComponentRegistry componentRegistry, Boolean excludeDefaultModules)
192.168.202.137    at Autofac.ContainerBuilder.Build(Containe
192.168.202.137 rBuildOptions options)
192.168.202.137    at Octopus.Tentacle.Program.Main(String[] args)
192.168.202.137
192.168.202.137
192.168.202.137 Process is terminated due to StackOverflowException.
192.168.202.137
192.168.202.137
192.168.202.137 Unhandled Exception:
192.168.202.137    Cannot print exception string because Exception.ToString() failed.
192.168.202.137 ---- End output of "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat None -File "C:/Users/ADMINI~1/AppData/Local/Temp/chef-script20130913-2080-13ud9bp.ps1" ----192.168.202.137 Ran "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat None -File "C:/Users/ADMINI~1/AppData/Local/Temp/chef-script20130913-2080-13ud9bp.ps1" returned 4

Definitely looks like the error’s being thrown from within Tentacle.exe from that stack trace - but any idea whether the tentacle is genuinely trying to use over 4Gb of RAM, or is the runtime somehow throttling the available memory? What are typical memory requirements for a tentacle?

Found it - a bug with WinRM memory quota settings in Windows Server 2012 RTM.

More info at http://support.microsoft.com/kb/2842230/en-gb

Thanks very much for sharing the solution Dylan!

Paul

Hi Dylan,

Did you manage to get Chef to install the Octopus Deploy tentacle?

If so, would you be happy to share the cookbook as I am trying to do this but don’t seem to be getting anywhere.

Many thanks in advance

Steve