[Bug 230326] New: Cups all messed up after Yast2 printer crash.
https://bugzilla.novell.com/show_bug.cgi?id=230326 Summary: Cups all messed up after Yast2 printer crash. Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Printing AssignedTo: jsmeix@novell.com ReportedBy: 178155@glocalnet.net QAContact: jsmeix@novell.com I have a HP OfficeJet Pro 1150C parallel printer which has worked fine in SL 10, SL10.1 and in OS 10.2 until I started Yast2-printer yesterday to edit the network settings. Yast2-printer started to update the printer database and hanged at 4 % as described in bug 214265. I had to reboot the machine since Yast2-printer didn't answer to any commands. After that Cups seemed completely screwed up, http://localhost:631 reports "404 Not Found". So I decided to completely reinstall Cups and went on as described here: http://en.opensuse.org/SDB:CUPS_-_Reinstalling_the_Printing_System. Unfortunately that didn't help much. I went on and search for more info and then found bug 214265, as I mentioned above, and deleted the file /var/lib/YaST2/ppd_db.ycp. After that the problem with Yast2-printer was solved, the module started alright and detected my printer. When the printer was configured I tried to print a test page but it never started... I can print directly to the printer with i.eg. "echo -en "\rHello\r\f"
/dev/lp0" so the printer is working fine, my conclusion still is that something is messed up with Cups.
After enabling "Log level debug" in /etc/cups/cupsd.conf and restarted cupsd I once again went to http://localhost:631 which still reports "404 Not Found" and then tried http://localhost:631/printers. Now there is a page with my printer but the page looks very strange, no pictures, no buttons and no color. Went on and tried to print a test page from there, Cups reported something about not having permission to lp0? I have tried to find out whats wrong by reading the generated cups error_log but it's a bit over my head I'm afraid.. Hopefully the attached error_log is of some help for you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230326 ------- Comment #1 from 178155@glocalnet.net 2006-12-21 12:15 MST ------- Created an attachment (id=110740) --> (https://bugzilla.novell.com/attachment.cgi?id=110740&action=view) /var/log/cups/error_log -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230326 jsmeix@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #110740|application/octet-stream |text/plain mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230326 jsmeix@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME ------- Comment #2 from jsmeix@novell.com 2006-12-22 02:16 MST ------- You wrote "tried http://localhost:631/printers. Now there is a page with my printer but the page looks very strange, no pictures, no buttons" which indicates a somehow messed up CUPS installation. I know about such problems when a new CUPS installation is used with an old /etc/cups/cupsd.conf file (e.g. after an CUPS update from a older version). In particular because since openSUSE 10.2 we have CUPS 1.2.x which is somewhat incompatible to CUPS 1.1.x which we has before, I recomend to use the original /etc/cups/cupsd.conf from our CUPS 1.2 packages and not an old one. Your /var/log/cups/error_log shows the following errors: (use "grep ^E /var/log/cups/error_log"): ---------------------------------------------------------------------------- E [21/Dec/2006:18:59:36 +0100] Unable to open listen socket for address ::1:631 - Address family not supported by protocol. ---------------------------------------------------------------------------- This indicates that your system has IPv6 support but IPv6 has not been enabled for any interfaces. On my default installation of openSUSE 10.2 there are no such problems. Check your network setup. You can ignore this error message when you use only the traditional IPv4 addresses. ---------------------------------------------------------------------------- E [21/Dec/2006:19:00:13 +0100] [Job 36] Unable to open parallel port device file "/dev/lp0": Permission denied ---------------------------------------------------------------------------- This is the reason why nothing can be sent to your printer. This causes the subsequent error messages ---------------------------------------------------------------------------- E [21/Dec/2006:19:00:13 +0100] PID 13794 (/usr/lib/cups/backend/parallel) stopped with status 1! E [21/Dec/2006:19:00:30 +0100] PID 13793 (/usr/lib/cups/filter/foomatic-rip) stopped with status 9! ---------------------------------------------------------------------------- Check the permissions of /dev/lp0 On my default installation of openSUSE 10.2 it is: crw-rw---- 1 root lp 6, 0 ... /dev/lp0 Both are neither problems in CUPS nor in YaST. It works for me with a default installation of openSUSE 10.2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230326 ------- Comment #3 from 178155@glocalnet.net 2006-12-22 03:21 MST ------- Thank's for your reply. You wrote: " I know about such problems when a new CUPS installation is used with an old /etc/cups/cupsd.conf file (e.g. after an CUPS update from a older version)." As I wrote I have made a complete re installation of Cups according to the instructions at http://en.opensuse.org/SDB:CUPS_-_Reinstalling_the_Printing_System including removing everything in the /etc/cups/ folder with "rm -r /etc/cups/*". Also I did not upgrade from SL 10.1, I did a complete new installation. I cannot understand how my /etc/cups/cupsd.conf fil can be old? When I reinstalled Cups according from instructions mentioned above I however chosed the updated version 1.2.3-3.2 from the update repository. Maybe I should have chosen the original 1.2.7-3.2 instead? I will test to reinstall once more today this time installing the original Cups version instead. If it works with the original one it would indicate a bug in the updated version, wouldn't it? Also the cups web interface worked fine a couple of days ago, probably before the upgrade of cups.. I did disable IPv6 during installation of OS 10.2 since I have no use for it. If I understood correctly this is not a problem. My permission of /dev/lp0 when I use the "ls -l lp0" command: crw-rw---- 1 root lp 6, 0 22 dec 11.09 lp To me they look the same as your permissions? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230326 ------- Comment #4 from jsmeix@novell.com 2006-12-22 03:31 MST ------- I assumed that your /etc/cups/cupsd.conf is up to date. I only wanted to tell you from which situation I know about such kind of problems. Both the updated version 1.2.3-3.2 from the update repository and the "what is in the box" version of openSUSE 10.2 should work o.k. (and do it at least for me). Nevertheless attach your cupsd.conf as mime type "text/plain" to this bug so that I can have a look. As far as I know disabled IPv6 is no problem. I do not understand why you get "permission denied". Your permissions look perfectly o.k. Nevertheless, try out if it works with totally open permissions: chmod a+rw /dev/lp0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230326 ------- Comment #5 from jsmeix@novell.com 2006-12-22 03:35 MST ------- Created an attachment (id=110867) --> (https://bugzilla.novell.com/attachment.cgi?id=110867&action=view) cupsd.conf.default For reference here a cupsd.conf as it comes "out of the box" for openSUSE 10.2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230326 178155@glocalnet.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | ------- Comment #6 from 178155@glocalnet.net 2006-12-22 03:47 MST ------- Did a complete uninstall of cups, then installed the original version 1.2.3-3.2 from repository. Now the webbinterface works and I can add my printer and print a test page. Since my conclusion of this is that the resent upgrade of Cups from your update repository caused this problems I reopen this bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230326 ------- Comment #7 from 178155@glocalnet.net 2006-12-22 03:56 MST ------- FYI when I now started Yast2-printer again it stopped at 4% when updating the database. I had to delete /var/lib/YaST2/ppd_db.ycp once again to get it to work. I am sorry to say that my old cupsd.conf file was lost when I uninstalled cups so I cannot upload it to you. :-( -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230326 jsmeix@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |DUPLICATE ------- Comment #8 from jsmeix@novell.com 2006-12-22 04:13 MST ------- The currently provided update for CUPS is incomplete. Only the package cups is public available but not the crucial base package cups-libs so that after the update you run a new cups on top of an old library. See bug #227205, in particular see https://bugzilla.novell.com/show_bug.cgi?id=227205#c22 and the further comments there. I close this one as a duplicate of bug #227205 even if it is not a duplicate of the original problem described in bug #227205 but it is caused because we made incomplete CUPS update packages public available because of bug #227205. *** This bug has been marked as a duplicate of bug 227205 *** -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230326 jsmeix@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |iron.bone@wp.pl ------- Comment #9 from jsmeix@novell.com 2007-01-02 04:50 MST ------- *** Bug 231166 has been marked as a duplicate of this bug. *** -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230326 ------- Comment #10 from iron.bone@wp.pl 2007-01-02 08:06 MST ------- (In reply to comment #0) .
After enabling "Log level debug" in /etc/cups/cupsd.conf and restarted cupsd I once again went to http://localhost:631 which still reports "404 Not Found" and then tried http://localhost:631/printers. Now there is a page with my printer but the page looks very strange, no pictures, no buttons and no color. Went on and tried to print a test page from there, Cups reported something about not having permission to lp0?
I have had the same. The sollution is there is do subdirectory doc in /usr/share/cups/ Make a link to /usr/share/packages/cups -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com