Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #229479 > unrolled thread

Can't print to CUPS printer on my server

Started byGary Dale <gary@extremeground.com>
First post2020-12-08 18:30 +0100
Last post2020-12-09 16:10 +0100
Articles 11 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  Can't print to CUPS printer on my server Gary Dale <gary@extremeground.com> - 2020-12-08 18:30 +0100
    Re: Can't print to CUPS printer on my server deloptes <deloptes@gmail.com> - 2020-12-08 19:30 +0100
      Re: Can't print to CUPS printer on my server Brian <ad44@cityscape.co.uk> - 2020-12-08 20:30 +0100
    Re: Can't print to CUPS printer on my server Brian <ad44@cityscape.co.uk> - 2020-12-08 19:40 +0100
      Re: Can't print to CUPS printer on my server Gary Dale <gary@extremeground.com> - 2020-12-09 16:10 +0100
        Re: Can't print to CUPS printer on my server Brian <ad44@cityscape.co.uk> - 2020-12-09 16:30 +0100
          Re: Can't print to CUPS printer on my server Brian <ad44@cityscape.co.uk> - 2020-12-09 18:40 +0100
            Re: Can't print to CUPS printer on my server Brian <ad44@cityscape.co.uk> - 2020-12-11 21:20 +0100
            Re: Can't print to CUPS printer on my server Gary Dale <gary@extremeground.com> - 2020-12-11 23:20 +0100
    Re: Can't print to CUPS printer on my server Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2020-12-08 22:40 +0100
      Re: Can't print to CUPS printer on my server Gary Dale <gary@extremeground.com> - 2020-12-09 16:10 +0100

#229479 — Can't print to CUPS printer on my server

FromGary Dale <gary@extremeground.com>
Date2020-12-08 18:30 +0100
SubjectCan't print to CUPS printer on my server
Message-ID<BjOYh-8ef-1@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

I'm running Debian/Bullseye on my workstation and Debian/Buster on my 
server. I have an old HP CP-1215 color laserjet attached to the server 
by a USB cable. I can print a CUPS test page from the server but not 
from my workstation. When I try to print anything from my workstation to 
that printer, I get /"No suitable destination host found by cups-browsed."/

I've deleted and re-added the printer on the server and rebooted my 
workstation but I still get the same problem.

The printer is using the foomatic drivers. CUPS reports that it is 
2.3.3op1 on my workstation and 2.2.10 on my server.
//

[toc] | [next] | [standalone]


#229481

Fromdeloptes <deloptes@gmail.com>
Date2020-12-08 19:30 +0100
Message-ID<BjPUm-lB-5@gated-at.bofh.it>
In reply to#229479
Gary Dale wrote:

> I'm running Debian/Bullseye on my workstation and Debian/Buster on my
> server. I have an old HP CP-1215 color laserjet attached to the server
> by a USB cable. I can print a CUPS test page from the server but not
> from my workstation. When I try to print anything from my workstation to
> that printer, I get /"No suitable destination host found by
> cups-browsed."/
> 
> I've deleted and re-added the printer on the server and rebooted my
> workstation but I still get the same problem.
> 
> The printer is using the foomatic drivers. CUPS reports that it is
> 2.3.3op1 on my workstation and 2.2.10 on my server.
> //

On the client side /etc/cups/client.conf
set ServerName  to the name or the IP of the cups server

[toc] | [prev] | [next] | [standalone]


#229484

FromBrian <ad44@cityscape.co.uk>
Date2020-12-08 20:30 +0100
Message-ID<BjQQq-Vj-3@gated-at.bofh.it>
In reply to#229481
On Tue 08 Dec 2020 at 19:24:45 +0100, deloptes wrote:

> Gary Dale wrote:
> 
> > I'm running Debian/Bullseye on my workstation and Debian/Buster on my
> > server. I have an old HP CP-1215 color laserjet attached to the server
> > by a USB cable. I can print a CUPS test page from the server but not
> > from my workstation. When I try to print anything from my workstation to
> > that printer, I get /"No suitable destination host found by
> > cups-browsed."/
> > 
> > I've deleted and re-added the printer on the server and rebooted my
> > workstation but I still get the same problem.
> > 
> > The printer is using the foomatic drivers. CUPS reports that it is
> > 2.3.3op1 on my workstation and 2.2.10 on my server.
> > //
> 
> On the client side /etc/cups/client.conf
> set ServerName  to the name or the IP of the cups server

