Access denied for Offline package drop

Hi,

We have a project with 7 packages.
The standard online deployment works as expected.

The offline deployment fails with Access Denied error (see Error 01 screenshot)
The actual files which are shown as failed (e.g. Brady.CMS.Sloe.Agent.16.0.0.67.nupkg) have been correctly created in the target folder.

When I logon to VM running Octopus server using the account that Octopus service is logged on - I can add/edit/delete files in the destination folder.

Could you please advise how we can diagnose and resolve this issue?

Log file at RAW level

Task ID:        ServerTasks-13404
Task status:    Failed
Task queued:    12 September 2016 11:41
Task started:   12 September 2016 11:41
Task duration:  4 seconds
Server version: 3.4.7+Branch.master.Sha.1002077a173dbe670c20e6543ddfc7b185ec29ba

                    | == Failed: Deploy CMS Sloe release 16.0.0.67-v7 to Sloe Offline ==
11:41:53   Verbose  |   Step 13: Deploy Brady SSL Test Certificates does not apply to the current environment, and will not be executed
11:41:53   Verbose  |   Step 14: Install Web Portal Certificates does not apply to the current environment, and will not be executed
11:41:53   Info     |   Step 23: Send email summary was manually skipped, and will not be executed
11:41:53   Verbose  |   Guided failure is not enabled for this task
11:41:57   Fatal    |   The deployment failed because one or more steps failed. Please see the deployment log for details.
                    | 
                    |   == Success: Step 1: Verify Prerequisites ==
11:41:55   Verbose  |     Verify Prerequisites completed
                    |   
                    |     Success: Sloe Offline Deployment
11:41:53   Verbose  |       Octopus Server version: 3.4.7+Branch.master.Sha.1002077a173dbe670c20e6543ddfc7b185ec29ba
11:41:53   Info     |       Executing script on 'Sloe Offline Deployment'
11:41:53   Info     |       Appending run-script step to batch file
11:41:54   Verbose  |       Creating script file '\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7\Scripts\Verify Prerequisites.ps1'
11:41:54   Verbose  |       Appending run-script command to offline deploy script
11:41:54   Verbose  |       Creating variables file '\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7\Variables\Sloe Offline Deployment.CMS Sloe.Verify Prerequisites.variables.json'
11:41:54   Verbose  |       Creating encrypted sensitive variables file '\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7\Variables\Sloe Offline Deployment.CMS Sloe.Verify Prerequisites.variables.secret',
                    |     
                    |   == Success: Step 2: Preparation ==
11:41:55   Verbose  |     Preparation completed
                    |   
                    |     Success: Sloe Offline Deployment
11:41:55   Verbose  |       Octopus Server version: 3.4.7+Branch.master.Sha.1002077a173dbe670c20e6543ddfc7b185ec29ba
11:41:55   Info     |       Executing script on 'Sloe Offline Deployment'
11:41:55   Info     |       Appending run-script step to batch file
11:41:55   Verbose  |       Creating script file '\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7\Scripts\Preparation.ps1'
11:41:55   Verbose  |       Appending run-script command to offline deploy script
11:41:55   Verbose  |       Creating variables file '\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7\Variables\Sloe Offline Deployment.CMS Sloe.Preparation.variables.json'
11:41:55   Verbose  |       Creating encrypted sensitive variables file '\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7\Variables\Sloe Offline Deployment.CMS Sloe.Preparation.variables.secret',
                    |     
                    |   == Failed: Acquire packages ==
