Skip to content

web-ext run --firefox-binary /bin/librewolf --verbose fails to load addon with connection error: Error: connect ECONNREFUSED 127.0.0.1:38085 #3473

@hueychen27

Description

@hueychen27

When running web-ext run --firefox-binary /bin/librewolf --verbose, I get:

[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (0); connection error: Error: connect ECONNREFUSED 127.0.0.1:38085
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 38085
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (1); connection error: Error: connect ECONNREFUSED 127.0.0.1:38085
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 38085
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (2); connection error: Error: connect ECONNREFUSED 127.0.0.1:38085
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 38085
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (3); connection error: Error: connect ECONNREFUSED 127.0.0.1:38085
...
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Connect to Firefox debugger: too many retries
[/usr/local/lib/node_modules/web-ext/lib/program.js][error] 
Error: connect ECONNREFUSED 127.0.0.1:38085
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1628:16)
    at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17)

[/usr/local/lib/node_modules/web-ext/lib/program.js][error] Error code: ECONNREFUSED

[/usr/local/lib/node_modules/web-ext/lib/program.js][debug] Command executed: run

After a while, Librewolf closes when the final message of too many retries is received.

EDIT:
Executing web-ext run --verbose --pref="browser.dom.window.dump.enabled=true" --pref="devtools.console.stdout.chrome=true" --pref="devtools.debugger.log=true" --firefox-binary /bin/librewolf as suggested by @rpl:

[/usr/local/lib/node_modules/web-ext/lib/program.js][info] Version:
[/usr/local/lib/node_modules/web-ext/lib/program.js][debug] Discovering config files. Set --no-config-discovery to disable
[/usr/local/lib/node_modules/web-ext/lib/config.js][debug] Discovered config "[redacted]/.web-ext-config.mjs" does not exist or is not readable
[/usr/local/lib/node_modules/web-ext/lib/config.js][debug] Discovered config "[redacted]/package.json" does not exist or is not readable
[/usr/local/lib/node_modules/web-ext/lib/config.js][debug] Discovered config "[redacted]/web-ext-config.cjs" does not exist or is not readable
[/usr/local/lib/node_modules/web-ext/lib/config.js][debug] Discovered config "[redacted]/.web-ext-config.js" does not exist or is not readable
[/usr/local/lib/node_modules/web-ext/lib/config.js][debug] Discovered config "[redacted]/.web-ext-config.cjs" does not exist or is not readable
[/usr/local/lib/node_modules/web-ext/lib/config.js][debug] Discovered config "[redacted]/web-ext-config.mjs" does not exist or is not readable
[/usr/local/lib/node_modules/web-ext/lib/config.js][debug] Discovered config "[redacted]/web-ext-config.js" does not exist or is not readable
[/usr/local/lib/node_modules/web-ext/lib/config.js][debug] Discovered config "[redacted]/.web-ext-config.mjs" does not exist or is not readable
[/usr/local/lib/node_modules/web-ext/lib/config.js][debug] Discovered config "[redacted]/.web-ext-config.js" does not exist or is not readable
[/usr/local/lib/node_modules/web-ext/lib/config.js][debug] Discovered config "[redacted]/.web-ext-config.cjs" does not exist or is not readable
[/usr/local/lib/node_modules/web-ext/lib/cmd/run.js][info] Running web extension from [redacted]
[/usr/local/lib/node_modules/web-ext/lib/util/manifest.js][debug] Validating manifest at [redacted]/manifest.json
[/usr/local/lib/node_modules/web-ext/lib/extension-runners/firefox-desktop.js][debug] Creating new Firefox profile
[/usr/local/lib/node_modules/web-ext/lib/firefox/index.js][info] Setting custom Firefox preferences: {
  "browser.dom.window.dump.enabled": true,
  "devtools.console.stdout.chrome": true,
  "devtools.debugger.log": true
}
[/usr/local/lib/node_modules/web-ext/lib/firefox/index.js][debug] Running Firefox with profile at /tmp/user/1000/firefox-profileijSUJg/
[/usr/local/lib/node_modules/web-ext/lib/firefox/index.js][debug] Executing Firefox binary: /bin/librewolf
[/usr/local/lib/node_modules/web-ext/lib/firefox/index.js][debug] Firefox args: -start-debugger-server 40057 -foreground -no-remote -profile /tmp/user/1000/firefox-profileijSUJg/
[/usr/local/lib/node_modules/web-ext/lib/firefox/index.js][info] Use --verbose or --devtools to see logging
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to the remote Firefox debugger
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (0); connection error: Error: connect ECONNREFUSED 127.0.0.1:40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (1); connection error: Error: connect ECONNREFUSED 127.0.0.1:40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (2); connection error: Error: connect ECONNREFUSED 127.0.0.1:40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (3); connection error: Error: connect ECONNREFUSED 127.0.0.1:40057

...

[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (244); connection error: Error: connect ECONNREFUSED 127.0.0.1:40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (245); connection error: Error: connect ECONNREFUSED 127.0.0.1:40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (246); connection error: Error: connect ECONNREFUSED 127.0.0.1:40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (247); connection error: Error: connect ECONNREFUSED 127.0.0.1:40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (248); connection error: Error: connect ECONNREFUSED 127.0.0.1:40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (249); connection error: Error: connect ECONNREFUSED 127.0.0.1:40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (250); connection error: Error: connect ECONNREFUSED 127.0.0.1:40057
[/usr/local/lib/node_modules/web-ext/lib/firefox/remote.js][debug] Connect to Firefox debugger: too many retries
[/usr/local/lib/node_modules/web-ext/lib/program.js][error] 
Error: connect ECONNREFUSED 127.0.0.1:40057
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1628:16)
    at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17)

[/usr/local/lib/node_modules/web-ext/lib/program.js][error] Error code: ECONNREFUSED

[/usr/local/lib/node_modules/web-ext/lib/program.js][debug] Command executed: run

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions