Mailinglist Archive: opensuse (3349 mails)

< Previous Next >
Re: [SLE] Networking CUPS?
  • From: "Hylton Conacher (ZR1HPC)" <hylton@xxxxxxxxxxxx>
  • Date: Sat, 07 May 2005 19:54:10 +0200
  • Message-id: <427D00C1.1020808@xxxxxxxxxxxx>
Graham Smith wrote:
On Tue, 3 May 2005 03:37, Hylton Conacher (ZR1HPC) wrote:

Firstly what is the output of
lpstat -t
on both your server and client.

Server:
hylton@Umalusi:~> lpstat -t
lpstat:Unable to connect to server: connection refused

Client:
hylton@Spy:~> lpstat -t
lpstat: Unable to connect to server: Resource temporarily unavailable


The lpstat command prints the status of the CUPS server. man lpstat will give you all the options.

From the above it appears that cups is not running properly. I suggest you run as root
rccups restart
and then see if lpstat -t reports the status of Cups. You should get something similar to the following
---------------------------------
lpstat -t
scheduler is running
system default destination: CLP550N
device for CLP550N: lpd://10.212.64.20/lp
device for CLP550N/duplex: lpd://10.212.64.20/lp
device for CLP550N/env: lpd://10.212.64.20/lp
CLP550N accepting requests since Jan 01 00:00
CLP550N/duplex accepting requests since Jan 01 00:00
CLP550N/env accepting requests since Jan 01 00:00
printer CLP550N is idle. enabled since Jan 01 00:00
Data file sent successfully
printer CLP550N/duplex is idle. enabled since Jan 01 00:00
Data file sent successfully
printer CLP550N/env is idle. enabled since Jan 01 00:00
Data file sent successfully
Lucky you :) All I get is as before :(
Server:
hylton@Umalusi:~> lpstat -t
lpstat:Unable to connect to server: connection refused

the error messages in /var/log/cups/error_log It should give you a reason why it is failing.
All I get is an error number 98 when I rccups restart. Below is the last
few lines copied and pasted from the SERVERS /var/log/cups/error_log as it was booted. Client brought online after server:
I [07/May/2005:19:41:12 +0200] Listening to 0:631
I [07/May/2005:19:41:12 +0200] Listening to 0:631
I [07/May/2005:19:41:12 +0200] Sending browsing info to c0a800ff:631
E [07/May/2005:19:41:12 +0200] httpGetHostByName("@LOCAL ###### This has to be set") failed - Host name lookup failure!
E [07/May/2005:19:41:12 +0200] Bad BrowseAddress @LOCAL ###### This has to be set at line 537.
E [07/May/2005:19:41:12 +0200] Unknown directive # on line 801.
E [07/May/2005:19:41:12 +0200] Unknown directive # on line 802.
E [07/May/2005:19:41:12 +0200] Unknown Location directive # on line 833.
I [07/May/2005:19:41:12 +0200] Loaded configuration file "/etc/cups/cupsd.conf"
I [07/May/2005:19:41:12 +0200] Configured for up to 100 clients.
I [07/May/2005:19:41:12 +0200] Allowing up to 100 client connections per host.
I [07/May/2005:19:41:12 +0200] Full reload is required.
I [07/May/2005:19:41:14 +0200] LoadPPDs: Read "/etc/cups/ppds.dat", 3762 PPDs...
I [07/May/2005:19:41:16 +0200] LoadPPDs: No new or changed PPDs...
I [07/May/2005:19:41:16 +0200] Full reload complete.
E [07/May/2005:19:41:16 +0200] StartListening: Unable to find IP address for server name "192.168.0.1 # Use an IP address as it is less prone to error" - Host name lookup failure
E [07/May/2005:19:41:16 +0200] StartListening: Unable to bind socket for address 00000000:631 - Address already in use.


The server I not worry about but I am wondering about your servername
entry in the client.conf file as it seems to have 2 full stops after the
IP ie 192.168.0.1 .. before your comment. I assume those should be deleted?

I just checked the '..' are actually tab stops that your editor displays as a '.' You will notice them everywhere I have added comments.
Also saw that when I opened and pressed the TAB key in Kate :)

Regards
--
========================================================================
Hylton Conacher - Linux user # 229959 at http://counter.li.org
Currently using SuSE 9.0 Professional with KDE 3.1
========================================================================




< Previous Next >