使用 msdeploy 处理大文件
我们正在尝试使用 Web Deploy 来改进我们的部署。
一切都在内部工作,但一旦我们尝试部署到在线环境,msdeploy 就会挂在大于 1 MB 的文件上。
如果我们删除这些文件,同步将与 msdeploy 一起工作。
客户端会尝试几次上传文件,然后给出以下错误:
警告:由于发生套接字错误 (10054),正在重试同步。
正在对象 MSDeploy.contentPath (sourcePath) 上重试“序列化”操作。
尝试 4 次(共 25 次)。
信息:使用 ID“789c2466-2bae-4b56-b67d-1a1743cdb0f6”连接到远程服务器。
在服务器上我们看到以下错误:
内容类型:应用程序/msdeploy
版本:8.0.0.0
MSDeploy.VersionMin:7.1.600.0
MSDeploy.VersionMax:7.1.1070.1
MSDeploy.方法:同步
MSDeploy.RequestId:789c2466-2bae-4b56-b67d-1a1743cdb0f6
MSDeploy.RequestCulture:en-US
MSDeploy.RequestUICulture:en-US
跳过:objectName="^configProtectedData$"objectName="filePath",absolutePath=".*web.config$"objectName="filePath"
提供者:contentPath,路径:demo.com
跟踪部署代理异常。请求 ID“789c2466-2bae-4b56-b67d-1a1743cdb0f6”。
请求时间戳:“5/07/2011 11:29:56”。错误详细信息:
System.Net.HttpListenerException:尝试对不存在的网络连接进行操作
在 System.Net.HttpResponseStream.Dispose(布尔处置)
在 System.IO.Stream.Close()
在 System.IO.BufferedStream.Dispose(布尔处置)
在 System.IO.Stream.Close()
在 System.IO.StreamWriter.Dispose(布尔处置)
在 System.IO.StreamWriter.Close()
在 System.Xml.XmlTextWriter.Close()
在 Microsoft.Web.Deployment.TraceEventSerializer.Dispose()
在 Microsoft.Web.Deployment.DeploymentAgent.HandleSync(DeploymentAgentWorkerRequest workerRequest)
在 Microsoft.Web.Deployment.DeploymentAgent.HandleRequestWorker(DeploymentAgentAsyncData asyncData)
在 Microsoft.Web.Deployment.DeploymentAgent.HandleRequest(DeploymentAgentAsyncData asyncData)
有人有解决问题的建议吗?
We are trying to use Web Deploy to improve our deployment.
Everything works internally but once we try to deploy to our online environment than msdeploy hangs on files lager than 1 MB.
If we remove those files, the sync works with msdeploy.
The client tries a few times to upload the file and then gives the following error:
Warning: Retrying the sync because a socket error (10054) occurred.
Retrying operation 'Serialization' on object MSDeploy.contentPath (sourcePath).
Attempt 4 of 25.
Info: Using ID '789c2466-2bae-4b56-b67d-1a1743cdb0f6' for connections to the remote server.
On the server we see the following error:
Content-Type: application/msdeploy
Version: 8.0.0.0
MSDeploy.VersionMin: 7.1.600.0
MSDeploy.VersionMax: 7.1.1070.1
MSDeploy.Method: Sync
MSDeploy.RequestId: 789c2466-2bae-4b56-b67d-1a1743cdb0f6
MSDeploy.RequestCulture: en-US
MSDeploy.RequestUICulture: en-US
Skip: objectName="^configProtectedData$"objectName="filePath",absolutePath=".*web.config$"objectName="filePath"
Provider: contentPath, Path: demo.com
Tracing deployment agent exception. Request ID '789c2466-2bae-4b56-b67d-1a1743cdb0f6'.
Request Timestamp: '5/07/2011 11:29:56'. Error Details:
System.Net.HttpListenerException: An operation was attempted on a nonexistent network connection
at System.Net.HttpResponseStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.BufferedStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.StreamWriter.Dispose(Boolean disposing)
at System.IO.StreamWriter.Close()
at System.Xml.XmlTextWriter.Close()
at Microsoft.Web.Deployment.TraceEventSerializer.Dispose()
at Microsoft.Web.Deployment.DeploymentAgent.HandleSync(DeploymentAgentWorkerRequest workerRequest)
at Microsoft.Web.Deployment.DeploymentAgent.HandleRequestWorker(DeploymentAgentAsyncData asyncData)
at Microsoft.Web.Deployment.DeploymentAgent.HandleRequest(DeploymentAgentAsyncData asyncData)
Anyone any suggestions to fix the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我没有遇到过这个问题,所以无法给你一个具体的解决方案,但微软文档说
为什么尽管本地部署成功,但远程部署对于大文件是否会失败?
通常,当您部署到生产服务器时,您是跨防火墙进行部署。
如果您在大文件上遇到流结束错误,请检查防火墙上的设置。
不幸的是,它没有提供有关要检查的防火墙设置的详细信息
I have not had this issue so cannot give you a specific fix but the microsoft documentation says
Why does remote deployment fail for large files, although local deployment succeeds?
Typically when you deploy to production servers you are deploying across a firewall.
If you get end-of-stream errors on large files, check the settings on the firewall.
Unfortuately it doesnt give specifics regarding the firewall setting to check