Return-Path: Subject: Re: Connection failures on Ubuntu To: Mark Spruiell , linux-bluetooth@vger.kernel.org References: From: Felipe Ferreri Tonello Message-ID: <56431E41.6030404@felipetonello.com> Date: Wed, 11 Nov 2015 10:53:53 +0000 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------050309030808010306010006" Sender: linux-bluetooth-owner@vger.kernel.org List-ID: This is a multi-part message in MIME format. --------------050309030808010306010006 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Hi Mark, On 10/11/15 17:20, Mark Spruiell wrote: > I'm not able to connect to a service running on Ubuntu 15.10. The > system-provided BlueZ version is 5.35. > > I can reproduce it using the test scripts. On Ubuntu: > > ./test-profile -s -u b85280dd-b78a-4a45-be4b-b6fec4abd86f -n "Test Server" -C 5 > > sdptool shows the service: > > Service Name: Test Server > Service RecHandle: 0x10009 > Service Class ID List: > UUID 128: b85280dd-b78a-4a45-be4b-b6fec4abd86f > Protocol Descriptor List: > "L2CAP" (0x0100) > "RFCOMM" (0x0003) > Channel: 5 > > On a different host (this one running Fedora 22 with BlueZ 5.29), I > start a client: > > ./test-profile -u b85280dd-b78a-4a45-be4b-b6fec4abd86f -c > > and then > > ./test-device connect b85280dd-b78a-4a45-be4b-b6fec4abd86f > Traceback (most recent call last): > File "./test-device", line 104, in > device.ConnectProfile(args[2]) > File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 70, > in __call__ > return self._proxy_method(*args, **keywords) > File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 145, > in __call__ > **keywords) > File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line > 651, in call_blocking > message, timeout) > dbus.exceptions.DBusException: org.bluez.Error.Failed: Connection refused > > Other times I will get: > > dbus.exceptions.DBusException: org.bluez.Error.Failed: Resource > temporarily unavailable > > These hosts are already paired. Things work fine when both hosts are > using Fedora 22. > > Any suggestions on how I can diagnose this further? I had this type of problem on Ubuntu when trying to register master's build of bluetoothd to D-Bus on Ubuntu as well and not on Fedora. Try to tweak /etc/dbus-1/system.d/bluetooth.conf user permissions just for development. -- Felipe --------------050309030808010306010006 Content-Type: application/pgp-keys; name="0x92698E6A.asc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0x92698E6A.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2 mQINBFYedIcBEACVKGKoEjb3zlvAz5SUvBej7Sx13BPd8hVulQD+mqjfuRFPmZA5 LBXPX1zTRWwGEbbZegP3tLfKP+XekzO6BQhDihMmKuRusdgDsdMtldwhjHuUwKn7 kxB2k79jSG802lAjIv2l5hijOfKIGTATKwiMijuXho54DGltIgNyN/Onwk9HnM6d jsV5uubaI468JRH6j8HXXievo24BDvsimIE75ImiM53ruiwPwEry1hi1CnE5OpqG oe/lt27+nLXijfNZOpBZ3Q+RPVBdqPTkMlBJAa4sg+qwZoSMvQJFAGROiJ7+ICCW O4GPMrAn8CRcCI9ENKBj2dQ4bBEP1a+f16GNMUUU37wocqtyNHo0Pa/DnFh91kcu /2dvUX4XPeEimEoSKroRLOXC9RGSFYB/r9UXqFgbmyQ4TZLx0mAWIjoUQtbIJNRz Pt46UeznCVLJTg7CzIvtv8vwmMFvaepr8ONoZn+tpX8VW4dgzsMZDrVspE0Vg3oo K9JRi1nN3GcJJK4zG2ShvEkPffRHuBuyX5wR8MPRYTShKnJR5qd1cCSK73fCv4DP bjywmGjucqcLiyYbByjmHaqzRaKJclmT/jhs6qZHs+pVLkmHkHdf/WLP6Xgcvmo8 c+SATrJwRsyW9riyMB7uNg3T84umbQrl00nAhcq73rem/602H+Qrh8rEfQARAQAB tDFGZWxpcGUgRmVycmVyaSBUb25lbGxvIDxmZWxpcGUudG9uZWxsb0BnbWFpbC5j b20+iQI/BBMBCAApAhsjBQkJZgGABwsJCAcDAgEGFQgCCQoLBBYCAwECHgECF4AF AlYyWesACgkQzES00JJpjmqfNw/9ELfxQvSyFbETmUzeCUV410snjN/fnLSdJl86 9FnG3PQ+jkAD8Y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pvKZ25jCrpLdHAUhcy/yLyXvIaZUmezyAydspDlaFoXRzoC ztpo6eTohCPcKMMaI3yYKurWNzLenbuJXdkM+yjRIYfsOEt/cqqW7pUhr7lg59XQ R0/GsAqALggMhLDWJiPNAghL0TgRY8GAbWt8h86Aj/+FlsyZkGpnDbWHY5mpEf2R aH+CCZcfecN3LXckM3nYKQPWvSKYU7fBAcs44CPu1mUd/UgbemFIE2aAQJ3q/422 1e55OcRaIqZAYcqLQqytPaF1ZivEzqC+3opDEhTdxsAsHkCMIV1tPEMwv4WdyuaM H88y3tJJpcSMzAn6QXxaZVpuEV9SGPw11t0P0oqAVt2JoSmaTr4B/wPb+eb82Pf6 3UHazUq0j8WpsombsHf+nxQBu1f/0ThCDtmgnzRuVMPnicJVbWEKigekoaN+uL3X F6BrhLqkj7QKsY8PxpFbZj+JRoDQbKVT+h6SWezG6c+NjXZb03Ixp8FJqC1J0zmf ZuN5R5HKZ8sYChEjSyDov6M3C8FshUq7WxK9ucUPIX7Xjqzkrw=3D=3D =3DVNJV -----END PGP PUBLIC KEY BLOCK----- --------------050309030808010306010006--