Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to push a SemVer2 package #264

Closed
4 tasks done
Thilas opened this issue Jun 17, 2023 · 2 comments
Closed
4 tasks done

Unable to push a SemVer2 package #264

Thilas opened this issue Jun 17, 2023 · 2 comments
Labels
Invalid / Not Issue / No repro / Not Implementing Tickets related to things that are invalid or are unable to be reproduced.

Comments

@Thilas
Copy link

Thilas commented Jun 17, 2023

Checklist

  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have verified this is not an issue for a specific package.
  • I have verified this issue is not security related.

What You Are Seeing?

Since choco supports SemVer2, I've changed my auto update pipeline to adopt it. Now it tries to push the 1st SemVer2 package and I'm getting the following error:
Chocolatey v2.0.0 Attempting to push sabnzbd.4.0.3-Beta.1.nupkg to https://push.chocolatey.org Response status code does not indicate success: 504 (Gateway Timeout).

All my other packages works fine but I've had no dotted prereleases so far, this is the very 1st. And i's been failing since it got released.

What is Expected?

I should be able to push my package.

How Did You Get This To Happen?

  1. Download the package from my GitHub Action workflow: https://github.com/Thilas/chocolatey-packages/suites/13656857222/artifacts/754135306
  2. Push it: choco push --source=https://push.chocolatey.org/ sabnzbd.4.0.3-Beta.1.nupkg

System Details

  • Operating System: Any (mine is 10.0.22621.0)
  • Windows PowerShell version: Any (mine is either 5.1.22621.1778 or 7.3.4)
  • Chocolatey CLI Version: 2.0.0
  • Chocolatey Licensed Extension version: Chocolatey v2.0.0
  • Chocolatey License type: ?
  • Terminal/Emulator: Any

Installed Packages

N/A

Output Log

Chocolatey v2.0.0
Chocolatey is running on Windows v 10.0.22621.0
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line not shown - sensitive arguments may have been passed.
RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
Sending message 'PreRunMessage' out if there are subscribers...
[Pending] Removing all pending packages that should not be considered installed...
Performing validation checks.
Global Configuration Validation Checks:
 - Package Exit Code / Exit On Reboot = Checked
System State Validation Checks:
 Reboot Requirement Checks:
 - Pending Computer Rename = Checked
 - Pending Component Based Servicing = Checked
 - Pending Windows Auto Update = Checked
 - Pending File Rename Operations = Ignored
 - Pending Windows Package Installer = Checked
 - Pending Windows Package Installer SysWow64 = Checked
The source 'https://push.chocolatey.org/' evaluated to a 'normal' source type

NOTE: Hiding sensitive configuration data! Please double and triple
 check to be sure no sensitive data is shown, especially if copying
 output to a gist for review.
