Bug 748988

Summary: cupsdisable or cupsenable does not work on fedora 15.
Product: [Fedora] Fedora Reporter: Susmit <thinklinux.ssh>
Component: cupsAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 15CC: elliott.forney, jpopelka, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: cups-1.4.8-9.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-27 20:49:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Attching diagonistic output
none
server cupsd.conf none

Description Susmit 2011-10-25 19:20:53 UTC
Description of problem:

$ /usr/sbin/cupsdisable printer

cupsdisable: Operation failed: server-error-service-unavailable

I have verified the currect permissions (and that I have it) and that cups is running properly.

Same thing happens for cupsenable.

Other printing stuff works properly.


Version-Release number of selected component (if applicable):


How reproducible:
Run the command.

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Susmit 2011-10-25 19:23:40 UTC
Here is some additional info.


$ rpm -qa | grep cups 
ghostscript-cups-9.04-3.fc15.x86_64
cups-1.4.8-5.fc15.x86_64
libgnomecups-0.2.3-9.fc15.x86_64
python-cups-1.9.57-1.fc15.x86_64
cups-libs-1.4.8-5.fc15.i686
cups-pk-helper-0.1.3-2.fc15.x86_64
gutenprint-cups-5.2.7-3.fc15.x86_64
cups-libs-1.4.8-5.fc15.x86_64

$ uname -r
2.6.40.6-0.fc15.x86_64

Comment 2 Tim Waugh 2011-10-26 10:37:11 UTC
Please run the printing troubleshooter:
https://fedoraproject.org/wiki/Printing/Debugging#Printing_troubleshooter

It looks like CUPS is not running correctly, or cannot be contacted for some reason.

Comment 3 Susmit 2011-10-27 19:29:48 UTC
Created attachment 530555 [details]
Attching diagonistic output

Comment 4 Susmit 2011-10-27 19:30:39 UTC
Thanks Tim for looking into this, attaching the troubleshoot file.

Comment 5 Tim Waugh 2011-10-28 11:03:09 UTC
Please do this:

su -c 'cupsctl --debug-logging'
su -c 'service cups restartlog'
cupsenable fiddle
su -c 'cupsctl --no-debug-logging'

Does that fail in the same way?  If so, please attach /var/log/cups/error_log.

Comment 6 Elliott Forney 2011-10-28 23:24:33 UTC
Just to clarify what is happening here:

Susmit and I have a cups server running RHEL 5.7 with cups-1.3.7-26.el5_6.1

cupsenable and cupsdisable work fine on the server.

We also have a number of Fedora 15 clients and we would like for users to be able to reset printer queues and restart printers et cetra from Fedora.  To make this happen, we have an entry like the following in /etc/cups/cupsd.conf on the server:

<Limit Pause-Printer Resume-Printer Purge-Jobs>
  AuthType Default
  Require user @SYSTEM @printops
  Order deny,allow
</Limit>

This used to work great in Fedora 14 but at some point it stopped working.  It still works from the cups server and other RHEL machines... just not from Fedora.  So, I am guessing that the Fedora and RedHat cups don't play together well anymore?

Comment 7 Elliott Forney 2011-10-28 23:25:42 UTC
I have enabled debug logging by adding "LogLevel debug" to /etc/cups/cupsd.conf and running "service cups restartlog" on the RHEL cups server.

Now, when I run a command like cupsdisable from a fedora client I get the following output in /var/log/cups/error_log

D [28/Oct/2011:15:30:32 -0600] cupsdAcceptClient: skipping getpeercon()
D [28/Oct/2011:15:30:32 -0600] cupsdAcceptClient: 13 from platte.cs.colostate.edu:631 (IPv4)
D [28/Oct/2011:15:30:32 -0600] cupsdReadClient: 13 POST /admin/ HTTP/1.1
D [28/Oct/2011:15:30:32 -0600] cupsdAuthorize: No authentication data provided.
D [28/Oct/2011:15:30:32 -0600] cupsdIsAuthorized: Need upgrade to TLS...
D [28/Oct/2011:15:30:32 -0600] cupsdSendError: 13 code=426 (Upgrade Required)
D [28/Oct/2011:15:30:32 -0600] cupsdCloseClient: 13
D [28/Oct/2011:15:30:32 -0600] cupsdAcceptClient: skipping getpeercon()
D [28/Oct/2011:15:30:32 -0600] cupsdAcceptClient: 13 from platte.cs.colostate.edu:631 (IPv4)
D [28/Oct/2011:15:30:32 -0600] cupsdReadClient: 13 OPTIONS * HTTP/1.1
D [28/Oct/2011:15:30:32 -0600] cupsdAuthorize: No authentication data provided.
E [28/Oct/2011:15:30:32 -0600] encrypt_client: Unable to encrypt connection from platte.cs.colostate.edu!
E [28/Oct/2011:15:30:32 -0600] encrypt_client: A TLS packet with unexpected length was received.
D [28/Oct/2011:15:30:32 -0600] cupsdCloseClient: 13
~

Comment 8 Tim Waugh 2011-12-02 16:16:37 UTC
Could you please attach the cupsd.conf files from the server and from the client?  Thanks.

Comment 9 Elliott Forney 2011-12-12 06:39:25 UTC
Created attachment 545598 [details]
server cupsd.conf

Comment 10 Elliott Forney 2011-12-12 06:43:19 UTC
I have attached the cupsd.conf on the server.  I removed our hostname and ip and replaced them with servername.domainname and serveripaddress respectively.

Cups doesn't run on the clients.  We just add one line to /etc/cups/client.conf

ServerName servername.domainname

Any ideas what the errors in comment 7 are about?  Sounds like a TLS incompatibility to me.

Comment 12 Fedora Update System 2012-02-16 17:41:15 UTC
cups-1.4.8-9.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/cups-1.4.8-9.fc15

Comment 13 Fedora Update System 2012-02-17 00:51:37 UTC
Package cups-1.4.8-9.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cups-1.4.8-9.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-1835/cups-1.4.8-9.fc15
then log in and leave karma (feedback).

Comment 15 Elliott Forney 2012-04-26 23:03:38 UTC
This update has fixed the problem for us.  I think it can be moved from testing to stable in Fedora 15?  It works with the latest release in Fedora 16.  I think this bug report can also be closed.

Thank you!!

Comment 16 Fedora Update System 2012-04-27 20:49:34 UTC
cups-1.4.8-9.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.