Hi, all!
I need your help.
We run deploy on AWS linux instances ( type t2.nano). Calamari was run via .net core. And deploy process was crashed because memory is not enough (total 512mb)
System.Exception: Error when attempting to execute bash: Cannot allocate memory —> System.ComponentModel.Win32Exception: Cannot allocate memory
March 15th 2018 13:25:46
Error
at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd)
March 15th 2018 13:25:46
Error
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
March 15th 2018 13:25:46
Error
at System.Diagnostics.Process.Start()
March 15th 2018 13:25:46
Error
at Calamari.Integration.Processes.SilentProcessRunner.ExecuteCommand(String executable, String arguments, String workingDirectory, StringDictionary environmentVars, String userName, SecureString password, Action1 output, Action
1 error) in Z:\buildAgent\workDir\733e182abdf775f7\source\Calamari\Integration\Processes\SilentProcessRunner.cs:line 149
March 15th 2018 13:25:46
Error
— End of inner exception stack trace —
March 15th 2018 13:25:46
Error
at Calamari.Integration.Processes.SilentProcessRunner.ExecuteCommand(String executable, String arguments, String workingDirectory, StringDictionary environmentVars, String userName, SecureString password, Action1 output, Action
1 error) in Z:\buildAgent\workDir\733e182abdf775f7\source\Calamari\Integration\Processes\SilentProcessRunner.cs:line 162
March 15th 2018 13:25:46
Error
at Calamari.Integration.Processes.CommandLineRunner.Execute(CommandLineInvocation invocation) in Z:\buildAgent\workDir\733e182abdf775f7\source\Calamari\Integration\Processes\CommandLineRunner.cs:line 19
March 15th 2018 13:25:46
Error
The command that caused the exception was: “bash” “/srv/sites/www.mysalenotifications-pre.com/account/Bootstrap.460-4519-95f8-b1dc7f028942.Octopus.Action.CustomScripts.PostDeploy.sh” “B76A8DF58A95193D34E958377AD9FFDB”
March 15th 2018 13:25:46
Error
PostDeploy script returned non-zero exit code: -1
March 15th 2018 13:25:46
Error
Running rollback conventions…
March 15th 2018 13:25:46
Error
PostDeploy script returned non-zero exit code: -1
March 15th 2018 13:25:46
Fatal
The remote script failed with exit code 1
what can i do with this?