[Samba] Windows printer status update fails
Christoph Litauer
litauer at uni-koblenz.de
Wed Nov 15 13:47:10 GMT 2006
Dear samba admins,
I have a samba/cups related problem. I am running SuSE 10.1 with cups
1.1.23 and samba 3.0.22.
The problem is, that my windows printer status boxes don't reflect the
samba printer queues.
My test scenario:
- I use "printing = SYSV" because I need to use "print command", too.
- I installed a new printer named "test", called cupsaddsmb test.
- I stopped that printer and printed a document to it:
printhost:~ # lpstat -o test
test-5760 litauer 62464 Fri Nov 10 08:08:17
2006
- I connected via smbclient to that printer and called command 'queue':
[litauer at somehost:~] 504> smbclient //printhost/test
Password:
Domain=[UNIKO] OS=[Unix] Server=[Samba 3.0.22-13.18-SUSE-CODE10]
smb: \> queue
smb: \>
- Increasing the loglevel of my smb-process while calling 'queue' shows
the following excerpt:
[2006/11/10 08:13:10, 4] printing/printing.c:print_cache_expired(1073)
print_cache_expired: cache expired for queue test (last_qscan_time =
1163142568, time now = 1163142790, qcachetime = 30)
[2006/11/10 08:13:10, 3] smbd/sec_ctx.c:push_sec_ctx(256)
push_sec_ctx(14255, 1050) : sec_ctx_stack_ndx = 1
[2006/11/10 08:13:10, 3] smbd/uid.c:push_conn_ctx(393)
push_conn_ctx(101) : conn_ctx_stack_ndx = 0
[2006/11/10 08:13:10, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2006/11/10 08:13:10, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
pop_sec_ctx (14255, 1050) - sec_ctx_stack_ndx = 0
[2006/11/10 08:13:10, 4] printing/printing.c:print_cache_expired(1073)
print_cache_expired: cache expired for queue test (last_qscan_time =
1163142568, time now = 1163142790, qcachetime = 30)
[2006/11/10 08:13:10, 4] printing/printing.c:print_cache_expired(1089)
print_cache_expired: message already pending for test. Accepting cache
[2006/11/10 08:13:10, 4] smbd/lanman.c:api_WPrintJobEnumerate(3182)
WPrintJobEnumerate: errorcode 0
I would expect standard sysv lpstat command be called, but that never
happens, even if I wait for some time. No other client uses printer test.
- I tried the following with no results:
o Updated samba to 3.0.23c
o Used "printing = CUPS"
o Reinstalled samba and deleted everything in /var/lib/samba
o Deleted /var/lib/samba/printing/test.tdb just before calling 'queue'
o Googled around now for 10 days .... (sigh)
Attached is my smb.conf. I would greatly appreciate any help. Thanks in
advance! Please eMail a copy to me, thank you very much!
--
Regards
Christoph
________________________________________________________________________
Christoph Litauer litauer at uni-koblenz.de
Uni Koblenz, Computing Center, http://www.uni-koblenz.de/~litauer
Postfach 201602, 56016 Koblenz Fon: +49 261 287-1311, Fax: -100 1311
PGP-Fingerprint: F39C E314 2650 650D 8092 9514 3A56 FBD8 79E3 27B2
-------------- next part --------------
# Global parameters
[global]
workgroup = SOMEGROUP
security = DOMAIN
netbios name = printhost
encrypt passwords = Yes
time server = Yes
unix extensions = Yes
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
unix charset = ISO8859-15
dos charset = CP850
os level = 0
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
load printers = Yes
printing = SYSV
print command = /etc/samba/bin/print %p %s %u %m %M %I %c "%J"; rm %s
log level = 1
log file = /var/log/samba/%m
syslog = 0
guest ok = no
username map = /etc/samba/smbusers
[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No
guest ok = no
[print$]
comment = Windows Printer
path = /var/lib/samba/drivers
guest ok = no
browsable = yes
read only = yes
write list = root
More information about the samba
mailing list