UnauthorizedAccess SharedFolder Octopus server

When i execute a Runbook or Deployment project with Execution Location setting on “Run on the Octopus Server” i have a UnauthorizedAccess.
The winservices run with a user have read/write access to shared folder.

Who is the user account used when the Execution Location is “Run on the Octopus Server” ?

The Error:
. : AuthorizationManager check failed.
November 9th 2020 16:01:51Error
At line:1 char:39
November 9th 2020 16:01:51Error

  • … Stop’; . {. '\netapp-dmz-b\rep_deploy\Octop …
    November 9th 2020 16:01:51Error
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

November 9th 2020 16:01:51Error
+ CategoryInfo : SecurityError: (:slight_smile: [], ParentContainsErrorRecordException
November 9th 2020 16:01:51Error
+ FullyQualifiedErrorId : UnauthorizedAccess
November 9th 2020 16:01:51Fatal
The remote script failed with exit code 1
November 9th 2020 16:01:51Fatal
The action Run a Script on the Octopus Server failed


Hi @gennaro.riccio,

First of all, welcome to the Octopus boards!

Thanks for reaching out.

When I’ve seen this error in the past it has to do with a network share being involved.

Are you doing work on a network share? If so, could you please take a look at this post’s solution? Deploying to fileshare - authorisation failure

Please let me know.


Hi jeremy,
The solution in the post Deploying to fileshare - authorisation failure it’s okay, solved my problem.

Thanks :grinning:

1 Like


Thank you for updating me. You’re very welcome.

I hope you have a great week.


This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.