[Bug 479614] Re: net usershare info takes too long (was: Nautilus hangs from time to time)

2009-11-12 Thread Thierry Carrez
The trace also seems to point to an issue in your name resolution 
configuration. Either failing to connect to 192.168.220.1 for name resolution, 
or failing to get an answer from it...
What happens if you run ping $(hostname) ? Could you attach your 
/etc/resolv.conf and /etc/hosts ?

-- 
net usershare info takes too long (was: Nautilus hangs from time to time)
https://bugs.launchpad.net/bugs/479614
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 479614] Re: net usershare info takes too long (was: Nautilus hangs from time to time)

2009-11-12 Thread Thierry Carrez
Yes, like I said in comment 9, net usershare list is very local, so it
shouldn't really need to resolve names. I suspect some TCP connections
against the local system hostname that would trigger a simple resolution
(that may fail on faulty setups). If that doesn't prove right, next step
is looking in the code itself to understand :)

-- 
net usershare info takes too long (was: Nautilus hangs from time to time)
https://bugs.launchpad.net/bugs/479614
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 479614] Re: net usershare info takes too long (was: Nautilus hangs from time to time)

2009-11-12 Thread falstaff
Oops, sorry, that was not intended... Again an strace...

$ time strace net usershare info 2 strace-info.txt

real1m24.015s
user0m0.030s
sys 0m0.030s

strace-info.txt is attached. It hangs at the same line as list does...
$ hostname -f
alpha

hosts and resolv.conf is attached... I don't remember that i changed in
this setup. DNS itself works like a charm...

Thanks

** Attachment added: strace-info.txt
   http://launchpadlibrarian.net/35569798/strace-info.txt

-- 
net usershare info takes too long (was: Nautilus hangs from time to time)
https://bugs.launchpad.net/bugs/479614
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 479614] Re: net usershare info takes too long (was: Nautilus hangs from time to time)

2009-11-12 Thread falstaff

** Attachment added: hosts
   http://launchpadlibrarian.net/35569828/hosts

-- 
net usershare info takes too long (was: Nautilus hangs from time to time)
https://bugs.launchpad.net/bugs/479614
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 479614] Re: net usershare info takes too long (was: Nautilus hangs from time to time)

2009-11-12 Thread falstaff
I asked myself why it has two times the same nameserver in this list.
Its because im connected two times to that network, over wireless and
ethernet. When I disable one connection, one nameserver disappears.
Nevertheless the problem persists...

** Attachment added: resolv.conf
   http://launchpadlibrarian.net/35569883/resolv.conf

-- 
net usershare info takes too long (was: Nautilus hangs from time to time)
https://bugs.launchpad.net/bugs/479614
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 479614] Re: net usershare info takes too long (was: Nautilus hangs from time to time)

2009-11-12 Thread Thierry Carrez
My trace does not do:
socket(PF_FILE, 0x80801 /* SOCK_??? */, 0) = 3
connect(3, {sa_family=AF_FILE, path=/var/run/nscd/socket}, 110) = -1 ENOENT 
(No such file or directory)
...
It jumps directly to:
geteuid()   = 1000

Could you attach your /etc/nsswitch.conf, and let me know if you have
anything defined for name resolve order in /etc/samba/smb.conf ?

-- 
net usershare info takes too long (was: Nautilus hangs from time to time)
https://bugs.launchpad.net/bugs/479614
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 479614] Re: net usershare info takes too long (was: Nautilus hangs from time to time)

2009-11-12 Thread falstaff
Hi,

I attached nsswitch.conf. The config in question in smb.conf is commented out:
# What naming service and in what order should we use to resolve host names
# to IP addresses
;   name resolve order = lmhosts host wins bcast

I think I have a copied version of smb.conf from an older instalation,
but I did not experienced such hangs.  I discovered that starting the
samba daemon also takes a long time...

Bye
falstaff

** Attachment added: nsswitch.conf
   http://launchpadlibrarian.net/35576626/nsswitch.conf

-- 
net usershare info takes too long (was: Nautilus hangs from time to time)
https://bugs.launchpad.net/bugs/479614
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 479614] Re: net usershare info takes too long (was: Nautilus hangs from time to time)

2009-11-12 Thread falstaff
I found out what was wrong:

I copied the smb.conf from my old setup, where I used KVM and had
several vnet's. This line in smb.conf allowed me to share files only
with my virtual machines:

   interfaces = 127.0.0.0/8 vnet0 vnet1 vnet2

I did not setup kvm that way again, therefor I had no vnet0-2.
Whireshark showed me that the net command (and I suppose the samba
daemon did the same) did DNS requests asking for the IP of this non
existent devices (IN A requests for vnet0, vnet1 and vnet2, is this a
volitional behaviour?). I removed those non existent devices and the bug
is gone now. But anyway, shouldnt call nautilus-share such programms
asynchronious then?

Sorry, and thanks for your work!

-- 
net usershare info takes too long (was: Nautilus hangs from time to time)
https://bugs.launchpad.net/bugs/479614
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 479614] Re: net usershare info takes too long (was: Nautilus hangs from time to time)

2009-11-12 Thread Thierry Carrez
I agree nautilus could be more resistant to that... Closing as invalid
nevertheless.

** Changed in: samba (Ubuntu)
   Status: Incomplete = Invalid

** Changed in: nautilus-share (Ubuntu)
   Status: Incomplete = Invalid

-- 
net usershare info takes too long (was: Nautilus hangs from time to time)
https://bugs.launchpad.net/bugs/479614
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 479614] Re: net usershare info takes too long (was: Nautilus hangs from time to time)

2009-11-12 Thread Thierry Carrez
@Chow Loong Jin: feel free to submit a bug to upstream bugzilla about
this, link it to this bug and reopen it as Wishlist.

-- 
net usershare info takes too long (was: Nautilus hangs from time to time)
https://bugs.launchpad.net/bugs/479614
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 479614] Re: net usershare info takes too long (was: Nautilus hangs from time to time)

2009-11-11 Thread Thierry Carrez
** Summary changed:

- Nautilus hangs from time to time
+ net usershare info takes too long (was: Nautilus hangs from time to time)

-- 
net usershare info takes too long (was: Nautilus hangs from time to time)
https://bugs.launchpad.net/bugs/479614
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 479614] Re: net usershare info takes too long (was: Nautilus hangs from time to time)

2009-11-11 Thread Thierry Carrez
The timeout seems to point to some name resolution issue, but net usershare 
list is very local...
Anything special in your setup, like username resolution coming from a domain 
server ? Any hints on what net usershare info is doing while it hangs (strace 
?). Couldn't find anything related in samba bugzilla.

** Changed in: samba (Ubuntu)
   Importance: Undecided = Medium

** Changed in: samba (Ubuntu)
   Status: New = Incomplete

-- 
net usershare info takes too long (was: Nautilus hangs from time to time)
https://bugs.launchpad.net/bugs/479614
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 479614] Re: net usershare info takes too long (was: Nautilus hangs from time to time)

2009-11-11 Thread falstaff
Hi,

My setup is a typical home setup, no domain server or something like
that, local user accounts. I have a D-Link DIR-855 Router at
192.168.220.1 which also acts as DHCP and DNS-Server (DNS-forwarding or
something like that). That router has also the ability to share an
attached USB-Harddisk (SMB?), altough, I have no harddisk attached and
dont use this feature. But I couldn't find a disable option...

I started strace on net usershare info:
$ time strace net usershare list 2 strace.txt

real1m24.027s
user0m0.020s
sys 0m0.040s

I attached the output. He waits for a longer period of time at each
poll([{fd=3, events=POLLIN}], 1, 5000-line.

When im offline (not connected via Ethernet/WLAN), the command is
allways very fast (and therefor nautilus doesnt hang...)

** Attachment added: strace.txt
   http://launchpadlibrarian.net/3552/strace.txt

-- 
net usershare info takes too long (was: Nautilus hangs from time to time)
https://bugs.launchpad.net/bugs/479614
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs