DeploymentJournalReaderWriter: access denied

Hello,

We encountered the following error after upgrade 1.6 -> 2.4:

Access to the path is denied.
System.UnauthorizedAccessException: Access to the path is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalReplace(String sourceFileName, String destinationFileName, String destinationBackupFileName, Boolean ignoreMetadataErrors)
at Octopus.Platform.Util.OctopusPhysicalFileSystem.OverwriteAndDelete(String originalFile, String temporaryReplacement) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Platform\Util\OctopusPhysicalFileSystem.cs:line 264
at Octopus.Tentacle.Deployment.Journal.DeploymentJournalReaderWriter.Overwrite(IEnumerable`1 elements) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Tentacle\Deployment\Journal\DeploymentJournalReaderWriter.cs:line 62
at Octopus.Tentacle.Deployment.Journal.DeploymentJournal.AppendSuccessfulDeployment(JournalEntry journalEntry, ILog log, String& retentionToken) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Tentacle\Deployment\Journal\DeploymentJournal.cs:line 29
at Octopus.Tentacle.Orchestration.Deploy.Package.TentaclePackageDeployment.StartNextProcedure(Boolean reevaluate) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Tentacle\Orchestration\Deploy\Package\TentaclePackageDeployment.cs:line 257
at Octopus.Tentacle.Orchestration.Deploy.Package.TentaclePackageDeployment.Receive(ProcedureCalledEvent reply) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Tentacle\Orchestration\Deploy\Package\TentaclePackageDeployment.cs:line 335
at Pipefish.Actor.OnReceivingTyped[TBody](Message message) in c:\TeamCity\buildAgent\work\cf0b1f41263b24b9\source\Pipefish\Actor.cs:line 113

The error was after the deployment step itself has successfully completed.
Since there is no information on what exactly path is being accessed, it’s hard to fix the Tentacle’s service account permissions.

Could you please assist?

Hi Sergii,

The DeploymentJournal.xml file is usually somewhere like C:\Octopus\Tentacle\Apps\.Tentacle - the Tentacle needs full read/write access to it.

We’ve got some basic docs on permissions now at: http://docs.octopusdeploy.com/display/OD/Running+Tentacle.exe+under+a+specific+user+account - let me know if it helps, or if there’s anything critical missing.

Regards,
Nick