Error Msg: Device added successfuly, but failed to connect

Bug #403779 reported by Karl
62
This bug affects 13 people
Affects Status Importance Assigned to Milestone
bluez (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Fedora 11, Rocketfish dongle, Blackberry Storm as Verizon Broad-Band Modem.
Setup, Connect to Dialup Networking DUN
Error Message: Device added successfuly, but failed to connect.
Any ideas?
Cheers!
Karl

Tags: dell lenovo lucid
Revision history for this message
Matthew Bauer (mjbauer95-gmail) wrote :

Same problem here.

Changed in blueman:
status: New → Incomplete
Revision history for this message
M. Petersen (petersenmde) wrote :

I'm running blueman svn version 469 pulled 21 Aug 2009.

Debian Unstable amd64

USB Bluetooth BCM2046

bluez 4.42

Attempts to setup DUN with 4 different phones including: Samsung sch-r500, LG AG300, Motorola Wsomething, LG unknow model all the the same results:

rfcomm0 get created created but blueman reports fail.

When I run blueman-applet from console I get the the following while trying to connect dialup service:

level_setup_event (/usr/lib/python2.5/site-packages/blueman/gui/manager/ManagerDeviceList.py:334)
animating up
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.5/dbus/connection.py", line 578, in msg_reply_handler
    reply_handler(*message.get_args_list(**get_args_opts))
  File "/usr/lib/python2.5/site-packages/blueman/plugins/applet/DBusService.py", line 104, in reply
    self.Applet.Plugins.Run("on_rfcomm_connected", dev, rfcomm, uuid)
  File "/usr/bin/blueman-applet", line 231, in Run
    ret = getattr(inst, function)(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/blueman/plugins/applet/NMIntegration.py", line 124, in on_rfcomm_connected
    self.RegisterModem(device.get_object_path(), port)
  File "/usr/lib/python2.5/site-packages/blueman/plugins/applet/NMIntegration.py", line 54, in RegisterModem
    authorized = a.obtain_authorization(False, "org.blueman.hal.manager")
  File "/usr/lib/python2.5/site-packages/blueman/main/PolicyKitAuth.py", line 60, in obtain_authorization
    granted = self.auth_agent.ObtainAuthorization(action_id, xid, pid)
  File "/usr/lib/pymodules/python2.5/dbus/proxies.py", line 68, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/pymodules/python2.5/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.5/dbus/connection.py", line 622, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "ObtainAuthorization" with signature "suu" on interface "(null)" doesn't exist

fail (/usr/lib/python2.5/site-packages/blueman/gui/manager/ManagerDeviceMenu.py:134)
fail (DBusException(dbus.String(u'Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.'),),)

Mark

Revision history for this message
Valmantas Palikša (walmis) wrote :

Looks like blueman can't talk to the policykit service.

You have 2 options:
1. Try building blueman with --disable-polkit option
2. Make sure policykit and policykit-gnome are installed properly.

Revision history for this message
M. Petersen (petersenmde) wrote :

I used option 1 ( building blueman with --disable-polkit), Blueman now completes the connection with success.

I believe policy-kit is installed correctly - it was installed through Debian's repository using apt-get. I am not having issues with any other software.

Are there some entries that can be added to policy-kit config files that will allow blueman to operate? - I am not a programmer :-)

Thanks.

Mark

Revision history for this message
Valmantas Palikša (walmis) wrote :

Is policykit-gnome installed also? Also what are the versions?

Revision history for this message
M. Petersen (petersenmde) wrote :

$ apt-cache policy policykit
policykit:
  Installed: 0.9-4

$ apt-cache policy policykit-gnome
policykit-gnome:
  Installed: 0.9.2-2

Mark

Revision history for this message
Bruce Heerssen (bheerssen) wrote :

I'm seeing the same problem with Ubuntu 9.04 x86_64 and Blueman 1.20+r533

Revision history for this message
Bharath Gandhi (bharath-atheros) wrote :

After the successful connections, if you disconnect and connect again, most of the time blueman will show failed to connect. This is very critical issue. we need to find out the root cause for this issue.

Workaround Soultions:

Just remove any BT profile and create new connection profile. It will work. Otherwise just reboot the Lnx machine.

Valmantas

You are also seeing the same issue?.

Thanks,
Bharath
(<email address hidden>)

Revision history for this message
Nick Hemsley (nick-hems) wrote :
Download full text (5.0 KiB)

I am having a similar problem, with regards to tethering via the Iphone.

The connection gets established (the call appears to go through from blueman-manager to the blueman-applet dbus interface, however an answer never gets returned)

The iPhone also shows the 'Internet Tethering' notice. So I assume the actual connection has gone through.

I havent tried without policykit, however does anyone have a suggestion of a policykit conf file to try, perhaps a temporary catchall to allow for debugging this frustrating problem?

This is where it fails in the terminal logs of blueman-manager
**************************************************
________
fail (/usr/lib/python2.6/dist-packages/blueman/gui/manager/ManagerDeviceMenu.py:140)
fail (DBusException(dbus.String(u'Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.'),),)

dbus-monitor reports this:

method call sender=:1.137 -> dest=org.blueman.Applet serial=10 path=/; interface=org.freedesktop.DBus.Introspectable; member=Introspect
method return sender=:1.51 -> dest=:1.137 reply_serial=10
   string "<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node name="/">
  <interface name="org.blueman.Applet">
    <method name="RefreshServices">
      <arg direction="in" type="s" name="arg0" />
    </method>
    <method name="ServiceProxy">
      <arg direction="in" type="s" name="arg0" />
      <arg direction="in" type="o" name="arg1" />
      <arg direction="in" type="s" name="arg2" />
      <arg direction="in" type="as" name="arg3" />
    </method>
    <method name="SetPluginConfig">
      <arg direction="in" type="s" name="arg0" />
      <arg direction="in" type="b" name="arg1" />
    </method>
    <method name="CreateDevice">
      <arg direction="in" type="s" name="arg0" />
      <arg direction="in" type="s" name="arg1" />
      <arg direction="in" type="b" name="arg2" />
      <arg direction="in" type="u" name="arg3" />
    </method>
    <method name="QueryAvailablePlugins">
      <arg direction="out" type="as" />
    </method>
    <method name="TransferControl">
      <arg direction="in" type="s" name="arg0" />
      <arg direction="in" type="s" name="arg1" />
    </method>
    <method name="GetBluetoothStatus">
      <arg direction="out" type="b" />
    </method>
    <method name="CancelDeviceCreation">
      <arg direction="in" type="s" name="arg0" />
      <arg direction="in" type="s" name="arg1" />
    </method>
    <method name="DisconnectDevice">
      <arg direction="in" type="o" name="arg0" />
    </method>
    <method name="RfcommDisconnect">
      <arg direction="in" type="s" name="arg0" />
      <arg direction="in" type="s" name="arg1" />
    </method>
    <method name="SetBluetoothStatus">
      <arg direction="in" type="b" name="arg0" />
    </method>
    <method name="QueryPlugins">
      <arg direction="out" type="as" />
    </method>
    <method name="TransferStatus">
      <arg direction="in" type="s" ...

Read more...

Revision history for this message
Valmantas Palikša (walmis) wrote :

Nick, could you provide some information about your system, like distribution and version?

Also which plugin is used to handle the PAN connections? NMIntegration, NMPANSupport or DhcpClient?

Revision history for this message
Valmantas Palikša (walmis) wrote :

Also a full log from blueman-applet would be useful

Revision history for this message
Nick Hemsley (nick-hems) wrote :

OOps, sorry.

My system is Ubuntu 9.04, 32 bit on a Toshiba.

It has been running on NMPanSupport plugin (which I guess would not work, as I have NetworkManager V0.7), however switching to the NMIntegration plugin yeilds exactly the same behaviour.

I will attach all the relevant logs I got in the session.

BTW I can connecting through the Iphone with the bluez-compat method, using the pand binary.

Revision history for this message
Nick Hemsley (nick-hems) wrote :
Revision history for this message
Nick Hemsley (nick-hems) wrote :
Revision history for this message
Nick Hemsley (nick-hems) wrote :
Revision history for this message
Valmantas Palikša (walmis) wrote :

Well i don't see anything unusual on blueman's side, apart from bluetoothd disappearing from dbus.
Which version of bluetoothd?

Revision history for this message
Valmantas Palikša (walmis) wrote :

Could you try the DhcpClient plugin too?

Revision history for this message
Nick Hemsley (nick-hems) wrote :

nick@toshi:~$ apt-cache policy bluez
bluez:
  Installed: 4.32-0ubuntu4.1
  Candidate: 4.32-0ubuntu4.1
  Version table:
 *** 4.32-0ubuntu4.1 0
        500 http://au.archive.ubuntu.com jaunty-updates/main Packages
        100 /var/lib/dpkg/status
     4.32-0ubuntu4 0
        500 http://au.archive.ubuntu.com jaunty/main Packages

Revision history for this message
Nick Hemsley (nick-hems) wrote :

The dhclient does not want to work either, exactly the same problem (although I havent checked all the logs etc, but its the same error message)

Am I correct in assuming that blueman-manager is sending off a dbus msg to blueman-applet, and it is the result of this failing that is causing the problem?

If so it's either policykit, or dbus, or the applet not replying for some reason.

Regardless, thanks for your help, I have a feeling it is perhaps some minor misconfiguration. I will probably upgrade to karmic soon, where perhaps it will automagically work.

Revision history for this message
Valmantas Palikša (walmis) wrote :

Could you try again with 4.39 bluez version from blueman ppa?

Revision history for this message
Nick Hemsley (nick-hems) wrote :

OK, this works fine with the ppa bluez packages. Connection comes up & I am writing this comment with the connection.

Thanks!

Revision history for this message
bing (bing000) wrote :

I have been receiving the same error with the following configuration on two different laptops:
Ubuntu 10.04 LTS Lucid x86 (dell) and amd64 (lenovo)
bluez 4.65-0ubuntu1
blueman 1.22+r705+201005051803~lucid

Motorola Droid (Android 2.1)

The configuration works on the same hardware running Windows 7.

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Hello
Is this issue present with the latest updated packages of lucid or Maverick?
Thanks
Fabio.

Changed in ubuntu:
status: New → Incomplete
affects: ubuntu → bluez (Ubuntu)
tags: added: dell lenovo lucid
Revision history for this message
Muriel de Souza Godoi (murielgodoi) wrote :

Yep. I can confirm this on Maverick beta

muriel@marvin:~$ apt-cache policy blueman
blueman:
  Installed: 1.21-4.1
  Candidate: 1.21-4.1
  Version table:
 *** 1.21-4.1 0
        500 http://br.archive.ubuntu.com/ubuntu/ maverick/universe i386 Packages
        100 /var/lib/dpkg/status

bluez:
  Installed: 4.69-0ubuntu2
  Candidate: 4.69-0ubuntu2
  Version Table:
 *** 4.69-0ubuntu2 0
        500 http://br.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages
        100 /var/lib/dpkg/status

Changed in bluez (Ubuntu):
status: Incomplete → Confirmed
Changed in blueman:
status: Incomplete → Confirmed
Revision history for this message
Vincenzo Ampolo (vincenzo-ampolo) wrote :

Still the same problem on maverik using android(pdanet app) + blueman from official repository.

Revision history for this message
Hans Deragon (deragon) wrote :

Still occuring on 12.04 LTS with Motorola H560 headset.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Karl,

Please retest with a newer (supported) version of Ubuntu:
https://wiki.ubuntu.com/Releases

Changed in bluez (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Closed due to no response.

Changed in bluez (Ubuntu):
status: Incomplete → Invalid
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.