Bug 3598 - Samba must be restarted to pick up CUPS changes
Summary: Samba must be restarted to pick up CUPS changes
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Printing (show other bugs)
Version: 3.0.20
Hardware: Other Windows 2000
: P3 normal
Target Milestone: none
Assignee: Gerald (Jerry) Carter (dead mail address)
QA Contact: Samba QA Contact
Depends on:
Reported: 2006-03-10 12:05 UTC by Joanna Chan
Modified: 2006-03-10 16:25 UTC (History)
0 users

See Also:

samba log (166.88 KB, text/plain)
2006-03-10 12:06 UTC, Joanna Chan
no flags Details
samba log 2 (2.99 KB, text/plain)
2006-03-10 12:07 UTC, Joanna Chan
no flags Details
CUPS printers.conf (382 bytes, text/plain)
2006-03-10 12:08 UTC, Joanna Chan
no flags Details
CUPS printcap (165 bytes, text/plain)
2006-03-10 12:09 UTC, Joanna Chan
no flags Details
enumprinters output (48.82 KB, text/plain)
2006-03-10 12:09 UTC, Joanna Chan
no flags Details
enumdrivers output2 (48.82 KB, text/plain)
2006-03-10 12:11 UTC, Joanna Chan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joanna Chan 2006-03-10 12:05:38 UTC
I'm using CUPS 1.1.17 with Samba 3.0.20.  After I added a printer using the CUPS GUI, if samba does not get restarted, I will not be able to see the newly added printer in the 'enumprinters' call.

Enclosed is the samba logs (with log level set to 10) and the enumprinters call before and after the printer is added.  I also enclosed the CUPS printcap and printers.conf file.
Comment 1 Joanna Chan 2006-03-10 12:06:49 UTC
Created attachment 1783 [details]
samba log
Comment 2 Joanna Chan 2006-03-10 12:07:57 UTC
Created attachment 1784 [details]
samba log 2
Comment 3 Joanna Chan 2006-03-10 12:08:35 UTC
Created attachment 1785 [details]
CUPS printers.conf
Comment 4 Joanna Chan 2006-03-10 12:09:06 UTC
Created attachment 1786 [details]
CUPS printcap
Comment 5 Joanna Chan 2006-03-10 12:09:51 UTC
Created attachment 1787 [details]
enumprinters output
Comment 6 Joanna Chan 2006-03-10 12:11:05 UTC
Created attachment 1788 [details]
enumdrivers output2
Comment 7 Gerald (Jerry) Carter (dead mail address) 2006-03-10 12:34:21 UTC
Refer to the 'printcap cache time' parameter in smb.conf.
Also note that a manual sighup will for an immediate 
reload of the printer list.  If neither suggestion addresses,
the problem then please reopen.
Comment 8 Lars Müller 2006-03-10 16:03:06 UTC
CUPS 1.1.x does _not_ provide any means to notify an application about a change of the configured printers.  That was the reason we had to implement this polling feature Jerry referred to by the 'printcap cache time' parameter.  At the moment we use 0 which disables the polling at all.

Jerry:  This might be a default we should change in future releases.  We're using it set to 750 in the default smb.conf for several Samba releases with SuSE Linux and had no problem at all.

In contrast to this we have again and again this 'printer do not appear' complains from customers.  I must correct me:  We _has_ this complains before the feature was introduced and our default 750 seconds used.
Comment 9 Gerald (Jerry) Carter (dead mail address) 2006-03-10 16:25:12 UTC
Lars, we've set that default for a while now.