Issue with CUPS printer

I installed and configured CUPS.
The install includes the standard hplip-3.18.4-9.el8.x86_64 and the ppp.gz file from the latest hplip *3.22) as my printer in not included in 3.18
I can add the printer through CUPS admin webpage and also load the above mentioned ppd.gz file.
When I ma trying to print a page I get the following messages:

Feb 13 19:08:30 home cupsd[13138]: HP_ENVY_Pro_6400_series root 5 [13/Feb/2023:19:08:30 +0100] 1 1 - localhost Test Page - -
Feb 13 19:08:30 home cupsd[13138]: HP_ENVY_Pro_6400_series root 5 [13/Feb/2023:19:08:30 +0100] 2 1 - localhost Test Page - -
Feb 13 19:08:38 home cupsd[13138]: [Job 5] The printer may not exist or is unavailable at this time.
Feb 13 19:08:41 home cupsd[13138]: [Job 5] The printer may not exist or is unavailable at this time.

I can access the HP_ENVY_Pro_6400_series printer admin page through my browser with its IP 10.5.2.10.
But but I cannot ping it.

PING 10.5.2.10 (10.5.2.10) 56(84) bytes of data.
From 10.5.2.1 icmp_seq=1 Destination Host Unreachable
From 10.5.2.1 icmp_seq=2 Destination Host Unreachable
From 10.5.2.1 icmp_seq=3 Destination Host Unreachable

Port 631/tcp is open in the firewall and listening:

 netstat -tunlp | grep 631
tcp        0      0 0.0.0.0:631             0.0.0.0:*               LISTEN      13138/cupsd
tcp6       0      0 :::631                  :::*                    LISTEN      13138/cupsd
udp        0      0 0.0.0.0:631             0.0.0.0:*                           13140/cups-browsed```
What is wrong? Thanks for your help.

Wolfgang

I can’t tell for definite what your problem is, but here are two suggestions:

a) Have you checked your firewall allows icmp packets (of which ping is one type) through ?
b) Have you tried connecting your printer to a different computer to check whether it actually ever responds to ping ?

If you do find the answer, I’d be interested to know it.
Thanks, Roger.

Hi Roger,

I am a step closer, but a bit puzzled. I reviewed the config of the printer again and saw that the „Default Gateway“ is blank.

Server side:
I checked /etc/dhcp/dhcpd.conf and would say it is correct. „option routers“ is set
correctly as well as „host HP_ENVY_PRINTER“ to set its static LAN IP address.
Via HP printer admin page I changed the printer’s config to manually set its IP address and Gateway.

My first question is, why does dhcpd.service not set the printers Gateway IP? All other hosts, dynamic IPs of my LAN, work just fine

Now comes a good and a bad news. With setting the IP manually I can actually configure the IP through cups admin webpage and print a test page from the server.
I can also ping the printer now.
Port 631/tcp is open on server and laptop

Printer gets detected:
/usr/lib/cups/backend/snmp 10.5.2.10

network socket://10.5.2.10:9100 "HP ENVY Pro 6400 series" "ENVY Pro 6400 All-in-One Printer series" "MFG:HP;MDL:ENVY Pro 6400 series;CMD:PCL3GUI,PCL3,PJL,Automatic,JPEG,AppleRaster,PWGRaster,PCLM,DW-PCL,802.11,DESKJET,DYN;CLS:PRINTER;DES:5SE47B;CID:HPIJVIPAV4;LEDMDIS:USB#FF#04#01,USB#FF#CC#00;SN:TH0CQ4H05T;S:038888C484000001002c2400064c140003c;Z:05000008000008,12000,17000000000000,181;" ""

lpinfo -l -v

evice: uri = dnssd://HP%20ENVY%20Pro%206400%20series%20%5B9F8B64%5D._ipp._tcp.local/?uuid=b9d22bb6-e64d-50ba-ba1d-930df7562569
        class = network
        info = HP ENVY Pro 6400 series [9F8B64]
        make-and-model = HP ENVY Pro 6400 series
        device-id = MFG:HP;MDL:ENVY Pro 6400 series;FZY:0;CMD:PCL,JPEG,URF,PWG;
        location = 
Device: uri = ipp://HP6C02E09F8B64.local:631/ipp/print
        class = network
        info = HP ENVY Pro 6400 series (driverless)
        make-and-model = HP ENVY Pro 6400 series
        device-id = MFG:HP;MDL:ENVY Pro 6400 series;CMD:PCLM,PCL,PWGRaster,AppleRaster,JPEG,URF,PWG;
        location = 

Observations: location shows blank, but I set location in cups admin page for the printer.

Client side (Fedora Core):
Through settings I can add the printer.
When I print though I get an error message:

Feb 20 18:48:45 laptop-wpr cupsd[924]: REQUEST localhost - - "POST / HTTP/1.1" 200 305 CUPS-Create-Local-Printer successful-ok
Feb 20 18:48:46 laptop-wpr cupsd[924]: REQUEST localhost - - "POST /printers/HP_ENVY_Pro_6400_series_home HTTP/1.1" 200 241 Create-Job successful-ok
Feb 20 18:48:46 laptop-wpr cupsd[924]: REQUEST localhost - - "POST /printers/HP_ENVY_Pro_6400_series_home HTTP/1.1" 200 34231 Send-Document successful-ok
Feb 20 18:48:46 laptop-wpr cupsd[924]: HP_ENVY_Pro_6400_series_home wprauchholz 73 [20/Feb/2023:18:48:46 +0100] total 0 - localhost atividades.odt - -
Feb 20 18:48:46 laptop-wpr cupsd[924]: [Job 73] Backend returned status 4 (stop printer)
Feb 20 18:49:55 laptop-wpr cupsd[924]: [Job 73] Job aborted because the destination printer/class has gone away.

What is wrong?

Thanks, Wolfgang

Wolfgang,

When you say “I can now ping the printer”, do you mean that

ping 10.5.2.10

works, or that

ping HP_ENVY_PRINTER9F8B64.local

works ?

If the former works, but not the latter, it could be something to do
with mDNS resolution. You might like to look at RedHat bugzilla bug
2112013 comments 1 and 4.

Roger.

That is what my server tells me:

[root@home plugins]# ping HP_ENVY_PRINTER9F8B64.local
ping: HP_ENVY_PRINTER9F8B64.local: Name or service not known

[root@home plugins]# ping 10.5.2.10
PING 10.5.2.10 (10.5.2.10) 56(84) bytes of data.
64 bytes from 10.5.2.10: icmp_seq=1 ttl=64 time=2.94 ms
64 bytes from 10.5.2.10: icmp_seq=2 ttl=64 time=4.58 ms
64 bytes from 10.5.2.10: icmp_seq=3 ttl=64 time=3.36 ms
64 bytes from 10.5.2.10: icmp_seq=4 ttl=64 time=3.95 ms

Will check the bug report

Thanks, Woflgang