Azure Deploy [错误]进程"appcmd.exe"已退出,代码为"4312" [英] Azure Deploy [error]Process 'appcmd.exe' exited with code '4312'

查看:174
本文介绍了Azure Deploy [错误]进程"appcmd.exe"已退出,代码为"4312"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在azure vm上进行部署,但日志中的错误率低于此值.任何帮助将不胜感激.

I am trying to do deploy on azure vm but getting below error in the log. Any help will be appreciated.

2019-02-25T14:02:55.2630391Z ## [节]开始:管理IIS网站 2019-02-25T14:02:55.2638264Z ======================================== ===================================== 2019-02-25T14:02:55.2638352Z任务:IIS Web App管理 2019-02-25T14:02:55.2638426Z说明:创建或更新网站,Web应用程序,虚拟目录和应用程序池 2019-02-25T14:02:55.2638480Z版本:0.5.9 2019-02-25T14:02:55.2638542Z作者:Microsoft Corporation 2019-02-25T14:02:55.2638599Z帮助:更多信息 2019-02-25T14:02:55.2638661Z ======================================== ===================================== 2019-02-25T14:02:56.5249594Z ## [command]"C:\ Windows \ system32 \ inetsrv \ appcmd.exe"列出apppool/名称:"azure2" 2019-02-25T14:02:56.5894950Z ## [command]"C:\ Windows \ system32 \ inetsrv \ appcmd.exe"设置apppool/apppool.name:"azure2"-managedRuntimeVersion:v4.0 -managedPipelineMode:Integrated- processModel.identityType:ApplicationPoolIdentity 2019-02-25T14:02:56.6765646Z APPPOOL对象"azure2"已更改 2019-02-25T14:02:56.6880351Z ## [command]"C:\ Windows \ system32 \ inetsrv \ appcmd.exe"列表站点/名称:"azure2.desap.net" 2019-02-25T14:02:56.7391199Z ## [command]"C:\ Windows \ system32 \ inetsrv \ appcmd.exe"添加站点/名称:"azure2.desap.net"/physicalPath:"C:\ inetpub \ wwwroot \ net.desap.azure2 2019-02-25T14:02:56.8221558Z添加了SITE对象"azure2.desap.net" 2019-02-25T14:02:56.8254882Z APP对象"azure2.desap.net/"已添加 2019-02-25T14:02:56.8255141Z VDIR对象"azure2.desap.net/"已添加 2019-02-25T14:02:56.8450318Z ## [command]"C:\ Windows \ system32 \ inetsrv \ appcmd.exe"设置站点/site.name:"azure2.desap.net"-applicationDefaults.applicationPool:" azure2 -[path ='/'].[path ='/'].physicalPath:" C:\ inetpub \ wwwroot \ net.desap.azure2-[path ='/'].[path ='/'] .userName:-[path ='/'].[path ='/'].password: 2019-02-25T14:02:56.9132304Z SITE对象"azure2.desap.net"已更改 2019-02-25T14:02:56.9421865Z ## [命令]"C:\ Windows \ system32 \ inetsrv \ appcmd.exe"列出站点 2019-02-25T14:02:57.0211736Z ## [command]"netsh" http show sslcert hostnameport = azure2.desap.net:443 2019-02-25T14:02:57.0749939Z ## [command]"netsh" http add sslcert hostnameport = azure2.desap.net:443 certhash = *** appid = {27113a38-e64f-45dd-8078-c551f0cd842e} certstorename =我的 2019-02-25T14:02:57.1144820Z 2019-02-25T14:02:57.1145068Z SSL证书已成功添加 2019-02-25T14:02:57.1145124Z 2019-02-25T14:02:57.1319852Z ## [command]"C:\ Windows \ system32 \ inetsrv \ appcmd.exe"设置站点/site.name:"azure2.desap.net"/bindings.[protocol=' https',bindingInformation ='*:443:azure2.desap.net'].sslFlags:"1" 2019-02-25T14:02:57.1773238Z错误(消息:找不到请求的集合元素.) 2019-02-25T14:02:57.3415435Z ## [错误]进程'appcmd.exe'退出,代码为'4312'. 2019-02-25T14:02:57.3731371Z ## [section]完成:管理IIS网站

2019-02-25T14:02:55.2630391Z ##[section]Starting: Manage IISWebsite 2019-02-25T14:02:55.2638264Z ============================================================================== 2019-02-25T14:02:55.2638352Z Task : IIS Web App Manage 2019-02-25T14:02:55.2638426Z Description : Create or update a Website, Web App, Virtual Directories, and Application Pool 2019-02-25T14:02:55.2638480Z Version : 0.5.9 2019-02-25T14:02:55.2638542Z Author : Microsoft Corporation 2019-02-25T14:02:55.2638599Z Help : More Information 2019-02-25T14:02:55.2638661Z ============================================================================== 2019-02-25T14:02:56.5249594Z ##[command]"C:\Windows\system32\inetsrv\appcmd.exe" list apppool /name:"azure2" 2019-02-25T14:02:56.5894950Z ##[command]"C:\Windows\system32\inetsrv\appcmd.exe" set apppool /apppool.name:"azure2" -managedRuntimeVersion:v4.0 -managedPipelineMode:Integrated -processModel.identityType:ApplicationPoolIdentity 2019-02-25T14:02:56.6765646Z APPPOOL object "azure2" changed 2019-02-25T14:02:56.6880351Z ##[command]"C:\Windows\system32\inetsrv\appcmd.exe" list site /name:"azure2.desap.net" 2019-02-25T14:02:56.7391199Z ##[command]"C:\Windows\system32\inetsrv\appcmd.exe" add site /name:"azure2.desap.net" /physicalPath:"C:\inetpub\wwwroot\net.desap.azure2" 2019-02-25T14:02:56.8221558Z SITE object "azure2.desap.net" added 2019-02-25T14:02:56.8254882Z APP object "azure2.desap.net/" added 2019-02-25T14:02:56.8255141Z VDIR object "azure2.desap.net/" added 2019-02-25T14:02:56.8450318Z ##[command]"C:\Windows\system32\inetsrv\appcmd.exe" set site /site.name:"azure2.desap.net" -applicationDefaults.applicationPool:"azure2" -[path='/'].[path='/'].physicalPath:"C:\inetpub\wwwroot\net.desap.azure2" -[path='/'].[path='/'].userName: -[path='/'].[path='/'].password: 2019-02-25T14:02:56.9132304Z SITE object "azure2.desap.net" changed 2019-02-25T14:02:56.9421865Z ##[command]"C:\Windows\system32\inetsrv\appcmd.exe" list sites 2019-02-25T14:02:57.0211736Z ##[command]"netsh" http show sslcert hostnameport=azure2.desap.net:443 2019-02-25T14:02:57.0749939Z ##[command]"netsh" http add sslcert hostnameport=azure2.desap.net:443 certhash=*** appid={27113a38-e64f-45dd-8078-c551f0cd842e} certstorename=MY 2019-02-25T14:02:57.1144820Z 2019-02-25T14:02:57.1145068Z SSL Certificate successfully added 2019-02-25T14:02:57.1145124Z 2019-02-25T14:02:57.1319852Z ##[command]"C:\Windows\system32\inetsrv\appcmd.exe" set site /site.name:"azure2.desap.net" /bindings.[protocol='https',bindingInformation='*:443:azure2.desap.net'].sslFlags:"1" 2019-02-25T14:02:57.1773238Z ERROR ( message:Cannot find requested collection element. ) 2019-02-25T14:02:57.3415435Z ##[error]Process 'appcmd.exe' exited with code '4312'. 2019-02-25T14:02:57.3731371Z ##[section]Finishing: Manage IISWebsite

推荐答案

此错误消息的原因是没有生成任何工件,因此我在.yaml代码的末尾添加了这一行,并进行了修复.

The reason for this error message was that there where no artifacts generated, I added this line at the end of my .yaml code and it got fixed.

- task: PublishBuildArtifacts@1    
  displayName: 'Publish Artifact: drop'
  inputs:
    PathtoPublish: '$(build.artifactstagingdirectory)'

这篇关于Azure Deploy [错误]进程"appcmd.exe"已退出,代码为"4312"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