社区首页 >问答首页 >OctopusDeploy:创建发布步骤失败,出现错误"feed返回意外状态代码'403 '“

OctopusDeploy:创建发布步骤失败,出现错误"feed返回意外状态代码'403 '“
EN

Stack Overflow用户
提问于 2019-06-12 06:27:54
回答 3查看 2.2K关注 0票数 0

我有一个TeamCity/OctopusDeploy集成,它以前工作得很好,但是突然失败而没有在配置中进行任何更改。

唯一改变的是同时更新了TeamCity和OctopusDeploy。有人知道是什么原因造成的吗?我该怎么解决呢?

下面是最后一个成功构建的日志:

代码语言:javascript
代码运行次数:0
复制
Step 5/5: OctopusDeploy: Create release (22s)
[Step 5/5] Octopus Deploy (21s)
[Octopus Deploy] Running command: octo.exe create-release --server http://localhost:8888/octopus --apikey SECRET --project Test Configuration Dev --enableservicemessages --version 0.0.0-develop.10 --deployto Test Environment --progress --package DemoFetcher:0.0.0-develop.10
[Octopus Deploy] Creating Octopus Deploy release
[Octopus Deploy] Octopus Deploy Command Line Tool, version 5.2.6
[Octopus Deploy] 
[Octopus Deploy] Detected automation environment: "TeamCity/2018.2.4"
[Octopus Deploy] Space name unspecified, process will run in the default space context
[Octopus Deploy] Handshaking with Octopus Server: http://localhost:8888/octopus
[Octopus Deploy] Handshake successful. Octopus version: 2019.3.1; API version: 3.0.0
[Octopus Deploy] Authenticated as: Admin <admin@company.com> 
[Octopus Deploy] This Octopus Server supports channels
[Octopus Deploy] Finding project: Test Configuration Dev
[Octopus Deploy] Automatically selecting the best channel for this release...
[Octopus Deploy] Building a release plan for Channel 'Default'...
[Octopus Deploy] Finding deployment process...
[Octopus Deploy] Finding release template...
[Octopus Deploy] The package version for some steps was not specified. Going to try and resolve those automatically...
[Octopus Deploy] Finding latest package for step: Install Company Test App Config Service
[Octopus Deploy] Selected 'TestApp.test' version '0.0.0-develop.10' for 'Install Company Test App Config Service'
[Octopus Deploy] Selected the release plan for Channel 'Default' - it is a perfect match
[Octopus Deploy] Using version number provided on command-line: 0.0.0-develop.10
[Octopus Deploy] Release plan for Test Configuration Dev 0.0.0-develop.10
[Octopus Deploy] Channel: 'Default' (this is the default channel)
[Octopus Deploy] # Name Version Source Version rules 
[Octopus Deploy] --- ------------------------------------------------------- ------------------ ------------------ -------------------
[Octopus Deploy] 1 Install Company Test App Config Service 0.0.0-develop.10 Latest available Allow any version 
[Octopus Deploy] 
[Octopus Deploy] Creating release...
[Octopus Deploy] Release 0.0.0-develop.10 created successfully!
[Octopus Deploy] ##teamcity[setParameter name='octo.releaseNumber' value='0.0.0-develop.10']
[Octopus Deploy] Deploying Test Configuration Dev "0.0.0-develop.10" to: Test Environment (Guided Failure: Not Enabled)
[Octopus Deploy] Waiting for 1 deployment(s) to complete....
[Octopus Deploy] Success: Acquire packages
[Octopus Deploy] Success: Step 2: Install Company Test App Config Service
[Octopus Deploy] Success: Apply retention policy on Tentacles
[Octopus Deploy] Deploy Test Configuration Dev release 0.0.0-develop.10 to Test Environment: Success
[Octopus Deploy] Done!
[Octopus Deploy] Octo.exe exit code: 0

相比之下,下面是第一个失败构建的日志:

代码语言:javascript
代码运行次数:0
复制
Step 6/6: OctopusDeploy: Create release (2s)
[Step 6/6] Octopus Deploy (1s)
[Octopus Deploy] Running command: octo.exe create-release --server http://localhost:8888/octopus --apikey SECRET --project Test Configuration Dev --enableservicemessages --version 0.0.0-develop.17 --deployto Test Environment --progress --package DemoFetcher:0.0.0-develop.17
[Octopus Deploy] Creating Octopus Deploy release
[Octopus Deploy] Octopus Deploy Command Line Tool, version 5.2.6
[Octopus Deploy] 
[Octopus Deploy] Detected automation environment: "TeamCity/2019.1"
[Octopus Deploy] Space name unspecified, process will run in the default space context
[Octopus Deploy] Handshaking with Octopus Server: http://localhost:8888/octopus
[Octopus Deploy] Handshake successful. Octopus version: 2019.3.3; API version: 3.0.0
[Octopus Deploy] Authenticated as: Admin <admin@company.com> 
[Octopus Deploy] This Octopus Server supports channels
[Octopus Deploy] Finding project: Test Configuration Dev
[Octopus Deploy] Automatically selecting the best channel for this release...
[Octopus Deploy] Building a release plan for Channel 'Default'...
[Octopus Deploy] Finding deployment process...
[Octopus Deploy] Finding release template...
[Octopus Deploy] The package version for some steps was not specified. Going to try and resolve those automatically...
[Octopus Deploy] Finding latest package for step: Install Company Test App Config Service
[Octopus Deploy] Octopus Server returned an error: The V2 feed at 'http://collaboration.company.de/httpAuth/app/nuget/feed/_Root/default/v2/FindPackagesById()?id='TestApp.test'&semVerLevel=2.0.0' returned an unexpected status code '403 '.
[Octopus Deploy] Server exception: 
[Octopus Deploy] The V2 feed at 'http://collaboration.company.de/httpAuth/app/nuget/feed/_Root/default/v2/FindPackagesById()?id='TestApp.test'&semVerLevel=2.0.0' returned an unexpected status code '403 '.
[Octopus Deploy] NuGet.Protocol.Core.Types.FatalProtocolException
[Octopus Deploy] at NuGet.Protocol.V2FeedParser.<>c__DisplayClass53_0.<LoadXmlAsync
[Octopus Deploy] at NuGet.Protocol.HttpSource.ProcessResponseAsync
[Octopus Deploy] at NuGet.Protocol.V2FeedParser.LoadXmlAsync
[Octopus Deploy] at NuGet.Protocol.V2FeedParser.QueryV2Feed
[Octopus Deploy] at NuGet.Protocol.V2FeedParser.FindPackagesByIdAsync
[Octopus Deploy] at NuGet.Protocol.PackageMetadataResourceV2Feed.GetMetadataAsync
[Octopus Deploy] at Octopus.Shared.Util.TaskExtensions.PrepareForRethrow(Exception exception)
[Octopus Deploy] at Octopus.Shared.Util.TaskExtensions.SafeResult[T](Task`1 task, CancellationToken cancellationToken)
[Octopus Deploy] at Octopus.Core.Packages.NuGet.ExternalHttpNuGetPackageFeed.FetchPackageMetadataForAllVersionsExpensive(String packageId, Boolean allowPreRelease, CancellationToken cancellationToken)
[Octopus Deploy] at Octopus.Core.Packages.NuGet.ExternalHttpNuGetPackageFeed.ListVersions(String packageId, CancellationToken cancellationToken, PackageVersionSearchOptions searchOptions, Int32& total, Int32 skip, Int32 take, Boolean includeReleaseNotes)
[Octopus Deploy] at Octopus.Server.Web.Api.Actions.PackageSearchActionOld.Search(String feedId, String packageId, Boolean partialMatch, Boolean includeMultipleVersions, Boolean includeNotes, Int32 take, PackageVersionSearchOptions searchOptions, Boolean descriptionsOptional)
[Octopus Deploy] at Octopus.Server.Web.Api.Actions.PackageSearchActionOld.ExecuteRegistered()
[Octopus Deploy] at Octopus.Server.Web.Infrastructure.Api.Responder`1.Respond(TDescriptor options, NancyContext context)
[Octopus Deploy] at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
[Octopus Deploy] at Octopus.Server.Web.Infrastructure.OctopusNancyModule.<>c__DisplayClass14_0.<get_Routes>b__1(Object x)
[Octopus Deploy] at Nancy.Routing.Route.<>c__DisplayClass4.<Wrap>b__3(Object parameters, CancellationToken context)
[Octopus Deploy] -----------------------
[Octopus Deploy] 
[Octopus Deploy] Error from Octopus Server (HTTP 500 InternalServerError)
[Octopus Deploy] Exit code: -7
[Octopus Deploy] Octo.exe exit code: -7
[Step 6/6] Unable to create or deploy release. Please check the build log for details on the error.
[Step 6/6] Unable to create or deploy release. Please check the build log for details on the error.
[Step 6/6] Step OctopusDeploy: Create release failed

更新14-6月-2019年:

在“八达通部署”中尝试手动创建发行版时,将显示下列匹配错误消息:

代码语言:javascript
代码运行次数:0
复制
The V2 feed at 'http://collaboration.company.de/httpAuth/app/nuget/feed/_Root/default/v2/FindPackagesById()?id='TestApp.test'&semVerLevel=2.0.0' returned an unexpected status code '403 '.

这听起来像是身份验证问题。我想我是在OctopusDeploy的->外部提要、-> TeamCity包、->凭据上找到的。但是,我不知道在TeamCity中配置凭据的匹配端隐藏在哪里。它似乎不在部署步骤中。有人知道在哪里配置这个吗?

EN

回答 3

Stack Overflow用户

发布于 2019-06-12 07:16:26

您的包裹更改如下:

代码语言:javascript
代码运行次数:0
复制
--package DemoFetcher:0.0.0-develop.10

至:

代码语言:javascript
代码运行次数:0
复制
--package DemoFetcher:0.0.0-develop.17

第二份工作找不到这个包:

代码语言:javascript
代码运行次数:0
复制
http://collaboration.company.de/httpAuth/app/nuget/feed/_Root/default/v2/FindPackagesById()?id='TestApp.test'&semVerLevel=2.0.0' returned an unexpected status code '403 '

还原您的包或验证NuGet服务器上存在的所有包。

票数 0
EN

Stack Overflow用户

发布于 2019-06-14 01:20:55

好吧,我现在明白了,这是一个两层的问题,一旦我找出了问题所在,就很容易解决了。

表面上的问题是,OctopusDeploy用来访问TeamCity包提要的"octopus“登录在TeamCity中不再起作用。

然而,实际的问题是,OctopusDeploy中的构建配置首先尝试使用TeamCity包提要,即使在前面的构建步骤中包被推到内部OctopusDeploy提要。

现在,我通过将“”项目的受影响部署步骤的Package feed中的Package Details从"TeamCity包“更改为"Octopus (内置)”来修复这个问题。

现在起作用了。

因此总结一下:如果您有此问题,请尝试使用内部octopus提要作为包源,因为它更易于配置。

票数 0
EN

Stack Overflow用户

发布于 2019-06-26 05:26:11

我找到了发生这种事的原因

由于某些原因,章鱼被配置为在TeamCity提要中查找包,而TeamCity则将包推送到八达通提要。我通过告诉Octopus从集成的Octopus (而不是TeamCity提要)获取包来修正这个问题,现在它开始工作了。

现在让我感到困惑的是,这之前是如何工作的,特别是因为我无法在“八达通”或“TeamCity审核”中检测到任何配置更改。但是哦,好吧,只要它现在起作用,那就好了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56564559

复制
相关文章
http返回错误状态_状态码返回0
代码里面我刚刚开始的时候使用的是HttpPost发的请求,另外一边呢,刚刚开始的时候只有一个get请求在那等着呢。
全栈程序员站长
2022/11/01
2.5K0
http返回错误状态_状态码返回0
wget下载出现错误 403:Forbidden
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/119548.html原文链接:https://javaforall.cn
全栈程序员站长
2022/07/11
4.3K0
tp6如果出现连接失败或者403错误的话,(请在phpstudy中这样做)
等php think run运行完后,就好了. 运行链接: localhost:8000/index.php/模块/控制器/方法(我这是多应用下。并且没有去掉index.php的情况下)
贵哥的编程之路
2022/05/24
6170
tp6如果出现连接失败或者403错误的话,(请在phpstudy中这样做)
访问网时出现403 Forbidden错误的原因:
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/113700.html原文链接:https://javaforall.cn
全栈程序员站长
2022/07/07
10.1K1
VS2010 网站发布失败: TransformXml任务意外失败 问题解决
今天发布网站时意外出现了发布失败的提示:“TransformXml”任务意外失败。
KenTalk
2018/09/11
1.4K0
Nginx出现403 forbidden
于是查看nginx日志,路径为/var/log/nginx/error.log。打开日志发现报错Permission denied,详细报错如下:
全栈程序员站长
2022/06/30
2.2K0
Nginx出现403 forbidden
wget404错误_错误403谷歌
Resolving s3.ap-northeast-1.amazonaws.com (s3.ap-northeast-1.amazonaws.com)… 52.219.8.176 Connecting to s3.ap-northeast-1.amazonaws.com (s3.ap-northeast-1.amazonaws.com)|52.219.8.176|:443… connected. HTTP request sent, awaiting response… 403 Forbidden
全栈程序员站长
2022/11/15
1.7K0
解决Nginx出现403 forbidden
我是在在本地用虚拟机中通过yum安装nginx的,安装一切正常,但是访问时报403,
用户8832503
2022/03/02
10.5K1
HTTP状态中302、403、500代码含义?
使用一二三四五原则来牢记状态码; 一、 消息系列 二、成功系列 三、重定向系列 四、请求错误系列 五、服务器端错误系列 302:临时转移成功,请求的内容已转移到新位置(临时重定向) 403:禁止访问 500:服务器内部错误(比较糟心的状态码) 401:代表未授权
申霖
2020/06/28
1.7K0
axios django CSRF 403错误
使用axios直接post django的接口的时候会提示CSRF 403错误 可以在post的data中转入csrftoken 也可以给单个方法关闭 from django.views.decorators.csrf import csrf_exempt,csrf_protect @csrf_exempt def test(request): pass
小贝壳
2020/03/05
1.4K0
Nginx 烦人的 403 错误
但是你就是老看到一个 403 的错误,这个绝大部分情况是因为 SELinux 造成的。
HoneyMoose
2022/07/06
6230
Nginx 烦人的 403 错误
nginx报403 forbidden错误
403 forbidden错误大家应该都熟悉,文件禁止访问,可能是权限问题,也可能是系统问题
opencode
2022/12/26
2.6K0
如何修复WordPress更新失败/发布失败错误,您可能已掉线
WordPress CMS是一个完全开源的工具,对用户免费,但是,由于插件等原因,有时会出现一些奇怪的错误消息,这些WordPress错误可能会影响网站的效果,也可能会给网站带来意想不到的后果。
晓得博客
2021/04/07
7.9K0
包验证返回的错误代码
程序集标识的某些部分(名称、公钥令牌、区域性、可重定目标属性或版本)对于比较的双方都不匹配。
用户4268038
2022/01/09
1.8K0
Nginx代理出现403问题分析
最近在处理一个业务场景问题: 项目需要调用某个系统的接口,但是那个系统因为比较历史了,对接口调用来源ip有严格限制,需要将来源ip添加为白名单,但是我们项目的这个工具是使用的serverless平台,无法知道具体的机器 ip,scf是即时性资源,因此来源ip肯定是变化的,因此决定通过一个代理来转发。
tunsuy
2023/08/19
2.2K0
Nginx代理出现403问题分析
ffmpeg avformat_open_input返回失败,错误码-10049
ffmpeg avformat_open_input失败,返回错误码-10049,错误描述:Error number -10049 occurred
全栈程序员站长
2022/11/10
1.8K0
ffmpeg avformat_open_input返回失败,错误码-10049
框架 | SpringBoot项目创建和发布部署步骤
如何创建Spring Boot项目? 1 技术选型 JDK1.7、MYSQL57、Spring Boot、Logback、Mybatis 2 开发工具 Myeclipse、Maven、Linux 3 数据库设计 表名:userinfo 结构如下: CREATE TABLE `userinfo` ( `id` int(20) NOT NULL AUTO_INCREMENT, `username` varchar(20) DEFAULT NULL, `password` varchar(20) D
码神联盟
2018/06/04
5.2K2
点击加载更多

相似问题

Team部署在OctopusDeploy失败:创建发布步骤

12

错误:获取失败,状态代码403

11

和Teams返回失败(状态代码403)

10

Nuxt错误:请求失败,状态代码403

25

错误:请求失败,状态代码为403 (GET)

165
添加站长 进交流群

领取专属 10元无门槛券

AI混元助手 在线答疑

扫码加入开发者社群
关注 腾讯云开发者公众号

洞察 腾讯核心技术

剖析业界实践案例

扫码关注腾讯云开发者公众号
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
查看详情【社区公告】 技术创作特训营有奖征文