Due to python3 on remote system: OSError: [Errno 88] Socket operation on non-socket

Bug #1887489 reported by Peter Valdemar Mørch
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
sshuttle (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When trying to connect from Ubuntu focal 20.04 to Ubuntu focal 20.04 i get an error. This does not occur with version 1.0.3

The error is:

$ sshuttle -r user@remote 10.164.0.0/20
[local sudo] Password:
assembler.py:3: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
client: Connected.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "assembler.py", line 38, in <module>
  File "sshuttle.server", line 298, in main
  File "/usr/lib/python3.8/socket.py", line 544, in fromfd
    return socket(family, type, proto, nfd)
  File "/usr/lib/python3.8/socket.py", line 231, in __init__
    _socket.socket.__init__(self, family, type, proto, fileno)
OSError: [Errno 88] Socket operation on non-socket
client: fatal: server died with error code 1

This is reported here: https://github.com/sshuttle/sshuttle/issues/381

Workaround: Installing python2 on remote system and running with:

$ sshuttle --python=/usr/bin/python2 -r user@remote 10.164.0.0/20

Makes it work

Also,

mkdir try
cd try
virtualenv .
./bin/pip install sshuttle
./bin/sshuttle -r user@remote 10.164.0.0/20

works too

$ ./bin/sshuttle --version
1.0.3

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sshuttle (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.