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.

Failed to connect to socket

See original GitHub issue

Hey,

Just ran into this issue recently and can’t figure it out. Hopefully it’s an easy fix!

When I run pywalfox update it get the error:

ERROR:root:Failed to connect to socket: Connection refused

The output from the log is:

[06-09-2021 10:41:33] DEBUG:Using python 3.7.8 [06-09-2021 10:41:33] DEBUG:Firefox profile path is relative [06-09-2021 10:41:33] DEBUG:Found chrome directory at path: /home/voekreb/.mozilla/firefox/yv0qj2aq.default-release-1594812527610/chrome [06-09-2021 10:41:33] DEBUG:Default UNIX-socket is already in use [06-09-2021 10:41:33] DEBUG:Setup socket server using AF_UNIX (linux/darwin) [06-09-2021 10:41:33] DEBUG:Successfully bound socket to: /tmp/pywalfox_socket_alt [06-09-2021 10:41:38] DEBUG:Running cleanup [06-09-2021 10:41:38] DEBUG:UNIX-socket deleted

At first I thought the issue might have been that in the pywalfox.json file, something was wrong with the path line. I checked and it exists; one issue though was that main.sh was giving an error because of sw_vers. I tried commenting that out and trying again, but the same issue persists. I uninstalled everything, including Firefox, and reinstalled to try again with an earlier version. I tried versions 2.7 and 2.6, and still get the same error.

I also noticed that the chrome directory path is actually not the same as what shows up in Firefox’s about:support page. I tried running the program with the Firefox profile in the path line but I still get the same issue. And with both profiles, the browser add-on just gives the error that there’s no connection to the daemon.

Let me know what else you need!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
akirwan361commented, Jun 10, 2021

Yep, that did it! Maybe I will figure out the shims thing someday but it’s not an issue for me now. Thanks for the very fast help! I’ve really enjoyed the eye candy your app has allowed 😃

1reaction
Frewacomcommented, Jun 10, 2021

Firefox will use the python defined in the global path, i.e. /usr/bin/pythonx, which is why it won’t work. I suppose a fix would be to simply install Pywalfox using one of the global python executables (if you still have one of those?).

Something like this:

/usr/bin/python -m pip install pywalfox

and make sure to re-run pywalfox install after installing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'Failed to connect socket: Connection timed out' error - Bobcares
'failed to connect socket connection timed out' means that the connection to the mail server fails or the mail server can no longer...
Read more >
Failing to Connect to Socket From Client Side - Stack Overflow
Your server listens to port 8888 and client tries to connect to port 80, both server.sin_port = htons( x ); must use the...
Read more >
Socket failed to connect · Issue #241 · advplyr/audiobookshelf
Fresh install using docker-compose and apache2. I can access site and login, but everything I try to do is greeted with a Socket...
Read more >
B.2.2. Failed to connect socket ... : Permission denied
If there is no error running this command as root, the UNIX socket options in /etc/libvirt/libvirtd. conf are likely misconfigured. Copied!
Read more >
Failed to connect socket to '/var/run/libvirt/libvirt-sock'
Failed to connect socket to '/var/run/libvirt/libvirt-sock' · Could you track "journalctl -f" while issuing a "systemctl restart libvirtd" that ...
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