Graham Smith wrote:
On Wed, 27 Apr 2005 02:16, you wrote:
Graham Smith wrote:
The easiest way to solve this problem would be for myself to look at
your
settings in /etc/cups.
Attached
Server: IP Address 192.168.0.1 Hostname Umalusi
Client: IP Address 192.168.0.2 Hostname Spy
Printer: Epson Stylus 800+ with ESCP2 using the Linux module for the 800 as there was not one for 800+.
I will have a look at the settings and send back the files with any mods required.
Please comment the changes as then I can learn for next time.
Very much appreciated!!
I have looked at the files. The client.conf is OK. I have added a number of comments to the cupsd.conf. There were a few settings wrong which I have fixed. Also there was a few lines right at the end of the file which were definitely crap, which I have commented out.
There are two main errors as far as I can tell, firstly the ServerName setting looked incorrect, replaced it with its IP address. Secondly you had missed the BrowseAddress setting.
Just replace the /etc/cups/cupsd.conf with the one attached. You don't need to replace the client.conf in the other machine as it has the correct settings.
See how you go and get back to me if it still doesn't work.
For your information the security section in cupsd.conf has a certain syntax which starts with
and ends with </Location> For example <Location /> Order Allow,Deny Allow From 127.0.0.1 Allow From 127.0.0.2 Allow From @LOCAL </Location>
A large number of the security options are commented out and are only required if you want to further limit access to certain functions. Thank you again Graham for looking at and editing the necessary files. I have reverted back to the list in case it helps others.
I know, from Windows days, that the server must be booted first, ten the clients. I did this specifically making sure the printer initialized. I figured now, with the correct conf files, it would a simple matter of pressing print on the Mozilla GUI on the client and the page would automagically eject from the printer connected to the server. Alas I was wrong. :( I 'checked' the client settings via the Yast printer configuration but all was in place. I noticed that the test failed when I tested connectivity to the server in Yast. Assuming it was still going to work I soldiered on... ...When I did press 'Print' on the Mozilla GUI I was presented with a KPrinter GUI that said it was initialising and that it was connected to Umalusi:631. NO amount of clicking on the close option or even looking for kprinter under a terminal screen could get the KPrinter dialogs to disappear. I also tried the printer manager from the printer icon on the task bar with the same result. It actually took 2 reboots to rid myself of the Kprinter dialogs. So, now what needs tweaking? Especially since I get a 100msec ping reply from the server when I ping 192.168.0.1 on the client side. I assume that because I am getting a reply back on the ping that the machines are 'talking' to one another. Where should I check error messages after I have tried to print? Where to next? -- ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
Hylton Conacher (ZR1HPC) wrote:
Graham Smith wrote:
<STUFF DELETED>
Thank you again Graham for looking at and editing the necessary files. I have reverted back to the list in case it helps others.
I know, from Windows days, that the server must be booted first, ten the clients. I did this specifically making sure the printer initialized.
Dangerous! Render unto Windows what is Windows and render unto Linux what is Linux. You can make changes to these files and "rccups restart", please excuse if that's what you were implying..
I figured now, with the correct conf files, it would a simple matter of pressing print on the Mozilla GUI on the client and the page would automagically eject from the printer connected to the server. Alas I was wrong. :(
I 'checked' the client settings via the Yast printer configuration but all was in place. I noticed that the test failed when I tested connectivity to the server in Yast. Assuming it was still going to work I soldiered on...
...When I did press 'Print' on the Mozilla GUI I was presented with a KPrinter GUI that said it was initialising and that it was connected to Umalusi:631. NO amount of clicking on the close option or even looking for kprinter under a terminal screen could get the KPrinter dialogs to disappear. I also tried the printer manager from the printer icon on the task bar with the same result. It actually took 2 reboots to rid myself of the Kprinter dialogs.
So, now what needs tweaking? Especially since I get a 100msec ping reply from the server when I ping 192.168.0.1 on the client side.
I assume that because I am getting a reply back on the ping that the machines are 'talking' to one another. Where should I check error messages after I have tried to print?
Where to next?
With "tcpdump -i eth0" or ethereal, you should periodically be seeing
ipp broadcasts for printer connections ---
21:16:46.719311 IP barrabas.site.ipp > 192.168.10.255.ipp: UDP, length: 184
#### barrabas (192.168.10.1) is broadcasting to the local network for
printer connections to port 631 (ipp).
In /etc/cups/client.conf on the client, you should have a line
"ServerName
Hi Sid, Sid Boyce wrote:
Hylton Conacher (ZR1HPC) wrote: [snip]
I know, from Windows days, that the server must be booted first, ten the clients. I did this specifically making sure the printer initialized.
Dangerous! Render unto Windows what is Windows and render unto Linux what is Linux. You can make changes to these files and "rccups restart", please excuse if that's what you were implying.. No fear, I like the way you said it. I know that by rebooting the server it would accomplish the same as rccups restart.
[snip]
Where to next?
With "tcpdump -i eth0" or ethereal, you should periodically be seeing ipp broadcasts for printer connections --- 21:16:46.719311 IP barrabas.site.ipp > 192.168.10.255.ipp: UDP, length: 184 #### barrabas (192.168.10.1) is broadcasting to the local network for printer connections to port 631 (ipp). On the client and server: # tcpdump -i eth0 16:58:12.950181 Spy.home.net.za.netbios-ns > 192.168.0.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST (DF) 16:58:14.950102 Spy.home.net.za.netbios-ns > 192.168.0.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST (DF) 16:58:14.950223 Spy.home.net.za.netbios-ns > 192.168.0.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST (DF) 16:58:16.950089 Spy.home.net.za.netbios-ns > 192.168.0.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST (DF) 16:58:16.950257 Spy.home.net.za.netbios-dgm > 192.168.0.255.netbios-dgm: NBT UDP PACKET(138) (DF) 16:59:16.950106 Spy.home.net.za.netbios-dgm > 192.168.0.255.netbios-dgm: NBT UDP PACKET(138) (DF)
In /etc/cups/client.conf on the client, you should have a line "ServerName
" Under #ServerName myhost.domain.com in the client.conf I have: "ServerName 192.168.0.1 .." #sans quotes of course. :)
I'm thinking the '..' needs to be removed?
On the server /etc/cups/cupsd.conf "Browsing On". It is on on the server.
"rccups restart" on both boxes. Any particular order like M$? ie server first.
I'll do the server first jic.
"tail -f /var/log/messages" on both to see what requests and errors are being generated I rebooted the server, didn't log in, rebooted the client, didn't log in.
Server: Ran 'tail..' on server and repeated the 'tail' every 10 secs for approx 2 mins. Saw nothing to do with cups or communication. Did notice a message in /var/log/messages saying: 18:51 Umalusi kernel: alps.c : E7 REPORT 10 00 64 18:51 Umalusi kernel: alps.c : E6 REPORT 00 00 64 As I didn't see anything about CUPS. as well as not knowing what it means, I left it, unhappily I might add, as it mentions kernel. I ran the 'tail command on tee client after stopping the server 'tail'. Saw nothing and refreshed a few times. It would seem to my unknowledgable ass that you are trying to determine if there are broadcasts from the printer server but not from the client as if there was any from the client it would mean it also thought it was a print server. Correct? Regards -- ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
Hylton Conacher (ZR1HPC) wrote:
Hi Sid,
Sid Boyce wrote:
Hylton Conacher (ZR1HPC) wrote: [snip]
<STUFF DELETED>
Under #ServerName myhost.domain.com in the client.conf I have: "ServerName 192.168.0.1 .." #sans quotes of course. :)
I'm thinking the '..' needs to be removed?
That's correct, they were just included to show what was needed, i.e just the stuff in the quotes.
On the server /etc/cups/cupsd.conf "Browsing On".
It is on on the server.
"rccups restart" on both boxes.
Any particular order like M$? ie server first.
I'll do the server first jic.
Server first.
"tail -f /var/log/messages" on both to see what requests and errors are being generated
I rebooted the server, didn't log in, rebooted the client, didn't log in.
Server: Ran 'tail..' on server and repeated the 'tail' every 10 secs for approx 2 mins. Saw nothing to do with cups or communication. Did notice a message in /var/log/messages saying:
18:51 Umalusi kernel: alps.c : E7 REPORT 10 00 64 18:51 Umalusi kernel: alps.c : E6 REPORT 00 00 64
As I didn't see anything about CUPS. as well as not knowing what it means, I left it, unhappily I might add, as it mentions kernel.
Hmmmm.... my box was down, fresh install of 9.3 and it seemed to have DVD drive problems, halting while installing packages, but the box was still alive. I enabled "BrowseAddress @IF(eth0)" without the quotes, "rccups restart" and it started broadcasting. IP barrabas.site.ipp > 192.168.10.255.ipp: UDP, length: 182
I ran the 'tail command on tee client after stopping the server 'tail'. Saw nothing and refreshed a few times.
lpq on the client with "tcpdump -i eth0" running, /etc/cups/client.conf
has the line "ServerName barrabas.site".
03:20:17.546125 arp who-has barrabas.site tell Boycie.site
03:20:17.547081 arp reply barrabas.site is-at 00:11:d8:45:6c:c6
03:20:17.546178 IP Boycie.site.41137 > barrabas.site.ipp: S
2665829003:2665829003(0) win 5840
It would seem to my unknowledgable ass that you are trying to determine if there are broadcasts from the printer server but not from the client as if there was any from the client it would mean it also thought it was a print server. Correct?
Regards
The server should be the one doing the broadcasts. On the client "ps fax|grep cups" shows cupsd (server) isn't running which is correct, on the server --- barrabas:/ftp/May05/MPlayer-1.0pre7 # ps fax|grep cups 22890 pts/3 S+ 0:00 | | \_ grep cups 9669 ? Ss 0:00 /usr/sbin/cupsd I shall send you separately my /etc/cupsd.conf on the server and /etc/cups/client.conf from the client. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot Retired IBM Mainframes and Sun Servers Tech Support Specialist Microsoft Windows Free Zone - Linux for all Computing Tasks
Sid Boyce wrote:
Hylton Conacher (ZR1HPC) wrote:
Hi Sid,
[snip]
Under #ServerName myhost.domain.com in the client.conf I have: "ServerName 192.168.0.1 .." #sans quotes of course. :)
I'm thinking the '..' needs to be removed?
That's correct, they were just included to show what was needed, i.e just the stuff in the quotes.
On the server /etc/cups/cupsd.conf "Browsing On".
It is on on the server.
"rccups restart" on both boxes.
Any particular order like M$? ie server first.
I'll do the server first jic.
Server first.
"tail -f /var/log/messages" on both to see what requests and errors are being generated
I rebooted the server, didn't log in, rebooted the client, didn't log in.
Server: Ran 'tail..' on server and repeated the 'tail' every 10 secs for approx 2 mins. Saw nothing to do with cups or communication. Did notice a message in /var/log/messages saying:
18:51 Umalusi kernel: alps.c : E7 REPORT 10 00 64 18:51 Umalusi kernel: alps.c : E6 REPORT 00 00 64
As I didn't see anything about CUPS. as well as not knowing what it means, I left it, unhappily I might add, as it mentions kernel.
Hmmmm.... my box was down, fresh install of 9.3 and it seemed to have DVD drive problems, halting while installing packages, but the box was still alive. I enabled "BrowseAddress @IF(eth0)" without the quotes, "rccups restart" and it started broadcasting. IP barrabas.site.ipp > 192.168.10.255.ipp: UDP, length: 182
I ran the 'tail command on tee client after stopping the server 'tail'. Saw nothing and refreshed a few times.
lpq on the client with "tcpdump -i eth0" running, /etc/cups/client.conf has the line "ServerName barrabas.site". Spy:~ # lpq lpq: Unable to contact server!
The server should be the one doing the broadcasts. On the client "ps fax|grep cups" shows cupsd (server) isn't running which is correct, on the server --- barrabas:/ftp/May05/MPlayer-1.0pre7 # ps fax|grep cups 22890 pts/3 S+ 0:00 | | \_ grep cups 9669 ? Ss 0:00 /usr/sbin/cupsd All I get is the '22890...' line, no '9669.....' line.
I shall send you separately my /etc/cupsd.conf on the server and /etc/cups/client.conf from the client. Thanks, all received, browsed and changes implemented. The files were the same as what Graham sent me ealier. I did not let my ServerName be barrabus as it probably could have caused other problems so I just made sure it was the IP.
Still LiNUX CAN'T PRINT SHIT ie its a no go. -- ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
Hylton Conacher (ZR1HPC) wrote:
Sid Boyce wrote:
Hylton Conacher (ZR1HPC) wrote:
Hi Sid,
[snip]
I ran the 'tail command on tee client after stopping the server 'tail'. Saw nothing and refreshed a few times.
lpq on the client with "tcpdump -i eth0" running, /etc/cups/client.conf has the line "ServerName barrabas.site". Sorry, that's my hostname, substitute yours.
Spy:~ # lpq lpq: Unable to contact server!
The server should be the one doing the broadcasts. On the client "ps fax|grep cups" shows cupsd (server) isn't running which is correct, on the server --- barrabas:/ftp/May05/MPlayer-1.0pre7 # ps fax|grep cups 22890 pts/3 S+ 0:00 | | \_ grep cups 9669 ? Ss 0:00 /usr/sbin/cupsd
All I get is the '22890...' line, no '9669.....' line.
All you got above means the server is not running. You could try running "cupsd" from the command line, check with ps that it's running and if not, there should be something in /var/log/cups/error_log. Until the server is up and running, there will be no ipp network broadcasts.
I shall send you separately my /etc/cupsd.conf on the server and /etc/cups/client.conf from the client.
Thanks, all received, browsed and changes implemented. The files were the same as what Graham sent me ealier. I did not let my ServerName be barrabus as it probably could have caused other problems so I just made sure it was the IP.
Still LiNUX CAN'T PRINT SHIT ie its a no go.
Also " lppasswd -a root" or you will get access errors from "http://localhost:631". YaST should also have setup stuff in /etc/cups/, printers.conf and printcap. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot Retired IBM Mainframes and Sun Servers Tech Support Specialist Microsoft Windows Free Zone - Linux for all Computing Tasks
Sid Boyce wrote:
Hylton Conacher (ZR1HPC) wrote:
I ran the 'tail command on tee client after stopping the server 'tail'. Saw nothing and refreshed a few times.
lpq on the client with "tcpdump -i eth0" running, /etc/cups/client.conf has the line "ServerName barrabas.site".
Sorry, that's my hostname, substitute yours. Nevermind, picked it up when I was viewing the files and just entered my server IP as the servername.
The server should be the one doing the broadcasts. On the client "ps fax|grep cups" shows cupsd (server) isn't running which is correct, on the server --- barrabas:/ftp/May05/MPlayer-1.0pre7 # ps fax|grep cups 22890 pts/3 S+ 0:00 | | \_ grep cups 9669 ? Ss 0:00 /usr/sbin/cupsd
All I get is the '22890...' line, no '9669.....' line.
All you got above means the server is not running. NO Wonder I am not seeing network activity in the form of IPP broadcasts.
You could try running "cupsd" from the command line, check with ps that it's running and if not, there should be something in /var/log/cups/error_log. Until the server is up and running, there will be no ipp network broadcasts. When I ran rccups on the server the following was displayed: Server: # rccups start Starting cups #cupsd: Child exited with status 98! ( I had to Ctrl-C to get back to the #)
Client: #rccups start Shutdown cups Restarting cups # I had the same results when I ran #'rccups restart' [snip]
Also " lppasswd -a root" or you will get access errors from "http://localhost:631". Thanks for that. It partially solved getting into the CUPS web interface, on the client anyway.
Server: When I did a #'lppasswd -a root' on the server, the command completed OK, but when I tried to access the CUPS docs by entering in 'http://localhost:631' on the address bar of Firefox, the server quickly came back and told me that 'Connection refused whilst attempting to connect to localhost:631'. Even if I try and enter 'localhost:631' in a konqueror window, Firefox still strarts up and gives me the message. Client: Command completed no problem and I was able to get into the web admin interface using Mozilla Navigator, but after clicking on 'printers' and 'admin' the interface went belly up and displayed nothing but a white screen. The browser back button didn't help either.
YaST should also have setup stuff in /etc/cups/, printers.conf and printcap. That I'll look into later. At the moment I need to find out what cups error 98 is as I cannot find it via the SuSE help access to the CUPS manual. I also need to get cups started at boot. but for the life of me I do not know where to get it to start at boot. When I went into 'Network services' under Yast there was no cups service listed there and asides from that I didn't know all the details to add it in.
Regards -- ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
On Sat, 30 Apr 2005 23:54, Hylton Conacher (ZR1HPC) wrote:
...When I did press 'Print' on the Mozilla GUI I was presented with a KPrinter GUI that said it was initialising and that it was connected to Umalusi:631. NO amount of clicking on the close option or even looking for kprinter under a terminal screen could get the KPrinter dialogs to disappear. I also tried the printer manager from the printer icon on the task bar with the same result. It actually took 2 reboots to rid myself of the Kprinter dialogs.
So, now what needs tweaking? Especially since I get a 100msec ping reply from the server when I ping 192.168.0.1 on the client side.
I assume that because I am getting a reply back on the ping that the machines are 'talking' to one another. Where should I check error messages after I have tried to print?
For testing CUPS you should be using the commands that come with CUPS. Have a look at the manual that comes with cups before you end up messing up the config files again. http://localhost:631 Firstly what is the output of lpstat -t on both your server and client. Kprinter has the problem of not recognising a new IP address if it has an IP address already set. Check on the client machine in ~/.kde/share/config/kdeprinterrc and make sure it has the correct IP address in it as shown below [CUPS] Host=<IP-Address> (should be the same as /etc/cups/client.conf). Don't worry if there is no setting for your server as long as it doesn't have an invalid IP address. -- Regards, Graham Smith
Graham Smith wrote:
[snip]
For testing CUPS you should be using the commands that come with CUPS. Have a look at the manual that comes with cups before you end up messing up the config files again. http://localhost:631
I'll have a look at http://localhost:631 but will stay out of the files as much as possible, as, in theory, they work.
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
Kprinter has the problem of not recognising a new IP address if it has an IP address already set. Check on the client machine in ~/.kde/share/config/kdeprinterrc and make sure it has the correct IP address in it as shown below
[CUPS] Host=<IP-Address> Mine had the server name as the host and I changed it to the IP. Tnx
Don't worry if there is no setting for your server as long as it doesn't have an invalid IP address. 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?
-- ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
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 --------------------------------------- If you cannot get a similar output, then cups is not starting. Have a look at the error messages in /var/log/cups/error_log It should give you a reason why it is failing. If you can't work out what is wrong send me the last part of the log. <SNIPPED>
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. The other thing I just thought of, if you have been using the printing manager in KDE it can corrupt the /etc/cups/cupsd.conf file. If that is the case have a look at the end of the file and check to see there are no extraneous lines been added to the file. -- Regards, Graham Smith
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 ========================================================================
Hylton Conacher (ZR1HPC) wrote:
hylton@Umalusi:~> lpstat -t lpstat:Unable to connect to server: connection refused
I believe it is refused because the server is not running.
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! This needs fixed. 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. You should check each of the bad lines above in your /etc/cups/cupsd.conf 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 Is this address reachable? E [07/May/2005:19:41:16 +0200] StartListening: Unable to bind socket for address 00000000:631 - Address already in use.
The reason the server is not running, it can't finish starting. I believe correcting the above errors will get you going. -- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Registered Linux user 231871
Sorry to all those helping me with this thread. I started work at a new company and have not had the energy for email when I arrive home late. Joe Morris (NTM) wrote:
Hylton Conacher (ZR1HPC) wrote:
hylton@Umalusi:~> lpstat -t lpstat:Unable to connect to server: connection refused
I believe it is refused because the server is not running. How can I get the server started and running on system boot? I would assume rccups restart would work but see below:
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!
This needs fixed. What is causing this and how can I fix this this hostname 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.
You should check each of the bad lines above in your /etc/cups/cupsd.conf Thanks. I do not understand the Bad BrowseAddress though. The #'s were just comment fields.
[snip]
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
Is this address reachable? Most definitely! It is the address of my server which I can ping.
E [07/May/2005:19:41:16 +0200] StartListening: Unable to bind socket for address 00000000:631 - Address already in use.
The reason the server is not running, it can't finish starting. I believe correcting the above errors will get you going.
I agree, but where can I find an explanation on my local machine about the error 98 that rccups gives when restarted? -- ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
Hylton Conacher (ZR1HPC) wrote:
Sorry to all those helping me with this thread. I started work at a new company and have not had the energy for email when I arrive home late.
Joe Morris (NTM) wrote:
Hylton Conacher (ZR1HPC) wrote:
hylton@Umalusi:~> lpstat -t lpstat:Unable to connect to server: connection refused
I believe it is refused because the server is not running.
How can I get the server started and running on system boot? I would assume rccups restart would work but see below:
"chkconfig cups" if it says "off", then do "chkconfig cups on".
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!
This needs fixed.
If you've got "HostNameLookups" in /etc/cupsd.conf on the server, comment it out.
What is causing this and how can I fix this this hostname 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.
You should check each of the bad lines above in your /etc/cups/cupsd.conf
Thanks. I do not understand the Bad BrowseAddress though. The #'s were just comment fields.
My /etc/cups/cupsd.conf is set as follows, but it works for all the clients on my local network. #BrowseAddress @LOCAL BrowseAddress @IF(eth0) BrowseAllow @LOCAL BrowseDeny All <Location /> Order Deny,Allow Deny From All Allow From 127.0.0.1 Allow From 127.0.0.2 Allow From @LOCAL </Location>
[snip]
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
Is this address reachable?
Most definitely! It is the address of my server which I can ping.
Exchange the IP address for the hostname, check also that there is an IP address/hostname pair in /etc/hosts like --- 192.168.0.1 <hostname> Seems it is looking for a hostname rather than an IP address.
E [07/May/2005:19:41:16 +0200] StartListening: Unable to bind socket for address 00000000:631 - Address already in use.
The reason the server is not running, it can't finish starting. I believe correcting the above errors will get you going.
I agree, but where can I find an explanation on my local machine about the error 98 that rccups gives when restarted?
It might be a good idea to paste the uncommented lines in /etc/cup/cupsd.conf on the server and /etc/cups/client.conf on the client here for an overall view of your settings. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot Retired IBM Mainframes and Sun Servers Tech Support Specialist Microsoft Windows Free Zone - Linux for all Computing Tasks
Sid Boyce wrote:
Hylton Conacher (ZR1HPC) wrote:
Sorry to all those helping me with this thread. I started work at a new company and have not had the energy for email when I arrive home late.
Joe Morris (NTM) wrote:
Hylton Conacher (ZR1HPC) wrote:
hylton@Umalusi:~> lpstat -t lpstat:Unable to connect to server: connection refused
I believe it is refused because the server is not running.
How can I get the server started and running on system boot? I would assume rccups restart would work but see below:
"chkconfig cups" if it says "off", then do "chkconfig cups on". Thanks Sid. On the server cups is on on the server.
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!
This needs fixed.
If you've got "HostNameLookups" in /etc/cupsd.conf on the server, comment it out. It was commented out on the server and not avail on client.
What is causing this and how can I fix this this hostname 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.
You should check each of the bad lines above in your /etc/cups/cupsd.conf
Thanks. I do not understand the Bad BrowseAddress though. The #'s were just comment fields.
My /etc/cups/cupsd.conf is set as follows, but it works for all the clients on my local network.
#BrowseAddress @LOCAL BrowseAddress @IF(eth0)
BrowseAllow @LOCAL BrowseDeny All
<Location /> Order Deny,Allow Deny From All Allow From 127.0.0.1 Allow From 127.0.0.2 Allow From @LOCAL </Location>
[snip]
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
Is this address reachable?
Most definitely! It is the address of my server which I can ping.
Exchange the IP address for the hostname, check also that there is an IP address/hostname pair in /etc/hosts like --- 192.168.0.1 <hostname> Seems it is looking for a hostname rather than an IP address. I'm going to skip changing it to the hostname for now as an earlier poster suggested it was better to use IP address, but I will definitely keep it in mind.
-- ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
On Sun, 8 May 2005 03:54, Hylton Conacher (ZR1HPC) wrote:
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: 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.
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.
At a guess your /etc/hosts file is incorrectly configured in your server machine and more than likely in your client machine as well. Make sure you have an entry in the above file for 192.168.0.1 Can you please post the file to the list so that we can see where the mistakes are. -- Regards, Graham Smith
Graham Smith wrote:
On Sun, 8 May 2005 03:54, Hylton Conacher (ZR1HPC) wrote:
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: 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.
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.
At a guess your /etc/hosts file is incorrectly configured in your server machine and more than likely in your client machine as well. Make sure you have an entry in the above file for 192.168.0.1
Can you please post the file to the list so that we can see where the mistakes are. I tried posting my cupsd/client.conf and hosts files from both trhe server and client and the message was returned me with amongst other things:
: ezmlm-reject: fatal: Sorry, I don't accept messages larger than 20000 bytes (#5.2.3)
What I cannot understand is that I bvasically pasted teh conf files you sent me privately Graham. -- ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
On Tue, 17 May 2005 04:18, Hylton Conacher (ZR1HPC) wrote:
Graham Smith wrote:
At a guess your /etc/hosts file is incorrectly configured in your server machine and more than likely in your client machine as well. Make sure you have an entry in the above file for 192.168.0.1
Can you please post the file to the list so that we can see where the mistakes are.
I tried posting my cupsd/client.conf and hosts files from both trhe server and client and the message was returned me with amongst other things:
: ezmlm-reject: fatal: Sorry, I don't accept messages larger than 20000 bytes (#5.2.3) What I cannot understand is that I bvasically pasted teh conf files you sent me privately Graham.
I asked you to post your /etc/hosts file because you have something wrong with your network configuration. That is what all the error messages in the cups log are saying and Cups will not start until you sort out your network configuration problems. You can send them to me directly if you like and I'll sort it out for you. I hate it when these things drag on forever. -- Regards, Graham Smith
Graham Smith wrote:
On Sun, 8 May 2005 03:54, Hylton Conacher (ZR1HPC) wrote:
[snip]
At a guess your /etc/hosts file is incorrectly configured in your server machine and more than likely in your client machine as well. Make sure you have an entry in the above file for 192.168.0.1
Can you please post the file to the list so that we can see where the mistakes are. Below find my server and client /etc/hosts files:
Client: # hosts This file describes a number of hostname-to-address # mappings for the TCP/IP subsystem. It is mostly # used at boot time, when no name servers are running. # On small systems, this file can be used instead of a # "named" name server. # Syntax: # # IP-Address Full-Qualified-Hostname Short-Hostname # 127.0.0.1 localhost # special IPv6 addresses ::1 localhost ipv6-localhost ipv6-loopback fe00::0 ipv6-localnet ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts #192.168.0.1 Umalusi.home.net.za Umalusi 192.168.0.2 Spy.home.net.za Spy Server: # # hosts This file describes a number of hostname-to-address # mappings for the TCP/IP subsystem. It is mostly # used at boot time, when no name servers are running. # On small systems, this file can be used instead of a # "named" name server. # Syntax: # # IP-Address Full-Qualified-Hostname Short-Hostname # 127.0.0.1 localhost # special IPv6 addresses ::1 localhost ipv6-localhost ipv6-loopback fe00::0 ipv6-localnet ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts 192.168.0.1 Umalusi.home.net.za Umalusi -- ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
Graham Smith wrote:
On Sat, 30 Apr 2005 23:54, Hylton Conacher (ZR1HPC) wrote:
...When I did press 'Print' on the Mozilla GUI I was presented with a KPrinter GUI that said it was initialising and that it was connected to Umalusi:631. NO amount of clicking on the close option or even looking for kprinter under a terminal screen could get the KPrinter dialogs to disappear. I also tried the printer manager from the printer icon on the task bar with the same result. It actually took 2 reboots to rid myself of the Kprinter dialogs.
So, now what needs tweaking? Especially since I get a 100msec ping reply from the server when I ping 192.168.0.1 on the client side.
I assume that because I am getting a reply back on the ping that the machines are 'talking' to one another. Where should I check error messages after I have tried to print?
For testing CUPS you should be using the commands that come with CUPS. Have a look at the manual that comes with cups before you end up messing up the config files again. http://localhost:631 I tried by opening up Mozilla MAil, making sure I was offline, opened a Navigator session, went online and entered te above text. Immediately a message appeared:
'Unable to browse the above as the connection was refused when trying to connect to http://localhost:631' Below text snipped as answered in an earlier email. -- ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
On Thu, 5 May 2005 01:51, Hylton Conacher (ZR1HPC) wrote:
'Unable to browse the above as the connection was refused when trying to connect to http://localhost:631'
You should be able to use konqueror to open the above URL or try http://127.0.0.1:631 (If the latter one works I suspect that your /etc/hosts is not configured properly). If that doesn't work you can down load the manual from http://www.cups.org/documentation.php The one you need is the Software Users Manual -- Regards, Graham Smith
On Wednesday 04 May 2005 13:03, Graham Smith wrote:
On Thu, 5 May 2005 01:51, Hylton Conacher (ZR1HPC) wrote:
'Unable to browse the above as the connection was refused when trying to connect to http://localhost:631'
You should be able to use konqueror to open the above URL or try http://127.0.0.1:631 (If the latter one works I suspect that your /etc/hosts is not configured properly).
If that doesn't work you can down load the manual from http://www.cups.org/documentation.php The one you need is the Software Users Manual Hi Graham Smith,
I have installed CUPS as part of the standard 9.3 SUSE install, but when I go to localhost:631 and make a selection it askes that I logon. I tried root and my root p/w but that was not accepted. What is one to do at that point? PeterB
On Wed, May 04, 2005 at 01:14:10PM -0500, Peter B Van Campen wrote:
I have installed CUPS as part of the standard 9.3 SUSE install, but when I go to localhost:631 and make a selection it askes that I logon. I tried root and my root p/w but that was not accepted. What is one to do at that point?
Read http://portal.suse.com/sdb/en/2004/03/jsmeix_print-einrichten-91.html, especially part "Changes in CUPS" about lppasswd. -Kastus
On Thu, 5 May 2005 04:14, Peter B Van Campen wrote:
I have installed CUPS as part of the standard 9.3 SUSE install, but when I go to localhost:631 and make a selection it askes that I logon. I tried root and my root p/w but that was not accepted. What is one to do at that point?
PeterB
You should not be asked for a password when you connect to localhost:631 but if you try to do any printer administration you will be asked for one. Unless you have used lppasswd to assign a password you won't get any further. man lppasswd will give you full details for the command but I generally use lppasswd -a root to assign a password to root for this. -- Regards, Graham Smith
participants (6)
-
Graham Smith
-
Hylton Conacher (ZR1HPC)
-
Joe Morris (NTM)
-
Kastus
-
Peter B Van Campen
-
Sid Boyce