View previous topic :: View next topic |
Author |
Message |
docthorium n00b
Joined: 09 Jun 2021 Posts: 3
|
Posted: Wed Jun 09, 2021 6:17 am Post subject: CUPS problem: "lpinfo: unable to connect to host" |
|
|
I've installed CUPS, but whenever I run lpinfo -v to look for printers on my network, I keep getting "lpinfo: Unable to connect to host" as my output.
Accessing localhost:631 on my browser seems to work fine, but whenever I set up a printer and attempt to print something on it, I getting "Unable to locate printer "(printer hostname).local"".
/var/log/cups is empty.
My USE flags are the flags in the default/linux/amd64/17.1/desktop profile, as well as:
Code: | anacron pulseaudio i3wm network cups zeroconf |
Perhaps I'm missing a USE flag? Or is there something I need to enable in my kernel configuration? What am I missing here? |
|
Back to top |
|
|
docthorium n00b
Joined: 09 Jun 2021 Posts: 3
|
Posted: Wed Jun 09, 2021 6:22 am Post subject: |
|
|
Actually, I found an error_log file in /var/log/cups. Here it is:
Code: |
E [09/Jun/2021:00:09:58 -0500] [CGI] Unable to resolve \"ipps://EPSON%20XP-7100%20Series._ipps._tcp.local/|EPSON XP-7100 Series\".
E [09/Jun/2021:00:09:58 -0500] [CGI] Unable to resolve \"ipps://EPSON%20XP-7100%20Series._ipps._tcp.local/|EPSON XP-7100 Series\".
E [09/Jun/2021:00:48:47 -0500] [CGI] Unable to create PPD file: Could not poll sufficient capability info from the printer (ipps://EPSON%20XP-7100%20Series._ipps._tcp.local/, ipps://EPSONB46243.local:631/ipp/print) via IPP!
E [09/Jun/2021:00:48:47 -0500] copy_model: empty PPD file
E [09/Jun/2021:00:48:47 -0500] [Client 37] Returning IPP server-error-internal-error for CUPS-Add-Modify-Printer (ipp://localhost/printers/xp7100) from localhost.
E [09/Jun/2021:00:54:24 -0500] [Job 2] Unable to queue job for destination "EPSON_XP-7100_Series".
E [09/Jun/2021:01:04:56 -0500] [Job 2] Files have gone away.
E [09/Jun/2021:01:11:27 -0500] [CGI] Unable to resolve \"dnssd://EPSON%20XP-7100%20Series._ipp._tcp.local/?uuid=cfe92100-67c4-11d4-a45f-389d92b46243|EPSON XP-7100 Series\".
|
|
|
Back to top |
|
|
wwdev16 n00b
Joined: 29 Aug 2018 Posts: 52
|
Posted: Wed Jun 09, 2021 8:19 am Post subject: |
|
|
I would expect that connecting to localhost:631 is connecting to the cupsd
daemon. You error message looks like cups is trying to access a network
printer via the ipp protocol (with encryption - ipps) and can't
find the invalid dns name. The invalid name might have something to do
with the zeroconf use flag.
If the printer supports ipp, then you might try the IPP Everywhere printer type.
Get things working w/o zeroconf using just ipp, then try using ipps.
You might try connecting to the printer address with a browser:
e.g. http://192.168.0.2, and see what print queues are supported.
On my brother printer the connection spec for cups is: Quote: | ipp://192.168.0.4:631/POSTSCRIPT_P1 |
I found the queue name in a [bold]Network Services[/bold] section of the printer's
http interface: Code: |
Service Name Port Name
Service 1 BRN<serial_no> P1
Service 2 BINARY_P1 P1
Service 3 TEXT_P1 P1
Service 4 POSTSCRIPT_P1 P1
Service 5 PCL_P1 P1
Service 6 BRN<serial_no>_AT P1
|
|
|
Back to top |
|
|
docthorium n00b
Joined: 09 Jun 2021 Posts: 3
|
Posted: Wed Jun 09, 2021 3:54 pm Post subject: |
|
|
Reinstalled CUPS without zeroconf. Now, when I try to set up the printer using localhost:631 on the browser, I'm now only getting an option for "EPSON 9-Pin Series" and "EPSON 24-Pin Series", and not the printer I'm actually using (which is an EPSON XP-7100).
Although I'm having printer connection problems, my main problem is that the CLI tools for CUPS are all returning that they are "unable to connect to server" or "unable to connect to host". For example:
Code: |
sudo lpadmin -p xp7100 -E -v ipps://192.168.11.248/ipp/print -m everywhere
lpadmin: Unable to connect to server: Success
|
Code: |
sudo lpinfo -v
lpinfo: Unable to connect to host.
|
I'm pretty sure "lpinfo -v" is just scanning for services and isn't trying to connect to any particular server. So I'm left assuming that it's trying to connect to the cupsd server, but connections to the cupsd server seem to work fine, given that I can access localhost:631 from the browser and manage printers from there. What gives? |
|
Back to top |
|
|
wwdev16 n00b
Joined: 29 Aug 2018 Posts: 52
|
Posted: Thu Jun 10, 2021 12:27 am Post subject: |
|
|
Do you have net-print/gutenprint installed? Might have a driver for your model.
I see a possible driver from gutenprint (for make Epson): Code: | Epson EPL-7100 - CUPS+Gutenprint v5.3.3 (en) |
You could also add second printer using the Generic or Epson make and then use Code: | {current_make_model} - IPP Everywhere |
The IPP Everywhere driver is what I use.
I would test by connecting to cups and using Code: | Printers >> Maintenance >> Print Test Page |
I assume you saw the list of servcies/queues when you connected to the printer via a browser at port
631 since you used the connection string 'ipps://192.168.11.248/ipp/print'. You also need to make
sure the printer is configured to use a static address.
Using ipps instead of ipp complicates things since you now have also make sure that cups trusts the cert
the printer would provide. You might even have to upload the printer's cert yourself. Wrong/untrusted
cert would be no connection.
My package versions: Code: | net-print/cups-2.3.3-r2
net-print/gutenprint-5.3.3-r2[cups,ppds] |
|
|
Back to top |
|
|
|