First off: Unless it is desired to make ServerName system-wide, one
should use ~/.cups/client.conf.

Secondly: avahi-daemon, cups-browsed and, more importantly, cupsd
become redundant and unused. They may as well be purged from the
client.

How does the client get to know the printer's attributes? That can
be done at present, even though printing does not take place.

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#229483

FromBrian <ad44@cityscape.co.uk>
Date2020-12-08 19:40 +0100
Message-ID<BjQ42-oN-9@gated-at.bofh.it>
In reply to#229479
On Tue 08 Dec 2020 at 12:27:18 -0500, Gary Dale wrote:

> I'm running Debian/Bullseye on my workstation and Debian/Buster on my
> server. I have an old HP CP-1215 color laserjet attached to the server by a
> USB cable. I can print a CUPS test page from the server but not from my

The server is not the problem if printing from it is successful. Please
do

  avahi-browse -art > log1

on the server and post log here as an attachment. avahi-browse is in the
avahi-utils package. Also give 'lpstat -t'.

> workstation. When I try to print anything from my workstation to that
> printer, I get /"No suitable destination host found by cups-browsed."/

This is a cups-browsed issue. Give 'lpstat -t' on the client.

> I've deleted and re-added the printer on the server and rebooted my
> workstation but I still get the same problem.
> 
> The printer is using the foomatic drivers. CUPS reports that it is 2.3.3op1
> on my workstation and 2.2.10 on my server.
> //

Executing

   avahi-browse -art > log2

on the client and sending log2 here could be useful.

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#229552

FromGary Dale <gary@extremeground.com>
Date2020-12-09 16:10 +0100
Message-ID<Bk9gl-4gJ-5@gated-at.bofh.it>
In reply to#229483
On 2020-12-08 13:29, Brian wrote:
> On Tue 08 Dec 2020 at 12:27:18 -0500, Gary Dale wrote:
>
>> I'm running Debian/Bullseye on my workstation and Debian/Buster on my
>> server. I have an old HP CP-1215 color laserjet attached to the server by a
>> USB cable. I can print a CUPS test page from the server but not from my
> The server is not the problem if printing from it is successful. Please
> do
>
>    avahi-browse -art > log1

-bash: avahi-browse: command not found - for both regular user and root


> on the server and post log here as an attachment. avahi-browse is in the
> avahi-utils package. Also give 'lpstat -t'.
device for CP1215: hp:/usb/HP_Color_LaserJet_CP1215?serial=LJ090T7
device for EPSON_Stylus_Photo_R300: usb://EPSON/Stylus%20Photo%20R300
device for ML-1210: usb://Samsung/ML-1210
device for PDF: cups-pdf:/
device for Samsung_C410_Series: 
usb://Samsung/C410%20Series?serial=ZEVQB8GF3A00HFJ
CP1215 accepting requests since Tue 08 Dec 2020 10:46:27 AM EST
EPSON_Stylus_Photo_R300 accepting requests since Tue 28 Apr 2015 
05:49:05 PM EDT
ML-1210 accepting requests since Thu 12 Jul 2012 03:12:20 PM EDT
PDF accepting requests since Mon 16 May 2016 05:35:30 PM EDT
Samsung_C410_Series accepting requests since Thu 20 Aug 2020 04:44:57 PM EDT
printer CP1215 is idle.  enabled since Tue 08 Dec 2020 10:46:27 AM EST
printer EPSON_Stylus_Photo_R300 is idle.  enabled since Tue 28 Apr 2015 
05:49:05 PM EDT
printer ML-1210 is idle.  enabled since Thu 12 Jul 2012 03:12:20 PM EDT
printer PDF is idle.  enabled since Mon 16 May 2016 05:35:30 PM EDT
printer Samsung_C410_Series is idle.  enabled since Thu 20 Aug 2020 
04:44:57 PM EDT

