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.

socket.error: [Errno 107] Transport endpoint is not connected (Gentoo)

See original GitHub issue

I got this error when trying to run ps4drv on Gentoo. The entire trace is :

ds4drv
[info][controller 1] Created devices /dev/input/js2 (joystick) /dev/input/event10 (evdev) 
[info][bluetooth] Scanning for devices
[info][bluetooth] Found device A4:15:66:6F:3B:A0
Traceback (most recent call last):
  File "/usr/bin/ds4drv", line 9, in <module>
    load_entry_point('ds4drv==0.3.0', 'console_scripts', 'ds4drv')()
  File "/usr/lib64/python2.7/site-packages/ds4drv/__main__.py", line 325, in main
    for device in backend.devices:
  File "/usr/lib64/python2.7/site-packages/ds4drv/backends/bluetooth.py", line 117, in devices
    device = self.find_device()
  File "/usr/lib64/python2.7/site-packages/ds4drv/backends/bluetooth.py", line 106, in find_device
    return BluetoothDS4Device.connect(bdaddr)
  File "/usr/lib64/python2.7/site-packages/ds4drv/backends/bluetooth.py", line 34, in connect
    return cls(addr, ctl_socket, int_socket)
  File "/usr/lib64/python2.7/site-packages/ds4drv/backends/bluetooth.py", line 41, in __init__
    super(BluetoothDS4Device, self).__init__(addr, "bluetooth")
  File "/usr/lib64/python2.7/site-packages/ds4drv/device.py", line 70, in __init__
    self.set_operational()
  File "/usr/lib64/python2.7/site-packages/ds4drv/backends/bluetooth.py", line 66, in set_operational
    self.set_led(255, 255, 255)
  File "/usr/lib64/python2.7/site-packages/ds4drv/device.py", line 82, in set_led
    self._control()
  File "/usr/lib64/python2.7/site-packages/ds4drv/device.py", line 75, in _control
    flash_led2=self._led_flash[1], **kwargs)
  File "/usr/lib64/python2.7/site-packages/ds4drv/device.py", line 130, in control
    self.write_report(report_id, pkt)
  File "/usr/lib64/python2.7/site-packages/ds4drv/backends/bluetooth.py", line 63, in write_report
    self.ctl_sock.sendall(hid + data)
  File "/usr/lib64/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 107] Transport endpoint is not connected

bluez version is 4.101

Issue Analytics

  • State:open
  • Created 10 years ago
  • Comments:38 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
mtorromeocommented, Feb 14, 2014

I just experienced the “Transport endpoint is not connected” error. I have 2 dongles. The first one works fine and it’s a bluetooth 4.0 usb dongle. The second one gives me the transport error and it’s a bluetooth 2.0 usb dongle.

The fact is that standard pairing is also problematic because it asks for a PIN, which does not happen to be necessary with the other device.

I managed to pair it using bluetoothctl after enabling the agent:

[bluetooth]# scan on
[bluetooth]# trust MAC
[bluetooth]# agent on
[bluetooth]# pair MAC
Request PIN code
[agent] Enter PIN code: 0000

And then “ds4drv --hidraw” worked fine.

Recap:

  • Without the “agent on” command, pair fails with “Failed to pair: org.bluez.Error.AuthenticationRejected” with the bluetooth 2 dongle.
  • The agent/pin steps are not necessary with the bluetooth 4 dongle.
1reaction
maxie7commented, Dec 3, 2020

I’ve read a lot of docs && I suppose that it’s due to bluetooth dongle… It has bluetooth 2.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

(solve) Local directory:Transport endpoint is not connected
This is the message you get when you mount something with sshfs and the connection breaks. What does your /etc/mtab say about /usb/mediastick?...
Read more >
1207 (error handling in --inetd mode can caused a tight loop)
there seems to be a race somewhere in the --inetd socket handling - I think ... Transport endpoint is not connected (errno=107) messages-20190728.gz:Jul...
Read more >
Simple socket error : OSError: [Errno 107] Transport endpoint ...
I am trying to remake some old, really bad code that I wrote. In that code it had functionality to send data to...
Read more >
Bountysource
socket.error: [Errno 107] Transport endpoint is not connected (Gentoo)
Read more >
[Python-checkins] buildbot failure in x86 gentoo 3.x
... in close_request request.shutdown(socket.SHUT_WR) socket.error: [Errno 107] Transport endpoint is not connected Traceback (most recent call last): File ...
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 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