You are not logged in.

#1 2020-10-08 11:06:34

mpausch
Member
Registered: 2009-01-02
Posts: 24

[solved/workaround] print to remote CUPS server doesn't work anymore

My printer doesn't have a network interface so I connected it via USB to a Raspberry Pi running Raspbian.
CUPS on the Raspi is setup to share printer in the local network.
So in the past I was able to print from my Arch Linux box via HTTP/IPP to that printer.

Today I found out that I can't print from my Archlinux box anymore.

Raspi has IP 192.168.178.101 (maggie)
Archlinux has IP 192.168.178.2 (bart)


In the Archlinux CUPS error_log ( https://paste.ubuntu.com/p/3dK8GtYqB8 ) I couldn't find anything obvious.
(I started cups with an empty error_log, tried to print one page and stopped cups )

the access_log from Archlinux says:

localhost - - [08/Oct/2020:12:27:52 +0200] "POST /printers/HPF4224_Maggie HTTP/1.1" 200 557 Create-Job successful-ok
localhost - - [08/Oct/2020:12:27:52 +0200] "POST /printers/HPF4224_Maggie HTTP/1.1" 200 144252 Send-Document successful-ok

---> but printer didn't print anything...

In the CUPS logfiles on Raspi there aren't any log entries at this time :-(


with

 tcpdump -n -i eth0 host maggie and port not 22 

I tried to find out what is sent between the 2 hosts:

12:27:52.099459 IP 192.168.178.2.57534 > 192.168.178.101.161:  GetRequest(28)  .1.3.6.1.2.1.25.3.2.1.3.1
12:27:52.166683 IP 192.168.178.101 > 192.168.178.2: ICMP 192.168.178.101 udp port 161 unreachable, length 79
12:27:54.101665 IP 192.168.178.2.57534 > 192.168.178.101.161:  GetRequest(28)  .1.3.6.1.2.1.43.5.1.1.2.1
12:27:54.106789 IP 192.168.178.101 > 192.168.178.2: ICMP 192.168.178.101 udp port 161 unreachable, length 79

---> so CUPS on Archlinux definitely didn't send any print document to Raspberry Pi, otherwise I would see much more traffic...

Last edited by mpausch (2020-10-11 21:30:04)

Offline

#2 2020-10-08 11:20:44

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [solved/workaround] print to remote CUPS server doesn't work anymore

12:27:52.166683 IP 192.168.178.101 > 192.168.178.2: ICMP 192.168.178.101 udp port 161 unreachable, length 79

UDP port 161 is used for SNMP , which is used for several things. One of them is detecting what printers are available on the network.

It looks like one of the 2 systems blocks snmp, possibly due to firewall settings.
(I don't know tcpdump well enough to determine sender / receiver from that output) .

Last edited by Lone_Wolf (2020-10-08 11:21:12)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2020-10-08 12:02:58

mpausch
Member
Registered: 2009-01-02
Posts: 24

Re: [solved/workaround] print to remote CUPS server doesn't work anymore

there's no firewall active on both hosts and also no firewall between both hosts.

12:27:52.099459 IP 192.168.178.2.57534 > 192.168.178.101.161:  GetRequest(28)  .1.3.6.1.2.1.25.3.2.1.3.1
12:27:52.166683 IP 192.168.178.101 > 192.168.178.2: ICMP 192.168.178.101 udp port 161 unreachable, length 79

The first packet (SNMP request) is from Archlinux to Raspi.
The second one is the response from Raspi, that there's no service listening on UDP port 161.
I never had a SNMP service running on my Raspi, so this wasn't an issue in the past...

Regarding to the CUPS logs the last time I was able to print was on 24th september.
After this there was no update of CUPS on Raspi.
But an update of cups-filters on Archlinux -> pacman.log: upgraded cups-filters (1.28.2-1 -> 1.28.3-1)

Already downgraded cups-filters to the old version. But this also didn't solve my issue :-(

Offline

#4 2020-10-09 09:38:27

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [solved/workaround] print to remote CUPS server doesn't work anymore

It's offcourse possible the udp 161 port was also unreachable when printing still worked.

Try printing directly to the server / port the printer is on from commandline using lpr -H command .

Last edited by Lone_Wolf (2020-10-09 09:39:39)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2020-10-09 20:47:11

mpausch
Member
Registered: 2009-01-02
Posts: 24

Re: [solved/workaround] print to remote CUPS server doesn't work anymore

with lpr -H 192.168.178.101:631 somefile I can print, but only text files...
At least I don't see any SNMP requrests ;-)

Offline

#6 2020-10-10 09:39:50

seth
Member
Registered: 2012-09-03
Posts: 49,954

Re: [solved/workaround] print to remote CUPS server doesn't work anymore

Can you also print pdf files this way (using lp or lpr)?
USE A SIMPLE ONE for testing, if it's printed as text, there goes your ink/toner…

If yes, how do you usually "print from my Archlinux box" that fails now?
Can whatever that thing is print to eg. a local https://www.archlinux.org/packages/extr … /cups-pdf/ backend?

Also reveal which system is Homer.

Online

#7 2020-10-11 21:28:53

mpausch
Member
Registered: 2009-01-02
Posts: 24

Re: [solved/workaround] print to remote CUPS server doesn't work anymore

Could isolate the problem a little further in the meantime.
The failing print was a PDF file that I wanted to print with KDE Okular.

Today I tried to print a simple text from LibreOffice and this worked.
Then tried to print other PDFs with Okular, which also worked.

So maybe it's not a CUPS issue but maybe more a "PDF2whatever" issue and I was too much focussed on the SNMP requests.
The SNMP requests btw are also sent (and also don't get replied) when I print e.g. from LibreOffice...

As "solution" I found a workaround by selecting "rasterization mode" in the Okular print dialog.
(And maybe some day I will have time to dig a little deeper into the issue why some PDFs can't be printed ;-)    )

Thanks for your support and efforts.

P.S.: I think I named my notebook, which runs Fedora, Homer... :-)

Offline

#8 2020-10-11 21:41:39

dahikino
Member
Registered: 2020-10-11
Posts: 9

Re: [solved/workaround] print to remote CUPS server doesn't work anymore

lpinfo -m  and lpinfo -v  output ?

Offline

#9 2020-10-11 21:56:47

seth
Member
Registered: 2012-09-03
Posts: 49,954

Re: [solved/workaround] print to remote CUPS server doesn't work anymore

Can you share the failing PDF?

Online

#10 2020-10-14 18:45:00

mpausch
Member
Registered: 2009-01-02
Posts: 24

Re: [solved/workaround] print to remote CUPS server doesn't work anymore

seth wrote:

Can you share the failing PDF?

sorry, can't share the PDF as it contains personal data

Offline

Board footer

Powered by FluxBB