>
>> workstation. When I try to print anything from my workstation to that
>> printer, I get /"No suitable destination host found by cups-browsed."/
> This is a cups-browsed issue. Give 'lpstat -t' on the client.
scheduler is running
no system default destination
members of class ColourLaser:
         unknown
device for ColourLaser: ///dev/null
device for EPSON_Stylus_Photo_R300_TheLibrarian: 
implicitclass://EPSON_Stylus_Photo_R300_TheLibrarian/
device for EPSON_XP-820_Series: 
usb://EPSON/XP-820%20Series?serial=554638593032343867&interface=1
device for HP_Color_LaserJet_CP1215_TheLibrarian: 
implicitclass://HP_Color_LaserJet_CP1215_TheLibrarian/
device for PDF_TheLibrarian: implicitclass://PDF_TheLibrarian/
device for Samsung_C410_Series: 
dnssd://Samsung%20C410%20Series%20(SEC30CDA71CB48A)._printer._tcp.local/
device for Samsung_C410_Series_SEC30CDA71CB48A_: ///dev/null
device for Samsung_C410_Series_TheLibrarian: 
implicitclass://Samsung_C410_Series_TheLibrarian/
device for Samsung_ML_1210_TheLibrarian: 
implicitclass://Samsung_ML_1210_TheLibrarian/
ColourLaser accepting requests since Fri Dec 11 23:27:13 2015
EPSON_Stylus_Photo_R300_TheLibrarian accepting requests since Wed Dec  9 
00:00:30 2020
EPSON_XP-820_Series accepting requests since Tue Dec  8 11:50:18 2020
HP_Color_LaserJet_CP1215_TheLibrarian accepting requests since Wed Dec  
9 00:00:28 2020
PDF_TheLibrarian accepting requests since Wed Dec  9 00:00:29 2020
Samsung_C410_Series accepting requests since Fri Sep 11 17:44:23 2020
Samsung_C410_Series_SEC30CDA71CB48A_ not accepting requests since Fri 
Aug 21 00:00:10 2020 -
         reason unknown
Samsung_C410_Series_TheLibrarian accepting requests since Wed Dec  9 
00:00:28 2020
Samsung_ML_1210_TheLibrarian accepting requests since Wed Dec  9 
00:00:29 2020
printer ColourLaser is idle.  enabled since Fri Dec 11 23:27:13 2015
printer EPSON_Stylus_Photo_R300_TheLibrarian is idle.  enabled since Wed 
Dec  9 00:00:30 2020
printer EPSON_XP-820_Series is idle.  enabled since Tue Dec  8 11:50:18 2020
printer HP_Color_LaserJet_CP1215_TheLibrarian is idle.  enabled since 
Wed Dec  9 00:00:28 2020
printer PDF_TheLibrarian is idle.  enabled since Wed Dec  9 00:00:29 2020
printer Samsung_C410_Series is idle.  enabled since Fri Sep 11 17:44:23 2020
printer Samsung_C410_Series_SEC30CDA71CB48A_ disabled since Fri Aug 21 
00:00:10 2020 -
         reason unknown
printer Samsung_C410_Series_TheLibrarian is idle.  enabled since Wed 
Dec  9 00:00:28 2020
printer Samsung_ML_1210_TheLibrarian is idle.  enabled since Wed Dec  9 
00:00:29 2020

>> I've deleted and re-added the printer on the server and rebooted my
>> workstation but I still get the same problem.
>>
>> The printer is using the foomatic drivers. CUPS reports that it is 2.3.3op1
>> on my workstation and 2.2.10 on my server.
>> //
> Executing
>
>     avahi-browse -art > log2
>
> on the client and sending log2 here could be useful.
>
-bash: avahi-browse: command not found - for both regular user and root.

[toc] | [prev] | [next] | [standalone]


#229560

FromBrian <ad44@cityscape.co.uk>
Date2020-12-09 16:30 +0100
Message-ID<Bk9zI-4n5-27@gated-at.bofh.it>
In reply to#229552
On Wed 09 Dec 2020 at 10:04:14 -0500, Gary Dale wrote:

> On 2020-12-08 13:29, Brian wrote:
> > 
> >    avahi-browse -art > log1
> 
> -bash: avahi-browse: command not found - for both regular user and root
> 
> > on the server and post log here as an attachment. avahi-browse is in the
> > avahi-utils package.

