Hi guys
l’m having a problem with octopus. I have digital ocean server to deploy the package inside …
the server is Ubuntu 18
I’m getting an error
`
I can run pwsh on Ubuntu without issue
any idea what is going on here ?

Step 1: deployment Ran for 11 seconds February 27th 2020 21:42:03Fatal The step failed: Activity deployment on 46.101.240.91 failed with error 'The remote script failed with exit code 1'. 46.101.240.91 Ran for 11 seconds February 27th 2020 21:42:01Info Deploying package: /root/.octopus/OctopusServer/Files/Ortopedia.WebService@S1.0.10@E32BA01B0CD8FD4D8A872AA704A278F1.nupkg February 27th 2020 21:42:03Error Unable to execute pwsh, please ensure that pwsh is installed and is in the PATH. February 27th 2020 21:42:03Error System.Exception: Error when attempting to execute pwsh: No such file or directory ---> System.ComponentModel.Win32Exception: No such file or directory February 27th 2020 21:42:03Error at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) February 27th 2020 21:42:03Error at System.Diagnostics.Process.Start() February 27th 2020 21:42:03Error at Calamari.Integration.Processes.SilentProcessRunner.ExecuteCommand(String executable, String arguments, String workingDirectory, Dictionary
2 environmentVars, String userName, SecureString password, Action1 output, Action
1 error) in C:\buildAgent\work\e0cefbed4ad11812\source\Calamari.Shared\Integration\Processes\SilentProcessRunner.cs:line 149
February 27th 2020 21:42:03Error
— End of inner exception stack trace —
February 27th 2020 21:42:03Error
at Calamari.Integration.Processes.SilentProcessRunner.ExecuteCommand(String executable, String arguments, String workingDirectory, Dictionary2 environmentVars, String userName, SecureString password, Action
1 output, Action`1 error) in C:\buildAgent\work\e0cefbed4ad11812\source\Calamari.Shared\Integration\Processes\SilentProcessRunner.cs:line 162
February 27th 2020 21:42:03Error
at Calamari.Integration.Processes.CommandLineRunner.Execute(CommandLineInvocation invocation) in C:\buildAgent\work\e0cefbed4ad11812\source\Calamari.Shared\Integration\Processes\CommandLineRunner.cs:line 19
February 27th 2020 21:42:03Error
The command that caused the exception was: “pwsh” -NoLogo -NonInteractive -ExecutionPolicy Unrestricted -Command “Set-PSDebug -Trace 0;Try {. {. ‘/root/.octopus/Applications/OctopusServer/DIGI2/Ortopedia.WebService/1.0.10_2/Bootstrap.Octopus.Features.IISWebSite_BeforePostDeploy.ps1’ -OctopusKey ‘mM6SSHkqlr2N4LYp7FMYWA==’; if ((test-path variable:global:lastexitcode)) { exit $LastExitCode }};} catch { throw }”
February 27th 2020 21:42:03Error
Script ‘/root/.octopus/Applications/OctopusServer/DIGI2/Ortopedia.WebService/1.0.10_2/Octopus.Features.IISWebSite_BeforePostDeploy.ps1’ returned non-zero exit code: -1
February 27th 2020 21:42:03Error
Running rollback conventions…
February 27th 2020 21:42:03Error
Script ‘/root/.octopus/Applications/OctopusServer/DIGI2/Ortopedia.WebService/1.0.10_2/Octopus.Features.IISWebSite_BeforePostDeploy.ps1’ returned non-zero exit code: -1
February 27th 2020 21:42:03Fatal
The remote script failed with exit code 1
February 27th 2020 21:42:03Fatal
The action deployment on 46.101.240.91 failed