Bug#519545: Saw updated Samba packages today and still doesn't fix the problem...

2009-03-15 Thread Phillip Pi
> It seems to be due to a problem in /etc/hosts. Could you please tell me
> if you have IPv6 enabled on this machine, and send me (possibly
> privately if they contains private information) the contents of
> /etc/hosts, /etc/gai.conf and /etc/hostname?

I do not have any IPv6 network devices since I am still using an old
network router, switch, etc. How can I check if IPv6 is enabled? If it
is enabled, how can I disable it?

I have been using the same hosts file for like 3-4 years in this Debian
installation. Here are the details:

# more /etc/hosts
127.0.0.1 localhost.localdomain localhost ANTian
127.0.1.1 ANTian.fauna  ANTian
192.168.0.46 ANTian
192.168.0.82 Harvester

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


I tried deleting my /etc/hosts (kept a backup), and I was able to get
into my shares except access one (my own account's home directory --
same account name and password in updated XP Pro. SP3 and Debian's
Samba).

Then, I tried restarting Samba service, but it got stuck for a minute 
during its restart (note the missing period, the period came up after a 
minute):
# /etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd

I tried again after deleting Samba's logs to see what's up in logs:
# cat log.nmbd 
[2009/03/15 05:15:52,  0] nmbd/nmbd.c:main(850)
  nmbd version 3.3.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009

# cat log.smbd 
[2009/03/15 05:15:52,  0] smbd/server.c:main(1260)
  smbd version 3.3.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2009/03/15 05:16:22,  0] printing/print_cups.c:cups_connect(103)
  Unable to connect to CUPS server localhost:631 - Interrupted system 
call
[2009/03/15 05:16:52,  0] printing/print_cups.c:cups_connect(103)
  Unable to connect to CUPS server localhost:631 - Interrupted system 
call


Then, tried to connect to my home directory's share and Explorer told 
me "\\192.168.0.46\AntsStuff is not accessible. You might not have 
permission to use this network resource..." "Incorrect function." Logs 
showed:

log.___192.168.0.82 was empty (0 byte).
# cat log.harvester 
[2009/03/15 05:20:43,  0] smbd/map_username.c:map_username(141)
  can't open username map /etc/samba/smbusers. Error No such file or 
directory
[2009/03/15 05:20:44,  1] smbd/service.c:make_connection_snum(1103)
  harvester (:::192.168.0.82) connect to service AntsStuff initially 
as user ant (uid=1000, gid=1000) (pid 14778)


Weird. It can't find smbusers file.

# ls /etc/samba/smbusers
ls: cannot access /etc/samba/smbusers: No such file or directory
locate smbusers command found nothing.
# ls -all /etc/samba/
total 42
drwxr-xr-x   2 root root  1024 2009-03-14 18:40 .
drwxr-xr-x 146 root root 10240 2009-03-15 05:02 ..
-rw-r--r--   1 root root 8 2007-07-01 06:27 gdbcommands
-rw-r--r--   1 root root  8566 2009-03-14 18:40 smb.conf
-rw-r--r--   1 root root  8566 2008-12-31 12:31 smb.conf-backup
-rw-r--r--   1 root root 11917 2008-12-24 12:50 smb.conf.ucf-dist

I reran smbpasswd -a command to readd my Samba account, but that still
didn't fix the problem. I still don't see /etc/samba/smbusers file. 
Something is weird here. :(

/etc/samba.conf showed this for my account that is giving me errors 
(other shared folders seem fine now with no hosts file):
[AntsStuff]
path = /home/ant
comment = Ant's Home Folder on ANTian box.
writable=yes
browseable=yes

# cat /etc/gai.conf
# Configuration for getaddrinfo(3).
#
# So far only configuration for the destination address sorting is needed.
# RFC 3484 governs the sorting.  But the RFC also says that system
# administrators should be able to overwrite the defaults.  This can be
# achieved here.
#
# All lines have an initial identifier specifying the option followed by
# up to two values.  Information specified in this file replaces the
# default information.  Complete absence of data of one kind causes the
# appropriate default information to be used.  The supported commands include:
#
# reload  
#If set to yes, each getaddrinfo(3) call will check whether this file
#changed and if necessary reload.  This option should not really be
#used.  There are possible runtime problems.  The default is no.
#
# label  
#Add another rule to the RFC 3484 label table.  See section 2.1 in
#RFC 3484.  The default is:
#
#label ::1/128   0
#label ::/0  1
#label 2002::/16 2
#label ::/96 3
#label :::0:0/96 4
#label fec0::/10 5
#label fc00::/7  6
#label 2001:0::/32   7
#
#This default differs from the tables given in RFC 3484 by handling
#(now obsolete) site-local IPv6 addresses and Unique Local Addresses.
#The reason for this difference is that these addresses are never
#NATed while IPv4 site-local addresses most probably are.  Given
#the precedence of 

Bug#519545: Saw updated Samba packages today and still doesn't fix the problem...

2009-03-15 Thread Aurelien Jarno
On Sat, Mar 14, 2009 at 06:46:50PM -0700, Phillip Pi wrote:
> # apt-get upgrade
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages have been kept back:
>   libpam-modules
> The following packages will be upgraded:
>   cpio curl debconf debconf-i18n geoip-database  
> gstreamer0.10-plugins-ugly htop libcurl3
>   libcurl3-gnutls libgeoip1 libgtop2-7 libgtop2-common libpam-runtime  
> libpam0g libsane
>   libsmbclient libwbclient0 mlocate mtools pmount samba samba-common
> 22 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
> Need to get 16.6MB of archives.
> After this operation, 3717kB of additional disk space will be used.
>
> ...
> Get:21 http://ftp.debian.org testing/main samba 2:3.3.1-1 [4536kB] 
>
> Get:22 http://ftp.debian.org testing/main samba-common 2:3.3.1-1 [4052kB]
> ...
>
> Samba was restarted. Tested it, and still same problems. Even manually  
> stopped and started it. Here's the  
> /var/log/samba/log.___192.168.0.82 file:
>
> smbd: ../sysdeps/posix/getaddrinfo.c:1463: rfc3484_sort: Assertion  
> `src->results[i].native == -1 || src->results[
> i].native == a2_native' failed.

It seems to be due to a problem in /etc/hosts. Could you please tell me
if you have IPv6 enabled on this machine, and send me (possibly
privately if they contains private information) the contents of
/etc/hosts, /etc/gai.conf and /etc/hostname?

-- 
Aurelien Jarno  GPG: 1024D/F1BCDB73
aurel...@aurel32.net http://www.aurel32.net



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#519545: Saw updated Samba packages today and still doesn't fix the problem...

2009-03-14 Thread Phillip Pi

# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  libpam-modules
The following packages will be upgraded:
  cpio curl debconf debconf-i18n geoip-database 
gstreamer0.10-plugins-ugly htop libcurl3
  libcurl3-gnutls libgeoip1 libgtop2-7 libgtop2-common libpam-runtime 
libpam0g libsane

  libsmbclient libwbclient0 mlocate mtools pmount samba samba-common
22 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 16.6MB of archives.
After this operation, 3717kB of additional disk space will be used.

...
Get:21 http://ftp.debian.org testing/main samba 2:3.3.1-1 [4536kB] 


Get:22 http://ftp.debian.org testing/main samba-common 2:3.3.1-1 [4052kB]
...

Samba was restarted. Tested it, and still same problems. Even manually 
stopped and started it. Here's the 
/var/log/samba/log.___192.168.0.82 file:


smbd: ../sysdeps/posix/getaddrinfo.c:1463: rfc3484_sort: Assertion 
`src->results[i].native == -1 || src->results[

i].native == a2_native' failed.
[2009/03/14 18:43:28,  0] lib/fault.c:fault_report(40)
  ===
[2009/03/14 18:43:28,  0] lib/fault.c:fault_report(41)
  INTERNAL ERROR: Signal 6 in pid 21653 (3.3.1)
  Please read the Trouble-Shooting section of the Samba3-HOWTO
[2009/03/14 18:43:28,  0] lib/fault.c:fault_report(43)

  From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
[2009/03/14 18:43:28,  0] lib/fault.c:fault_report(44)
  ===
[2009/03/14 18:43:28,  0] lib/util.c:smb_panic(1673)
  PANIC (pid 21653): internal error
[2009/03/14 18:43:28,  0] lib/util.c:log_stack_trace(1777)
  BACKTRACE: 23 stack frames:
   #0 /usr/sbin/smbd(log_stack_trace+0x2d) [0x81eb6a4]
   #1 /usr/sbin/smbd(smb_panic+0x80) [0x81eb801]
   #2 /usr/sbin/smbd [0x81d7427]
   #3 [0xb7f61400]
   #4 /lib/i686/cmov/libc.so.6(abort+0x188) [0xb7b17008]
   #5 /lib/i686/cmov/libc.so.6(__assert_fail+0xee) [0xb7b0e5ce]
   #6 /lib/i686/cmov/libc.so.6 [0xb7bb4def]
   #7 /lib/i686/cmov/libc.so.6 [0xb7b17c87]
   #8 /lib/i686/cmov/libc.so.6(qsort_r+0x279) [0xb7b181b9]
   #9 /lib/i686/cmov/libc.so.6(getaddrinfo+0x7c5) [0xb7bb3e55]
   #10 /usr/sbin/smbd [0x81edf56]
   #11 /usr/sbin/smbd(get_mydnsfullname+0x181) [0x81ee15d]
   #12 /usr/sbin/smbd(get_mydnsdomname+0x17) [0x81ec25c]
   #13 /usr/sbin/smbd [0x846ef34]
   #14 /usr/sbin/smbd(ntlmssp_update+0x29c) [0x846d27e]
   #15 /usr/sbin/smbd(auth_ntlmssp_update+0x48) [0x8233e91]
   #16 /usr/sbin/smbd [0x84374d6]
   #17 /usr/sbin/smbd(reply_sesssetup_and_X+0x1c4) [0x8437dc5]
   #18 /usr/sbin/smbd [0x80e37d8]
   #19 /usr/sbin/smbd(smbd_process+0xee2) [0x80e5d88]
   #20 /usr/sbin/smbd(main+0x261f) [0x80ada8a]
   #21 /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7b00775]
   #22 /usr/sbin/smbd [0x80aa721]
[2009/03/14 18:43:28,  0] lib/util.c:smb_panic(1678)
  smb_panic(): calling panic action [/usr/share/samba/panic-action 21653]
[2009/03/14 18:43:28,  0] lib/util.c:smb_panic(1686)
  smb_panic(): action returned status 0
[2009/03/14 18:43:28,  0] lib/fault.c:dump_core(218)
  Can not dump core: corepath not set up
smbd: ../sysdeps/posix/getaddrinfo.c:1463: rfc3484_sort: Assertion 
`src->results[i].native == -1 || src->results[

i].native == a2_native' failed.
[2009/03/14 18:43:28,  0] lib/fault.c:fault_report(40)
  ===
[2009/03/14 18:43:28,  0] lib/fault.c:fault_report(41)
  INTERNAL ERROR: Signal 6 in pid 21655 (3.3.1)
  Please read the Trouble-Shooting section of the Samba3-HOWTO
[2009/03/14 18:43:28,  0] lib/fault.c:fault_report(43)

  From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
[2009/03/14 18:43:28,  0] lib/fault.c:fault_report(44)
  ===
[2009/03/14 18:43:28,  0] lib/util.c:smb_panic(1673)
  PANIC (pid 21655): internal error
[2009/03/14 18:43:28,  0] lib/util.c:log_stack_trace(1777)
  BACKTRACE: 23 stack frames:
   #0 /usr/sbin/smbd(log_stack_trace+0x2d) [0x81eb6a4]
   #1 /usr/sbin/smbd(smb_panic+0x80) [0x81eb801]
   #2 /usr/sbin/smbd [0x81d7427]
   #3 [0xb7f61400]
   #4 /lib/i686/cmov/libc.so.6(abort+0x188) [0xb7b17008]
   #5 /lib/i686/cmov/libc.so.6(__assert_fail+0xee) [0xb7b0e5ce]
   #6 /lib/i686/cmov/libc.so.6 [0xb7bb4def]
   #7 /lib/i686/cmov/libc.so.6 [0xb7b17c87]
   #8 /lib/i686/cmov/libc.so.6(qsort_r+0x279) [0xb7b181b9]
   #9 /lib/i686/cmov/libc.so.6(getaddrinfo+0x7c5) [0xb7bb3e55]
   #10 /usr/sbin/smbd [0x81edf56]
   #11 /usr/sbin/smbd(get_mydnsfullname+0x181) [0x81ee15d]
   #12 /usr/sbin/smbd(get_mydnsdomname+0x17) [0x81ec25c]
   #13 /usr/sbin/smbd [0x846ef34]
   #14 /usr/sbin/smbd(ntlmssp_update+0x29c) [0x846d27e]
   #15 /usr/sbin/smbd(auth_ntlmssp_update+0x48) [0x8233e91]
   #16 /usr/sbin/smbd [0x84374d6]
   #17 /usr/sbin/smbd(reply_sesssetup_and_X+0x1c4) [0x8437dc5]
   #18 /usr/sbin/smbd [0x80e37d8]
   #19 /usr/sbin/smb