11:41:56   Info     |     Acquiring packages
11:41:56   Info     |     Making a list of packages to download
11:41:56   Info     |     Looking up the package location from the built-in package repository...
11:41:56   Verbose  |     SHA1 hash of package Brady.CMS.Sloe.Agent is: 25f3e1650dd6523857d1d844ab4c0190be9b1a3b
11:41:56   Info     |     Looking up the package location from the built-in package repository...
11:41:56   Verbose  |     SHA1 hash of package Brady.CMS.Sloe.DBScripts is: bb100f6bc131329b84e2cb1ece78ab9da61ff712
11:41:56   Info     |     Looking up the package location from the built-in package repository...
11:41:56   Verbose  |     SHA1 hash of package Brady.CMS.Sloe.Web.Host is: 779097299024b2626f76f15c40252aac0a9ff449
11:41:56   Info     |     Looking up the package location from the built-in package repository...
11:41:56   Verbose  |     SHA1 hash of package Brady.CMS.Sloe.TAMS.External.Bin.nuspec is: 359514b3ccfa16ca4be1ad1cca98570925e8d6b9
11:41:56   Info     |     Looking up the package location from the built-in package repository...
11:41:56   Verbose  |     SHA1 hash of package Brady.CMS.Sloe.Templates is: f697bba5029e69be9a4f779536a47360a1f51181
11:41:56   Info     |     Looking up the package location from the built-in package repository...
11:41:56   Verbose  |     SHA1 hash of package Brady.CMS.Sloe.TSAMS.External.Bin.nuspec is: d516a0fc2bc3ec8699224647f0df3d666fc85e1b
11:41:56   Info     |     Looking up the package location from the built-in package repository...
11:41:56   Verbose  |     SHA1 hash of package Brady.CMS.Sloe.XSD is: 443e695ea05a328eaaa9b16347aff63cff640892
11:41:56   Fatal    |     The step failed: Activities failed with errors 'Access to the path is denied.', 'Access to the path is denied.'
11:41:56   Verbose  |     Acquire Packages completed
                    |   
                    |     Success: Sloe Offline Deployment
                    |     
                    |       Success: Upload package Brady.CMS.Sloe.DBScripts 16.0.0.67
11:41:56   Info     |         Uploading package to '\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7\Packages'
11:41:56   Verbose  |         SHA1 hash of package is bb100f6bc131329b84e2cb1ece78ab9da61ff712
11:41:56   Verbose  |         Adding journal entry:
                    |         <Deployment Id="65d1ba05-9f85-438b-8344-e099cc8e7276" EnvironmentId="Environments-261" ProjectId="Projects-162" PackageId="Brady.CMS.Sloe.DBScripts" PackageVersion="16.0.0.67" InstalledOn="2016-09-12 10:41:56" RetentionPolicySet="Environments-261/Projects-162/Step-Deploy DB Scripts/Machines-281/&lt;default&gt;" DroppedTo="\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7" />
                    |       
                    |     Failed: Sloe Offline Deployment
11:41:56   Fatal    |       Access to the path is denied.
                    |     
                    |       Running: Upload package Brady.CMS.Sloe.Agent 16.0.0.67
11:41:56   Info     |         Uploading package to '\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7\Packages'
11:41:56   Verbose  |         SHA1 hash of package is 25f3e1650dd6523857d1d844ab4c0190be9b1a3b
11:41:56   Verbose  |         Adding journal entry:
                    |         <Deployment Id="7ba6d56f-d308-42a6-b0cf-4a2265251f36" EnvironmentId="Environments-261" ProjectId="Projects-162" PackageId="Brady.CMS.Sloe.Agent" PackageVersion="16.0.0.67" InstalledOn="2016-09-12 10:41:56" RetentionPolicySet="Environments-261/Projects-162/Step-Deploy SLOE CMS Agent/Machines-281/&lt;default&gt;" DroppedTo="\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7" />
                    |       
                    |     Failed: Sloe Offline Deployment
11:41:57   Fatal    |       Access to the path is denied.
                    |     
                    |       Running: Upload package Brady.CMS.Sloe.Web.Host 16.0.0.67
11:41:56   Info     |         Uploading package to '\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7\Packages'
11:41:56   Verbose  |         SHA1 hash of package is 779097299024b2626f76f15c40252aac0a9ff449
11:41:57   Verbose  |         Adding journal entry:
                    |         <Deployment Id="412e4795-1698-46a3-83f9-479f91ecab8a" EnvironmentId="Environments-261" ProjectId="Projects-162" PackageId="Brady.CMS.Sloe.Web.Host" PackageVersion="16.0.0.67" InstalledOn="2016-09-12 10:41:57" RetentionPolicySet="Environments-261/Projects-162/Step-Deploy SLOE CMS Portal/Machines-281/&lt;default&gt;" DroppedTo="\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7" />
                    |       
                    |     Failed: Sloe Offline Deployment
11:41:56   Fatal    |       Access to the path is denied.
                    |     
                    |       Running: Upload package Brady.CMS.Sloe.TAMS.External.Bin.nuspec 16.0.0.67
