Bug 733847

Summary: Cannot connect to Bluetooth device (connection refused)
Product: [Fedora] Fedora Reporter: Nathan Thomas <nathan>
Component: gnome-bluetoothAssignee: Bastien Nocera <bnocera>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16CC: auxsvr, bnocera, bpierce815, briemers, dkovalsk, kchamart, leamas.alec, luigi.weismann, martincd, nicolas, ptpais86, redhat-bugzilla, social, steven
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-16 17:06:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
hcidump from 'hcitool cc <addr>' none

Description Nathan Thomas 2011-08-27 16:21:29 UTC
Description of problem:

I have used gnome-bluetooth to pair my laptop with my mobile phone but I cannot connect to the phone in order to transfer or browse files. The phone is visible, but when I try to send files I get a 'Connection refused (111)' error message in the File Transfer window. When I try to browse files, I get a notification saying: "Error browsing device. The requested device cannot be browsed, error is 'Error: Error invoking GnomeBluetoothApplet.browse_address_finish: Connection to the device lost".

If I click on the phone in the Bluetooth Settings window, the 'Connection' toggle switch is greyed out.

If I try to connect from my phone to my laptop, I get an error saying "Bluetooth connection failed. Check Bluetooth settings on other device".

Both devices are visible.


Version-Release number of selected component (if applicable):
Fedora 15 x86_64
Sony Ericsson Cedar (J108i) mobile phone
gnome-bluetooth 3.0.1-1.fc15

How reproducible:


Steps to Reproduce:
1. Set up device using GNOME Bluetooth Applet, ticking box that says 'Use your mobile phone as a network device'
2. Try to send files from the applet menu using 'Send files...', or browse files using 'Browse files...'
  
Actual results:
Operation fails with the error messages described above


Expected results:
Successful connection and transfer or browsing of files


Additional info:

Comment 1 Nicolas Dufresne 2011-09-07 13:57:46 UTC
Same issue here, since few weeks I get this issue from both my Thinkpad X201 and MacBook 5,5 running Fedora 15. Note this bug look similar to 735319.

Comment 2 Aqua1986 2011-11-11 20:47:01 UTC
Same issue here.... I have a Samsung Galaxy Gio and a Toshiba with Fedora... Help me to resolve this problem

Comment 3 Ben Pierce 2011-11-24 03:35:54 UTC
Same issue.  Macbook Pro running Fedora 15 with Asus Transformer

Comment 4 Alec Leamas 2011-12-06 19:38:32 UTC
Same here, but can work around using another dongle. The bad dongle:
"ID 0a5c:2121 Broadcom Corp. BCM2210 Bluetooth" (from lsusb), the working one
"ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)".

As for others, both worked fine until some update of F15 (and F16).

Now, how do I select a working dongle from what's available today (both of my are actually quite old i. e., some years.)

Comment 5 Kevin R. Page 2011-12-07 08:07:21 UTC
Same problem since upgrade to F16, Thinkpad X201.

Deleting handset and re-pairing, I can select the option to use the phone for DUN, which seems to complete ok, but when I next try to use it will fail.

Going back into bluetooth settings I find that DUN is not ticked (which seems wrong in itself?) for the device; toggling it fails with the 'Connection refused (111)' error.

Comment 6 Alec Leamas 2011-12-07 10:49:23 UTC
Reproducing error on command line (w bad dongle):
 # hcitool cc 50:C9:71:12:9D:13
 # echo $?
0
 # sdptool records  50:C9:71:12:9D:13
Failed to connect to SDP server on 50:C9:71:12:9D:13: Host is down
 # hcitool dc 50:C9:71:12:9D:13
Not connected.

I. e., although 'hcitool cc' returns OK, there is no connection made. Since there is a report in bug 735319 (possible dup) about a Nokia phone which works, I tried also my Symbian 3^ Nokia E6, same results: browsing works with the good dongle, but not w the bad one. Other tests performed with  a Jabra EasyGo headset. So, it's not just about browsing but also A2DP streaming audio .

See also bug 750771 and bug 753617, the latter referenced in the release notes.

Comment 7 Alec Leamas 2011-12-07 10:53:34 UTC
Created attachment 541887 [details]
hcidump from 'hcitool cc <addr>'

Output from hcidump while doing 'hcitool cc 50:C9:71:12:9D:13' in another window, trying to connect to my Jabra EasyGo headset.

Comment 8 Alec Leamas 2011-12-07 12:24:47 UTC
Looking into dmesg, I find the following sequence repeated 5-10 times when I insert the bad dongle:

[41999.120983] usb 1-1.1.1: new full speed USB device number 13 using ehci_hcd
[41999.215339] usb 1-1.1.1: New USB device found, idVendor=0a5c, idProduct=2121
[41999.215350] usb 1-1.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[41999.215359] usb 1-1.1.1: Product: BCM92045B3 ROM
[41999.215366] usb 1-1.1.1: Manufacturer: Broadcom Corp
[42077.022227] usb 1-1.1.1: USB disconnect, device number 13
[42077.022521] Bluetooth: hci0 urb dc89c000 submission failed

Eventually, it settles without the last two lines. The working dongle have no error message, there is just three lines which looks sane and they are not repeated. 

Placing the headset *really* close (5 cm) from the dongle, it connected OK but still no sound while streaming audio. dmesg says:
[49233.438124] Bluetooth: hci0 SCO packet for unknown connection handle 6

Hm... Are everyone having troubles using Broadcom chips?

Comment 9 David Kovalsky 2011-12-14 13:36:18 UTC
Seeing the same/similar issue on F16. Lenovo W510, Broadcom, Nokia N900.

Comment 10 Alec Leamas 2011-12-19 10:27:01 UTC
(In reply to comment #8)
> Looking into dmesg, I find the following sequence repeated 5-10 times when I
> insert the bad dongle:
[cut]

This seem to be  gone in Fedora 16 kernel 3.1.5-6, dmesg output looks fine besides the "hci0 urb ecf29680 submission failed" message which is present also with the working dongle.   

Connection (i. e., hcidump output) still fails in the same way, though.

Comment 11 Japplo 2011-12-19 21:07:27 UTC
@Kevin R. Page I've also a Thinkpad X201 and the same problem https://bugzilla.redhat.com/show_bug.cgi?id=753617 . I still use F15 with 2.6.38 and I hope they will fix this Bug until F17.....

Comment 12 Japplo 2011-12-29 19:08:09 UTC
@Alec Leamas I've bought another dongle, HAMA Version 3.0/EDR Class2 Nano-Bluetooth-USB-Adapter.

$ lsusb
Bus 002 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

But it doesn't solve the problem - shit! Pairing was successful, but I can't browse or send files with F16 (same problem with my built in bluetooth adapter).

tail /var/log/messages 
Dec 29 20:04:34 x201 bluetoothd[1256]: bluetoothd[1256]: Mode session 0x7fc540860260 with :1.48 activated
Dec 29 20:04:35 x201 obex-client[2202]: Connection refused (111)
Dec 29 20:04:35 x201 dbus[1348]: [system] Rejected send message, 2 matched rules; type="method_return", sender=":1.0" (uid=0 pid=1256 comm="/usr/sbin/bluetoothd -n ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.48" (uid=1000 pid=2202 comm="/usr/libexec/obex-client ")

$ rpm -qa | grep bluez
bluez-hid2hci-4.96-3.fc16.x86_64
bluez-cups-4.96-3.fc16.x86_64
bluez-libs-4.96-3.fc16.x86_64
bluez-4.96-3.fc16.x86_64

$ rpm -qa | grep gnome-user-share
gnome-user-share-3.0.1-1.fc16.x86_64

# l2ping 40:98:4E:71:1B:36  
Ping: 40:98:4E:71:1B:36 from 00:1B:DC:04:5B:DC (data size 44) ...
44 bytes from 40:98:4E:71:1B:36 id 0 time 12.89ms
44 bytes from 40:98:4E:71:1B:36 id 1 time 18.59ms
44 bytes from 40:98:4E:71:1B:36 id 2 time 33.60ms
44 bytes from 40:98:4E:71:1B:36 id 3 time 29.87ms
Send failed: Connection reset by peer

Comment 13 Japplo 2011-12-30 17:18:10 UTC
Same problem also with a Bazoo Bluetooth V3.0 USB dongle:
$ lsusb
Bus 001 Device 004: ID 0a5c:2198 Broadcom Corp.

Comment 14 Japplo 2011-12-30 22:21:02 UTC
sending files is possible if you retry it again and again
http://dl.dropbox.com/u/9887743/bluetooth-bug.ogv

Comment 15 Steven Drinnan 2012-01-10 08:28:28 UTC
Not in all cases, tried to do what you did but still keeps getting refused

0db0:3801 Micro Star International Motorola Bluetooth 2.1

but using obexftp works

obexftp -b (thehexaddress) -p (source file)

for me the first try fails, but the program automaticly retry and the second always works.

Can any one from red hat give an answer to when this will be fixed, 

Bluetooth seems to be working, but the implementation is wrong.

Comment 16 Bill C. Riemers 2012-05-05 12:09:17 UTC
I believe I am seeing the same problem.  I when I try connecting my iphone to my laptop, it finds the iphone in discovery.  I when I try to set-up it shows a pin number on the screen with a match/does not match button.  At the same time it shows the same pin on the iphone with a pair/cancel option.  It does not seem to matter which I click first, the iphone button, or the laptop button, either way it spins its wheels for a few minutes and then tells me setting up the device failed.   

Afterwards, the iphone is listed in my bluetooth connections and the laptop is listed on my iphone.  Both show the devices as not connected.  I have repeated this dozens of times with the same results.

Once it actually did succeed in connecting.   However, I since reset my iphone and I haven't been able to repeat that success...

Bill

Comment 17 Bill C. Riemers 2012-05-14 13:08:24 UTC
*** Bug 813359 has been marked as a duplicate of this bug. ***

Comment 18 Alec Leamas 2012-08-03 11:16:18 UTC
Seems that this specific bug is fixed in kernel 3.5.0 (F17), although I hesitate to close without another report - lot's of people seem to affected by this one.

Note that 3.5.0 has other problems, notably bug #827629.

Comment 19 Nicolas Dufresne 2012-08-12 21:12:52 UTC
Obex seems to work again for me too. Glad there is finally a fix. I have not tried any audio device yet. (Thinkpad x220).

Comment 20 Alec Leamas 2012-08-13 09:21:36 UTC
hey, lost focus... I can't close this one :) But it seems that someone should.

Comment 21 Kashyap Chamarthy 2012-09-22 07:08:10 UTC
Hi, just wondering, any update on this?

I still see this on my Fedora-16, X220 laptop. 
- pairing to my Nokia phone is successful
- I get the error mentioned in the description when I try to 'browse' the files on the device.

Comment 22 Kashyap Chamarthy 2012-09-22 07:11:57 UTC
Just to be more clear, this is what I see in my /var/log/messages
#----------------#
Sep 22 12:41:09 tesla obex-data-server: sdp_extract_seqtype: Unexpected end of packet
Sep 22 12:41:09 tesla obex-data-server: sdp_extract_seqtype: Unexpected end of packet
#----------------#

root@~$ uname -r ; rpm -q gnome-bluetooth
3.4.7-1.fc16.x86_64
gnome-bluetooth-3.2.2-1.fc16.x86_64
root@~$

Comment 23 Nicolas Dufresne 2012-09-22 16:48:28 UTC
It works for me (gnome-bluetooth-3.4.2-1.fc17.x86_64), it's not as stable as it was last year, but it works at least.

Comment 24 Martin 2012-11-22 18:44:33 UTC
Are you still have this problem in updated Fedora 16?

And please, could you try reproduce this bug in Fedora 18 Beta RC1?
http://dl.fedoraproject.org/pub/alt/stage/18-Beta-RC1/

Comment 25 Nathan Thomas 2012-11-23 08:32:03 UTC
(In reply to comment #24)
> Are you still have this problem in updated Fedora 16?
> 
> And please, could you try reproduce this bug in Fedora 18 Beta RC1?
> http://dl.fedoraproject.org/pub/alt/stage/18-Beta-RC1/

Hi, I originally reported the bug but I don't have a Fedora installation to test at the moment. Are any of the other commenters still experiencing it?

Comment 26 Martin 2012-11-23 15:19:10 UTC
Nathan, can you put Fedora 18 Beta RC1 live image on flashdisk, boot to live system and try to reproduce the bug? Thanks.

Since Fedora 16 end-of-life will be in 2013 Q1 it's more important to fix Bluetooth in Fedora 17 and 18 releases.

Comment 27 Nathan Thomas 2012-11-23 16:14:44 UTC
(In reply to comment #26)

I gave it a try with Fedora 18 Beta RC1, but got the following error message:

"Oops! Something went wrong.
Unhandled error message: The name:1.65 was not provided by any .service files."

However, I was able to send a file from the computer to the device (a Sony Ericsson Cedar phone), which is an improvement!

I've had difficulties connecting to this device via Bluetooth using various flavours of Linux and Windows, so I'm wondering if it is a device-specific issue.

Comment 28 Martin 2012-11-23 16:46:53 UTC
Can you also send a file from device to computer?

Comment 29 Nathan Thomas 2012-11-25 14:26:05 UTC
No, I can't send a file from the device to the computer in either Fedora or Windows.

Comment 30 Fedora End Of Life 2013-01-16 11:57:00 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 31 Martin 2013-01-16 17:06:38 UTC
Obex push has been fixed in F18, but not in F17. It seems to be same bug as #747575.

About FTP browser, that's different bug, see #537720.

*** This bug has been marked as a duplicate of bug 747575 ***