How about installing avahi-utils? :)

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#229571

FromBrian <ad44@cityscape.co.uk>
Date2020-12-09 18:40 +0100
Message-ID<BkbBB-5yh-15@gated-at.bofh.it>
In reply to#229560
On Wed 09 Dec 2020 at 11:29:28 -0500, Gary Dale wrote:

> On 2020-12-09 10:25, Brian wrote:
> > On Wed 09 Dec 2020 at 10:04:14 -0500, Gary Dale wrote:
> > 
> > > On 2020-12-08 13:29, Brian wrote:
> > > >     avahi-browse -art > log1
> > > -bash: avahi-browse: command not found - for both regular user and root
> > > 
> > > > on the server and post log here as an attachment. avahi-browse is in the
> > > > avahi-utils package.
> > How about installing avahi-utils? :)
> 
> I don't seem to need it for anything else. I'm leery of installing packages,
> especially on a server, that I don't use.

I bet you have cups-browsed installed on the server. It's completely
unneeded and doesn't do anything to enhance the printing system there.
But that is BTW. :)

> = enp5s0 IPv6 HP Color LaserJet CP1215 @ TheLibrarian       Secure Internet Printer local
>    hostname = [TheLibrarian.local]
>    address = [fe80::feaa:14ff:fe9b:b835]
>    port = [631]
>    txt = ["printer-type=0x80901E" "printer-state=3" "Duplex=T" "Color=T" "TLS=1.2" "UUID=bd713eeb-c38d-39f4-40b6-a997738b33d1" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HP Color LaserJet CP1215)" "priority=0" "note=family room" "adminurl=https://TheLibrarian.local.:631/printers/CP1215" "ty=HP Color LaserJet CP1215 Foomatic/foo2hp (recommended)" "rp=printers/CP1215" "qtotal=1" "txtvers=1"]

The printer is found at TheLibrarian.local and its resource path is
printers/CP1215, giving a URI of

  ipp://TheLibrarian.local:631/printers/CP1215

At present you are relying on cups-browsed on the client to discover,
auto-setup and manage the CP1215; it appears to be having an off day.
Let's manage the print queue ourselves. Execute

  lpadmin -p <PRINT_Q_NAME> -v <URI> -E -m raw

The -p option can be anything you want, for example, cp1215.

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#229672

FromBrian <ad44@cityscape.co.uk>
Date2020-12-11 21:20 +0100
Message-ID<BkX3s-I9-5@gated-at.bofh.it>
In reply to#229571
On Wed 09 Dec 2020 at 17:31:46 +0000, Brian wrote:

> The printer is found at TheLibrarian.local and its resource path is
> printers/CP1215, giving a URI of
> 
>   ipp://TheLibrarian.local:631/printers/CP1215
> 
> At present you are relying on cups-browsed on the client to discover,
> auto-setup and manage the CP1215; it appears to be having an off day.
> Let's manage the print queue ourselves. Execute
> 
>   lpadmin -p <PRINT_Q_NAME> -v <URI> -E -m raw
> 
> The -p option can be anything you want, for example, cp1215

This technique has never beem known to fail. We are pleased it works for
you too. :)

Happy printing.

-- 
Brian..

[toc] | [prev] | [next] | [standalone]


#229679

