Bugzilla – Attachment 47292 Details for
Bug 106335
cupsd cannot talk to smb printer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
lots of details
temp.printer (text/plain), 8.26 KB, created by
Thomas Horsley
on 2005-08-24 00:28:05 UTC
(
hide
)
Description:
lots of details
Filename:
MIME Type:
Creator:
Thomas Horsley
Created:
2005-08-24 00:28:05 UTC
Size:
8.26 KB
patch
obsolete
>>Required Packages: >> >> * The package "samba-client" is needed for sending data (printer data) >> to an SMB share. >> >> * Additionally, a complete print system (CUPS or LPRng and lpdfilter) is >> needed. > >root@batcave> rpm -q samba-client >samba-client-3.0.20rc2-2 >root@batcave> rpm -q cups >cups-1.1.23-15 > >>Determining the NetBIOS Names: >>The command "nmbstatus" lists the workgroups available in the network and >>the respective NetBIOS host names, for example: >> >>user@host> nmbstatus >>Found 123 hosts. Collecting additional information. Please wait. >>... >>WORKGROUP TUX-NET >>MEMBERS GEEKO TUX >>... > >I get: > >root@batcave> nmbstatus >Found 2 hosts. Collecting additional information. Please wait. >.. >WORKGROUP CLOYD >LMB CLOYD >MEMBERS CLOYD > >WORKGROUP WORKGRP >LMB SPIKE >MEMBERS SPIKE > >(CLOYD is the XP box with the printer on it, and I see nmbstatus is claiming >the workgroup name is CLOYD - this is simply not true. I double and triple >checked on the XP box, and it says the workgroup name is WORKGRP and the >other computers on my local network find cloyd in WORKGRP, so maybe this is >the problem, but everything else below worked fine, so maybe this is >just a silly bug in nmbstatus). > >>Determining the Available Shares: >>The command "smbclient -L NetBIOS-hostname -N" lists available shares on the >>SMB host with the specified NetBIOS host names, for example: >> >>user@host> smbclient -L GEEKO -N >>... >>Sharename Type Comment >>--------- ---- ------- >>LPT1 Printer >>... > >I get (deleting irrelevant junk): > >root@batcave> smbclient -L CLOYD -N >Domain=[CLOYD] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] > > Sharename Type Comment > --------- ---- ------- > ... > HPLaserJ Printer HP LaserJet 6L > ... >Domain=[CLOYD] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] > > Server Comment > --------- ------- > > Workgroup Master > --------- ------- > >That is looking good, the HPLaserJ is the printer I'm trying to reach. > > >>Testing the Printer: >>The following command sends one carriage-return character "\r" to the >>printer via the SMB share. Nothing is printed, but the printer may eject an >>empty page. >> >>echo -en "\r" | smbclient "//NetBIOS-hostname/share" -c "print -" -N > >root@batcave> echo -en "\r" | smbclient "//CLOYD/HPLaserJ" -c "print -" -N >Domain=[CLOYD] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] >putting file - as stdin-5368 (0.0 kb/s) (average 0.0 kb/s) > >The printer lights flashed when I did that, so it certainly made >something happen to the printer (though no blank page was printed). > >>If the printer is able to print ASCII text directly (without filtering), the >>echo command can be replaced with the command >> >>echo -en "\rHello\r\f" >> >>to print the word "Hello". > >I tried that and got this: > >root@batcave> echo -en "\rHello\r\f" | smbclient "//CLOYD/HPLaserJ" -c "print -" -N >Domain=[CLOYD] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] >putting file - as stdin-5412 (0.7 kb/s) (average 0.7 kb/s) > >And that actually did print a page that says "Hello". > >>The Correct DeviceURI for CUPS: >>In CUPS, the DeviceURI in /etc/cups/printers.conf determines how the data >>should be sent to the printer (or to the SMB share). The DeviceURI must be >>as specified in "man smbspool": > >The file apparently constructed by the setup apps on my machine looks like: > ><DefaultPrinter LaserJet-6L> >Info LaserJet-6L >DeviceURI smb://CLOYD/HPLaserJ >State Idle >Accepting Yes >JobSheets none none >QuotaPeriod 0 >PageLimit 0 >KLimit 0 ></Printer> > >The URI certainly appears to match the description above. > >Looks like each piece works, but collectively, nothing happens :-). > >Is there some service that needs to be running other than cupsd for the >printing to work, some separate print spooler or something? The printer >info apps all imply that the job is queued up, but nothing is happening to >it. > >Having tested the pieces, I decided to delete the old printer defs, clean >out the cups log files, and start from scratch, configuring a new printer >using a GNOME session and the printer config wizard in the GNOME control >center (which seems a bit friendlier to me than yast). > >However, I did get a couple of strange errors in the process. As soon >as I tell it I want to add a network printer, it pops up a dialog box >asking fro username and password for the fedora core 4 system I have >on the network (which doesn't have a printer, and shouldn't be involved >in any of this stuff :-). > >Once I do configure the HPLaserJ on CLOYD and hit the "Apply" button, >it immediately pops up an error dialog saying the printer is not >found, then a few seconds later, the printer icon appears in the >printers dialog box I started this from (next to the "New Printer" >icon). > >After doing that, I got the same results as before. Here's the complete >error log: > >I [23/Aug/2005:19:30:35 -0400] Listening to 0:631 >I [23/Aug/2005:19:30:35 -0400] Loaded configuration file "/etc/cups/cupsd.conf" >I [23/Aug/2005:19:30:35 -0400] Configured for up to 100 clients. >I [23/Aug/2005:19:30:35 -0400] Allowing up to 100 client connections per host. >I [23/Aug/2005:19:30:35 -0400] Full reload is required. >I [23/Aug/2005:19:30:39 -0400] LoadPPDs: Read "/etc/cups/ppds.dat", 3941 PPDs... >I [23/Aug/2005:19:30:43 -0400] LoadPPDs: No new or changed PPDs... >I [23/Aug/2005:19:30:43 -0400] Full reload complete. >I [23/Aug/2005:19:35:25 -0400] Setting LaserJet-6L device-uri to "smb://CLOYD/HPLaserJ" (was "file:/dev/null".) >I [23/Aug/2005:19:35:25 -0400] Setting LaserJet-6L printer-is-accepting-jobs to 1 (was 0.) >I [23/Aug/2005:19:35:25 -0400] Setting LaserJet-6L printer-state to 3 (was 5.) >I [23/Aug/2005:19:35:25 -0400] Saving printers.conf... >I [23/Aug/2005:19:35:25 -0400] New printer 'LaserJet-6L' added by 'root'. >I [23/Aug/2005:19:36:57 -0400] Scheduler shutting down normally. >I [23/Aug/2005:19:38:25 -0400] Listening to 0:631 >I [23/Aug/2005:19:38:25 -0400] Loaded configuration file "/etc/cups/cupsd.conf" >I [23/Aug/2005:19:38:26 -0400] Configured for up to 100 clients. >I [23/Aug/2005:19:38:26 -0400] Allowing up to 100 client connections per host. >I [23/Aug/2005:19:38:26 -0400] Full reload is required. >I [23/Aug/2005:19:38:33 -0400] LoadPPDs: Read "/etc/cups/ppds.dat", 3941 PPDs... >I [23/Aug/2005:19:38:36 -0400] LoadPPDs: No new or changed PPDs... >I [23/Aug/2005:19:38:36 -0400] Full reload complete. >I [23/Aug/2005:19:39:50 -0400] Adding start banner page "none" to job 1. >I [23/Aug/2005:19:39:50 -0400] Adding end banner page "none" to job 1. >I [23/Aug/2005:19:39:50 -0400] Job 1 queued on 'LaserJet-6L' by 'root'. >I [23/Aug/2005:19:39:50 -0400] Started filter /usr/lib/cups/filter/pstops (PID 4972) for job 1. >I [23/Aug/2005:19:39:50 -0400] Started filter /usr/lib/cups/filter/foomatic-rip (PID 4973) for job 1. >I [23/Aug/2005:19:39:50 -0400] Started backend /usr/lib/cups/backend/smb (PID 4974) for job 1. >E [23/Aug/2005:19:39:51 -0400] [Job 1] No ticket cache found for userid=0 >E [23/Aug/2005:19:39:51 -0400] [Job 1] Can not get the ticket cache for root >E [23/Aug/2005:19:39:51 -0400] [Job 1] Tree connect failed >E [23/Aug/2005:19:39:52 -0400] [Job 1] Unable to connect to SAMBA host, will retry in 60 seconds...foomatic-rip version $Revision: 3.48 $ running... >E [23/Aug/2005:19:40:51 -0400] [Job 1] No ticket cache found for userid=0 >E [23/Aug/2005:19:40:51 -0400] [Job 1] Can not get the ticket cache for root >E [23/Aug/2005:19:40:51 -0400] [Job 1] Tree connect failed >E [23/Aug/2005:19:41:51 -0400] [Job 1] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: No ticket cache found for userid=0 >E [23/Aug/2005:19:41:51 -0400] [Job 1] Can not get the ticket cache for root >E [23/Aug/2005:19:41:51 -0400] [Job 1] Tree connect failed > >Looking on the web for "ticket cache", all I find are references to some >kerberos related nonsense. I don't have kerberos configured on any of my >machines (at least not deliberately), so if it is trying to get to the >windows box via some kind of kerberos authentication, I don't blame it for >not working (but have no idea why it would try that :-). > >For grins, I also tried adding the WORKGRP to the DeviceURI manually >and restarting cups, but neither WORKGRP nor CLOYD functioned any >better than it did without the workgroup name in the uri. > >That's pretty much exhausted everything I know how to try :-).
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 106335
: 47292 |
47824
|
47825
|
55194
|
55202
|
57747