Configuration: CommandName='push'|
CacheLocation='C:\Users\Thomas\AppData\Local\Temp\chocolatey'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://push.chocolatey.org/'|SourceType='normal'|
ShowOnlineHelp='False'|Debug='True'|Verbose='True'|Trace='False'|
Force='False'|Noop='False'|HelpRequested='False'|
UnsuccessfulParsing='False'|RegularOutput='True'|QuietOutput='False'|
PromptForConfirmation='False'|DisableCompatibilityChecks='False'|
AcceptLicense='False'|AllowUnofficialBuild='False'|
Input='.\sabnzbd.4.0.3-Beta.1.nupkg'|AllVersions='False'|
SkipPackageInstallProvider='False'|SkipHookScripts='False'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowDowngrade='False'|ForceDependencies='False'|PinPackage='False'|
Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.22621.0'|
Information.PlatformName='Windows 10'|
Information.ChocolateyVersion='2.0.0.0'|
Information.ChocolateyProductVersion='2.0.0'|
Information.FullName='choco, Version=2.0.0.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='Thomas'|Information.UserDomainName='PC-THOMAS'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Information.CurrentDirectory='C:\Users\Thomas\Downloads'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseEnhancedExitCodes='False'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.SkipPackageUpgradesWhenNotInstalled='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
Features.UsePackageRepositoryOptimizations='True'|
ListCommand.LocalOnly='False'|ListCommand.IdOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'|
ListCommand.Exact='False'|ListCommand.ByIdOnly='False'|
ListCommand.ByTagOnly='False'|ListCommand.IdStartsWith='False'|
ListCommand.OrderByPopularity='False'|ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
ListCommand.ExplicitPageSize='False'|
ListCommand.ExplicitSource='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='Unknown'|
ApiKeyCommand.Command='Unknown'|PinCommand.Command='Unknown'|
OutdatedCommand.IgnorePinned='False'|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
TemplateCommand.Command='unknown'|
_ Chocolatey:ChocolateyPushCommand - Normal Run Mode _
Attempting to push sabnzbd.4.0.3-Beta.1.nupkg to https://push.chocolatey.org/
Resolving resource PackageUpdateResource for source https://push.chocolatey.org/
[NuGet] Pushing sabnzbd.4.0.3-Beta.1.nupkg to 'https://push.chocolatey.org/'...
[NuGet]   PUT https://push.chocolatey.org/api/v2/package/
[NuGet]   GatewayTimeout https://push.chocolatey.org/api/v2/package/ 506ms
[NuGet]   PUT https://push.chocolatey.org/api/v2/package/
[NuGet]   GatewayTimeout https://push.chocolatey.org/api/v2/package/ 172ms
[NuGet]   PUT https://push.chocolatey.org/api/v2/package/
[NuGet]   GatewayTimeout https://push.chocolatey.org/api/v2/package/ 189ms
Sending message 'PostRunMessage' out if there are subscribers...
Chocolatey had an error occur:
System.Net.Http.HttpRequestException: Le code d'état de réponse n'indique pas la réussite : 504 (Gateway Timeout).
   à System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   à NuGet.Protocol.Core.Types.PackageUpdateResource.EnsureSuccessStatusCode(HttpResponseMessage response, Nullable`1 codeNotToThrow, ILogger logger)
   à NuGet.Protocol.Core.Types.PackageUpdateResource.<>c__DisplayClass24_0.<PushPackageToServer>b__0(HttpResponseMessage response)
   à NuGet.Protocol.HttpSource.<ProcessResponseAsync>d__21`1.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
   à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   à NuGet.Protocol.Core.Types.PackageUpdateResource.<PushPackageToServer>d__24.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
   à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   à NuGet.Protocol.Core.Types.PackageUpdateResource.<PushPackageCore>d__20.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
   à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   à NuGet.Protocol.Core.Types.PackageUpdateResource.<PushPackagePath>d__19.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
   à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   à NuGet.Protocol.Core.Types.PackageUpdateResource.<Push>d__14.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
   à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   à chocolatey.infrastructure.app.nuget.NugetPush.PushPackage(ChocolateyConfiguration config, String nupkgFilePath, ILogger nugetLogger, String nupkgFileName, IFileSystem filesystem)
   à chocolatey.infrastructure.app.services.NugetService.Push(ChocolateyConfiguration config)
   à chocolatey.infrastructure.app.services.ChocolateyPackageService.Push(ChocolateyConfiguration config)
   à chocolatey.infrastructure.app.runners.GenericRunner.Run(ChocolateyConfiguration config, Container container, Boolean isConsole, Action`1 parseArgs)
   à chocolatey.infrastructure.app.runners.ConsoleApplication.Run(String[] args, ChocolateyConfiguration config, Container container)
   à chocolatey.console.Program.Main(String[] args)
Exiting with 1

Additional Context

No response

@Thilas Thilas added the Bug Tickets that represent defects/bugs. label Jun 17, 2023
@pauby
Copy link
Member

pauby commented Jun 17, 2023

While Chocolatey CLI v2.x supports SemVer V2, the Chocolatey Community Repository does not support it at this time.

@pauby pauby added Invalid / Not Issue / No repro / Not Implementing Tickets related to things that are invalid or are unable to be reproduced. and removed Bug Tickets that represent defects/bugs. labels Jun 17, 2023
@pauby pauby closed this as not planned Won't fix, can't repro, duplicate, stale Jun 17, 2023
@Thilas
Copy link
Author

Thilas commented Jun 17, 2023

Thanks for the quick answer. That's really unfortunate but I was suspecting that. I'll open a feature request there then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Invalid / Not Issue / No repro / Not Implementing Tickets related to things that are invalid or are unable to be reproduced.
Projects
None yet
Development

No branches or pull requests

2 participants