[Bug 1472584] Comment bridged from LTC Bugzilla
bugproxy
bugproxy at us.ibm.com
Wed Jul 8 19:30:32 UTC 2015
------- Comment From carriemi at us.ibm.com 2015-07-08 19:23 EDT-------
(In reply to comment #9)
> Please provide output from the following:
>
> cat /etc/services | egrep "netbios|microsoft|ipp"
> netstat -l | egrep "netbios|microsoft|ipp"
> lsof | egrep "netbios|microsoft|ipp"
> ps awfux | egrep "smb[d]|nmb[d]"
root at pole2lp1:~# cat /etc/services | egrep "netbios|microsoft|ipp"
netbios-ns 137/tcp # NETBIOS Name Service
netbios-ns 137/udp
netbios-dgm 138/tcp # NETBIOS Datagram Service
netbios-dgm 138/udp
netbios-ssn 139/tcp # NETBIOS session service
netbios-ssn 139/udp
microsoft-ds 445/tcp # Microsoft Naked CIFS
microsoft-ds 445/udp
ipp 631/tcp # Internet Printing Protocol
ipp 631/udp
root at pole2lp1:~# netstat -l | egrep "netbios|microsoft|ipp"
tcp 0 0 *:netbios-ssn *:* LISTEN
tcp 0 0 *:microsoft-ds *:* LISTEN
tcp6 0 0 [::]:netbios-ssn [::]:* LISTEN
tcp6 0 0 [::]:microsoft-ds [::]:* LISTEN
udp 0 0 ip10-33-255-:netbios-ns *:*
udp 0 0 pole2lp1.iss:netbios-ns *:*
udp 0 0 *:netbios-ns *:*
udp 0 0 ip10-33-255:netbios-dgm *:*
udp 0 0 pole2lp1.is:netbios-dgm *:*
udp 0 0 *:netbios-dgm *:*
root at pole2lp1:~# lsof | egrep "netbios|microsoft|ipp"
smbd 1157 root 30u IPv6 47185 0t0 TCP *:microsoft-ds (LISTEN)
smbd 1157 root 31u IPv6 47186 0t0 TCP *:netbios-ssn (LISTEN)
smbd 1157 root 32u IPv4 47187 0t0 TCP *:microsoft-ds (LISTEN)
smbd 1157 root 33u IPv4 47188 0t0 TCP *:netbios-ssn (LISTEN)
nmbd 1402 root 11u IPv4 27694 0t0 UDP *:netbios-ns
nmbd 1402 root 12u IPv4 27695 0t0 UDP *:netbios-dgm
nmbd 1402 root 13u IPv4 15450 0t0 UDP pole2lp1.isst.aus.stglabs.ibm.com:netbios-ns
nmbd 1402 root 14u IPv4 15451 0t0 UDP ip10-33-255-255.isst.aus.stglabs.ibm.com:netbios-ns
nmbd 1402 root 15u IPv4 15452 0t0 UDP pole2lp1.isst.aus.stglabs.ibm.com:netbios-dgm
nmbd 1402 root 16u IPv4 15453 0t0 UDP ip10-33-255-255.isst.aus.stglabs.ibm.com:netbios-dgm
root at pole2lp1:~# ps awfux | egrep "smb[d]|nmb[d]"
root 1157 0.0 0.1 74944 27008 ? Ss 03:59 0:00 smbd -F
root 1240 0.0 0.0 74944 15168 ? S 03:59 0:00 \_ smbd -F
root 1402 0.0 0.0 27968 11776 ? Ss 03:59 0:00 nmbd -D
> I'm guessing the cups errors are benign in the log file you attached. I see
> those same messages on my system (probably just because nothing is listening
> on the ipp port) and I am not experiencing the problem you see.
>
> Are there any other interesting logs in "/var/log/samba/"? There is a
> "cores" directory so please check that, and check /var/log/syslog for
> evidence of a crash in smbd or nmbd. Or anything else interesting in
> syslog. Do you see any errors when you restart smbd? Does restarting it
> have any effect on the problem?
root at pole2lp1:/var/log/samba# ls -l
total 120
drwx------ 4 root root 4096 Jul 8 03:34 cores
-rw-r--r-- 1 root root 0 Jul 8 03:35 log.127.0.0.1
-rw-r--r-- 1 root root 1186 Jul 8 03:59 log.%m
-rw-r--r-- 1 root root 90355 Jul 8 13:19 log.nmbd
-rw-r--r-- 1 root root 16374 Jul 8 13:19 log.smbd
root at pole2lp1:/var/log/samba# ls cores/*
cores/nmbd:
cores/smbd:
log.nmbd has a bunch of entries like this. The first entry doesn't occur
as often as the other. I can attach the full log if needed.
[2015/07/08 03:36:48, 0] ../source3/nmbd/nmbd_packets.c:1267(process_dgram)
process_dgram: ignoring malformed1 (datasize = 147, len = 15616) datagram packet sent to name WORKGROUP<1e> from IP 10.33.23.125
[2015/07/08 03:37:58, 0] ../source3/nmbd/nmbd_packets.c:1397(validate_nmb_packet)
validate_nmb_packet: Bad QUERY Packet. validate_nmb_packet: Ignoring request packet with opcode 0.
I didn't see anything regarding smb or nmb in syslog.
I restarted smbd and did not see any output. There were no logs added to
syslog during the restart. The same timeout occurs after restart.
root at pole2lp1:/var/log/samba# /etc/init.d/smbd status
* smbd is running
root at pole2lp1:/var/log/samba# /etc/init.d/smbd restart
root at pole2lp1:/var/log/samba# /etc/init.d/smbd status
* smbd is running
root at pole2lp1:/var/log/samba# smbclient -L pole2lp1
Enter root's password:
protocol negotiation failed: NT_STATUS_IO_TIMEOUT
> Also, please collect the "sosreport" and attach it to the bug. You can
> "apt-get install sosreport" if not already installed.
sosreport will be attached shortly.
> You are using entirely the as-installed smbd configuration here, I assume,
> else you would have reported otherwise? Thx.
I'll let Felix (Miao) answer this question of as-installed configuration
as he set up the system.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1472584
Title:
ISST-LTE: Samba server doesn't work well on Ubuntu 14.04.3
Status in samba package in Ubuntu:
New
Bug description:
Today we install ubuntu 14.04.3 on pole2lp1. We found that the samba
server doesn't work well.
root at pole2lp1:/etc/samba# /etc/init.d/smbd status
* smbd is running
root at pole2lp1:/etc/samba# smbclient -L pole2lp1
protocol negotiation failed: NT_STATUS_IO_TIMEOUT
We also tried to add a user and got the same result.
root at pole2lp1:/etc/samba# smbpasswd -a root
New SMB password:
Retype new SMB password:
root at pole2lp1:/etc/samba# smbclient -L pole2lp1
Enter root's password:
protocol negotiation failed: NT_STATUS_IO_TIMEOUT
root at pole2lp1:/etc/samba# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
server string = %h server (Samba, Ubuntu)
server role = standalone server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
== Comment: #2 - Henish V. Patel <hepatel2 at in.ibm.com> - 2015-07-08 07:29:58 ==
smbclient -L pole2lp1 -U root --debuglevel=10
INFO: Current debug levels:
all: 10
tdb: 10
printdrivers: 10
lanman: 10
smb: 10
rpc_parse: 10
rpc_srv: 10
rpc_cli: 10
passdb: 10
sam: 10
auth: 10
winbind: 10
vfs: 10
idmap: 10
quota: 10
acls: 10
locking: 10
msdfs: 10
dmapi: 10
registry: 10
scavenger: 10
dns: 10
ldb: 10
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
INFO: Current debug levels:
all: 10
tdb: 10
printdrivers: 10
lanman: 10
smb: 10
rpc_parse: 10
rpc_srv: 10
rpc_cli: 10
passdb: 10
sam: 10
auth: 10
winbind: 10
vfs: 10
idmap: 10
quota: 10
acls: 10
locking: 10
msdfs: 10
dmapi: 10
registry: 10
scavenger: 10
dns: 10
ldb: 10
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = WORKGROUP
doing parameter server string = %h server (Samba, Ubuntu)
doing parameter dns proxy = no
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter syslog = 0
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter server role = standalone server
doing parameter passdb backend = tdbsam
doing parameter obey pam restrictions = yes
doing parameter unix password sync = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
doing parameter pam password change = yes
doing parameter map to guest = bad user
doing parameter usershare allow guests = yes
pm_process() returned Yes
lp_servicenumber: couldn't find homes
added interface eth0 ip=2002:903:15f:1130:586b:3eff:fe27:8d02 bcast= netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=10.33.8.14 bcast=10.33.255.255 netmask=255.255.0.0
Netbios name list:-
my_netbios_names[0]="POLE2LP1"
Client started (version 4.1.6-Ubuntu).
Enter root's password:
Opening cache file at /var/cache/samba/gencache.tdb
Opening cache file at /var/run/samba/gencache_notrans.tdb
sitename_fetch: No stored sitename for
internal_resolve_name: looking up pole2lp1#20 (sitename (null))
Adding cache entry with key=[NBT/POLE2LP1#20] and timeout=[Wed Dec 31 06:00:00 PM 1969 CST] (-1436353427 seconds in the past)
no entry for pole2lp1#20 found.
resolve_lmhosts: Attempting lmhosts lookup for name pole2lp1<0x20>
resolve_lmhosts: Attempting lmhosts lookup for name pole2lp1<0x20>
startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was No such file or directory
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name pole2lp1<0x20>
remove_duplicate_addrs2: looking for duplicate address/port pairs
namecache_store: storing 1 address for pole2lp1#20: 127.0.1.1
Adding cache entry with key=[NBT/POLE2LP1#20] and timeout=[Wed Jul 8 06:14:47 AM 2015 CDT] (660 seconds ahead)
internal_resolve_name: returning 1 addresses: 127.0.1.1:0
Connecting to 127.0.1.1 at port 445
Socket options:
SO_KEEPALIVE = 0
SO_REUSEADDR = 0
SO_BROADCAST = 0
TCP_NODELAY = 1
TCP_KEEPCNT = 9
TCP_KEEPIDLE = 7200
TCP_KEEPINTVL = 75
IPTOS_LOWDELAY = 0
IPTOS_THROUGHPUT = 0
SO_REUSEPORT = 0
SO_SNDBUF = 2626560
SO_RCVBUF = 1062832
SO_SNDLOWAT = 1
SO_RCVLOWAT = 1
SO_SNDTIMEO = 0
SO_RCVTIMEO = 0
TCP_QUICKACK = 1
TCP_DEFER_ACCEPT = 0
session request ok
protocol negotiation failed: NT_STATUS_IO_TIMEOUT
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1472584/+subscriptions
More information about the foundations-bugs
mailing list