From: William Gibb on


I've encountered a problem printing to a windows print share and am
uncertain how to go about resolving my problem. From what I've been able to
tell, the problem lies in samba.

I've got a fedora 13 box with samba installed and running on it. My goal is
to print to a windows print share.

I am able to use smbclient to query the print server and get a list of
shares and service types.

[bob(a)myhost ~]$ smbclient -L GP300-405PCL
Enter bob's password:
Domain=[WORKGROUP] OS=[VxWorks] Server=[EFISmbServer0.05]

Sharename Type Comment
--------- ---- -------
Direct Printer direct connection for device 300-405
Print Printer print queue for device 300-405
Hold Printer hold queue for device 300-405

Domain=[WORKGROUP] OS=[VxWorks] Server=[EFISmbServer0.05]

Server Comment
--------- -------

Workgroup Master
--------- -------

I can successfully create the printer through the fedora print configuration
tool (system-config-printer) or through lpadmin. The printer is an Cannon
imageRunner 330s, and I'm using the appropriate .ppd I obtained from

example adding the printer: 'sudo lpadmin -p winprinter -v
smb://GP300-405PCL/Direct -P Canon-imageRunner_330s-hpijs-pcl5e.ppd'

When I attempt to print a test page through the GUI print manager, I get an
error "Error Writing Spool: ERRSRV - 22"

When reviewing the CUPS logs, the logs indicate a problem with the backend,
smbspool. That is the source of the ERRSRV 22 error code.

I've tried manually sending a postscript file to the printer using the
smbclient and have not has success with that as well.

I have included the debug information with -d4, but -d10 includes additional
information when I send the print command.

smbclient '\\GP300-405PCL\Print' -d4 -U guest

lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = WORKGROUP
doing parameter server string = Samba Server Version %v
doing parameter client lanman auth = yes
doing parameter client plaintext auth = yes
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 50
doing parameter security = user
doing parameter passdb backend = tdbsam
doing parameter load printers = yes
doing parameter cups options = raw
pm_process() returned Yes
added interface eth0 ip=fe80::211:25ff:fe4c:fbf0%eth0
bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip= bcast=
Client started (version 3.5.3-61.fc13).
Enter guest's password:
tdb(unnamed): tdb_open_ex: could not open file /var/lib/samba/gencache.tdb:
Permission denied
resolve_lmhosts: Attempting lmhosts lookup for name GP300-405PCL<0x20>
getlmhostsent: lmhost entry: localhost
resolve_wins: Attempting wins lookup for name GP300-405PCL<0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name GP300-405PCL<0x20>
resolve_hosts: getaddrinfo failed for name GP300-405PCL [Name or service not
name_resolve_bcast: Attempting broadcast lookup for name GP300-405PCL<0x20>
nmb packet from header: id=26608 opcode=Query(0)
header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=Yes
header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
answers: nmb_name=GP300-405PCL<20> rr_type=32 rr_class=1 ttl=0
answers 0 char .....b hex 0000C0A80062
Got a positive name query response from ( )
tdb(unnamed): tdb_open_ex: could not open file
/var/lib/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file
/var/lib/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file
/var/lib/samba/unexpected.tdb: No such file or directory
Connecting to at port 445
Connecting to at port 139
session request ok
Domain=[WORKGROUP] OS=[VxWorks] Server=[EFISmbServer0.05]
session setup ok
tconx ok

smb: \> print
putting file as lang_tdb_init:
/usr/lib/samba/en_US.UTF-8.msg: No such file or directory
cli_push returned 22
(750.0 kb/s) (average 750.0 kb/s)
smb: \> exit

Does anyone have any idea what is going on with the print server? I wasn't
able to find any references to ERRSRV 22 or cli_push in searching forums and
mailing lists.

William Gibb
View this message in context:
Sent from the Samba - General mailing list archive at

To unsubscribe from this list go to the following URL and read the