[SOLVED] printer stopped working

[SOLVED] printer stopped working

Postby griffin » Oct 19th, '15, 10:53

My printer has suddenly and mysteriously stopped working, following some recent software updates. I found this when I tried to print an online pdf document that I'd printed successfully before. It wouldn't print from either Firefox or Chrome. I turned the printer off and back on again, but even with the HP Device Manager it wouldn't even print a simple test page. I tried rebooting the system, and even removed and replaced cups and its dependent packages, but printing is still borked. There was no information in the /var/log/cups/error_log file. However, here is what I found in the systemd journal:
Code: Select all
Oct 19 00:28:07 eris hp[5511]: prnt/backend/hp.c 896: ERROR: null print job total=0
Oct 19 00:28:08 eris cupsd[970]: [Job 131] Unable to open raster stream - : Broken pipe
Oct 19 00:28:08 eris cupsd[970]: [Job 131] Job stopped due to filter errors; please consult the error_log file for details.
* * *
Oct 19 00:29:31 eris kernel: usb 1-2: USB disconnect, device number 3
Oct 19 00:29:31 eris kernel: usblp0: removed
Oct 19 00:29:31 eris kernel: usblp1: removed
Oct 19 00:29:31 eris udev-configure-printer[5663]: remove /devices/pci0000:00/0000:00:0a.1/usb1/1-2
Oct 19 00:29:31 eris colord[806]: device removed: sysfs-HP-Officejet_4630_series
Oct 19 00:29:31 eris colord[806]: (process:5662): CdSane-WARNING **: failed to receive list of devices: Failed to connect to missing device /org/freedesktop/ColorManager/devices/sysfs_HP_Officejet_4630_series
Oct 19 00:29:49 eris kernel: usb 1-2: new high-speed USB device number 4 using ehci-pci
Oct 19 00:29:49 eris kernel: usb 1-2: New USB device found, idVendor=03f0, idProduct=c611
Oct 19 00:29:49 eris kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 19 00:29:49 eris kernel: usb 1-2: Product: Officejet 4630 series
Oct 19 00:29:49 eris kernel: usb 1-2: Manufacturer: HP
Oct 19 00:29:49 eris kernel: usb 1-2: SerialNumber: CN39E1W2QD05Y0
Oct 19 00:29:49 eris kernel: usblp 1-2:1.1: usblp0: USB Bidirectional printer dev 4 if 1 alt 0 proto 2 vid 0x03F0 pid 0xC611
Oct 19 00:29:49 eris kernel: usblp 1-2:1.2: usblp1: USB Bidirectional printer dev 4 if 2 alt 0 proto 2 vid 0x03F0 pid 0xC611
Oct 19 00:29:49 eris colord[806]: Device added: sysfs-HP-Officejet_4630_series
Oct 19 00:29:49 eris colord-sane[5707]: io/hpmud/musb.c 2073: Invalid usb_open: Permission denied
* * *
Oct 19 00:29:49 eris udev-configure-printer[5712]: task-printing-server-2011-8.mga5
Oct 19 00:29:49 eris udev-configure-printer[5712]: ● cups.service - CUPS Scheduler
Oct 19 00:29:49 eris udev-configure-printer[5712]: Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled)
Oct 19 00:29:49 eris udev-configure-printer[5712]: Active: active (running) since Mon 2015-10-19 00:08:14 PDT; 21min ago
Oct 19 00:29:49 eris udev-configure-printer[5712]: Docs: man:cupsd(8)
Oct 19 00:29:49 eris udev-configure-printer[5712]: Main PID: 970 (cupsd)
Oct 19 00:29:49 eris udev-configure-printer[5712]: Status: "Scheduler is running..."
Oct 19 00:29:49 eris udev-configure-printer[5712]: CGroup: /system.slice/cups.service
Oct 19 00:29:49 eris udev-configure-printer[5712]: └─970 /usr/sbin/cupsd -l
Oct 19 00:29:49 eris udev-configure-printer[5712]: Oct 19 00:28:08 eris cupsd[970]: [Job 131] Job stopped due to filter errors; please consult the error_log file for details.
Oct 19 00:29:50 eris colord-sane[5739]: io/hpmud/musb.c 2073: Invalid usb_open: Permission denied
Oct 19 00:29:49 eris udev-configure-printer[5712]: add usb-001-004
Oct 19 00:29:49 eris udev-configure-printer[5712]: device devpath is /devices/pci0000:00/0000:00:0a.1/usb1/1-2
Oct 19 00:29:49 eris udev-configure-printer[5712]: MFG:HP MDL:Officejet 4630 series SERN:CN39E1W2QD05Y0 serial:CN39E1W2QD05Y0
Oct 19 00:29:49 eris udev-configure-printer[5712]: CheckAndInstallDrivers()
Oct 19 00:29:49 eris udev-configure-printer[5712]: CheckInstalledDrivers()
Oct 19 00:29:49 eris udev-configure-printer[5712]: MissingDriver()
Oct 19 00:29:49 eris udev-configure-printer[5712]: FAIL HERE
Oct 19 00:29:49 eris systemd[1]: configure-printer@usb-001-004.service: main process exited, code=exited, status=1/FAILURE
Oct 19 00:29:49 eris systemd[1]: Unit configure-printer@usb-001-004.service entered failed state.
Oct 19 00:29:49 eris systemd[1]: configure-printer@usb-001-004.service failed.

What has systemd (or udev) broken? Help!
Last edited by griffin on Oct 19th, '15, 12:44, edited 1 time in total.
griffin
 
Posts: 100
Joined: Sep 9th, '11, 03:51

Re: printer stopped working

Postby jkerr82508 » Oct 19th, '15, 12:11

