[Question]: PlaywrightException: Process exited
See original GitHub issueYour question
Hi,
I encountered a problem when deploying microsoft.playwright to the test server,it’s called Playwright.CreateAsync() method, but my local working fine.
Microsoft.Playwright.PlaywrightException: Process exited at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Playwright.Transport.Connection.<WaitForObjectWithKnownNameAsync>d__22`1.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Playwright.Playwright.<CreateAsync>d__0.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (6 by maintainers)
We managed to fix this issue by removing the Deny Full Control permission for BUILTIN\IIS_IUSRS from the E: drive root and adding Allow Read Attributes permissions for the individual app pool identities to the ancestor directories (including the drive root), with inheritance disabled. The app pool identities don’t have any other Allow permissions for the drive root, so they don’t have any access except reading attributes.
Even with the Deny permission in place, the Effective Access tab of the folder security settings showed that the app pool had Read Attributes permission for the folder; despite Node being blocked from reading the attributes.
I managed to redirect the application process’s stderr to a file, and got this output:
It looks like this is probably the same issue as nodejs/node-v0.x-archive#3977, the app pool user has permission to access the application directory, but not any of the ancestor directories.
It’s not directly related, but it would be nice if there was a better way to get the Playwright logs for non-console applications than writing stderr to a file.