FromGary Dale <gary@extremeground.com>
Date2020-12-11 23:20 +0100
Message-ID<BkYVz-1SF-9@gated-at.bofh.it>
In reply to#229571
On 2020-12-09 12:31, Brian wrote:
> On Wed 09 Dec 2020 at 11:29:28 -0500, Gary Dale wrote:
>
>> On 2020-12-09 10:25, Brian wrote:
>>> On Wed 09 Dec 2020 at 10:04:14 -0500, Gary Dale wrote:
>>>
>>>> On 2020-12-08 13:29, Brian wrote:
>>>>>      avahi-browse -art > log1
>>>> -bash: avahi-browse: command not found - for both regular user and root
>>>>
>>>>> on the server and post log here as an attachment. avahi-browse is in the
>>>>> avahi-utils package.
>>> How about installing avahi-utils? :)
>> I don't seem to need it for anything else. I'm leery of installing packages,
>> especially on a server, that I don't use.
> I bet you have cups-browsed installed on the server. It's completely
> unneeded and doesn't do anything to enhance the printing system there.
> But that is BTW. :)
Perhaps I shouldn't trust package maintainers to not install unnecessary 
stuff? However, doesn't it actually discover network printers - they 
seem to be more common these days with both Wifi and versions. Not all 
my printers are plugged directly into the server.
>
>> = enp5s0 IPv6 HP Color LaserJet CP1215 @ TheLibrarian       Secure Internet Printer local
>>     hostname = [TheLibrarian.local]
>>     address = [fe80::feaa:14ff:fe9b:b835]
>>     port = [631]
>>     txt = ["printer-type=0x80901E" "printer-state=3" "Duplex=T" "Color=T" "TLS=1.2" "UUID=bd713eeb-c38d-39f4-40b6-a997738b33d1" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HP Color LaserJet CP1215)" "priority=0" "note=family room" "adminurl=https://TheLibrarian.local.:631/printers/CP1215" "ty=HP Color LaserJet CP1215 Foomatic/foo2hp (recommended)" "rp=printers/CP1215" "qtotal=1" "txtvers=1"]
> The printer is found at TheLibrarian.local and its resource path is
> printers/CP1215, giving a URI of
>
>    ipp://TheLibrarian.local:631/printers/CP1215
>
> At present you are relying on cups-browsed on the client to discover,
> auto-setup and manage the CP1215; it appears to be having an off day.
> Let's manage the print queue ourselves. Execute
>
>    lpadmin -p <PRINT_Q_NAME> -v <URI> -E -m raw
>
> The -p option can be anything you want, for example, cp1215.

cups-browsed seems to be having a bad week or two at least. It doesn't 
let me delete the erroneous path to the CP125 in addition to not 
detecting the correct path.

I ran the lpadmin command and CP1215 is now showing in my list of 
printers on my workstation. However it still isn't printing.

After a second, I remembered that is because I had to unplug the printer 
to set up a temporary powerline networking connection to my server 
yesterday (I'm finally getting around to replacing the last of my CAT-5 
cable with CAT-6 and having an issue with pulling a line to this 
particular room). This had nothing to do with my earlier issue however.

Anyway, hopefully a new CUPS update will get things working soon.

Thanks.

[toc] | [prev] | [next] | [standalone]


#229493

FromJoe Pfeiffer <pfeiffer@cs.nmsu.edu>
Date2020-12-08 22:40 +0100
Message-ID<BjSSe-2f5-13@gated-at.bofh.it>
In reply to#229479
Gary Dale <gary@extremeground.com> writes:

> I'm running Debian/Bullseye on my workstation and Debian/Buster on my server. I have an old HP CP-1215 color laserjet attached to the server by a USB cable. I can print a CUPS test
> page from the server but not from my workstation. When I try to print anything from my workstation to that printer, I get "No suitable destination host found by cups-browsed."
>
> I've deleted and re-added the printer on the server and rebooted my workstation but I still get the same problem.
>
> The printer is using the foomatic drivers. CUPS reports that it is 2.3.3op1 on my workstation and 2.2.10 on my server.

Did you set the printer to be shared?

[toc] | [prev] | [next] | [standalone]


#229554

FromGary Dale <gary@extremeground.com>
Date2020-12-09 16:10 +0100
Message-ID<Bk9gm-4gJ-17@gated-at.bofh.it>
In reply to#229493
On 2020-12-08 16:19, Joe Pfeiffer wrote:
> Gary Dale <gary@extremeground.com> writes:
>
>> I'm running Debian/Bullseye on my workstation and Debian/Buster on my server. I have an old HP CP-1215 color laserjet attached to the server by a USB cable. I can print a CUPS test
>> page from the server but not from my workstation. When I try to print anything from my workstation to that printer, I get "No suitable destination host found by cups-browsed."
>>
>> I've deleted and re-added the printer on the server and rebooted my workstation but I still get the same problem.
>>
>> The printer is using the foomatic drivers. CUPS reports that it is 2.3.3op1 on my workstation and 2.2.10 on my server.
> Did you set the printer to be shared?
>
Yes

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web