Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox is already running, but is not responding. #168

Closed
moda20 opened this issue Jul 9, 2023 · 2 comments
Closed

Firefox is already running, but is not responding. #168

moda20 opened this issue Jul 9, 2023 · 2 comments

Comments

@moda20
Copy link

moda20 commented Jul 9, 2023

I am trying to run this project inside of a separate docker container (not the one included with the repo) but i keep getting this weird error

2023-07-09 13:51:54.525 started checking epic-games
node:internal/process/esm_loader:97
    internalBinding('errors').triggerUncaughtException(
                              ^

browserType.launchPersistentContext: Browser.enable): Browser closed.
==================== Browser output: ====================
<launching> /home/node/.cache/ms-playwright/firefox-1378/firefox/firefox -no-remote -headless -profile /home/node/freeGameClaimer/data/browser -juggler-pipe --hide-crash-restore-bubble about:blank
<launched> pid=243
[pid=243][err] *** You are running in headless mode.
[pid=243][err] Firefox is already running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different profile.
[pid=243] <process did exit: exitCode=0, signal=null>
[pid=243] starting temporary directories cleanup
=========================== logs ===========================
<launching> /home/node/.cache/ms-playwright/firefox-1378/firefox/firefox -no-remote -headless -profile /home/node/freeGameClaimer/data/browser -juggler-pipe --hide-crash-restore-bubble about:blank
<launched> pid=243
[pid=243][err] *** You are running in headless mode.
[pid=243][err] Firefox is already running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different profile.
[pid=243] <process did exit: exitCode=0, signal=null>
[pid=243] starting temporary directories cleanup
============================================================
    at async file:///home/node/freeGameClaimer/epic-games.js:22:17 {
  name: 'Error'
}

Node.js v18.16.0

The error is saying that firefox is already running, but this is the result of ps -aux before running the script (node epic-games.js)
which shows that there is not firefox process running before.

ps -aux |grep -i firefox
node          63  0.0  0.0   3232   712 pts/0    S+   13:51   0:00 grep -i firefox

Is there a way to debug or fix this ?

@vogler
Copy link
Owner

vogler commented Jul 11, 2023

Is there anything else in the container using Playwright?
Maybe there's some leftover lock-file. Try with a clean profile.

@vogler
Copy link
Owner

vogler commented Jul 20, 2023

Feel free to reopen with details.

@vogler vogler closed this as completed Jul 20, 2023
@vogler vogler closed this as not planned Won't fix, can't repro, duplicate, stale Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants