Getting 403 forbidden error while pushing the nuget package to octopus feed after octopus version update

Push of ‘Matrix.Database.Knab.Processes.18.15.8.132237.nupkg’ failed, retrying…

December 4th 2018 15:51:50

Error

The remote server returned an error: (403) Forbidden.

December 4th 2018 15:51:50

Error

D:\Octopus\Work\20181204145058-84414-20\PublishNugetToFeed.ps1 : Exception calling “Error” with “1” argument(s): "The r

December 4th 2018 15:51:50

Error

unning command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop: Fail

December 4th 2018 15:51:50

Error

ed to push ‘Matrix.Database.Knab.Processes.18.15.8.132237.nupkg’ to https://nuget.o.knab.local/nuget/Matrix.Releases. E

December 4th 2018 15:51:50

Error

xception: [NuGet result: [Pushing Matrix.Database.Knab.Processes.18.15.8.132237.nupkg to 'https://nuget.o.knab.local/nu

December 4th 2018 15:51:50

Error

get/Matrix.Releases’… PUT https://nuget.o.knab.local/nuget/Matrix.Releases/ An error was encountered when fetching

December 4th 2018 15:51:50

Error

‘PUT https://nuget.o.knab.local/nuget/Matrix.Releases/’. The request will now be retried. An error occurred while sendi

December 4th 2018 15:51:50

Error

ng the request. The remote server returned an error: (403) Forbidden. PUT https://nuget.o.knab.local/nuget/Matrix.R

December 4th 2018 15:51:50

Error

eleases/ An error was encountered when fetching ‘PUT https://nuget.o.knab.local/nuget/Matrix.Releases/’. The request wi

December 4th 2018 15:51:50

Error

ll now be retried. An error occurred while sending the request. The remote server returned an error: (403) Forbidden.

December 4th 2018 15:51:50

Error

PUT https://nuget.o.knab.local/nuget/Matrix.Releases/]]"

December 4th 2018 15:51:50

Error

At D:\Octopus\Work\20181204145058-84414-20\Bootstrap.PublishNugetToFeed.ps1:34229 char:1

December 4th 2018 15:51:50

Error

  • . ‘D:\Octopus\Work\20181204145058-84414-20\PublishNugetToFeed.ps1’

December 4th 2018 15:51:50

Error

  • 
    

December 4th 2018 15:51:50

Error

  • CategoryInfo : NotSpecified: (:slight_smile: [PublishNugetToFeed.ps1], MethodInvocationException

Error

  • FullyQualifiedErrorId : ScriptMethodRuntimeException,PublishNugetToFeed.ps1

Error

Fatal

The remote script failed with exit code 1

Hi,

Thanks for getting in touch. Can I just verify, in the title you said pushing to Octopus and in the log it looks like you’re using an Octopus step to push to https://nuget.o.knab.local, is that correct? Is https://nuget.o.knab.local another Octopus instance?

I’m also not having any luck tracking down the PublishNugetToFeed.ps1 file mentioned, would you be able to provide details of which step you are using?

Regarding the version update, was that an Octopus server upgrade or a version update on a step template? To help me track what has changed and might be causing issue, which version did you update from and to?

Regards
Shannon

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