Unable to deploy .net core 3.1 to Ubuntu

Hi guys :slight_smile:
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 ? :frowning:

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, Dictionary2 environmentVars, String userName, SecureString password, Action1 output, Action1 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, Action1 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

Hi @shs1bader!

Thanks for reaching out, and sorry to hear you’re having issues. We’re doing some polishing on our NetCore3.1 support at the moment, and a fix for this known problem will be a part of this. We anticipate that it will be out as part of our 2020.1 release series next week some time.

Please don’t hesitate to reach out if you have any further questions!

thanks @Justin_Walsh :smiley:
does downgrading to an old version may fix that ?

Hi @shs1bader!

Sadly, no, but the new version should be out in the coming days.

Best,

1 Like

Hi @shs1bader - just a quick note to let you know 2020.1.5 has been released, which contains the cross-platform fixes to resolve this issue for you!

Hi @Justin_Walsh,

It’s still don’t work for me.

I have try this but don’t work too.

and at the end, I have removed the step that execute powershell and keep only single step that just copy file and replace json file only. But the error still said like my step need to execute powershell.