Hide Forgot
Description of problem: New F16 install cannot see CUPS printers on the network. Kernal 3.2.9-2.fc16.i686.PAE, XFCE desktop, fully up-to-date as on half an hour ago, then rebooted. Machine 192.168.1.128, printers actually on 192.168.1.10. /var/log/cups/error_log contains: E [14/Mar/2012:11:16:35 +0000] Unable to bind socket for address [v1.::1]:631 - Address already in use. E [14/Mar/2012:11:16:35 +0000] Unable to bind broadcast socket - Address already in use. Running printer diagnostic and specifying the server name and IP address shows all the system printers and suggests no remedy, but this appears in error_log: E [14/Mar/2012:12:06:06 +0000] Browsing=1 E [14/Mar/2012:12:06:06 +0000] BrowseLocalProtocols=0 E [14/Mar/2012:12:06:06 +0000] BrowseRemoteProtocols=1 E [14/Mar/2012:12:06:06 +0000] BROWSE_CUPS=1 before returning to: E [14/Mar/2012:12:06:06 +0000] Unable to bind socket for address [v1.::1]:631 - Address already in use. Version-Release number of selected component (if applicable): cups.i686 1:1.5.2-1.fc16 cups-libs.i686 1:1.5.2-1.fc16 How reproducible: Completely; reboots and restarts don't make any difference Steps to Reproduce: 1.start machine 2.login; start shell 3.type lpstat -a (to see no printers) Actual results: lpstat: No destinations added. Expected results: (from a F14 machine on the network) 4500d accepting requests since Mon 31 Oct 2011 11:46:04 AM GMT 5550dn accepting requests since Mon 31 Oct 2011 11:46:04 AM GMT laser accepting requests since Mon 31 Oct 2011 11:46:04 AM GMT P2015 accepting requests since Mon 31 Oct 2011 11:46:04 AM GMT Additional info:
Applications->Administration->printing shows no local printers; file->connect pointed at the printer host by its IP address shows all four printers, but 'lpstat' still continues to ignore them.
When you ran the troubleshooter did it offer you the opportunity to save a 'troubleshoot.txt' file on the final screen? That file would be useful to look at.
Created attachment 570018 [details] text file produced by printer troubleshooting troubleshooting text file as requested
Could you please attach /var/log/cups/error_log?
Created attachment 570050 [details] /var/log/cups/error_log /var/log/cups/error_log as requested
What does this say?: su -c 'iptables -L -n'
Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTA BLISHED ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt: 22 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-h ost-prohibited Chain FORWARD (policy ACCEPT) target prot opt source destination REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-h ost-prohibited Chain OUTPUT (policy ACCEPT) target prot opt source destination
You need to start system-config-firewall and allow 'Network Printing Client (IPP)'.
Sadly, although that does bring some improvement, it doesn't actually get printing to happen. I disabled the firewall altogether (just to be sure) for the moment and LibreOffice and lpstat can now see all four print queues on the network server. I can generate print requests from LO or lpr at the command line, but they never leave the laptop. No log entries appear on the network server and no paper is disgorged from any printer. Here is the /var/log/cups/access_log, showing a couple of attempts to use 'lpr' to print files: localhost - - [18/Mar/2012:12:56:47 +0000] "POST /printers/P2015 HTTP/1.1" 200 +247 Create-Job successful-ok localhost - - [18/Mar/2012:12:56:47 +0000] "POST /printers/P2015 HTTP/1.1" 200 +16416 Send-Document successful-ok localhost - - [18/Mar/2012:12:56:48 +0000] "POST / HTTP/1.1" 200 343 +Create-Printer-Subscription successful-ok localhost - - [18/Mar/2012:13:00:18 +0000] "POST / HTTP/1.1" 200 154 +Cancel-Subscription successful-ok localhost - - [18/Mar/2012:13:00:18 +0000] "POST / HTTP/1.1" 200 343 +Create-Printer-Subscription successful-ok localhost - - [18/Mar/2012:13:06:08 +0000] "POST /printers/P2015 HTTP/1.1" 200 +299 Create-Job successful-ok localhost - - [18/Mar/2012:13:06:08 +0000] "POST /printers/P2015 HTTP/1.1" 200 +386 Send-Document successful-ok localhost - - [18/Mar/2012:13:06:30 +0000] "POST /printers/laser HTTP/1.1" 200 +299 Create-Job successful-ok localhost - - [18/Mar/2012:13:06:30 +0000] "POST /printers/laser HTTP/1.1" 200 +438 Send-Document successful-ok Here is /var/log/cups/error-log W [18/Mar/2012:12:21:26 +0000] failed to find device: cups-P2015 W [18/Mar/2012:12:21:36 +0000] failed to find device: cups-5550dn W [18/Mar/2012:12:21:37 +0000] failed to find device: cups-laser W [18/Mar/2012:12:21:50 +0000] failed to find device: cups-4500d and the output of 'lpq -a' Rank Owner Job File(s) Total Size active (null) 1 untitled 16384 bytes 1st (null) 2 untitled 1024 bytes active (null) 3 untitled 1024 bytes The printer icon appears on the screen and shows all three print requests with the status 'Not Connected', so in the attached .tgz file are the 'c' files from /var/spool/cups
Created attachment 571112 [details] TGZ of the 'c' files from /var/spool/cups These are the three c0000* files from /var/spool/cups showing the status of the print jobs on the laptop.
Please run the troubleshooter again and attach the new troubleshoot.txt file you get.
Created attachment 572800 [details] text file from printer troubleshooting Output file from printers->help->troubleshoot as requested. Upon boot, the previous c* and d* files in /var/spool/cups had been removed. I did "ls -la | lpr -PP2015" in /var/spool/cups and a d* file appeared containing the "ls" output as plain text; no c* file. I then tasked trouble shooting about the print queue. It could see all four printers, so I selected P2015 and followed through to text output (it enabled debugging on the way). It reported that there were status messages associated with this printer: can't find printer. Detailed output attached.
Thanks. The client machine is not able to resolve the hostname of the print server. What does 'ping purse.barumtrading.co.uk' say?
'ping' says: PING purse (192.168.1.10) 56(84) bytes of data. 64 bytes from purse (192.168.1.10): icmp_req=1 ttl=64 time=3.25 ms 64 bytes from purse (192.168.1.10): icmp_req=2 ttl=64 time=1.94 ms 64 bytes from purse (192.168.1.10): icmp_req=3 ttl=64 time=1.55 ms 64 bytes from purse (192.168.1.10): icmp_req=4 ttl=64 time=1.61 ms 64 bytes from purse (192.168.1.10): icmp_req=5 ttl=64 time=1.59 ms ^C --- purse ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4006ms rtt min/avg/max/mdev = 1.552/1.993/3.259/0.649 ms and to anticipate your next question, /etc/hosts contains: 127.0.0.1 clarissa clarissa.barumtrading.co.uk ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.1.1 mirror mirror.uk 192.168.1.10 purse purse.uk
OK, sorry - I've just seen and fixed that problem. I put an '@' rather than a '.' as the first delimited in the full machine name. Setting the '.' in place correctly solves the problem. Sorry to have taken up so much of your time.