* Bluetooth: pand: Connection failed. File exists(17)
@ Geoff Shang
` Samuel Thibault
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Geoff Shang @ UTC (permalink / raw)
To: blinux-list, general
Hi everyone,
I'm posting here in case someone has any ideas on how I can solve this
mystery. I've posted this to the bluez-users list without any response, so
I'm also posting here in case someone has any ideas.
I'm trying to set up a network connection via bluetooth using pand and I've hit
a problem that I can't find any references to.
I start pand on the NAP side with no problems, using the following comand:
pand --listen --role NAP
When I try to connect from the panu, I get the following:
Mar 10 18:35:46 data pand[16077]: Connection failed. File exists(17)
I get the same sort of thing on the other end. Here's an example from when I
tried reversing roles:
Mar 10 18:59:34 data pand[16186]: Bluetooth PAN daemon version 2.25
Mar 10 18:59:34 data pand[16186]: Connecting to 00:02:72:B2:A0:6E
Mar 10 18:59:34 data pand[16186]: Connect to 00:02:72:B2:A0:6E failed. File
exists(17)
I've searched the web, read all relevant docs I could find, even took a look at
the pand source. I got as far as looking at bnep_accept_connection but then my
brain began to ache (I'm not a C programmer).
I'm using bluez libs and utils v2.25 on both ends. They were compiled with
./configure --enable-all though some of the supporting components like obex
weren't available. One end is running on a freshly installed Debian 3.1
system, the other is on a Debian 2.2 system with various upgrades; however all
bluez items were compiled from source.
If anyone knows what this is, or even simply has suggestions as to what file it
is that pand is complaining about, I'd be extremely greatful.
Geoff.
--
Geoff Shang <geoff@hitsandpieces.net>
Phone: +61-418-96-5590
MSN: geoff@acbradio.org
Make sure your E-mail can be read by everyone!
http://www.betips.net/etc/evilmail.html
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bluetooth: pand: Connection failed. File exists(17)
Bluetooth: pand: Connection failed. File exists(17) Geoff Shang
@ ` Samuel Thibault
` mldonkey don't work coscell
` [H-GEN] Bluetooth: pand: Connection failed. File exists(17) Geoff Shang
` Solved (was Re: Bluetooth: pand: Connection failed. File exists(17)) Geoff Shang
2 siblings, 1 reply; 7+ messages in thread
From: Samuel Thibault @ UTC (permalink / raw)
To: Linux for blind general discussion; +Cc: general
Hi,
Maybe you should try running pand by hand through strace, and look for
lines containing EEXIST.
Regards,
Samuel
^ permalink raw reply [flat|nested] 7+ messages in thread
* mldonkey don't work
` Samuel Thibault
@ ` coscell
` Tony Baechler
0 siblings, 1 reply; 7+ messages in thread
From: coscell @ UTC (permalink / raw)
To: Linux for blind general discussion; +Cc: general
I couldn't connect any servers within mldonkey recently.
Woud any one help me?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: mldonkey don't work
` mldonkey don't work coscell
@ ` Tony Baechler
0 siblings, 0 replies; 7+ messages in thread
From: Tony Baechler @ UTC (permalink / raw)
To: Linux for blind general discussion
Have you made sure that the necessary ports are open? I had a
similar problem until I allowed the necessary ports. Also what
client are you using? The ed2k or edonkey servers are not clients
and probably won't work.
At 03:37 AM 3/18/2006, you wrote:
>I couldn't connect any servers within mldonkey recently.
>Woud any one help me?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [H-GEN] Bluetooth: pand: Connection failed. File exists(17)
Bluetooth: pand: Connection failed. File exists(17) Geoff Shang
` Samuel Thibault
@ ` Geoff Shang
` Samuel Thibault
` Solved (was Re: Bluetooth: pand: Connection failed. File exists(17)) Geoff Shang
2 siblings, 1 reply; 7+ messages in thread
From: Geoff Shang @ UTC (permalink / raw)
To: blinux-list, general, bluez-users
Geoff Shang wrote:
> Mar 10 18:35:46 data pand[16077]: Connection failed. File exists(17)
Thanks to those who helpfully suggested I run pand under strace.
Unfortunately, for me at least, the results weren't particularly
illuminating.
I'm assuming the following line from the panu side is significant:
ioctl(3, 0x400442c8, 0xbffff210) = -1 EEXIST (File exists)
Anyone know what this means?
If it matters, ifconfig seems to show bnep0 as already existing, but not
configured. Should it go away when pand isn't running, and if so, how can
I make it go away (i.e. would this be causing my problem?)
I'll send anyone interested in helping a copy of the entire strace output
if they want it, but I don't want to bore three lists with it.
Any help appreciated.
Geoff.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [H-GEN] Bluetooth: pand: Connection failed. File exists(17)
` [H-GEN] Bluetooth: pand: Connection failed. File exists(17) Geoff Shang
@ ` Samuel Thibault
0 siblings, 0 replies; 7+ messages in thread
From: Samuel Thibault @ UTC (permalink / raw)
To: Linux for blind general discussion; +Cc: general, bluez-users
Hi,
Geoff Shang, le Wed 22 Mar 2006 00:05:11 +1000, a écrit :
> Geoff Shang wrote:
>
> >Mar 10 18:35:46 data pand[16077]: Connection failed. File exists(17)
>
> Thanks to those who helpfully suggested I run pand under strace.
> Unfortunately, for me at least, the results weren't particularly
> illuminating.
>
> I'm assuming the following line from the panu side is significant:
>
> ioctl(3, 0x400442c8, 0xbffff210) = -1 EEXIST (File exists)
>
> Anyone know what this means?
Ah, strace was not updated for bluez ioctls.
By digging in the source code, it seems to come from bnep_connadd():
strcpy(req.device, dev);
req.sock = sk;
req.role = role;
if (ioctl(ctl, bnepconnadd, &req))
Reading from the kernel code, it seems to mean that a session already
exists for the given destination.
Regards,
Samuel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Solved (was Re: Bluetooth: pand: Connection failed. File exists(17))
Bluetooth: pand: Connection failed. File exists(17) Geoff Shang
` Samuel Thibault
` [H-GEN] Bluetooth: pand: Connection failed. File exists(17) Geoff Shang
@ ` Geoff Shang
2 siblings, 0 replies; 7+ messages in thread
From: Geoff Shang @ UTC (permalink / raw)
To: Linux for blind general discussion; +Cc: general, bluez-users
Geoff Shang wrote:
> When I try to connect from the panu, I get the following:
>
> Mar 10 18:35:46 data pand[16077]: Connection failed. File exists(17)
This was a case of brain failure on my part. I failed to understand that
pand merely instructs the kernel and the hardware, rather than actually
maintain the connections. This is unlike PPPd, for example. So a PAN
connection will remain even if PANd is shut down.
The reason why I was getting the error is that I was trying to create a
connection that already existed. I was able to verify this with "pand -l".
I admit that the somewhat unhelpful error message had me chasing red
herrings for awhile.
Thanks to those of you who, through your suggestions, nudged me in the
right direction.
Geoff.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
Bluetooth: pand: Connection failed. File exists(17) Geoff Shang
` Samuel Thibault
` mldonkey don't work coscell
` Tony Baechler
` [H-GEN] Bluetooth: pand: Connection failed. File exists(17) Geoff Shang
` Samuel Thibault
` Solved (was Re: Bluetooth: pand: Connection failed. File exists(17)) Geoff Shang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).