From: Gilles on
On Mon, 02 Aug 2010 11:21:13 +0200, Gilles <gilles.ganault(a)free.fr>
wrote:
>After booting Ubuntu, if I try to connect to a share from XP, I get
>this error:
>
>=======
>C:\>net use x: \\linux\www /user:me
>System error 59 has occurred.
>
>An unexpected network error occurred.
>=======

When I run the command after rebooting Ubuntu, nothing shows up
/var/log/samba/log.smbd, but here's what it says in log.nmbd:

============
[2010/08/02 11:47:30, 3]
nmbd/nmbd_incomingrequests.c:453(process_name_query_request)
process_name_query_request: Name query from 192.168.0.1 on subnet
192.168.0.3 for name LINUX<20>

[2010/08/02 11:47:30, 3]
nmbd/nmbd_incomingrequests.c:453(process_name_query_request)
process_name_query_request: Name query from 192.168.0.1 on subnet
192.168.0.3 for name LINUX<00>

[2010/08/02 11:47:31, 3]
nmbd/nmbd_incomingrequests.c:453(process_name_query_request)
process_name_query_request: Name query from 192.168.0.1 on subnet
192.168.0.3 for name LINUX<20>

[2010/08/02 11:47:31, 3]
nmbd/nmbd_incomingrequests.c:453(process_name_query_request)
process_name_query_request: Name query from 192.168.0.1 on subnet
192.168.0.3 for name LINUX<00>

[2010/08/02 11:47:32, 3]
nmbd/nmbd_incomingrequests.c:453(process_name_query_request)
process_name_query_request: Name query from 192.168.0.1 on subnet
192.168.0.3 for name LINUX<20>

[2010/08/02 11:47:32, 3]
nmbd/nmbd_incomingrequests.c:453(process_name_query_request)
process_name_query_request: Name query from 192.168.0.1 on subnet
192.168.0.3 for name LINUX<00>

[2010/08/02 11:47:33, 3]
nmbd/nmbd_incomingrequests.c:453(process_name_query_request)
process_name_query_request: Name query from 192.168.0.1 on subnet
192.168.0.3 for name LINUX<00>

[2010/08/02 11:47:33, 3]
nmbd/nmbd_incomingrequests.c:453(process_name_query_request)
process_name_query_request: Name query from 192.168.0.1 on subnet
192.168.0.3 for name WWW.<00>

[2010/08/02 11:47:33, 3]
nmbd/nmbd_incomingrequests.c:453(process_name_query_request)
process_name_query_request: Name query from 192.168.0.1 on subnet
192.168.0.3 for name LINUX<00>

[2010/08/02 11:47:34, 3]
nmbd/nmbd_incomingrequests.c:453(process_name_query_request)
process_name_query_request: Name query from 192.168.0.1 on subnet
192.168.0.3 for name WWW.<00>

[2010/08/02 11:47:34, 3]
nmbd/nmbd_incomingrequests.c:453(process_name_query_request)
process_name_query_request: Name query from 192.168.0.1 on subnet
192.168.0.3 for name LINUX<00>

[2010/08/02 11:47:34, 3]
nmbd/nmbd_incomingrequests.c:453(process_name_query_request)
process_name_query_request: Name query from 192.168.0.1 on subnet
192.168.0.3 for name WWW.<00>
============

Does someone understand what's going on?

Thanks.

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Gilles on
On Mon, 02 Aug 2010 11:49:37 +0200, Gilles <gilles.ganault(a)free.fr>
wrote:
>Does someone understand what's going on?

Thanks for the help through e-mail.

For those interested, the bug might be due to a race condition between
the smbd and nmbd init scripts:

But adding the mkdir line, and even changing the symlinks in
/etc/rc2.d/ to make sure that smbd is started before nmbd (S20 and
S80, respectively)... 1) makes no difference, and 2) prevented nmbd
from booting:

=================
# cat /etc/init/nmbd.conf

pre-start script
#Added to solve bug where nmbd wouldn't start after reboot
mkdir /var/run/samba

NMBD_DISABLED=`testparm -s --parameter-name='disable netbios'
2>/dev/null`

[ "x$NMBD_DISABLED" = xYes ] && { stop; exit 0; }

install -o root -g root -m 755 -d /var/run/samba
end script
=================
# ll /etc/rc2.d/
lrwxrwxrwx 1 root root 14 2010-08-02 10:20 S20nmbd ->
.../init.d/nmbd*
lrwxrwxrwx 1 root root 14 2010-08-02 00:26 S20smbd ->
.../init.d/smbd*
=================
rm S20nmbd
ln -s ../init.d/nmbd S80nmbd
=================
rebooted : ps aux : Still NOK
=================
apt-get update
apt-get upgrade
dpkg -l | grep -i samba
3.4.7~dfsg-1ubuntu3
=================
less /var/log/samba/log.smbd
less /var/log/samba/log.nmbd
less /var/log/messages
Nothing
=================
# /etc/init.d/nmbd restart
Rather than invoking init scripts through /etc/init.d, use the
service(8)
utility, e.g. service nmbd restart
[...]
start: Job failed to start
=================
# restart nmbd
restart: Unknown instance:
=================
# start nmbd
start: Job failed to start
=================
# /etc/init.d/nmbd start
Rather than invoking init scripts through /etc/init.d, use the
service(8)
utility, e.g. service nmbd start
[...]
start: Job failed to start
=================
# joe /etc/init/nmbd.conf
Commented out line
=================
# /etc/init.d/nmbd start
Rather than invoking init scripts through /etc/init.d, use the
service(8)
utility, e.g. service nmbd start
[...]
nmbd start/running, process 5448
=================

I find it hard to believe that such an important package is broken.
Maybe it's another issue.

Thank you.

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba