[Samba] printing errors

Tony McGrew tony at multicam.com
Wed Aug 7 08:02:02 GMT 2002


Joel,
Thanks for the reply.
The job is sent preformatted.  In the log it says file type raw (which is
what I want, just a spooler basically).  The windows driver is the same one
I use for the netware spooler.
Below is the output from one the files through xxd.  Looks OK as far as I
can tell but I don't really know much about it.  This is using the d350
driver that I use running it through novell.  I will try soemtime today to
set up and let samba format the printing and not try to print raw and see if
that helps.


0000000: 0101 0002 0000 0001 0147 0012 6174 7472  .........G..attr
0000010: 6962 7574 6573 2d63 6861 7273 6574 000a  ibutes-charset..
0000020: 6973 6f2d 3838 3539 2d31 4800 1b61 7474  iso-8859-1H..att
0000030: 7269 6275 7465 732d 6e61 7475 7261 6c2d  ributes-natural-
0000040: 6c61 6e67 7561 6765 0005 656e 2d75 7345  language..en-usE
0000050: 000b 7072 696e 7465 722d 7572 6900 2869  ..printer-uri.(i
0000060: 7070 3a2f 2f6c 6f63 616c 686f 7374 3a36  pp://localhost:6
0000070: 3331 2f70 7269 6e74 6572 732f 4d69 6e6f  31/printers/Mino
0000080: 6c74 615f 3335 3002 4200 196a 6f62 2d6f  lta_350.B..job-o
0000090: 7269 6769 6e61 7469 6e67 2d75 7365 722d  riginating-user-
00000a0: 6e61 6d65 0004 746f 6e79 0142 0008 6a6f  name..tony.B..jo
00000b0: 622d 6e61 6d65 0014 736d 6270 726e 2e30  b-name..smbprn.0
00000c0: 3030 3033 352e 464e 6532 4253 4900 0f64  00035.FNe2BSI..d
00000d0: 6f63 756d 656e 742d 666f 726d 6174 0018  ocument-format..
00000e0: 6170 706c 6963 6174 696f 6e2f 766e 642e  application/vnd.
00000f0: 6375 7073 2d72 6177 0242 000a 6a6f 622d  cups-raw.B..job-
0000100: 7368 6565 7473 0004 6e6f 6e65 4200 0000  sheets..noneB...
0000110: 046e 6f6e 6521 000c 6a6f 622d 7072 696f  .none!..job-prio
0000120: 7269 7479 0004 0000 0032 4200 196a 6f62  rity.....2B..job
0000130: 2d6f 7269 6769 6e61 7469 6e67 2d68 6f73  -originating-hos
0000140: 742d 6e61 6d65 0010 7066 732e 6d75 6c74  t-name..pfs.mult
0000150: 6963 616d 2e63 6f6d 2100 066a 6f62 2d69  icam.com!..job-i
0000160: 6400 0400 0000 3123 0009 6a6f 622d 7374  d.....1#..job-st
0000170: 6174 6500 0400 0000 0921 001a 6a6f 622d  ate......!..job-
0000180: 6d65 6469 612d 7368 6565 7473 2d63 6f6d  media-sheets-com
0000190: 706c 6574 6564 0004 0000 0001 4500 0f6a  pleted......E..j
00001a0: 6f62 2d70 7269 6e74 6572 2d75 7269 0030  ob-printer-uri.0
00001b0: 6874 7470 3a2f 2f70 6673 2e6d 756c 7469  http://pfs.multi
00001c0: 6361 6d2e 636f 6d3a 3633 312f 7072 696e  cam.com:631/prin
00001d0: 7465 7273 2f4d 696e 6f6c 7461 5f33 3530  ters/Minolta_350
00001e0: 4200 086a 6f62 2d6e 616d 6500 1473 6d62  B..job-name..smb
00001f0: 7072 6e2e 3030 3030 3335 2e46 4e65 3242  prn.000035.FNe2B
0000200: 5321 000c 6a6f 622d 6b2d 6f63 7465 7473  S!..job-k-octets
0000210: 0004 0000 0051 2100 1074 696d 652d 6174  .....Q!..time-at
0000220: 2d63 7265 6174 696f 6e00 043d 512f e021  -creation..=Q/a!
0000230: 0012 7469 6d65 2d61 742d 7072 6f63 6573  ..time-at-proces
0000240: 7369 6e67 0004 3d51 2fe0 2100 1174 696d  sing..=Q/a!..tim
0000250: 652d 6174 2d63 6f6d 706c 6574 6564 0004  e-at-completed..
0000260: 3d51 2fe1 4400 0e6a 6f62 2d68 6f6c 642d  =Q/aD..job-hold-
0000270: 756e 7469 6c00 076e 6f2d 686f 6c64 03    until..no-hold.

Thank you very much for the reply.

Tony McGrew
WWW.Multicam.com <http://www.Multicam.com>


-----Original Message-----
From: Joel Hammer [mailto:Joel at HammersHome.com]
Sent: Tuesday, August 06, 2002 5:22 PM
To: Tony McGrew; samba at lists.samba.org
Subject: Re: [Samba] printing errors


I do not know a thing about cups.

I note you have a lot of defaults in your printing shares, so I don't know
exactly how to do this with your set up but:

This sounds like a driver problem.

Does the samba server filter the job or is the job transferred preformatted?

To trouble shoot this, look at the file that is transferred from the
client to samba. It should be somewhere in your samba spool directory. How
is it formatted? Can you read it with anything like gv or xxd?

I would try different drivers, including a postscript generic driver,
and see if the file is transferred with all characters intact. If you
have a driver on your samba server that can send ghostscript files to
your printer, then use the IBM Laserjet III plus driver on your windows
client to send jobs to the server, and then let the server filter those
jobs before sending them to the printer.

Joel




On Tue, Aug 06, 2002 at 10:01:00AM -0500, Tony McGrew wrote:
> I am using samba 2.2.5 with cups 1.1.15  Rh 7.3
>
> Still when I am printing form my W2K box some of the data gets left out.
If
> I am printing a text document, a spreadsheet, or an email (maybe
everything,
> that's all I usually print) some letter get left off.  It varies from doc
to
> doc but not from one print to the next.  If I print an email and all the H
> are gone and I reprint that same email the H's will still be gone, but if
I
> print a spreadsheet maybe the C's or the P's will be missing.  Sometimes
it
> is only one letter, sometimes more.  I print directly from the linux box
> with the cups test page with no problems.  Below is some of the error log
> and my smb.conf file.  If I cannot get this figured out I will have to
keep
> our netware server just for printing (bad deal).  The windows test page is
> OK also.  I haven't seen any missing letters in it.  Maybe file size is
> relevant?  This server is not in a domain, just a workgroup.
>
>
> D [06/Aug/2002:09:37:49 -0500] AcceptClient() 3 from pfs.multicam.com:631.
> D [06/Aug/2002:09:37:49 -0500] ReadClient() 3 POST / HTTP/1.1
> D [06/Aug/2002:09:37:49 -0500] CloseClient() 3
> D [06/Aug/2002:09:37:49 -0500] AcceptClient() 3 from pfs.multicam.com:631.
> D [06/Aug/2002:09:37:49 -0500] ReadClient() 3 POST / HTTP/1.1
> D [06/Aug/2002:09:37:49 -0500] CloseClient() 3
> D [06/Aug/2002:09:37:49 -0500] AcceptClient() 3 from pfs.multicam.com:631.
> D [06/Aug/2002:09:37:49 -0500] ReadClient() 3 POST / HTTP/1.1
> D [06/Aug/2002:09:37:49 -0500] ReadClient() 3 POST /printers/Minolta_350
> HTTP/1.1
> D [06/Aug/2002:09:37:49 -0500] print_job: auto-typing file...
> D [06/Aug/2002:09:37:49 -0500] print_job: request file type is
> application/vnd.cups-raw.
> D [06/Aug/2002:09:37:49 -0500] check_quotas: requesting-user-name = 'tony'
> D [06/Aug/2002:09:37:49 -0500] print_job: requesting-user-name = 'tony'
> I [06/Aug/2002:09:37:49 -0500] Job 43 queued on 'Minolta_350' by 'tony'.
> D [06/Aug/2002:09:37:49 -0500] Job 43 hold_until = 0
> D [06/Aug/2002:09:37:49 -0500] StartJob(43, 0x8090bf0)
> D [06/Aug/2002:09:37:49 -0500] StartJob() id = 43, file = 0/1
> D [06/Aug/2002:09:37:49 -0500] job-sheets=none,none
> D [06/Aug/2002:09:37:49 -0500] banner_page = 0
> D [06/Aug/2002:09:37:49 -0500] StartJob: argv =
>
"Minolta_350","43","tony","smbprn.000027.tqfPEg","1","","/var/spool/cups/d00
> 043-001"
> D [06/Aug/2002:09:37:49 -0500] StartJob: envp =
>
"PATH=/usr/lib/cups/filter:/bin:/usr/bin","SOFTWARE=CUPS/1.1","USER=root","C
>
HARSET=iso-8859-1","LANG=en_US","TZ=America/Chicago","PPD=/etc/cups/ppd/Mino
>
lta_350.ppd","CUPS_SERVERROOT=/etc/cups","RIP_MAX_CACHE=8m","TMPDIR=/var/spo
>
ol/cups/tmp","CONTENT_TYPE=application/vnd.cups-raw","DEVICE_URI=socket://19
>
2.168.0.10:10001","PRINTER=Minolta_350","CUPS_DATADIR=/usr/share/cups","CUPS
> _FONTPATH=/usr/share/cups/fonts","","",""
> D [06/Aug/2002:09:37:49 -0500] StartJob: statusfds = 4, 6
> D [06/Aug/2002:09:37:49 -0500] StartJob: filterfds[1] = 8, -1
> D [06/Aug/2002:09:37:49 -0500] StartJob: backend =
> "/usr/lib/cups/backend/socket"
> D [06/Aug/2002:09:37:49 -0500] StartJob: filterfds[0] = -1, 9
> D [06/Aug/2002:09:37:49 -0500]
start_process("/usr/lib/cups/backend/socket",
> 0xbfff1980, 0xbffece30, 8, 9, 6)
> I [06/Aug/2002:09:37:49 -0500] Started backend
/usr/lib/cups/backend/socket
> (PID 17476) for job 43.
> D [06/Aug/2002:09:37:49 -0500] CloseClient() 3
> D [06/Aug/2002:09:37:50 -0500] UpdateJob: job 43, file 0 is complete.
> D [06/Aug/2002:09:37:50 -0500] CancelJob: id = 43
> D [06/Aug/2002:09:37:50 -0500] StopJob: id = 43, force = 0
> D [06/Aug/2002:09:37:50 -0500] StopJob: printer state is 3
> D [06/Aug/2002:09:37:59 -0500] AcceptClient() 3 from pfs.multicam.com:631.
> D [06/Aug/2002:09:37:59 -0500] AcceptClient() 4 from pfs.multicam.com:631.
> D [06/Aug/2002:09:37:59 -0500] ReadClient() 4 POST / HTTP/1.1
> D [06/Aug/2002:09:37:59 -0500] CloseClient() 4
> D [06/Aug/2002:09:37:59 -0500] AcceptClient() 4 from pfs.multicam.com:631.
> D [06/Aug/2002:09:37:59 -0500] ReadClient() 4 POST / HTTP/1.1
>
>
> relevant smb.conf
>
> [global]
>         workgroup = Some Workgroup
>         server string = PFS Samba Server
>         encrypt passwords = Yes
>         passwd program = /usr/bin/passwd %u
>         passwd chat = *New*password* %n\n *Retype*new*password* %n\n
> *passwd:*all*authentication*tokens*updated*successfully*
>         unix password sync = Yes
>         log file = /var/log/samba/%m.log
>         max log size = 0
>         socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>         dns proxy = No
>         printing = cups
>
>
> [printers]
>         comment = All Printers
>         path = /var/spool/samba
>         printer admin = tony
>         guest ok = Yes
>         printable = Yes
>         use client driver = Yes
>         browseable = No
>
> [Minolta_350]
>         path = /var/spool/samba
>         printer admin = tony
>         read only = No
>         guest ok = Yes
>         printable = Yes
>         printer name = Minolta_350
>         use client driver = Yes
>         oplocks = No
>
> Thank you.
> Tony McGrew
> WWW.Multicam.com
>




More information about the samba mailing list