【问题标题】:Jenkins build failed with "ERROR_INSUFFICIENT_ACCESS_TO_SITE_FOLDER"Jenkins 构建失败,出现“ERROR_INSUFFICIENT_ACCESS_TO_SITE_FOLDER”
【发布时间】:2017-10-04 03:40:17
【问题描述】:

我是 Jenkins 的新手,最近 Server windows 2008 R2 更新了一些补丁。在此之前,Jenkins 工作正常,但现在每当我通过 Jenkins 进行部署时,都会出现以下错误。

它似乎与权限有关吗?
但是我需要在哪里授予什么类型的权限?

/C C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe /nologo /v:q /property:configuration=Dev /p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish /p:CreatePackageOnPublish=False /p:MsDeployPublishMethod=WMSvc /p:MsDeployServiceUrl=https://<URL>/MSDeploy.axd /p:DeployIisAppPath=DEV_BackAPI /p:AllowUntrustedCertificate=True /p:Username=SYS_NAME\USER_PRODirectTest /p:Password=PASSWORD BACKAPI.sln && exit %%ERRORLEVEL%%
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4253,5): msdeploy error ERROR_INSUFFICIENT_ACCESS_TO_SITE_FOLDER: Web deployment task failed. (Unable to perform the operation ("Delete Directory")  for the specified directory ("4_0_30319"). This can occur if the server administrator has not authorized this operation for the user credentials you are using. [C:\Program Files (x86)\Jenkins\jobs\FA BEAPI - DEV\workspace\PRO.BACKAPI\PRO.BACKAPI.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4253,5): msdeploy error ERROR_INSUFFICIENT_ACCESS_TO_SITE_FOLDER:   Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_INSUFFICIENT_ACCESS_TO_SITE_FOLDER.) [C:\Program Files (x86)\Jenkins\jobs\FA BEAPI - DEV\workspace\PRO.BACKAPI\Falck.BACKAPI.csproj]
Build step 'Build a Visual Studio project or solution using MSBuild' marked build as failure

【问题讨论】:

    标签: jenkins visual-studio-2012 msbuild


    【解决方案1】:

    它似乎与权限有关吗?

    是的,确实如此。

    但是我需要在哪里授予什么类型的权限?

    和这里一样,尝试授予对站点文件夹的访问权限

    • LOCAL SERVICE 因为 Web 管理服务在此帐户下运行
    • NETWORK SERVICE 因为 Web 部署代理服务

    【讨论】:

    • 感谢您的回复。所以我会通过右键单击网站文件夹->在安全选项卡下授予权限?
    • @Salikix 是的,你可以从它开始。
    【解决方案2】:

    问题是网站项目中的 Asp_client 文件夹。 当我删除它时,它开始工作了。

    谢谢

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-03-22
      • 1970-01-01
      • 2015-12-07
      • 1970-01-01
      • 1970-01-01
      • 2021-11-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多