-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImplicitClasses has no effect during failover #2766
Comments
CUPS.org User: krumboeck This bug is not specific to an operating system. We have the same problem on HP-UX with CUPS 1.3.x (never had this problem with 1.2.x). Sadly we had too less time and informations for further analyses. What we have seen so far: Our client machines: CUPS version is tar.gz from www.cups.org. I will post the configuration file and remote.cache file from an affected machine. regards! |
CUPS.org User: krumboeck remote.cache.sk ... remote cache file from another HP-UX CUPS client, which had also problems with ImplicitClasses. The results are very similar to the above one, but in this case the implicit class exists. Sadly there also exists remote queues, which shouldn't be possible. The config is exact the same like the other host. |
CUPS.org User: mike Not sure what is going wrong here, but looking into it... |
CUPS.org User: mike OK, I think the problem is the timing out is removing the original queue (which won't delete the implicit class), but when we re-discover the queue it replaces the implicit class with the remote printer. Finally, remote.cache is saved with the short name, and you are stuck with no implicit classes from then on... A workaround for now is to add the following to your cupsd.conf file:
You can use the cupsctl command for this:
|
CUPS.org User: mike Fixed in Subversion repository. |
CUPS.org User: mike and the patch against 1.3.x... |
"cupsd.conf": "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $"Sample configuration file for the Common UNIX Printing System (CUPS)scheduler. See "man cupsd.conf" for a complete description of thisfile.Log general information in error_log - change "info" to "debug" fortroubleshooting...LogLevel info Administrator user group...SystemGroup sys root Only listen for connections from the local machine.Listen localhost:631Listen *:631 Show shared printers on the local network.Browsing On BrowseAllow @LocalBrowseInterval 1200 BrowseProtocols cups Default authentication type, when authentication is required...DefaultAuthType Basic Restrict access to the server...Order allow,deny Allow AllRestrict access to the admin pages...<Location /admin> Restrict access to configuration files...<Location /admin/conf> Set the default printer/job policies...# Job-related operations must be done by the owner or an adminstrator... Require user @owner @System Order deny,allowAll administration operations require an adminstrator to authenticate...AuthType Basic Require user @System Order deny,allowOnly the owner or an administrator can cancel or authenticate a job...Require user @owner @System Order deny,allow Order deny,allowEnd of "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $". |
"str2766.patch": Index: scheduler/dirsvc.c--- scheduler/dirsvc.c (revision 7722)
/*
@@ -894,7 +894,7 @@ /*
- p->name);
@@ -2464,8 +2471,7 @@
if (!ServerNameIsIP && sptr != NULL && hptr != NULL)
- */
- */- p = cupsdAddPrinter(name);
- "Printer '%s' added by directory services.", name);- cupsdLogMessage(CUPSD_LOG_DEBUG, "Added remote printer "%s"...", name);
- */
- cupsdSetString(&p->device_uri, uri);- update = 1;
/* if (!make_model || !make_model[0])
Index: scheduler/printers.c--- scheduler/printers.c (revision 7723)
/*
/*
Index: scheduler/main.c--- scheduler/main.c (revision 7722)
|
"str2766-1.3.patch": Index: scheduler/dirsvc.c--- scheduler/dirsvc.c (revision 7724)
/*
@@ -885,7 +885,7 @@ /*
- p->name);
@@ -1673,13 +1672,23 @@
@@ -1698,8 +1705,7 @@
if (!ServerNameIsIP && sptr != NULL && hptr != NULL)
- */
- */
- }
- */- p = cupsdAddPrinter(name);
- "Printer '%s' added by directory services.", name);- cupsdLogMessage(CUPSD_LOG_DEBUG, "Added remote printer "%s"...", name);
- */
- cupsdSetString(&p->device_uri, uri);
/* if (!make_model || !make_model[0])
Index: scheduler/printers.c--- scheduler/printers.c (revision 7724)
/*
/*
@@ -3372,7 +3395,8 @@
|
Version: 1.3.5
CUPS.org User: relovett
I setup two CUPS servers with the intent of one being the backup of the other. With a Mac OS X 10.5.2 client configured with:
BrowseShortNames Yes
ImplicitClasses Yes
ImplicitAnyClasses No
HideImplicitMembers Yes
it is able to browse the full printer queues on each and merge the queue names into the implicit class name as expected. lpstat lists the queues as q1, q2, etc. When I turned off cupsd on the primary CUPS server to test failover however, the implicit queue names disappeared on the client and I am left with 'q1@backup', 'q2@backup', etc. as queue names.
When I tried removing remote.cache and running 'launchctl stop org.cups.cupsd' but that did not change the behavior.
The text was updated successfully, but these errors were encountered: