【问题标题】:Purge locked file by Octopus八达通清除锁定的文件
【发布时间】:2014-08-21 17:40:42
【问题描述】:

我们正在尝试使用 Octopus deploy 配置 ASP.NET 应用程序的部署。 一切正常,但有时该步骤会在尝试覆盖文件时失败,说明该文件已被其他进程锁定。 我们已经在部署开始之前停止了 IIS,所以不确定我们可以在这里尝试什么。 有时错误出现在应用程序 customlog 文件夹(txt 文件)中,有时错误出现在某些 dll 等的 bin 文件夹中。

确切的错误是:

*Unable to copy the package to the specified directory 'D:\Apps\XYZ_Stage'. One or more files in the directory may be locked by another process. You could use a PreDeploy.ps1 script to stop any processes that may be locking the file. Error details follow.
Access to the path 'D:\Apps\XYZ_Stage\bin\XYZ.Business.dll' is denied.
System.UnauthorizedAccessException: Access to the path 'D:\Apps\XYZ_Stage\bin\ACA.Business.dll' is denied.*

有什么建议吗?

【问题讨论】:

    标签: sql-server-2008 powershell octopus-deploy


    【解决方案1】:

    如果您使用 Octopus 2.0 或更高版本,您可以利用“IIS 网站和应用程序池”部署选项,这会使 Octopus Deploy 处理部署到 IIS 的所有复杂性,而无需您执行手动步骤。

    这里有一些信息:http://docs.octopusdeploy.com/display/OD/IIS+Websites+and+Application+Pools

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-05-13
      • 1970-01-01
      • 2017-02-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多