[Samba] NT_STATUS_UNSUCCESSFUL message-- were to look?
Matt Price
matt.price at utoronto.ca
Mon Apr 25 21:02:16 GMT 2005
On Mon, Apr 25, 2005 at 03:51:04PM -0500, Gerald (Jerry) Carter wrote:
> Matt Price wrote:
> > Hi folks,
> >
> > I'm trying to access a shared printer on a windows machine. The
> > windows box (call it "Doze") is located behind a router/printserver,
> > and is set up thus:
> >
> > -DOZE connects to the printer via the printserver using the PRTMATE
> > port, and then shares the printer via smb -- workgroup CHASS, server
> > name HIS-FACLAB, printer name his-fac-lex
> > -Router forwards all incoming connections on 137,138,139,445, and 1024
> > to DOZE
> >
> > My linux box (Anarres) is outside the router, but I can browse the
> > router's network easily using Smb4K. I can access all SMB "Shares" on
> > DOZE without any problems, and when browsing can see the printer,
> > which smb4K tells me is //HIS-FACLAB/his-fac-lex. But when I try to
> > print to the printer (using either CUPS with URI
> > smb://HIS-FACLAB/his-fac-lex, or the smb4k native browser), I am
> > unable to do so, and get the error "NT_STATUS_UNSUCCESSFUL".
> > I'm pretty much entirely ignorant about windows so I'm not so sure
> > where to go next. can someone point me in the right direction?
>
> My guess would be that you can't find the server (netbios name service
> not working). Run smbclient //server/printer --debuglevel=10 and look
> for more information surrounding the failure. NT_STATUS_UNSUCCESSFUL
> is the generic "something went wrong" we use in Samba we we aren't given
> a specific error back from the server. Or it's not an obvious error
> such as "out of memory".
>
ahhh... ok. I don't understand much of what's going on in the log
file, so I've attached pretty much the whole thing -- hope that's ok.
so here it is, with a couple of comments:
INFO: Current debug levels:
all: True/10
tdb: False/0
printdrivers: False/0
lanman: False/0
smb: False/0
rpc_parse: False/0
rpc_srv: False/0
rpc_cli: False/0
passdb: False/0
sam: False/0
auth: False/0
winbind: False/0
vfs: False/0
idmap: False/0
quota: False/0
acls: False/0
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter workgroup = CHASS
doing parameter server string = %h server (Samba %v)
doing parameter load printers = yes
doing parameter printcap name = /etc/printcap
doing parameter printing = cups
doing parameter invalid users = root
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter syslog = 0
doing parameter encrypt passwords = true
doing parameter passdb backend = tdbsam guest
doing parameter socket options = TCP_NODELAY
doing parameter include = /etc/samba/dhcp.conf
Can't find include file /etc/samba/dhcp.conf
doing parameter dns proxy = no
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
doing parameter obey pam restrictions = yes
pm_process() returned Yes
lp_servicenumber: couldn't find homes
set_server_role: role = ROLE_STANDALONE
Attempting to register new charset UCS-2LE
Registered charset UCS-2LE
Attempting to register new charset UTF-16LE
Registered charset UTF-16LE
Attempting to register new charset UCS-2BE
Registered charset UCS-2BE
Attempting to register new charset UTF-16BE
Registered charset UTF-16BE
Attempting to register new charset UTF8
Registered charset UTF8
Attempting to register new charset UTF-8
Registered charset UTF-8
Attempting to register new charset ASCII
Registered charset ASCII
Attempting to register new charset 646
Registered charset 646
Attempting to register new charset ISO-8859-1
Registered charset ISO-8859-1
Attempting to register new charset UCS2-HEX
Registered charset UCS2-HEX
Substituting charset 'ISO-8859-1' for LOCALE
------------------------
--above line repeated about 20 times!
----------------------
Substituting charset 'ISO-8859-1' for LOCALE
added interface ip=128.100.34.9 bcast=128.100.34.127 nmask=255.255.255.128
Netbios name list:-
my_netbios_names[0]="ANARRES"
Client started (version 3.0.14a-Debian).
internal_resolve_name: looking up HIS-FACLAB#20
------------------
--ok, I see a bunch of erors starting up, Is there some basic
--configuration I haven't done?
----------------------
Opening cache file at /var/run/samba/gencache.tdb
Cache entry with key = NBT/HIS-FACLAB#20 couldn't be found
no entry for HIS-FACLAB#20 found.
Deleting cache entry (key = NBT/HIS-FACLAB#20)
resolve_lmhosts: Attempting lmhosts lookup for name HIS-FACLAB<0x20>
getlmhostsent: lmhost entry: 129.100.34.144 TESTPC
resolve_wins: Attempting wins lookup for name HIS-FACLAB<0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name HIS-FACLAB<0x20>
name_resolve_bcast: Attempting broadcast lookup for name HIS-FACLAB<0x20>
bind succeeded on port 0
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 1
socket option SO_BROADCAST = 1
Could not test socket option TCP_NODELAY.
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 65535
socket option SO_RCVBUF = 65535
socket option SO_SNDLOWAT = 1
socket option SO_RCVLOWAT = 1
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
Sending a packet of len 50 to (128.100.34.127) on port 137
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
Sending a packet of len 50 to (128.100.34.127) on port 137
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
Sending a packet of len 50 to (128.100.34.127) on port 137
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
lang_tdb_init: /usr/share/samba/en_US.msg: No such file or directory
------------------------------------------------------------------
so clearly there's something missing -- have I perhaps not installed
all the required packages (running debian unstable)?
thanks again for the help!
Matt
-------------------------------------------
Matt Price matt.price at utoronto.ca
History Department, University of Toronto
(416) 978-2094
--------------------------------------------
The following addresses are for you if you're an evil spambot:
zeus at derailleur.org aardvark at derailleur.org
More information about the samba
mailing list