11:41:56   Info     |         Uploading package to '\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7\Packages'
11:41:56   Verbose  |         SHA1 hash of package is 359514b3ccfa16ca4be1ad1cca98570925e8d6b9
11:41:56   Verbose  |         Adding journal entry:
                    |         <Deployment Id="7f22e9f0-27c0-4c3f-8ab9-517e2aed6b13" EnvironmentId="Environments-261" ProjectId="Projects-162" PackageId="Brady.CMS.Sloe.TAMS.External.Bin.nuspec" PackageVersion="16.0.0.67" InstalledOn="2016-09-12 10:41:56" RetentionPolicySet="Environments-261/Projects-162/Step-Deploy TAMS Apps/Machines-281/&lt;default&gt;" DroppedTo="\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7" />
                    |       
                    |     Failed: Sloe Offline Deployment
11:41:57   Fatal    |       Access to the path is denied.
                    |     
                    |       Running: Upload package Brady.CMS.Sloe.TSAMS.External.Bin.nuspec 16.0.0.67
11:41:56   Info     |         Uploading package to '\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7\Packages'
11:41:56   Verbose  |         SHA1 hash of package is d516a0fc2bc3ec8699224647f0df3d666fc85e1b
11:41:57   Verbose  |         Adding journal entry:
                    |         <Deployment Id="ec32a58a-29d2-4db1-bbf1-83bb889a995b" EnvironmentId="Environments-261" ProjectId="Projects-162" PackageId="Brady.CMS.Sloe.TSAMS.External.Bin.nuspec" PackageVersion="16.0.0.67" InstalledOn="2016-09-12 10:41:57" RetentionPolicySet="Environments-261/Projects-162/Step-Deploy TSAMS apps/Machines-281/&lt;default&gt;" DroppedTo="\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7" />
                    |       
                    |     Failed: Sloe Offline Deployment
11:41:57   Fatal    |       Access to the path is denied.
                    |     
                    |       Running: Upload package Brady.CMS.Sloe.Templates 16.0.0.67
11:41:56   Info     |         Uploading package to '\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7\Packages'
11:41:56   Verbose  |         SHA1 hash of package is f697bba5029e69be9a4f779536a47360a1f51181
11:41:57   Verbose  |         Adding journal entry:
                    |         <Deployment Id="76ec6858-fa7c-4c44-8955-a1549c0b52a9" EnvironmentId="Environments-261" ProjectId="Projects-162" PackageId="Brady.CMS.Sloe.Templates" PackageVersion="16.0.0.67" InstalledOn="2016-09-12 10:41:57" RetentionPolicySet="Environments-261/Projects-162/Step-Deploy Excel Templates/Machines-281/&lt;default&gt;" DroppedTo="\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7" />
                    |       
                    |     Failed: Sloe Offline Deployment
11:41:56   Fatal    |       Access to the path is denied.
                    |     
                    |       Running: Upload package Brady.CMS.Sloe.XSD 16.0.0.67
11:41:56   Info     |         Uploading package to '\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7\Packages'
11:41:56   Verbose  |         SHA1 hash of package is 443e695ea05a328eaaa9b16347aff63cff640892
11:41:56   Verbose  |         Adding journal entry:
                    |         <Deployment Id="2cf8281b-682f-4527-b359-faba997a5997" EnvironmentId="Environments-261" ProjectId="Projects-162" PackageId="Brady.CMS.Sloe.XSD" PackageVersion="16.0.0.67" InstalledOn="2016-09-12 10:41:56" RetentionPolicySet="Environments-261/Projects-162/Step-Deploy XSDs/Machines-281/&lt;default&gt;" DroppedTo="\\edivs-sto1\services\Releases\Sloe-OctopusDrop\Sloe Offline\CMS Sloe\16.0.0.67-v7" />

Thanks,
Mau.

Hi Mau,

Thanks for getting in touch. I attempted to replicate this issue on my server to no avail. Would you be able to check a couple of things for me?

We have sometimes seen this issue when there is an antivirus on the server blocking us from writing to certain files. Are you able to confirm that your antivirus is not locking Octopus from writing to this file?
Can you confirm that the journal.xml file is being created? It should be in the same folder that Octopus is deploying the offline application to.

Looking forward to hearing from you.

Regards,
Daniel

Hi Daniel,

I confirm that there is no antivirus running on the app server where Octopus Service is running (server name: EDIVS-PS8)

Journal.xml have been created:
[cid:image001.png@01D20E67.62593700]

