LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   CUPS problem: IPP request failed for unknow reason (http://www.linuxquestions.org/questions/linux-software-2/cups-problem-ipp-request-failed-for-unknow-reason-448707/)

unicornop 05-26-2006 05:33 AM

CUPS problem: IPP request failed for unknow reason
 
*Sigh* this is a difficult one, I hope someone else knows more than me.

Since I've updated CUPS via yum a few weeks ago, I am no more able to print - this is under Fedora Core 4.
Finally desperately I upgraded to Fedora Core 5 (I'll save you the details :)).

But now I'm still not able.
Always the same message when trying to configure the printer, restarting the print manager, etc:

"Unable to retrieve the printer list. Error message received from manager: Connection to CUPS server failed. Check that the CUPS server is correctly installed and running. Error: the IPP request failed for an unknown reason."


Remark 1: yes CUPS is installed, i.e. rpm says:
% rpm -qa | grep cups
cups-1.2.1-1.2
hal-cups-utils-0.5.5-1.2.fc5.2
cups-libs-1.2.1-1.2
libgnomecups-0.2.2-3.2.1

Remark 2: yes the CUPS server is running, at least ps says:
% ps -Af | grep cups
root 2199 1 0 09:59 ? 00:00:00 cupsd
root 3269 1 0 10:00 ? 00:00:00 cups-config-daemon

Remark 3: no I can't administer printers via web-interface, even when logged in as root surfing to "localhost:631" tells me: "403 Forbidden". And my firewall is completely disabled.
The etc/cups/cupsd.conf-file is ending with these lines:
# Lines below are automatically generated - DO NOT EDIT
<Location /printers/mijnprt>
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
AuthType None
</Location>
Browsing On
BrowseProtocols cups
BrowseOrder Deny,Allow
BrowseAllow from @LOCAL
Listen 127.0.0.1:631


And so... help!! Anyone able to help me out of this labyrint ??

marozsas 05-26-2006 06:21 AM

Yes, I had the same problem too. It is a bug in SELinux (which is a pain in the ass, BTW).

To confirm that:
Code:

# setenforce Permissive
# rccups restart

If cups starts as expected, than you can put SELinux in Permissive state until a fix for cups becomes available. Edit /etc/selinux/config and change the line "SELINUX=enforcing to "SELINUX=permissive".

marozsas 05-26-2006 06:24 AM

Sorry, "rccups" is an alias in my system. The default command is "service cups restart".

unicornop 05-26-2006 10:23 AM

[QUOTE=marozsas]Yes, I had the same problem too. It is a bug in SELinux (which is a pain in the ass, BTW).

To confirm that:
Code:

# setenforce Permissive
# rccups restart

I tried but that seems not to be the cause:
Code:

%  setenforce Permissive
setenforce: SELinux is disabled
% service cups restart
Stopping cups:                                            [  OK  ]
Starting cups:                                            [  OK  ]

... and the problem is still existing.

Listing /etc/selinux/config:
Code:

# SELINUX= can take one of these three values:
#      enforcing - SELinux security policy is enforced.
#      permissive - SELinux prints warnings instead of enforcing.
#      disabled - SELinux is fully disabled.
SELINUX=Disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#      targeted - Only targeted network daemons are protected.
#      strict - Full SELinux protection.
SELINUXTYPE=targeted
# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0

:scratch: Other suggestions?

marozsas 05-26-2006 10:49 AM

Quote:

Originally Posted by unicornop
... and the problem is still existing.

...strange. I had the same problem, same error message and disabling SElinux works for me.

Are your packages updated ?
Code:

bash-3.1$ rpm -qa | grep -iE "cups|policy"
selinux-policy-targeted-2.2.40-1.fc5
libgnomecups-0.2.2-3.2.1
policycoreutils-1.30.8-1.fc5
cups-libs-1.2.1-1.2
selinux-policy-2.2.40-1.fc5
cups-1.2.1-1.2
hal-cups-utils-0.5.5-1.2.fc5.2
bash-3.1$

PS: Sorry, I can see you have the packages updated, based ib your first post.

marozsas 05-26-2006 10:58 AM

May be some bug when upgrading for FC4 to FC5. Mine was a fresh install.
Try to remove the packages cups, cups-libs and hal-cups-utils and re-install the same packages again.

unicornop 05-26-2006 12:35 PM

Quote:

Originally Posted by marozsas
May be some bug when upgrading for FC4 to FC5. Mine was a fresh install.
Try to remove the packages cups, cups-libs and hal-cups-utils and re-install the same packages again.

I considered doing that as well, but it's a last last resort for me, as this implies uninstalling and installing 38 other softwares - such as evolution, gimp, open-office, etc etc.
I'm afraid it will take days to get it back ok again.

Asking yum to remove cups, it tells me:

Code:

Removing:
 cups                    i386      1:1.2.1-1.2      installed        7.5 M
Removing for dependencies:
 desktop-printing        i386      0.19-6          installed        263 k
 eel2                    i386      2.14.1-1.fc5.1  installed        1.2 M
 evolution              i386      2.6.1-1.fc5.2    installed          33 M
 gdm                    i386      1:2.14.4-1.fc5.1  installed        9.9 M
 gimp                    i386      2:2.2.11-0.fc5.3  installed          26 M
 gimp-data-extras        noarch    2.0.1-1.1        installed        7.6 M
 gimp-gap                i386      2.0.2-4          installed        2.9 M
 gimp-help              noarch    2-0.1.0.10.0.fc5.1  installed          64 M
 gimp-print-plugin      i386      4.2.7-16        installed          97 k
 gnome-games            i386      1:2.14.1-1.fc5.3  installed          18 M
 gnome-media            i386      2.14.0-2        installed        5.6 M
 gthumb                  i386      2.7.5.1-1.fc5.1  installed        5.6 M
 gtkhtml3                i386      3.10.1-1.fc5.1  installed        2.7 M
 hal-cups-utils          i386      0.5.5-1.2.fc5.2  installed          83 k
 libgnomecups            i386      0.2.2-3.2.1      installed        215 k
 libgnomeprint22        i386      2.12.1-4.2      installed        1.4 M
 libgnomeprintui22      i386      2.12.1-1.2.1    installed        1.0 M
 librsvg2                i386      2.14.4-1.fc5.1  installed        421 k
 nautilus                i386      2.14.1-1.fc5.1  installed          11 M
 nautilus-cd-burner      i386      2.14.1-1.fc5.1  installed        1.5 M
 openoffice.org-calc    i386      1:2.0.2-5.9.2    installed          15 M
 openoffice.org-core    i386      1:2.0.2-5.9.2    installed        204 M
 openoffice.org-draw    i386      1:2.0.2-5.9.2    installed        2.7 M
 openoffice.org-graphicfilter  i386      1:2.0.2-5.9.2    installed        365 k
 openoffice.org-impress  i386      1:2.0.2-5.9.2    installed        4.3 M
 openoffice.org-langpack-fr  i386      1:2.0.2-5.9.2    installed          36 M
 openoffice.org-langpack-nl  i386      1:2.0.2-5.9.2    installed          31 M
 openoffice.org-math    i386      1:2.0.2-5.9.2    installed        3.1 M
 openoffice.org-writer  i386      1:2.0.2-5.9.2    installed        5.8 M
 openoffice.org-xsltfilter  i386      1:2.0.2-5.9.2    installed        210 k
 redhat-lsb              i386      3.0-9.2          installed          21 k
 rhythmbox              i386      0.9.4.1-1.fc5.1  installed        5.4 M
 sound-juicer            i386      2.14.3-1.fc5.1  installed        1.8 M
 system-config-printer  i386      0.6.151.7-1      installed        2.7 M
 system-config-printer-gui  i386      0.6.151.7-1      installed        712 k
 totem                  i386      1.4.0-2          installed        4.3 M
 xsane-gimp              i386      0.99-2.2.fc5.4  installed        621 k

Transaction Summary
=============================================================================
Install      0 Package(s)
Update      0 Package(s)
Remove      38 Package(s)

So... you think that's the only way ? :confused:

unicornop 05-27-2006 01:20 PM

Nope, even that didn't do it
 
I finally took a deep breath and uninstalled all 38 packages.
And reinstalled CUPS.

Only to find... it's still giving the *same* error !!!!!!!!!!!!!!!!!!!!

Anyone who can help, or point to where I should find help???
:jawa:


All times are GMT -5. The time now is 07:36 PM.