[Samba] protocol negotiation failed

Andres Lucena andreslucena at gmail.com
Tue Sep 9 08:20:53 GMT 2008


Hello,

I'm having a problem with Samba in Debian Lenny. It isn't working, don't
know why. The thing is:

$ smbclient -L localhost -U%
read_socket_with_timeout: timeout read. read error = Conexión reinicializada
por la máquina remota.
Receiving SMB: Server stopped responding
protocol negotiation failed

Where "Conexión reinicializada por la máquina remota" means "Conection
refused by remote machine".

--------------------------------------------------------------------

After a few seconds I receive a mail:

From root at localhost Tue Sep 09 12:15:02 2008
Return-path: <root at localhost>
Envelope-to: root at localhost
Delivery-date: Tue, 09 Sep 2008 12:15:02 +0200
Received: from root by localhost with local (Exim 4.69)
        (envelope-from <root at localhost>)
        id 1Kd0FS-0000m8-As
        for root at localhost Tue, 09 Sep 2008 12:15:02 +0200
To: root at localhost
Subject: Panic or segfault in Samba
Message-Id: <E1Kd0FS-0000m8-As at localhost>
From: root <root at localhost>
Date: Tue, 09 Sep 2008 12:15:02 +0200

The Samba 'panic action' script, /usr/share/samba/panic-action,
was called for PID 2974 (/usr/sbin/smbd).

This means there was a problem with the program, such as a segfault.
Below is a backtrace for this process generated with gdb, which shows
the state of the program at the time the error occurred.  The Samba log
files may contain additional information about the problem.

If the problem persists, you are encouraged to first install the
samba-dbg package, which contains the debugging symbols for the Samba
binaries.  Then submit the provided information as a bug report to
Debian.  For information about the procedure for submitting bug reports,
please see http://www.debian.org/Bugs/Reporting or the reportbug(1)
manual page.

[Thread debugging using libthread_db enabled]
[New Thread 0xb7f136d0 (LWP 2974)]
0xb7f22410 in ?? ()
#0  0xb7f22410 in ?? ()
#1  0x00000001 in ?? ()
#2  0x00000000 in ?? ()
The program is running.  Quit anyway (and detach it)? (y or n) [answered Y;
input not from terminal]

--------------------------------------------------------------------

My smb.conf:

$ cat /etc/samba/smb.conf
[global]
   workgroup = WORKGROUP
   server string = %h server
   dns proxy = no
   interfaces = 127.0.0.0/8 eth0
   log file = /var/log/samba/log.%m
   panic action = /usr/share/samba/panic-action %d
   security = shared
   guest account = nobody
   invalid users = root
   load printers = yes

   printing = cups
   printcap name = cups
;   printer admin = @ntadmin
;   include = /home/samba/etc/smb.conf.%m

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   public = no
   writable = no
   create mode = 0700

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

[peliculas]
   comment = Peliculas
   path = /media/peliculas
   browseable = yes
   read only = no
   guest ok = yes
   writable = yes

[musica]
   comment = Musica
   path = /media/musica
   browseable = yes
   read only = no
   guest ok = yes
   writable = yes

[disco]
   comment = Disco
   path = /media/disco
   browseable = yes
   read only = no
   guest ok = yes
   writable = yes

--------------------------------------------------------------------
More information:

anders at turing:~$ smbclient -L localhost -U% -d3
lp_load_ex: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
interpret_interface: using netmask value 8 from config file on interface lo
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
interpret_string_addr_internal: getaddrinfo failed for name eth0 [Nombre o
servicio desconocido]
interpret_interface: Can't find address for eth0
Client started (version 3.2.3).
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb:
Permiso denegado
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb:
No existe el fichero o el directorio
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb:
Permiso denegado
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb:
No existe el fichero o el directorio
resolve_lmhosts: Attempting lmhosts lookup for name localhost<0x20>
resolve_wins: Attempting wins lookup for name localhost<0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name localhost<0x20>
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb:
Permiso denegado
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb:
No existe el fichero o el directorio
Connecting to 127.0.0.1 at port 445
read_socket_with_timeout: timeout read. read error = Conexión reinicializada
por la máquina remota.
Receiving SMB: Server stopped responding
protocol negotiation failed

--------------------------------------------------------------------
Can anyone help me?

Thank you,
Andres


More information about the samba mailing list