This process was working I don’t understand why it isn’t now.
Here is log file that failed to copy files.
| == Failed: Step 3: Deploy ==
11:04:25 Fatal | The step failed: Activity Deploy on INMEDIATAWEB06 failed with error ‘The remote script failed with exit code 100’.
11:04:25 Verbose | Deploy completed
|
| Failed: INMEDIATAWEB06
11:03:19 Verbose | Octopus Server version: 3.8.2+Branch.master.Sha.697625fc79096635afccb7c9bfd219dbd05868d8
11:03:19 Verbose | Environment Information:
| OperatingSystem: Microsoft Windows NT 6.2.9200.0
| OsBitVersion: x64
| Is64BitProcess: True
| CurrentUser: SEDIAD\octserv
| MachineName: SEDIOCT
| ProcessorCount: 4
| CurrentDirectory: C:\Windows\system32
| TempDirectory: C:\Users\octserv\AppData\Local\Temp
| HostProcessName: Octopus.Server
11:03:19 Info | Deploying package ‘D:\Octopus\Files\feeds-inmediata33\SecurePMS.Web.2.0.10.450_F6BCA147C41A1C439D88705A36680290.nupkg’ to machine 'poll://zv56zgssw8wpv2tkcx3r/'
11:03:23 Verbose | Octopus Deploy: Calamari version 3.6.30+Branch.master.Sha.02e2db4c0ee368d3e5e41c7959ecb01e6bcb4aaf
11:03:23 Verbose | Environment Information:
11:03:23 Verbose | OperatingSystem: Microsoft Windows NT 6.1.7601 Service Pack 1
11:03:23 Verbose | OsBitVersion: x64
11:03:23 Verbose | Is64BitProcess: True
11:03:23 Verbose | CurrentUser: NT AUTHORITY\SYSTEM
11:03:23 Verbose | MachineName: INMEDIATAWEB06
11:03:23 Verbose | ProcessorCount: 14
11:03:23 Verbose | CurrentDirectory: D:\Octopus\Work\20170302160323-365
11:03:23 Verbose | TempDirectory: C:\Windows\TEMP
11:03:23 Verbose | HostProcessName: Calamari
11:03:23 Info | Deploying package: D:\Octopus\Files\feeds-inmediata33\SecurePMS.Web.2.0.10.450_F6BCA147C41A1C439D88705A36680290.nupkg
11:03:24 Verbose | Extracting package to: D:\Octopus\Applications\SecurePMS - DEMO\SecurePMS.Web\2.0.10.450
11:03:24 Verbose | Extracted 3 files
11:03:24 Info | Copying package contents to 'D:\SecurePMS\Demo’
11:03:24 Verbose | Retry #1 on copy ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’. Exception: Access to the path ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’ is denied.
11:03:24 Verbose | Retry #2 on copy ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’. Exception: Access to the path ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’ is denied.
11:03:25 Verbose | Retry #3 on copy ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’. Exception: Access to the path ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’ is denied.
11:03:25 Verbose | Retry #4 on copy ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’. Exception: Access to the path ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’ is denied.
11:03:35 Verbose | Retry #54 on copy ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’. Exception: Access to the path ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’ is denied.
11:03:47 Verbose | Retry #104 on copy ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’. Exception: Access to the path ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’ is denied.
11:03:58 Verbose | Retry #154 on copy ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’. Exception: Access to the path ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’ is denied.
11:04:08 Verbose | Retry #204 on copy ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’. Exception: Access to the path ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’ is denied.
11:04:19 Verbose | Retry #254 on copy ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’. Exception: Access to the path ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’ is denied.
11:04:25 Error | System.UnauthorizedAccessException: Access to the path ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’ is denied.
11:04:25 Error | at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
11:04:25 Error | at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
11:04:25 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.RetryTrackerFileAction(Action fileAction, String target, String action) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Integration\FileSystem\CalamariPhysicalFileSystem.cs:line 528
11:04:25 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory, CancellationToken cancel) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Integration\FileSystem\CalamariPhysicalFileSystem.cs:line 486
11:04:25 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory, CancellationToken cancel) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Integration\FileSystem\CalamariPhysicalFileSystem.cs:line 493
11:04:25 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory, CancellationToken cancel) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Integration\FileSystem\CalamariPhysicalFileSystem.cs:line 493
11:04:25 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Integration\FileSystem\CalamariPhysicalFileSystem.cs:line 465
11:04:25 Error | at Calamari.Deployment.Conventions.CopyPackageToCustomInstallationDirectoryConvention.Install(RunningDeployment deployment) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\Conventions\CopyPackageToCustomInstallationDirectoryConvention.cs:line 57
11:04:25 Error | at Calamari.Deployment.ConventionProcessor.RunInstallConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 60
11:04:25 Error | at Calamari.Deployment.ConventionProcessor.RunConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 28
11:04:25 Error | Running rollback conventions…
11:04:25 Verbose | Adding journal entry:
11:04:25 Verbose |
11:04:25 Error | System.UnauthorizedAccessException: Access to the path ‘D:\SecurePMS\Demo\Views\AppointmentBook\AddEditControl.ascx’ is denied.
11:04:25 Error | at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
11:04:25 Error | at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
11:04:25 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.RetryTrackerFileAction(Action fileAction, String target, String action) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Integration\FileSystem\CalamariPhysicalFileSystem.cs:line 528
11:04:25 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory, CancellationToken cancel) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Integration\FileSystem\CalamariPhysicalFileSystem.cs:line 486
11:04:25 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory, CancellationToken cancel) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Integration\FileSystem\CalamariPhysicalFileSystem.cs:line 493
11:04:25 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory, CancellationToken cancel) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Integration\FileSystem\CalamariPhysicalFileSystem.cs:line 493
11:04:25 Error | at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Integration\FileSystem\CalamariPhysicalFileSystem.cs:line 465
11:04:25 Error | at Calamari.Deployment.Conventions.CopyPackageToCustomInstallationDirectoryConvention.Install(RunningDeployment deployment) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\Conventions\CopyPackageToCustomInstallationDirectoryConvention.cs:line 57
11:04:25 Error | at Calamari.Deployment.ConventionProcessor.RunInstallConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 60
11:04:25 Error | at Calamari.Deployment.ConventionProcessor.RunConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 50
11:04:25 Error | at Calamari.Commands.DeployPackageCommand.Execute(String[] commandLineArguments) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Commands\DeployPackageCommand.cs:line 120
11:04:25 Error | at Calamari.Program.Execute(String[] args) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Program.cs:line 45
11:04:25 Verbose | Updating manifest with output variables
11:04:25 Verbose | Package deployment step finished
11:04:25 Fatal | The remote script failed with exit code 100
11:04:25 Verbose | at Octopus.Worker.Scripting.ScriptResult.EnsureSuccessful() in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Worker\Scripting\ScriptResult.cs:line 69
| at Octopus.Server.Orchestration.Deploy.Package.PackageActionHandler.Execute(ActionCommand command, Machine machine) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Orchestration\Deploy\Package\PackageActionHandler.cs:line 39
| at Octopus.Server.Orchestration.Deploy.DeploymentTaskController.<>c__DisplayClass28_0.b__0() in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Orchestration\Deploy\DeploymentTaskController.cs:line 321
| at Octopus.Server.Orchestration.Deploy.DeploymentTaskController.ExecuteWithTransientErrorDetection(Action action, Machine machine) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Orchestration\Deploy\DeploymentTaskController.cs:line 424
| at Octopus.Server.Orchestration.Deploy.DeploymentTaskController.ExecuteActionAndInitLoggingContext(PlannedStep step, Machine machine, PlannedAction action) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Orchestration\Deploy\DeploymentTaskController.cs:line 318
11:04:25 Fatal | Deploy on INMEDIATAWEB06
Here is another log file of a successful deployment to the same server and folder.
| == Success: Step 3: Deploy ==
10:31:17 Verbose | Deploy completed
|
| Success: INMEDIATAWEB06
10:31:12 Verbose | Octopus Server version: 3.8.2+Branch.master.Sha.697625fc79096635afccb7c9bfd219dbd05868d8
10:31:12 Verbose | Environment Information:
| OperatingSystem: Microsoft Windows NT 6.2.9200.0
| OsBitVersion: x64
| Is64BitProcess: True
| CurrentUser: SEDIAD\octserv
| MachineName: SEDIOCT
| ProcessorCount: 4
| CurrentDirectory: C:\Windows\system32
| TempDirectory: C:\Users\octserv\AppData\Local\Temp
| HostProcessName: Octopus.Server
10:31:12 Info | Deploying package ‘D:\Octopus\Files\feeds-inmediata33\SecurePMS.Web.2.0.10.449_D111833BA3DBD7458C4954A04BB4F9CC.nupkg’ to machine 'poll://zv56zgssw8wpv2tkcx3r/'
10:31:14 Verbose | Octopus Deploy: Calamari version 3.6.30+Branch.master.Sha.02e2db4c0ee368d3e5e41c7959ecb01e6bcb4aaf
10:31:14 Verbose | Environment Information:
10:31:14 Verbose | OperatingSystem: Microsoft Windows NT 6.1.7601 Service Pack 1
10:31:14 Verbose | OsBitVersion: x64
10:31:14 Verbose | Is64BitProcess: True
10:31:14 Verbose | CurrentUser: NT AUTHORITY\SYSTEM
10:31:14 Verbose | MachineName: INMEDIATAWEB06
10:31:14 Verbose | ProcessorCount: 14
10:31:14 Verbose | CurrentDirectory: D:\Octopus\Work\20170227153113-270
10:31:14 Verbose | TempDirectory: C:\Windows\TEMP
10:31:14 Verbose | HostProcessName: Calamari
10:31:14 Info | Deploying package: D:\Octopus\Files\feeds-inmediata33\SecurePMS.Web.2.0.10.449_D111833BA3DBD7458C4954A04BB4F9CC.nupkg
10:31:15 Verbose | Extracting package to: D:\Octopus\Applications\SecurePMS - DEMO\SecurePMS.Web\2.0.10.449
10:31:15 Verbose | Extracted 2 files
10:31:15 Info | Copying package contents to 'D:\SecurePMS\Demo’
10:31:15 Info | Copied 2 files
10:31:15 Verbose | Adding journal entry:
10:31:15 Verbose |
10:31:15 Verbose | Updating manifest with output variables
10:31:16 Verbose | Package deployment step finished