Geeks With Blogs
Alex Hildyard
There appears to be an issue with OD's "Deploy NuGet package" task (tested in Octopus Deploy 3.1.5). We encountered the problem while unpacking a .NET Core 2.0 application on a Windows tentacle and copying the resultant assets to an Ubuntu box. We noticed that if the assets were extracted using OD's in-built "Deploy package" task, the application would fail to launch on the Linux box with an "incorrect format" exception. If we unpacked the NuGet package some other way however (eg. manually extracted it), the application would run without error.

As a workaround, there are quite a few options. We have tried both of the following successfully:

1. Share the Octopus Packages folder, and then replace the "Deploy NuGet Package" step with a call to the "[System.IO.Compression.ZipFile]::ExtractToDirectory()" method, using the Octopus.Project.Name and Octopus.Release.Number properties to identify the package to extract and the Octopus.Tentacle.Agent.ApplicationDirectoryPath and Octopus.Environment.Name properties to identify the desired extraction path.

2. Install mono on the Linux box in question and unpack the package there using the "Deploy NuGet Package."

I have raised a Support ticket with Octopus Deploy:


Posted on Friday, November 10, 2017 5:00 PM | Back to top


Comments on this post: Octopus Deploy : Format exception unpacking Windows NuGet package onto Linux box

# re: Octopus Deploy : Format exception unpacking Windows NuGet package onto Linux box
Requesting Gravatar...
I am certainly making the most of your site. You unquestionably have some extraordinary knowledge and incredible stories. b&w postcard printing
Left by robinjack on Jan 25, 2018 11:52 AM

# re: Octopus Deploy : Format exception unpacking Windows NuGet package onto Linux box
Requesting Gravatar...
I really appreciate this wonderful post that you have provided for us,
mangahere
Left by Chalchiuhticue Naabah on Mar 06, 2018 9:04 AM

# re: Octopus Deploy : Format exception unpacking Windows NuGet package onto Linux box
Requesting Gravatar...
Thanks for another wonderful post. Where else could anybody get that type of info in such an ideal way of writing? I’ve a presentation next week, and I am on the look for such information. read this
Left by Robinjack on Mar 18, 2018 7:04 AM

# re: Octopus Deploy : Format exception unpacking Windows NuGet package onto Linux box
Requesting Gravatar...

I really appreciate Chinesebuffet nearme now this wonderful post that you have provided for us,
Left by Amir Shahzad on May 22, 2018 10:03 AM

Your comment:
 (will show your gravatar)


Copyright © Alex Hildyard | Powered by: GeeksWithBlogs.net