Your message dated Mon, 22 Jul 2013 04:18:15 +0000
with message-id <[email protected]>
and subject line Bug#690749: fixed in bluez 4.101-2
has caused the Debian Bug report #690749,
regarding bluez: RFCOMM serving broken: Unable to spawn pnatd: 
/usr/bin/phonet-at not found
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
690749: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690749
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: bluez
Version: 4.99-2
Severity: normal
Tags: patch

Please disable the pnat plugin. It breaks any application that tries to run an RFCOMM server. According to upstream:

There should be absolutely no reason for Ubuntu have this plugin enabled or even compiled. You might wanna file a bug to them to disable it. The only place where it makes sense to be compiled is in Nokia's Maemo Harmattan platform. For everything else it should be disabled (as it is by default).
    -- Johan Hedberg on the linux-bluetooth mailing list
    <http://www.spinics.net/lists/linux-bluetooth/msg14290.html>

The symptom is that when an RFCOMM client attempts to connect to a listening RFCOMM server:

- the client application sees "Connection reset by peer" when sending data;
- the server never sees the connection; and
- the following appears in the (Debian) server's syslog:

bluetoothd[6190]: Unable to spawn pnatd: Failed to execute child process "/usr/bin/phonet-at" (No such file or directory)

STEPS TO REPRODUCE:

1. Get two machines running Debian. One will be the server and the other will be the client.

2. On both machines, install python-bluez.

3. Find out the server's Bluetooth address (e.g. using "hcitool dev")

4. Pair the client and server.

5. On the server, run the following:

    cd /usr/share/doc/python-bluez/examples/simple/
    python rfcomm-server.py

6. On the client, run the following, using the server's address:

    cd /usr/share/doc/python-bluez/examples/simple/
    python rfcomm-client.py xx:xx:xx:xx:xx:xx

7. You should see this:

    Searching for SampleServer on xx:xx:xx:xx:xx:xx
    connecting to "SampleServer" on xx:xx:xx:xx:xx:xx
    connected.  type stuff

8. Type a few lines of text

What _should_ happen is that we should see something like this on the server:

    Waiting for connection on RFCOMM channel 1
    Accepted connection from  ('yy:yy:yy:yy:yy:yy', 1)
    received [asdf]
    received [asdf]
    received [azxvc]

What _actually_ happens is that we see nothing on the server, and we see the following on the client:

    Searching for SampleServer on xx:xx:xx:xx:xx:xx
    connecting to "SampleServer" on xx:xx:xx:xx:xx:xx
    connected.  type stuff
    asdf
    Traceback (most recent call last):
      File "rfcomm-client.py", line 43, in <module>
        sock.send(data)
      File "<string>", line 5, in send
    bluetooth.btcommon.BluetoothError: (104, 'Connection reset by peer')


The following patch fixes this bug:

---[ Begin patch ]---
diff --git a/debian/rules b/debian/rules
index c1bcccb..980f18a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,7 +18,6 @@ DEB_CONFIGURE_EXTRA_FLAGS := \
                             --enable-time \
                             --enable-alert \
                             --enable-health \
-                             --enable-pnat \
                             --enable-gatt-example \
                             --enable-gstreamer \
                             --enable-alsa \
---[ End patch ]---


A workaround is to add the following to /etc/bluetooth/main.conf:

   DisablePlugins = pnat

Cheers,
- Dwayne

-- System Information:
Debian Release: wheezy/sid
 APT prefers testing
 APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: armel
i386

Kernel: Linux 3.2.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_CA.utf8, LC_CTYPE=en_CA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bluez depends on:
ii  dbus          1.6.0-1
ii  kmod          9-2
ii  libc6         2.13-35
ii  libcap-ng0    0.6.6-2
ii  libdbus-1-3   1.6.8-1
ii  libglib2.0-0  2.32.3-1
ii  libreadline6  6.2-8
ii  libudev0      175-7
ii  libusb-0.1-4  2:0.1.12-20
ii  lsb-base      4.1+Debian7
ii  python-dbus   1.1.1-1
ii  python-gi     3.2.2-1
ii  udev          175-7

bluez recommends no packages.

bluez suggests no packages.

-- no debconf information


--
Dwayne C. Litzenberger <[email protected]>
 OpenPGP: 19E1 1FE8 B3CF F273 ED17  4A24 928C EC13 39C2 5CF7

--- End Message ---
--- Begin Message ---
Source: bluez
Source-Version: 4.101-2

