On 1/5/21 8:21 AM, Daniel Morris wrote:
[sorry my mistake not copying the support list the first time]
On Mon, Jan 04, 2021 at 08:35:39PM -0500, Doug McGarrett wrote:
On 1/4/21 5:35 PM, Daniel Morris wrote:
Hi Doug,
On Mon, Jan 04, 2021 at 04:00:42PM -0500, Doug McGarrett wrote:
Have two printers--HP and Epson--which were both working. Was looking at a pdf in Okular, and tried to print it using the little printer icon in the panel. It showed four items in the print queue, which I can't account for, but I think I got rid of them with the options available. Would not print. Tried the other printer, same routine, won't print. Now tried printing with each printer from a text in Kate. Neither printer will print. No error message. The Epson has a scanner function, and that still works. Maybe there are jobs stuck in the queues or something's gone wobbly with a filter.
$ lpq -a
will show all the print queues and maybe give you a hint
and as it sounds like you've already found you can cancel individual and bulk jobs using the 'cancel' command
But the easiest way is usually to connect to your own machine and look at what CUPS thinks is going on. Just launch a browser and connect to port 631 on your machine by entering this into the address bar:
localhost:631
You might be prompted to login with the root password to that page.
Usually you can navigate at the top of the page to "Printers" and "Jobs" to work out what's going on.
I guess you'll probably have two print queues setup, one for the Epson & one for the HP. In the "Printers" tab see what the "Status" field says.
If you click on the name of the print queue, you'll have two drop-downs for "Maintenance" & "Administration". Sometimes you might just need to "Resume" a printer (under Maintenance) if it had a temporary fault, such as out of paper, jammed or a door open etc. I think the default config waits for an admin to intervene if there's a fault - logical in a big/corporate setup but quite irritating when the printer is sat at the other end of your desk and you can see it ran out of paper and now have to launch a browser and login and tell CUPS to tell the printer to resume.
Resist making changes under Administration at this stage, if both printers worked before then it's a bit odd that the two have stopped together, but not unknown (typically file permissions or broken filters). If your printers are hooked up via ethernet and your network/router has re-assigned their addresses (DHCP) then that can cause this kind of breakage. As can forgetting that you (or someone else) unplugged/re-routed the USB/Ethernet cables when tidying the desk before Christmas.
Daniel
In cups, "Resume Printer" Unable to do maintenance command: Forbidden Cups -Show active jobs--none listed.
So was the status of the Printer "paused" to begin with? That error message seems to suggest you haven't logged into CUPS (via the broswer) with sufficient/root privileges to allow a resume.
If not paused, what happens if you try to Pause the printer from the Maintenance dropdown?
Do the Driver and Connection details under the Printer tab look sensible? eg, in the browser (localhost:631) I click Printers from heading, then click on the Queue Name Photosmart_5520 to see the following (below the Maintenance & Administration dropdown buttons):
Description: HP Photosmart 5520 Location: corner of lounge Driver: HP Photosmart 5520 Series hpijs, 3.13.10 (color, 2-sided printing) Connection: hp:/net/Photosmart_5520_series?ip=192.168.1.65 Defaults: job-sheets=none, none media=iso_a4_210x297mm sides=one-sided
The jobs that wouldn't print are shown as cancelled. One of them says "Filter failed" but the others don't. (Just looking at one printer at that point.)
Seems to be the same for all four listings. ( Each printer is, and has been, listed twice with slightly different settings--both used to work, at either setting.)
I got the printers to work from a different computer, so it's OK on that end, apparently. That tells me that the router has not reassigned DHCP. (Both printers have fixed addresses.)
I'm kind of snowed at this point. --doug
Don't despair, now you can dig in.
Do you have enough disk space where the filter and print queue will be spooling data:
$ df -h
doug@linux1:~> df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 7.7G 0 7.7G 0% /dev tmpfs 7.7G 77M 7.6G 1% /dev/shm tmpfs 3.1G 1.7M 3.1G 1% /run tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup /dev/nvme0n1p6 89G 15G 70G 17% / tmpfs 7.7G 4.0K 7.7G 1% /tmp /dev/nvme0n1p7 197G 18G 170G 10% /home /dev/nvme0n1p1 252M 31M 222M 12% /boot/efi tmpfs 1.6G 80K 1.6G 1% /run/user/1000
Check your journal for cups related messages:
$ journalctl -u cups
doug@linux1:~> journalctl -u -q cups Hint: You are currently not seeing messages from other users and the system. Users in the 'systemd-journal' group can see all messages. Pass -q to turn off this notice. Failed to add match 'cups': Invalid argument doug@linux1:~> journalctl -u cups -q doug@linux1:~>
There's also the classic error_log, access_log & page_log files under /var/log/cups:
$ less /var/log/cups/error_log
(or viewable from the browser under Administration->Server section)
Using those logs can you narrow down when the printing stopped working? Has a system change or update caused the breakage? Using rpm to see which packages have been installed or updated might be helpful:
$ rpm -qa --last |less I ran a system update just before Christmas, and that file is humongous! But I'm pretty sure I must have printed something since then. Also, both versions of each of the two printers have stopped working. The fault started when I tried to use the printer icon in the panel to
too long. tail is better: linux1:/home/doug # tail -20 /var/log/cups/error_log W [04/Jan/2021:03:06:38 -0500] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files W [04/Jan/2021:03:06:38 -0500] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files W [04/Jan/2021:03:06:38 -0500] CreateDevice failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files W [04/Jan/2021:03:06:38 -0500] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files W [04/Jan/2021:03:06:38 -0500] CreateDevice failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files W [04/Jan/2021:03:06:38 -0500] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files W [04/Jan/2021:03:06:38 -0500] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files W [04/Jan/2021:03:06:38 -0500] CreateDevice failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files E [04/Jan/2021:20:03:04 -0500] [Client 8123] Returning HTTP Forbidden for Cancel-Jobs (ipp://localhost/printers/) from localhost E [04/Jan/2021:20:08:48 -0500] [Client 8643] Returning HTTP Forbidden for Cancel-Jobs (ipp://localhost/printers/epson) from localhost E [04/Jan/2021:20:13:14 -0500] [Client 8672] Returning IPP client-error-attributes-or-values-not-supported for Get-Jobs (ipp://localhost:631/printers/HP_LaserJet_Pro_M201dw) from localhost. E [04/Jan/2021:20:14:27 -0500] [Client 8685] Returning HTTP Forbidden for Resume-Printer (ipp://localhost/printers/HP_LaserJet_Pro_M201dw) from localhost E [04/Jan/2021:20:15:56 -0500] [Client 8694] Returning IPP client-error-not-possible for Cancel-Job (ipp://localhost/jobs/154) from localhost. E [04/Jan/2021:20:19:14 -0500] [Client 8717] Returning HTTP Forbidden for Cancel-Jobs (ipp://localhost/printers/HP_LaserJet_Pro_M201dw) from localhost E [04/Jan/2021:20:20:32 -0500] [Client 8729] Returning HTTP Forbidden for Resume-Printer (ipp://localhost/printers/epson) from localhost E [04/Jan/2021:20:21:18 -0500] [Client 8736] Returning HTTP Forbidden for Resume-Printer (ipp://localhost/printers/epson) from localhost E [04/Jan/2021:20:22:12 -0500] [Client 8741] Returning HTTP Forbidden for Cancel-Jobs (ipp://localhost/printers/epson) from localhost E [04/Jan/2021:20:24:08 -0500] [Client 8749] Returning HTTP Forbidden for Resume-Printer (ipp://localhost/printers/epson) from localhost E [05/Jan/2021:12:44:16 -0500] [Client 8840] Returning IPP client-error-not-possible for Cancel-Job (ipp://localhost/jobs/159) from localhost. E [05/Jan/2021:12:59:37 -0500] [Client 8901] Returning HTTP Forbidden for Resume-Printer (ipp://localhost/printers/EPSON_WP_4530_Series) from localhost print a pdf file showing on the screen, and it said, if I remember, "print queue 4" and "paused" (I don't have that exactly.) I logged into cups using http://localhost:631/admin and things are still forbidden Some years ago in a different system, I seem to remember having to use a password IN CUPS to do anything there, but I'm not seeing that now. I'd try and reinstall the printers, but I had a terrible time getting them installed in the first place! And that might not work anyway. The problem seems to be in cups. I appreciate your trying to help. I'm missing something, but I don't know what. --doug
Hopefully you can work out what's gone wrong and then know what to fix.
Daniel