Deploy via .net core

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, Action1 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, Action1 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?

Hi, Thanks for reaching out! I’m sorry to hear you are experiencing issues deploying to an AWS Instance of type t2.nano.

Looking at the error you have specified, it points to the OS itself not being able to allocate memory to start a new process.

One potential cause could be that the total available memory of your system may not be enough. To investigate forther, you could look into what’s using memory in your system.

I hope this has been helpful, please feel free to let me know if you have any further questions.

Kind Regards,
Lawrence.

OKay.
What amount of memory does Calamari use via .net core?

Hi,
Thanks for keeping in touch! Unfortunately, I can’t give a guideline on how much memory Calamari uses via .net core.

I’m sorry I wasn’t more help here though. I look forward to hearing from you if you have any other questions.

Kind regards,
Lawrence.