Bug 189192

Summary: Cups error 'server-error-internal-error'
Product: [Fedora] Fedora Reporter: david walcroft <david_walcroft>
Component: cupsAssignee: Tim Waugh <twaugh>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-04-22 09:38:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description david walcroft 2006-04-18 04:32:40 UTC
Description of problem:Unable to change item in http://localhost:631/admin
gives the error 'server-error-internal-error'

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


How reproducible: enter http://localhost:631/admin in a browser go to 'config
printer' try to change any entry.


Steps to Reproduce:
1.
2.
3.
  
Actual results:
Any entry does not change to desired entry

Expected results:
settings should change with out an error

Additional info: FIX = 'setenforce 0' allows changes

Comment 1 Tim Waugh 2006-04-18 09:19:16 UTC
Hmm, I don't see that error here.  Could you please show me

1. the SELinux error message ('audit' or 'avc' with lots of technical bits in
it) from /var/log/messages, and
2. the CUPS error from /var/log/cups/error_log

when you get the server-error-internal-error?

Thanks.

Comment 2 david walcroft 2006-04-19 23:45:12 UTC
(In reply to comment #1)
> Hmm, I don't see that error here.  Could you please show me
> 
> 1. the SELinux error message ('audit' or 'avc' with lots of technical bits in
> it) from /var/log/messages, and
> 2. the CUPS error from /var/log/cups/error_log
> 
> when you get the server-error-internal-error?
> 
> Thanks.

THere is no 'avc' or 'audit' errors,only /var/log/cups/error-log:-

D [20/Apr/2006:09:40:37 +1000] ReadClient: 8 POST /admin/ HTTP/1.1
E [20/Apr/2006:09:40:37 +1000] add_printer: Unable to copy PPD file from
/var/spool/cups/00000001 to /etc/cups/ppd/reddwarf.p
pd - Permission denied!
D [20/Apr/2006:09:40:37 +1000] Sending error: server-error-internal-error
D [20/Apr/2006:09:40:37 +1000] ProcessIPPRequest: 8 status_code=500
D [20/Apr/2006:09:40:37 +1000] CloseClient: 10
D [20/Apr/2006:09:40:37 +1000] CloseClient: 8
D [20/Apr/2006:09:40:40 +1000] ReadClient: 6 GET /printers HTTP/1.1
D [

I belive the 'permission denied' is selinux as shown by 'setenforce 0' allowing 
me to change the cups config in http://localhost:631/[admin] [printers].

Comment 3 Tim Waugh 2006-04-20 09:19:34 UTC
Please show me what this command says, as root:

ls -Zd /etc/cups/ppd


Comment 4 david walcroft 2006-04-21 00:11:57 UTC
(In reply to comment #3)
> Please show me what this command says, as root:
> 
> ls -Zd /etc/cups/ppd
> 
drwxr-xr-x  root     sys      system_u:object_r:cupsd_etc_t    /etc/cups/ppd

Comment 5 Tim Waugh 2006-04-21 08:21:52 UTC
What about 'ls -Zd /var/spool/cups'?

Also, do you have the 'audit' package installed?  I'm trying to work out why we
can't see the SELinux deny message.

Comment 6 david walcroft 2006-04-22 00:23:52 UTC
(In reply to comment #5)

david@reddwarf ~]$ rpm -qa audit
audit-1.1.5-1

rwx--x---  root     sys      system_u:object_r:print_spool_t  /var/spool/cups

Comment 7 david walcroft 2006-04-22 02:37:38 UTC
(In reply to comment #5)

david@reddwarf ~]$ rpm -qa audit
audit-1.1.5-1

rwx--x---  root     sys      system_u:object_r:print_spool_t  /var/spool/cups

Comment 8 david walcroft 2006-04-22 02:46:08 UTC
(In reply to comment #7)
Yesterday (21-04-06 1000hr UTC) I ran "/sbin/fixfiles relabel" and it fixed one
or two issues I had when running my machine this a.m including this bug so I
have no problems accessing 'localhost:631/admin'and configuring cups.



Comment 9 Tim Waugh 2006-04-22 09:38:36 UTC
Okay, thanks for testing.