LAN printing hell on 20.04 (UPnP VS mDNS? Or maybe IPv4 vs IPv6??)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cups (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
I have been experiencing this problem for at least 2 LTS versions I believe and it concerns and issue with a LAN printer. I am still not quite too sure if it involves a happy mix-up of TCPvsmDNSvsuPnP and|or if it's a lpstat VS GUI binary setting and|or ??
Anyways, when using 20.04 fully patched(and also possibly not) while using a LAN printer there seems to be a "duplicated-
For example:
$ lpstat -p
printer Samsung_
$
And MATE agrees with that (See attachment "1.jpg")
But when using Atril (See "2.jpg") or LOWriter (See "3.jpg") (or any other binary such as firefox) the story isn't so clear.
That brought me back to this:
$ lpstat -p
lpstat: No destinations added.
$
And MATE still agrees with that (See "4.jpg")
Yet LOWriter (and co) seemed a bit still challenged (See "5.jpg")
Anyways, time to delete everything and readd. But why are there 2x choices? (See "6.jpg")
Looking carefully at both entries, I believe that one is the TCP socket (See "7.jpg") while the 2nd one is via SSDP/UPnP (See "8.jpg").
But anyways, I always go for the TCP entry and that's done (See "9.jpg").
$ lpstat -p 1 ↵
printer Samsung-C460 is idle. enabled since Fri 19 Jun 2020 02:36:42 PM
$
And MATE again agrees (See "10.jpg")
Yaaay! Time to print out that SOB, so let's go back into Atril and print it (See "11.jpg")
Nothing surprising there: the old ghosted/MAC addressed profile still shows.
But did printing on the newly added via TCP one actually worked? YES! This time it did. Why this time? Because in other times it will just die in the spoiler and have me started back at the very beginning of this ticket.
Also, a major point of interest is: after having readded the printer, notice how lpstat named it, it was "Samsung-C460". Well, if/when I'll reboot the system, that simple name will be gone and will have been changed to "Samsung-
From the printer's perspective, here is what's opened on it:
PORT STATE SERVICE VERSION
80/tcp open http Samsung SyncThru Web Service
|_http-favicon: Unknown favicon MD5: 10E320BB701D0D0
| http-methods:
|_ Supported Methods: GET POST
| http-robots.txt: 1 disallowed entry
|_*
|_http-title: Site doesn't have a title (text/html; charset=utf-8).
427/tcp open svrloc?
515/tcp open printer?
| fingerprint-
| TerminalServerC
|_ PortThru lpd: No Jobs on this queue
631/tcp open http Samsung SyncThru Web Service
|_http-favicon: Unknown favicon MD5: 10E320BB701D0D0
| http-methods:
|_ Supported Methods: GET POST
|_http-title: Site doesn't have a title (text/html; charset=utf-8).
5200/tcp open targus-getdata?
| fingerprint-
| DNSStatusReques
| HTTP/1.1 405 Method Not Allowed
| Connection: close
|_ Server: ESWeb/0.5
9100/tcp open jetdirect?
10001/tcp open scp-config?
Here's what /var/log/
E [19/Jun/
E [19/Jun/
E [19/Jun/
E [19/Jun/
E [19/Jun/
E [19/Jun/
E [19/Jun/
E [19/Jun/
E [19/Jun/
E [19/Jun/
E [19/Jun/
E [19/Jun/
E [19/Jun/
E [19/Jun/
E [18/Jun/
W [18/Jun/
W [18/Jun/
The last thing I think I need to mention about this is that IPv6 is disabled on both my system and on the printer.
net.ipv6.
net.ipv6.
net.ipv6.
tags: | added: focal |
summary: |
- LAN printing hell on 20.04 (UPnP VS mDNS?) + LAN printing hell on 20.04 (UPnP VS mDNS? Or maybe IPv4 vs IPv6??) |
no longer affects: | ubuntu-mate |
Using Eye of MATE to print, sometimes it works, sometimes it does not, yet they are all the same file types and content.
/var/log/ cups/error_ log :
E [13/Sep/ 2020:00: 00:01 -0400] Unknown directive BrowseOrder on line 24 of /etc/cups/ cupsd.conf. 2020:00: 00:01 -0400] Unknown directive BrowseAllow on line 25 of /etc/cups/ cupsd.conf. 2020:00: 00:01 -0400] Unknown browse protocol "CUPS" ignored. 2020:00: 00:01 -0400] Unknown directive BrowseAddress on line 27 of /etc/cups/ cupsd.conf. 2020:00: 00:01 -0400] No limit for Validate-Job defined in policy default and no suitable template found. 2020:00: 00:01 -0400] No limit for Cancel-Jobs defined in policy default - using Pause-Printer's policy. 2020:00: 00:01 -0400] No limit for Cancel-My-Jobs defined in policy default - using Send-Document's policy. 2020:00: 00:01 -0400] No limit for Close-Job defined in policy default - using Send-Document's policy. 2020:00: 00:01 -0400] No JobPrivateAccess defined in policy default - using defaults. 2020:00: 00:01 -0400] No JobPrivateValues defined in policy default - using defaults. 2020:00: 00:01 -0400] No SubscriptionPri vateAccess defined in policy default - using defaults. 2020:00: 00:01 -0400] No SubscriptionPri vateValues defined in policy default - using defaults. 2020:00: 00:01 -0400] No limit for Validate-Job defined in policy authenticated - using Print-Job's policy. 2020:00: 00:01 -0400] No limit for Cancel-Jobs defined in policy authenticated - using Pause-Printer's policy. 2020:00: 00:01 -0400] No limit for Cancel-My-Jobs defined in policy authenticated - using Send-Document's policy. 2020:00: 00:01 -0400] No limit for Close-Job defined in policy authenticated - using Send-Document's policy. 2020:00: 00:01 -0400] No JobPrivateAccess defined in policy authenticated - using defaults. 2020:00: 00:01 -0400] No JobPrivateValues defined in policy authenticated - using defaults. 2020:00: 00:01 -0400] No SubscriptionPri vateAccess defined in policy authenticated - using defaults. 2020:00: 00:01 -0400] No SubscriptionPri vateValues defined in policy authenticated - using defaults. 2020:00: 00:01 -0400] Unable to open listen socket for address [v1.::1]:631 - Cannot assign requested address. 2020:15: 55:32 -0400] [Job 9] File \'\' not found 2020:15: 57:12 -0400] Unknown directive BrowseOrder on line 24 of /etc/cups/ cupsd.conf. 2020:15: 57:12 -0400] Unknown directive BrowseAllow on line 25 of /etc/cups/ cupsd.conf. 2020:15: 57:12 -0400] Unknown browse protocol "CUPS" ignored. 2020:15: 57:12 -0400] Unknown directive BrowseAddress on line 27 of /etc/cups/ cupsd.conf. 2020:15: 57:12 -0400] No limit for Validate-Job defined in policy default and no suitable template found. 2020:15: 57:12 -0400] No limit for Cancel-Jobs defined in policy default - using Pause-Printer's policy. 2020:15: 57:12 -0400] No limit for Cancel-My-Jobs defined in policy default - using Send-Document's policy. 2020:15: 57:12 -0400] No limit fo...
E [13/Sep/
E [13/Sep/
E [13/Sep/
W [13/Sep/
W [13/Sep/
W [13/Sep/
W [13/Sep/
W [13/Sep/
W [13/Sep/
W [13/Sep/
W [13/Sep/
W [13/Sep/
W [13/Sep/
W [13/Sep/
W [13/Sep/
W [13/Sep/
W [13/Sep/
W [13/Sep/
W [13/Sep/
E [13/Sep/
E [13/Sep/
E [13/Sep/
E [13/Sep/
E [13/Sep/
E [13/Sep/
W [13/Sep/
W [13/Sep/
W [13/Sep/
W [13/Sep/