Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,534
Community Members
 
Community Events
176
Community Groups

Permission denied at System.Diagnostics.Process.ForkAndExecProcess - Bitbucket pipeline

Edited


Hi all,

I am getting this error whilst trying to start WinAppDriver.exe when running bitbuckets pipeline. Does anyone know how I ensure it runs as admin when running via bitbuckets pipeline?

System.ComponentModel.Win32Exception : Permission denied
at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start(String fileName)

Thank you,

1 answer

0 votes
Patrik S Atlassian Team Jul 28, 2022

Hello @Luis Castro ,

Welcome to Atlassian Community.

The application you are trying to execute seems to be a Windows executable. In this case, could you please confirm if you are using bitbucket windows runners ?

If yes, you could open the PowerShell windows as an Administrator and then execute the /start.ps1 script to start the runner from that admin PowerShell session.

Also, make sure you have met all the pre-requisites to use windows runners outlined in the below documentation : 

If that does not work, please share your bitbucket-pipelines.yml file with us so we can take a deeper look.

Thank you, @Luis Castro .

Kind regards,

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS

Atlassian Community Events