Package Application for Octopus: failed with exit code 4294967293

Hi,

I encountered the following problem in Azure DevOps:

Error: The process ‘C:\agent01_work_tool\octo\7.4.4\x64\octo.cmd’ failed with exit code 4294967293

Failed to execute octo pack command. The process ‘C:\agent01_work_tool\octo\7.4.4\x64\octo.cmd’ failed with exit code 4294967293

2021-03-04T12:06:24.5324364Z ##[section]Starting: Package DeployNuPkg
2021-03-04T12:06:24.5331853Z ==============================================================================
2021-03-04T12:06:24.5332483Z Task : Package Application for Octopus
2021-03-04T12:06:24.5332849Z Description : Package your application into a NuPkg or Zip file.
2021-03-04T12:06:24.5333165Z Version : 4.2.472
2021-03-04T12:06:24.5333447Z Author : Octopus Deploy
2021-03-04T12:06:24.5333830Z Help : Version: 4.2.472. More Information
2021-03-04T12:06:24.5334263Z ==============================================================================
2021-03-04T12:06:25.2443161Z (node:15244) Warning: Use Cipheriv for counter mode of aes-256-ctr
2021-03-04T12:06:25.2444223Z (node:15244) Warning: Use Cipheriv for counter mode of aes-256-ctr
2021-03-04T12:06:25.2444745Z (node:15244) Warning: Use Cipheriv for counter mode of aes-256-ctr
2021-03-04T12:06:25.2445214Z (node:15244) Warning: Use Cipheriv for counter mode of aes-256-ctr
2021-03-04T12:06:25.2445754Z (node:15244) Warning: Use Cipheriv for counter mode of aes-256-ctr
2021-03-04T12:06:25.2446227Z (node:15244) Warning: Use Cipheriv for counter mode of aes-256-ctr
2021-03-04T12:06:25.2446682Z (node:15244) Warning: Use Cipheriv for counter mode of aes-256-ctr
2021-03-04T12:06:25.2447142Z (node:15244) Warning: Use Cipheriv for counter mode of aes-256-ctr
2021-03-04T12:06:25.2447615Z (node:15244) Warning: Use Cipheriv for counter mode of aes-256-ctr
2021-03-04T12:06:25.2448066Z (node:15244) Warning: Use Cipheriv for counter mode of aes-256-ctr
2021-03-04T12:06:25.2448530Z (node:15244) Warning: Use Cipheriv for counter mode of aes-256-ctr
2021-03-04T12:06:25.2448981Z (node:15244) Warning: Use Cipheriv for counter mode of aes-256-ctr
2021-03-04T12:06:25.2489934Z No release notes file found
2021-03-04T12:06:25.2523608Z [command]C:\Windows\system32\cmd.exe /D /S /C “C:\agent01_work_tool\octo\7.4.4\x64\octo.cmd pack “–id=DeployNuPkg” “–format=NuPkg” “–version=…-000” “–compressionlevel=optimal” “–outFolder=C:\agent01_work\17\a” “–basePath=C:\agent01_work\17\a\Publish” “–overwrite=false””
2021-03-04T12:06:25.2629242Z
2021-03-04T12:06:25.2630242Z C:\agent01_work\17\s>dotnet “C:\agent01_work_tool\octo\7.4.4\x64/octo.dll” pack “–id=DeployNuPkg” “–format=NuPkg” “–version=…-000” “–compressionlevel=optimal” “–outFolder=C:\agent01_work\17\a” “–basePath=C:\agent01_work\17\a\Publish” “–overwrite=false”
2021-03-04T12:06:25.6002642Z
2021-03-04T12:06:25.6013492Z System.ArgumentException: ‘…-000’ is not a valid version string
2021-03-04T12:06:25.6014278Z Parameter name: value
2021-03-04T12:06:25.6014871Z at Octopus.Client.Model.SemanticVersion.Parse(String value, Boolean preserveMissingComponents)
2021-03-04T12:06:25.6015626Z at Octopus.Cli.Commands.Package.PackCommand.<.ctor>b__20_10(String v) in C:\buildAgent\work\289bf0fca31007af\source\Octopus.Cli\Commands\Package\PackCommand.cs:line 65
2021-03-04T12:06:25.6016581Z at Octopus.Cli.Infrastructure.OptionSet.ActionOption1.OnParseComplete(OptionContext c) in C:\buildAgent\work\289bf0fca31007af\source\Octopus.Cli\Infrastructure\Options.cs:line 665 2021-03-04T12:06:25.6017478Z at Octopus.Cli.Infrastructure.Option.Invoke(OptionContext c) in C:\buildAgent\work\289bf0fca31007af\source\Octopus.Cli\Infrastructure\Options.cs:line 502 2021-03-04T12:06:25.6019209Z at Octopus.Cli.Infrastructure.OptionSet.Parse(String argument, OptionContext c) in C:\buildAgent\work\289bf0fca31007af\source\Octopus.Cli\Infrastructure\Options.cs:line 812 2021-03-04T12:06:25.6020312Z at Octopus.Cli.Infrastructure.OptionSet.ParseOption(String argument, OptionContext optionContext, Option currentOption, Boolean& continueProcessing) in C:\buildAgent\work\289bf0fca31007af\source\Octopus.Cli\Infrastructure\Options.cs:line 727 2021-03-04T12:06:25.6021419Z at Octopus.Cli.Infrastructure.OptionSet.<>c__DisplayClass14_0.<Parse>b__0(String argument) in C:\buildAgent\work\289bf0fca31007af\source\Octopus.Cli\Infrastructure\Options.cs:line 707 2021-03-04T12:06:25.6023989Z at System.Linq.Enumerable.WhereArrayIterator1.ToList()
2021-03-04T12:06:25.6024650Z at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) 2021-03-04T12:06:25.6025404Z at Octopus.Cli.Infrastructure.OptionSet.Parse(IEnumerable1 arguments) in C:\buildAgent\work\289bf0fca31007af\source\Octopus.Cli\Infrastructure\Options.cs:line 707
2021-03-04T12:06:25.6026596Z at Octopus.Cli.Infrastructure.Options.Parse(IEnumerable`1 arguments) in C:\buildAgent\work\289bf0fca31007af\source\Octopus.Cli\Infrastructure\OptionGroup.cs:line 36
2021-03-04T12:06:25.6027658Z at Octopus.Cli.Commands.Package.PackCommand.<>c__DisplayClass21_0.b__0() in C:\buildAgent\work\289bf0fca31007af\source\Octopus.Cli\Commands\Package\PackCommand.cs:line 80
2021-03-04T12:06:25.6028627Z at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
2021-03-04T12:06:25.6030100Z at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
2021-03-04T12:06:25.6030675Z — End of stack trace from previous location where exception was thrown —
2021-03-04T12:06:25.6031278Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2021-03-04T12:06:25.6031822Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2021-03-04T12:06:25.6032563Z at Octopus.Cli.CliProgram.Run(String[] args) in C:\buildAgent\work\289bf0fca31007af\source\Octopus.Cli\CliProgram.cs:line 54
2021-03-04T12:06:25.6033090Z Exit code: -3
2021-03-04T12:06:25.6187983Z ##[error]Error: The process ‘C:\agent01_work_tool\octo\7.4.4\x64\octo.cmd’ failed with exit code 4294967293
2021-03-04T12:06:25.6191455Z ##[error]Failed to execute octo pack command. The process ‘C:\agent01_work_tool\octo\7.4.4\x64\octo.cmd’ failed with exit code 4294967293
2021-03-04T12:06:25.6244356Z ##[section]Finishing: Package DeployNuPkg

Hi jianglili2015,

Thank you for reaching out to us with your query.

The ‘octo.exe pack’ command requires that the version argument is provided using Semantic Versioning (SemVer). It appears that the value being given is …-000 which isn’t valid SemVer. You’ll need to change this to a valid version in order to fix the error.

You can find out more about SemVer below:

You can also find out more about using the Octo CLI in our documentation:

I hope this is helpful. Please let me know if you have any questions.

Best Regards,

Charles

Thanks!

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.