Perhaps this bug:
https://bugs.mageia.org/show_bug.cgi?id=16971

If your printer is showing as "stopped" in HP Device Manager - Printer control, have you tried re-starting the printer?

Removing and re-installing the printer seems to be required on some systems.

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: printer stopped working

Postby griffin » Oct 19th, '15, 12:43

That's the bug, alright. Removing and reinstalling the printer instances resolved the problem. I'll mark this solved. Thanks!
griffin
 
Posts: 100
Joined: Sep 9th, '11, 03:51

Re: [SOLVED] printer stopped working

Postby doktor5000 » Oct 19th, '15, 17:40

Do you happen to have a backup of /etc/cups before the update ?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] printer stopped working

Postby griffin » Oct 19th, '15, 18:01

doktor5000 wrote:Do you happen to have a backup of /etc/cups before the update ?

I don't, sorry. I had backed up the Officejet_4630.ppd and Officejet_4630.ppd.O files before I deleted and reinstalled the printer, but once doing that got printing working again, I deleted them. I'd guess they were just like the examples in the bug report, though. The only previous backup of /etc/cups I have is from the Mageia4 release, which is likely far too old.
griffin
 
Posts: 100
Joined: Sep 9th, '11, 03:51

Re: [SOLVED] printer stopped working

Postby griffin » Oct 20th, '15, 02:55

doktor5000 wrote:Do you happen to have a backup of /etc/cups before the update ?

I did find this diff of the two printer configuration files, if that helps:
Code: Select all
[root@eris ram]# diff Officejet_4630.ppd.O Officejet_4630.ppd
3c3
< *%%%% Created by the CUPS PPD Compiler CUPS v1.7.0.
---
> *%%%% Created by the CUPS PPD Compiler CUPS v2.0.2.
6c6
< *FileVersion: "3.13.9"
---
> *FileVersion: "3.14.6"
10c10,11
< *Product: "(HP Officejet 4630 E-all-in-one)"
---
> *Product: "(HP Officejet 4630 E-all-in-one Printer)"
> *Product: "(HP Officejet 4631 E-all-in-one Printer)"
11a13
> *Product: "(HP Officejet 4634 E-all-in-one Printer)"
12a15
> *Product: "(HP Officejet 4636 E-all-in-one Printer)"
16c19
< *NickName: "HP Officejet 4630 Series, hpcups 3.13.9"
---
> *NickName: "HP Officejet 4630 Series, hpcups 3.14.6"
33c36
< *cupsVersion: 1.7
---
> *cupsVersion: 2.0
437c440
< *% End of hp-officejet_4630_series.ppd, 32698 bytes.
---
> *% End of hp-officejet_4630_series.ppd, 32865 bytes.
griffin
 
Posts: 100
Joined: Sep 9th, '11, 03:51

Re: [SOLVED] printer stopped working

Postby banjo » Oct 20th, '15, 04:04

I just had this happen to me tonight. The laser printer stopped working. In the CUPS control panel it said that the print job was stopped because the .ppd file was not accessible, so I looked at the permissions and they looked like this:

Code: Select all
[brian@localhost ppd]$ ll
total 36
-rw-r--r-- 1 root sys 23321 Sep 27 11:38 HP-Deskjet-3510-series.ppd
-rw-r----- 1 root sys 11063 Sep 27 12:32 HP_LaserJet_Professional_P_1102w.ppd
[brian@localhost ppd]$


As root I did

Code: Select all
chmod a+r HP_LaserJet_Professional_P_1102w.ppd


Now the permissions look like this.

Code: Select all
[brian@localhost ppd]$ ll
total 36
-rw-r--r-- 1 root sys 23321 Sep 27 11:38 HP-Deskjet-3510-series.ppd
-rw-r--r-- 1 root sys 11063 Sep 27 12:32 HP_LaserJet_Professional_P_1102w.ppd
[brian@localhost ppd]$


and the printer works again.

Banjo
(_)=='=~
Edit:
BTW, the laser printer was working fine a few days ago. I have no idea how world access got removed, and only for the laser printer.
If only the best bird sang, the forest would be a very quiet place.
User avatar
banjo
 
Posts: 445
Joined: May 4th, '11, 03:50
Location: Reading, Massachusetts

Re: [SOLVED] printer stopped working

Postby doktor5000 » Oct 20th, '15, 19:21

griffin wrote:I did find this diff of the two printer configuration files, if that helps:

Not really, as the PPD content is not at fault, it only describes the output format and capabilities of the print.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] printer stopped working

Postby doktor5000 » Oct 20th, '15, 19:35

banjo wrote:As root I did
Code: Select all
chmod a+r HP_LaserJet_Professional_P_1102w.ppd

and the printer works again.


Hi there, thanks for the feedback. You didn't do any further changes like deleting the printer and reconfiguring it?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] printer stopped working

Postby banjo » Oct 20th, '15, 21:22

Nope. I did not re-install the printer. I just changed the permissions on the ppd file. I didn't even cancel the print job. After changing the permissions, I opened the CUPS control panel and told the job to try printing again and it printed.

Later I tried printing on a different user, and it also worked fine.

The HP-3510, our other printer, continued to work during this event. As you can see in the previous post, the permissions on HP-Deskjet-3510-series.ppd were not changed.

Banjo
(_)=='=~
If only the best bird sang, the forest would be a very quiet place.
User avatar
banjo
 
Posts: 445
Joined: May 4th, '11, 03:50
Location: Reading, Massachusetts

Re: [SOLVED] printer stopped working

Postby doktor5000 » Oct 20th, '15, 22:22

Thanks for the feedback, I'll try to submit a new update candidate with a potential fix for the issue you mentioned.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Printers and Scanners

Who is online

Users browsing this forum: No registered users and 1 guest

cron