question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question]: PlaywrightException: Process exited

See original GitHub issue

Your 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:closed
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
MC-DScommented, Aug 12, 2021

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.

1reaction
MC-DScommented, Aug 11, 2021

I managed to redirect the application process’s stderr to a file, and got this output:

internal/fs/utils.js:269
    throw err;
    ^

Error: EPERM: operation not permitted, lstat 'E:\'
    at Object.realpathSync (fs.js:1604:5)
    at toRealPath (internal/modules/cjs/loader.js:336:13)
    at Function.Module._findPath (internal/modules/cjs/loader.js:492:22)
    at resolveMainPath (internal/modules/run_main.js:12:25)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:54:24)
    at internal/main/run_main_module.js:17:47 {
  errno: -4048,
  syscall: 'lstat',
  code: 'EPERM',
  path: 'E:\\'
}

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Question]: How to debug "Process exited" · Issue #2641
Hey! This error means that the underlying driver which Playwright for .NET exited. Stderr of the driver should already get forwarded to your...
Read more >
getting this error using PoM Playwright c#, Visual studio 2022
PlaywrightException :Connection closed (connection disposed) - getting this error using PoM Playwright c#, Visual studio 2022 · Ask Question.
Read more >
Use Microsoft.Playwright.PlaywrightException. ...
Use the PlaywrightException method in Microsoft.Playwright package in your next Playwright-dotnet project with LambdaTest Automation Testing Advisor.
Read more >
Playwright c# POM page object model
Microsoft.Playwright.PlaywrightException:Connection closed (connection disposed)| Playwright c# POM page object model.
Read more >
Playwright: “Failed to launch Browsers” — how to solve?
This post explains how to solve the above issue in the CI. We use Playwright with the CodeceptJS framework, and often saw the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found