Content of journal.xml

<?xml version="1.0" encoding="utf-8"?>

Thanks,
Mau.

116091409092102231.jpg

116091409092102431.jpg

116091409092102631.jpg

116091409092103631.jpg

116091409092101931.jpg

Hi Mau,

This has us a bit puzzled right now. Would you be interested in doing a call where you could share your screen? It will give us a better idea of what is happening here and help us get to the bottom of it.
The following link will let you schedule a call with us.

Looking forward to hearing from you. :slight_smile:

Regards,
Daniel

Hi Daniel,

I’ve scheduled a session for Friday 10:00am uk time.

Thanks,
Mau.

116091409092102431.jpg

116091409092102631.jpg

116091409092103631.jpg

116091409092101931.jpg

116091409092102231.jpg

Hi Maurycy,

Here are the details for the call:

  1. Please join my meeting.
    https://global.gotomeeting.com/join/585885581

  2. Use your microphone and speakers (VoIP) - a headset is recommended. Or, call in using your telephone.

Australia: +61 2 8355 1034
United States: +1 (669) 224-3319

Access Code: 585-885-581
Audio PIN: Shown after joining the meeting

Meeting ID: 585-885-581

GoToMeeting®
Online Meetings Made Easy®

Speak soon!
Vanessa

Hi Mau,

Thank you so much for the screenshare. Here is the GitHub issue I have created that you can track for the resolution: https://github.com/OctopusDeploy/Issues/issues/2768

If the developers need extra information or another call they will let you know.

Thanks again and have a great weekend.
Vanessa

Hi Vanessa,

Thanks a lot for your help.
I’ve subscribed the GitHub issue

Thanks,
Mau.

116091409092102431.jpg

116091409092102631.jpg

116091409092103631.jpg

116091409092101931.jpg

116091409092102231.jpg

Hi Mau,

I had one more thought. Could you delete all of the deployment journal xml files on the network share drive, revert back to that directory and try two more deployments? It was creating those tmp files and one of them did have two records in it.

Let me know if that makes any difference.

Vanessa

Hi Vanessa,

I’ve removed journal.xml file + all temp files but kept the actual folders with data
Retried the deployment – it failed.

[cid:image001.jpg@01D21008.3916BD20]

Then I’ve tried it again with the same result.
[cid:image002.png@01D21008.3916BD20]

Content of journal.xml

<?xml version="1.0" encoding="utf-8"?>

All temp files have two entries e.g.

<?xml version="1.0" encoding="utf-8"?>

Thanks,
Mau.

116091409092101931.jpg

116091409092102231.jpg

116091409092102431.jpg

116091409092102631.jpg

116091409092103631.jpg

Hi Mau,

Not a problem, was worth trying. Back to the local drive until we resolve the issue.

Thanks
Vanessa

Notice:

This issue has been closed due to inactivity. If you encounter the same or a similar issue and require help, please open a new discussion (if we asked for logs or extra details in this thread, consider including them in the new thread). If you are the creator of this thread and believe it should not be closed let us know via our support email.

?Hi,
I am currently away on a business trip with limited access to e-mail between 3rd January 2017 and 6th January 2017.
I will be returning to the office on Monday 9th January 2017.
In case of any urgent queries please contact Edinburgh office +44 131 526 3953
Thanks,
Maurycy Widera

This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed.
If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or distribute them to anyone.
If you are not the intended recipient please contact the sender and delete all copies.
Brady plc is a company registered in England & Wales under registered number 2164768 and whose registered office is at Riverside House - 7th Floor, 2A Southwark Bridge Rd, London SE1 9HA, www.bradyplc.com
This email message has been delivered safely and archived online by Mimecast.
For more information please visit www.mimecast.com

117010406133401447.jpg

116091409092101931.jpg

116091409092102231.jpg

116091409092102431.jpg

116091409092102631.jpg

– Please reply above this line –

Thanks for the message! This is just a note to let you know that we’ve
received your request, and we’ll do our best to respond as soon as we
can, usually within 24 hours.

  • The Octopus Deploy team

PS: Our team is located in Brisbane, Australia, and we usually respond
between 9am and 5pm weekdays Brisbane time. You can see what time it
is for us here:

http://www.timeanddate.com/worldclock/australia/brisbane [1]

Links:

[1] http://www.timeanddate.com/worldclock/australia/brisbane