Job is cancelled due to System.UnauthorizedAccessException sporadically #1907
Unanswered
ClenchPaign
asked this question in
Questions
Replies: 1 comment
-
Can someone answer this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We are running self-hosted ephemeral runners hosted on Rancher k8s cluster. Sporadically we face the access permission issue at the start of the job. When retriggered, it goes on to run successfully.
System.UnauthorizedAccessException: Access to the path '/home/runner/work/_temp' is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at System.IO.FileSystem.CreateDirectory(String fullPath)
at System.IO.Directory.CreateDirectory(String path)
at GitHub.Runner.Worker.TempDirectoryManager.InitializeTempDirectory(IExecutionContext jobContext)
at GitHub.Runner.Worker.JobRunner.RunAsync(AgentJobRequestMessage message, CancellationToken jobRequestCancellationToken)
at GitHub.Runner.Worker.JobRunner.RunAsync(AgentJobRequestMessage message, CancellationToken jobRequestCancellationToken)
at GitHub.Runner.Worker.Worker.RunAsync(String pipeIn, String pipeOut)
at GitHub.Runner.Worker.Program.MainAsync(IHostContext context, String[] args)
I hope runner user should have full permission inside /home/runner/work directory, but still facing this error. Since this happens even before a step in the workflow runs we are not able to collect the logs.
This is our manifest file.
Beta Was this translation helpful? Give feedback.
All reactions