We believe that the bug you reported is fixed in the latest version of
bluez, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nobuhiro Iwamatsu <[email protected]> (supplier of updated bluez package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 22 Jul 2013 12:19:37 +0900
Source: bluez
Binary: libbluetooth3 libbluetooth3-dbg libbluetooth-dev bluetooth bluez 
bluez-dbg bluez-alsa bluez-gstreamer bluez-cups bluez-pcmcia-support 
bluez-compat bluez-utils bluez-audio
Architecture: source all amd64
Version: 4.101-2
Distribution: unstable
Urgency: low
Maintainer: Debian Bluetooth Maintainers 
<[email protected]>
Changed-By: Nobuhiro Iwamatsu <[email protected]>
Description: 
 bluetooth  - Bluetooth support
 bluez      - Bluetooth tools and daemons
 bluez-alsa - Bluetooth ALSA support
 bluez-audio - Transitional package
 bluez-compat - BlueZ 3.x compatibility binaries
 bluez-cups - Bluetooth printer driver for CUPS
 bluez-dbg  - Bluetooth tools and daemons (with debugging symbols)
 bluez-gstreamer - Bluetooth GStreamer support
 bluez-pcmcia-support - PCMCIA support files for BlueZ 2.0 Bluetooth tools
 bluez-utils - Transitional package
 libbluetooth-dev - Development files for using the BlueZ Linux Bluetooth 
library
 libbluetooth3 - Library to use the BlueZ Linux Bluetooth stack
 libbluetooth3-dbg - Library to use the BlueZ Linux Bluetooth stack with 
debugging sym
Closes: 690749 700991 714516
Changes: 
 bluez (4.101-2) unstable; urgency=low
 .
   * Upload to unstable. (Closes: #714516)
   * Update README.Debian.
     - Add infomation of use RFCOMM with pnat. (Closes: #690749)
     - Fix typo. Thanks to jidanni. (Closes: #700991)
Checksums-Sha1: 
 3a5d9cbdfa0f14a98810a28e89ff7659f12b9558 2821 bluez_4.101-2.dsc
 436b646ea5603cc630ac032a4b23541806d82c53 28864 bluez_4.101-2.debian.tar.gz
 297dde1404b1ebcc1681af54d792a67b2db04acc 38640 bluetooth_4.101-2_all.deb
 462fc744021df54525330dcc152c0c24ab841e2f 38586 bluez-utils_4.101-2_all.deb
 d6e7cc9f8a637833db8afcbf259a49cc77b68e29 38408 bluez-audio_4.101-2_all.deb
 cfe90573aefd79397a5fcc64ab505fa2d5cc6c0b 89114 libbluetooth3_4.101-2_amd64.deb
 ec4d6f29da385ea0c2447d70a23109ecc74feed2 135176 
libbluetooth3-dbg_4.101-2_amd64.deb
 ed6d8b0e0bdfe2a70f2a9f1aceeed146a41b7308 123078 
libbluetooth-dev_4.101-2_amd64.deb
 27f20b53f8749d09963210dd7fa040d1b80b88a4 998796 bluez_4.101-2_amd64.deb
 9b4e90dd64e227cf779ae33d732fd8fa53121b25 2235130 bluez-dbg_4.101-2_amd64.deb
 aa29913a022dc873772b6bc4564bd8608ef68702 171932 bluez-alsa_4.101-2_amd64.deb
 0ddef2186a4dff4401ac04056883c86be45949f0 144220 
bluez-gstreamer_4.101-2_amd64.deb
 152756a90fafbe7e2f85f576b8d4faf27ca613b3 95784 bluez-cups_4.101-2_amd64.deb
 911def4408c4363d15456e3022854d229939a0de 39762 
bluez-pcmcia-support_4.101-2_amd64.deb
 e7ca3e2313cc5fddcd34aba30e4f730c4857867e 202074 bluez-compat_4.101-2_amd64.deb
Checksums-Sha256: 
 46bb1db538adf1c4175b637dd547e6fb13e697aa2a7806bcd0ba620538e4615e 2821 
bluez_4.101-2.dsc
 979d12d0d50ada1e8d8780f3ba8a87c210cc3069d16e432c8ba7845467afd1f7 28864 
bluez_4.101-2.debian.tar.gz
 e9ce5ee4eb802f7bef17d0e467b49de7f16b3369378faeaebf98a38943d0d595 38640 
bluetooth_4.101-2_all.deb
 949c9ca26ba8f32f5907287cc046ac1f61c9409928b2b30a0255dd3853b3f688 38586 
bluez-utils_4.101-2_all.deb
 e1bda965ef65edda0bcad1b77c0d381b545852b589de05ea5fcad412cb7132af 38408 
bluez-audio_4.101-2_all.deb
 f8d6a7d1387f891e52cdb8ad623ec48a184363bc342e7f960d86e427f7ab8247 89114 
libbluetooth3_4.101-2_amd64.deb
 da2be63377f1c7907daa0e1e36781c971da2e7844f3ddc33c2e22da91947b1b2 135176 
libbluetooth3-dbg_4.101-2_amd64.deb
 9fcd03f34a4ffbb2ea9f3c05535c30b8515ed7c2fb6dfd6b8cb8d40ebdf138c6 123078 
libbluetooth-dev_4.101-2_amd64.deb
 1011add009f8eb0797b686cb42cec857c765a063a2b8f9e2bf0e0e0bb398785f 998796 
bluez_4.101-2_amd64.deb
 dff9490ed0b6e9de007215e5fde67f145693cf2f5ab2a05ed2451be80ce3d5bd 2235130 
bluez-dbg_4.101-2_amd64.deb
 660fce348a0c20e5fb06f42fbca60bf017be518ad0c7c362e4181641f9eceeb4 171932 
bluez-alsa_4.101-2_amd64.deb
 8ffb91b2fc71a55b912b3864b452b86442860003290096dd4708e5d6aa1468f4 144220 
bluez-gstreamer_4.101-2_amd64.deb
 c88f4eb78da7d001512f1b6cfab9601ed39a1063c10f82e78fb07f6565bdb8f0 95784 
bluez-cups_4.101-2_amd64.deb
 87f93cab61b844068bfb6b442737472bc0b71e52c142eaff89d58535b0ae6d51 39762 
bluez-pcmcia-support_4.101-2_amd64.deb
 b56500a573fcf143c862d81214310cbf1453784ff853b1657229aa84f12e26f0 202074 
bluez-compat_4.101-2_amd64.deb
Files: 
 870099371bdc629b36b9772830ab610b 2821 admin optional bluez_4.101-2.dsc
 827e454b0f1a592bc51c4cf24f6c4c75 28864 admin optional 
bluez_4.101-2.debian.tar.gz
 5f021ec853f93bd2b1eb2ac08b9cdcee 38640 admin optional bluetooth_4.101-2_all.deb
 2bdd763357a378857ad167de6ada2ebe 38586 oldlibs extra 
bluez-utils_4.101-2_all.deb
 97f9f94ebf43830fd89ffa193a16dc36 38408 oldlibs extra 
bluez-audio_4.101-2_all.deb
 2ca08c54c9da04b3512ca30288a0b051 89114 libs optional 
libbluetooth3_4.101-2_amd64.deb
 69b084041dbc3e7d1e4bc88deff08608 135176 debug extra 
libbluetooth3-dbg_4.101-2_amd64.deb
 c29d74d94be50ddbc05f3e9eae8cfd33 123078 libdevel extra 
libbluetooth-dev_4.101-2_amd64.deb
 f3149e05a7c67796b2a44a7b3467ba8d 998796 admin optional bluez_4.101-2_amd64.deb
 6591e42472e50837bfc6bb8c1863d0b0 2235130 debug extra 
bluez-dbg_4.101-2_amd64.deb
 1bda19a216e95fa331f92c3d399c70a1 171932 admin optional 
bluez-alsa_4.101-2_amd64.deb
 1a528687bb299c3e3269e9c0ecf59722 144220 admin optional 
bluez-gstreamer_4.101-2_amd64.deb
 18b58b46eeceb6ff52bf184a4218910c 95784 admin optional 
bluez-cups_4.101-2_amd64.deb
 87d082b0be121d415617a9ad5e0bae94 39762 admin extra 
bluez-pcmcia-support_4.101-2_amd64.deb
 532a206f5cb7d1233360f7d16a41cf33 202074 admin optional 
bluez-compat_4.101-2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJR7KqmAAoJEDIkf7tArR+mqhwP/14L/76ymCjeL0rS71V9eLk2
ylxSjrhCn8hFXCrHLyPUqTGj4zH9fpgYAayZ/JhU7zoqaclFPF6mDlxv1HX9jmWJ
f0muUXZ43aTPFj0U8pFuEJ9mlD0EMqNqHKt0pAbTKJbfX/kTFli0frAE3Cm0RjzZ
WUI5T305dbOK+JgL1hVU9jooYSNXdE+K1v1sqvLq8HrWrqG2k6tC8gV5ikBOStLH
b+XekFX8U+Nvw5ba0pi31gChicV3MSla98UOaIEcxZmJN7WZgQJJW4Zs9JeIjdZL
zQrNYao6J1BVjDOUfL66v7hYabPJh1gduc40+NrVf0i3LhRE+wDL9LNjWgdY17VR
ftXjrHyoXPngmaGcmOAiSu9262xAS9lsCQf9fI71P/n7Yk0KJH1OdZNBbv2GsBQX
jgBLTTTmsn9pAU3Fd1NiXabAbtQpxDf2KXrvPabS1JfC7PUg+yzkk0y+ikTcTXEC
dLPETdsaf7Rbb8vK6fNtP9wM5QN1WwKTC1weQIYI9rpOQc1NNW2FuFE+UoTKDMk1
EhmLXTls+uZ8R2vvaGzU6ZZSIaH9LJs+xU4xS9Tf/KHbFbkpoYyMjAzxPLbrQRC9
kdJ2mwj58iyflprquuExTYHMmE8t7YH0riulGHfFxDGIf+N751WHT/BD0ovBBJzX
QjiNXkwzl3dFSs8DDe2I
=rKUQ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to