You are not logged in.

#1 2025-03-24 18:54:48

jorgenwiki
Member
Registered: 2024-04-01
Posts: 25

HP Color LaserJet Pro MFP 4302 show as printer but not (air)printing

I installed cups and the cups airprint driver.
In LibreOffice or Firefox the printer is found automatically. Also the Avahi-daemon works fine and the printer is seen. But when I printed nothing happened.
Now I installed via cups the printer (it was automatiically found) via the webinterface, so I can print, but in the future other backends are dropped.

What did I do wrong, trying to use an airprint printer out of the box? Do I misinterpreted something?

I dropped the firewall temporarily
Airprint is working on a Linux Mint installation out of the box
Checked for errors with cups or Avahi via journalctl.

Any Ideas?


The arch installation instructions says:
AirPrint and IPP Everywhere
CUPS includes support for AirPrint and IPP Everywhere printers. These should be discovered automatically if avahi-daemon.service is running without any extra configuration.


They are discovered but not printing without installing something in cups.


This is /var/log/cups/error_log of today:
W [24/Mar/2025:17:34:44 +0100] [Job 18] Backend ipps returned status 4 (stop printer)
E [24/Mar/2025:17:41:01 +0100] [Job 18] Unable to queue job for destination "HP_Color_LaserJet_Pro_MFP_4302_E08B3B".
W [24/Mar/2025:17:42:02 +0100] [Job 19] Backend ipps returned status 4 (stop printer)
W [24/Mar/2025:17:47:41 +0100] [Job 19] Backend ipps returned status 4 (stop printer)
E [24/Mar/2025:17:52:47 +0100] [Job 19] Job aborted because the destination printer/class has gone away.
E [24/Mar/2025:17:52:47 +0100] [Job 20] Job aborted because the destination printer/class has gone away.
W [24/Mar/2025:18:09:37 +0100] [Job 23] Backend ipps returned status 4 (stop printer)
E [24/Mar/2025:18:14:44 +0100] [Job 23] Job aborted because the destination printer/class has gone away.
E [24/Mar/2025:18:14:44 +0100] [Job 24] Job aborted because the destination printer/class has gone away.
E [24/Mar/2025:18:14:44 +0100] [Job 25] Job aborted because the destination printer/class has gone away.
E [24/Mar/2025:18:25:10 +0100] [Client 92] pam_authenticate() returned 7 (Authentication failure)
W [24/Mar/2025:18:53:03 +0100] [Job 26] Backend ipps returned status 4 (stop printer)
E [24/Mar/2025:18:58:09 +0100] [Job 26] Job aborted because the destination printer/class has gone away.
W [24/Mar/2025:19:14:48 +0100] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'HP_Color_LaserJet_Pro_MFP_4302_E08B3B-Gray..\' already exists
W [24/Mar/2025:19:14:48 +0100] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'HP_Color_LaserJet_Pro_MFP_4302_E08B3B-DeviceN..\' already exists


The troubleshooting site has as paragraph: Unable to locate printer
Even if CUPS can detect networked printers, you may still end up with an "Unable to locate printer" error when trying to print something. The solution to this problem is to enable Avahi's .local hostname resolution. See CUPS#Network for details.
This problem may also arise when you have a firewall. You may need to disable your firewall or set the right rules. Using system-config-printer to detect network printers will do that automatically.
Similarly, being connected to a VPN may also cause CUPS to be unable to locate the printer. Disabling any VPN connections temporarily for printing can help fixing it.

I use Wireguard and I have I firewall (but I set it also on trusted when testing). I like to keep both in place of course...

Last edited by jorgenwiki (2025-03-24 19:13:50)

Offline

#2 2025-03-24 20:08:39

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,357

Re: HP Color LaserJet Pro MFP 4302 show as printer but not (air)printing

Did you change /etc/nsswitch.com with the changed line as in https://wiki.archlinux.org/title/Avahi# … resolution ?


Mike C

Offline

#3 2025-03-25 06:44:42

jorgenwiki
Member
Registered: 2024-04-01
Posts: 25

Re: HP Color LaserJet Pro MFP 4302 show as printer but not (air)printing

Did you change /etc/nsswitch.com with the changed line as in https://wiki.archlinux.org/title/Avahi# … resolution ?

I think I did that alright:

I've installed nss-mdns and /etc/nsswitch.conf looks like this:

# Name Service Switch configuration file.
# See nsswitch.conf(5) for details.

passwd: files systemd
group: files [SUCCESS=merge] systemd
shadow: files systemd
gshadow: files systemd

publickey: files

hosts: mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] files myhostname dns
networks: files

protocols: files
services: files
ethers: files
rpc: files

netgroup: files

I find it rather confusing, I think I might miss the concept:
if you got a printer in the old days no driver / backend --> no printer visible and available.
now: printer appears automatically in printing menus but won't work --> cups (the motorblock of printing) does not have the printer listed that is already in all the menus --> what the hack?

I fixed it manually in the cups website:
1. Find printers finds without delay the printer
2. Click the printer
3. Then it asks what kind of printer it is: I had to select HP and model etc (info that was not really much more than the already detected printer).
4. So it looked to my that it was installing a backend/driver and was disappointed because it would get obsolete: every thing will be airprint.

Last night I looked in the printer description and saw that the "installed" printer is driverless. This says cups:

Description:	HP Color LaserJet Pro MFP 4302
Location:	Local Printer
Driver:	HP Printer, driverless, 2.1.1 (color, 2-sided printing)
Connection:	dnssd://HP%20Color%20LaserJet%20Pro%20MFP%204302%20%5BE08B3B%5D._ipp._tcp.local/?uuid=0d37ce18-4965-4e8d-94a1-58e6e3579e74
Defaults:	job-sheets=none, none media=iso_a4_210x297mm sides=two-sided-long-edge

So I had to tell cups that there was a printer, that cups and  the system already detected, and that printer did not need a driver at all so nothing is really installed? I don't get it.

Last edited by jorgenwiki (2025-03-25 06:55:29)

Offline

#4 2025-03-25 08:10:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,085

Re: HP Color LaserJet Pro MFP 4302 show as printer but not (air)printing

https://www.pwg.org/printers/
HP Color LaserJet Pro MFP 4302dw/4302dwe/4302fdn/4302fdne/4302fdw/4302fdwe all support IPP everywhere, the latter requires https://archlinux.org/packages/extra/x86_64/cups-pdf/ for proper function.

lpstat -s

Offline

Board footer

Powered by FluxBB