Bug 803325 - New F16 install can't use/see network printers
Summary: New F16 install can't use/see network printers
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: 16
Hardware: i686
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-14 12:58 UTC by Jonathan Allen
Modified: 2012-03-27 10:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-27 10:42:52 UTC
Type: ---


Attachments (Terms of Use)
text file produced by printer troubleshooting (17.73 KB, text/plain)
2012-03-14 15:34 UTC, Jonathan Allen
no flags Details
/var/log/cups/error_log (1.27 KB, text/plain)
2012-03-14 17:50 UTC, Jonathan Allen
no flags Details
TGZ of the 'c' files from /var/spool/cups (817 bytes, application/octet-stream)
2012-03-19 12:50 UTC, Jonathan Allen
no flags Details
text file from printer troubleshooting (23.39 KB, text/plain)
2012-03-26 16:26 UTC, Jonathan Allen
no flags Details

Description Jonathan Allen 2012-03-14 12:58:47 UTC
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:

Comment 1 Jonathan Allen 2012-03-14 13:11:53 UTC
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.

Comment 2 Tim Waugh 2012-03-14 13:22:43 UTC
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.

Comment 3 Jonathan Allen 2012-03-14 15:34:47 UTC
Created attachment 570018 [details]
text file produced by printer troubleshooting

troubleshooting text file as requested

Comment 4 Tim Waugh 2012-03-14 17:22:24 UTC
Could you please attach /var/log/cups/error_log?

Comment 5 Jonathan Allen 2012-03-14 17:50:05 UTC
Created attachment 570050 [details]
/var/log/cups/error_log

/var/log/cups/error_log as requested

Comment 6 Tim Waugh 2012-03-16 16:06:39 UTC
What does this say?:

su -c 'iptables -L -n'

Comment 7 Jonathan Allen 2012-03-16 16:13:37 UTC
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

Comment 8 Tim Waugh 2012-03-16 17:16:57 UTC
You need to start system-config-firewall and allow 'Network Printing Client (IPP)'.

Comment 9 Jonathan Allen 2012-03-19 12:48:19 UTC
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

Comment 10 Jonathan Allen 2012-03-19 12:50:08 UTC
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.

Comment 11 Tim Waugh 2012-03-26 12:23:14 UTC
Please run the troubleshooter again and attach the new troubleshoot.txt file you get.

Comment 12 Jonathan Allen 2012-03-26 16:26:02 UTC
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.

Comment 13 Tim Waugh 2012-03-27 08:11:12 UTC
Thanks.  The client machine is not able to resolve the hostname of the print server.

What does 'ping purse.barumtrading.co.uk' say?

Comment 14 Jonathan Allen 2012-03-27 10:35:13 UTC
'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

Comment 15 Jonathan Allen 2012-03-27 10:42:52 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.