I'm running some selenium c# chrome driver test with the latest version of chrome driver and chrome.
On my desktop Windows 10 PC it works fine, however, in production Windows server 2016 I'm getting this error when selenium tries to start a new process.
[0703/113439.645:ERROR:process_reader_win.cc(123)] NtOpenThread: {Access Denied} A process has requested access to an object, but has not been granted those access rights. (0xc0000022)
[0703/113439.647:ERROR:exception_snapshot_win.cc(88)] thread ID 21028 not found in process
I've posted here on ServerFault rather than StackOverflow because
A process has requested access to an object, but has not been granted those access rights
Seems to be a common error other applications have. I'm fairly certain its a permission error, however..
I'm logged in as local administrator and I'm running my c# app that spaws the other processes ChromeDriver and Chrome as local administrator.
I've also set the everyone permission to full access on the applications folder.
What else can I do to allow my app, chrome, and chrome driver more access rights?
This error message...
[0703/113439.645:ERROR:process_reader_win.cc(123)] NtOpenThread: {Access Denied} A process has requested access to an object, but has not been granted those access rights. (0xc0000022)
[0703/113439.647:ERROR:exception_snapshot_win.cc(88)] thread ID 21028 not found in process
...implies that the ChromeDriver initiated thread was unable to read the system resource as access was denied.
A common cause for Access Denied is running Chrome as root
user (administrator
) on Linux. While it is possible to work around this issue by passing --no-sandbox
flag when creating your WebDriver session, such a configuration is unsupported and highly discouraged. You need to configure your environment to run Chrome as a regular user instead.
Ensure that:
@Test
as non-root user.driver.quit()
within tearDown(){}
method to close & destroy the WebDriver and Web Client instances gracefully.User contributions licensed under CC BY-SA 3.0