CUPS 1.3.5: 'connection refused' when trying to print from the command line...

Helge Blischke h.blischke at srz.de
Fri Jan 11 09:40:01 PST 2008


Evan Bradley wrote:
> Hello,
> 
> I am testing the 1.3.5 version of CUPS on a Sun Blade 1000 loaded with Solaris 10.  CUPS is installed in /opt/cups/1.3.5 and GPL Ghostscript 8.6.1 is installed in /opt/ghostscript/8.6.1
> 
> I've copied the etc/cupsd.conf, etc/ppd and share/model files from our production CUPS installation into their respective places in the /opt/cups/1.3.5 tree; as well as the pstoraster.convs file from the Ghostscript 8.6.1 installation into /opt/cups/1.3.5/etc as well.
> 
> 
> The web interface works just fine, in that I can connect to it, add printers, and print test pages.  The problem occurs when I attempt to use the lp or lpstat commands found in /opt/cups/1.3.5/bin from the command line:
> 
> [code]
> [496-root at unixbuild-/opt/cups/1.3.5/bin] ps -aef | grep cups
>     root 24913     1   0 10:55:53 ?           0:02 /opt/cups/1.3.5/sbin/cupsd
> 
> [497-root at unixbuild-/opt/cups/1.3.5/bin] ./lpstat -a
> /lpstat: Unable to connect to server
> 
> [513-root at unixbuild-/opt/cups/1.3.5/bin] ./lp -d misq2 /u/eb1850/Documents/Misc/konstruct-error.txt
> /lp: Connection refused
> [/code]
> 
> The log level is set to 'debug', but none of the logs have any info regarding this condition.  I can post any of the conf files or log files if they would be helpful.
> 
> Any help would be greatly appreciated, as this is preventing us from upgrading from our production version (1.1.23) of CUPS.
> 
> Thanks in advance,
> 
> 
> Evan

Did you properly disable the native spool system of Solaris?
Since Solaris 10, the native spooler runs an ipp listener.

To see if they are running, execute

svcs | grep print

which will return something like

online         Sep_14   svc:/application/print/cleanup:default
online         Sep_14   svc:/application/cde-printinfo:default
offline        Sep_14   svc:/application/print/ipp-listener:default
offline        Sep_14   svc:/application/print/rfc1179:default

Tu successfully run CUPS on this machine, the last two *must be* disabled
using the command

svcadm disable svc:/application/print/ipp-listener:default
svcadm disable svc:/application/print/rfc1179:default

Then restart CUPS.

Helge

-- 
Helge Blischke
Softwareentwicklung

H.Blischke at acm.org




More information about the cups mailing list