Re: [Samba] printing issue after update to 3.6.1

2012-01-25 Thread Stefan Winter
Hi,

thanks for the quick reply - I just opened bug 8719.

https://bugzilla.samba.org/show_bug.cgi?id=8719

Greetings,

Stefan Winter

On 25.01.2012 17:59, David Disseldorp wrote:
> Hi Stefan,
> 
> On Wed, 25 Jan 2012 15:44:31 +0100
> Stefan Winter  wrote:
> 
> ...
>> So, for some reasons, jobid gets lost. Strangely enough, the file size is 
>> also zero.
>>
>> I'm sort of lost what would cause this. The thing I could
>> imagine is our fairly ancient cups on the system (1.2.7)
>> and that maybe 3.6.1 doesn't support some legacy CUPS API stuff that
>> 3.5.5 still did. That's the only straw I'm holding onto.
>>
>> Can anyone help out here?
> 
> The spoolss print job file open code-path has changed recently, looking
> at print_spool_open() it looks like the job file is created without
> taking the print jobid into account.
> 
> Please raise a bug with your logs attached.
> 
> Cheers, David


-- 
Stefan WINTER
Ingenieur de Recherche
Fondation RESTENA - Réseau Téléinformatique de l'Education Nationale et
de la Recherche
6, rue Richard Coudenhove-Kalergi
L-1359 Luxembourg

Tel: +352 424409 1
Fax: +352 422473



signature.asc
Description: OpenPGP digital signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] printing issue after update to 3.6.1

2012-01-25 Thread David Disseldorp
Hi Stefan,

On Wed, 25 Jan 2012 15:44:31 +0100
Stefan Winter  wrote:

...
> So, for some reasons, jobid gets lost. Strangely enough, the file size is 
> also zero.
> 
> I'm sort of lost what would cause this. The thing I could
> imagine is our fairly ancient cups on the system (1.2.7)
> and that maybe 3.6.1 doesn't support some legacy CUPS API stuff that
> 3.5.5 still did. That's the only straw I'm holding onto.
> 
> Can anyone help out here?

The spoolss print job file open code-path has changed recently, looking
at print_spool_open() it looks like the job file is created without
taking the print jobid into account.

Please raise a bug with your logs attached.

Cheers, David
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] printing issue after update to 3.6.1

2012-01-25 Thread Stefan Winter
Hello,

we've updated to 3.6.1 yesterday, and since encounter
problems with printing for some users. There's a
descriptive error in the log.smbd, but I can't see
what to do about it really (the rest of the,
admittedly fairly ancient system, is the same base
system as the previous 3.5.5 - only a couple of security
updates were patched in during downtime).

The message in log.smbd is:

  adminpc-rmarx (158.64.1.188) connect to service SuperJam PCL6 initially as 
user Administrator (uid=1003, gid=100) (pid 15885)
[2012/01/25 13:14:01.334500,  2] 
rpc_client/cli_winreg_spoolss.c:898(winreg_create_printer)
  winreg_create_printer: Skipping, SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\Print\Printers\SuperJam PCL6 already exists
[2012/01/25 13:14:01.575723,  0] printing/print_cups.c:940(cups_job_submit)
  cups_job_submit: failed to parse jobid from name 
/usr/local/samba/var/spool/samba/smbprn..CXRIP3
[2012/01/25 13:14:11.775067,  1] smbd/service.c:1291(close_cnum)
  adminpc-rmarx (158.64.1.188) closed connection to service SuperJam PCL6

And indeed, looking into the spool directory, the file
names which used to encode the jobid now don't any more.
For illustration, a few old spooled jobs in the right
format as well:

[... snip lots more of the same ...]
-rw--- 1 rmarx  users   0 Jan 25 15:29 smbprn..zfgbGg
-rw--- 1 rmarx  users   0 Jan 25 14:41 smbprn..zjVnMg
-rw--- 1 rmarx  users   0 Jan 25 08:46 smbprn..zpuUmw
-rw--- 1 rmarx  users   0 Jan 25 15:25 smbprn..zqdI3C
-rw--- 1 rmarx  users   0 Jan 25 15:09 smbprn..zqu3kj
-rw--- 1 rmarx  users   0 Jan 25 14:46 smbprn..zx3GuR
-rw--- 1 rmarx  users   0 Jan 25 15:28 smbprn..zxNUxy
-rw--- 1 tduhautpas users 1657499 Apr 21  2008 smbprn.0676.rcl7r5
-rw--- 1 tduhautpas users 3441093 Apr 21  2008 smbprn.0678.eJYB0d
-rw--- 1 tduhautpas users 1587952 Apr 21  2008 smbprn.0679.0TbJsK
-rw--- 1 tduhautpas users  581632 May 25  2009 smbprn.1277.TEBFAb
-rw--- 1 abarthel   users6774 Nov 15  2007 smbprn.2633.psJWJh
-rw--- 1 lbattani   users   53156 Dec 14  2007 smbprn.3546.e7BsgC
-rw--- 1 yschaafusers8179 Oct 17  2008 smbprn.6035.9IfNcf

So, for some reasons, jobid gets lost. Strangely enough, the file size is also 
zero.

I'm sort of lost what would cause this. The thing I could
imagine is our fairly ancient cups on the system (1.2.7)
and that maybe 3.6.1 doesn't support some legacy CUPS API stuff that
3.5.5 still did. That's the only straw I'm holding onto.

Can anyone help out here?

Greetings,

Stefan Winter

-- 
Stefan WINTER
Ingenieur de Recherche
Fondation RESTENA - Réseau Téléinformatique de l'Education Nationale et de la 
Recherche
6, rue Richard Coudenhove-Kalergi
L-1359 Luxembourg

Tel: +352 424409 1
Fax: +352 422473



signature.asc
Description: OpenPGP digital signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

[Samba] Printing issue in Samba

2004-03-31 Thread Pat Craddock
Hello! I am a relatively new user to Samba and have run in to a snag 
with printing. I have Samba set up on a SuSE 9.0 server. I had no 
problems setting up shares for disk access to my Win2K boxes. I can 
attach to the shares very easily. I can also see that the shares are 
active from SWAT. The problem I have is with printing. I can get to the 
printer over the lan and even see the que update when I print directly 
from the server, so I know I have the que set up correctly. The problem 
is, when I try to print from the Windows boxes, the packets get to the 
server, but no pages are printed.
If anyone has any ideas, I would greatly appreciate it!

Thanks!
Pat Craddock
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Printing issue: lpq command

2003-03-20 Thread Peter Carpenter
Dear Samba Printing gurus,

I've got Samba 2.2.8 feeding a commercial unix print spooler where users get
differing views of print queues according to their "user class". Basically
"operator" types see everything while lowly "users" can only see their own
jobs. It doesn't appear to be possible to get this effect reliably via Samba
because when an operator clicks View-->Refresh his display (of 10 jobs, say)
appears not only in his own printer window but also in the monitoring window
of an ordinary user who only has one job in the queue. Equally, if the
ordinary user refreshes his view, he sees just his one job again but now so
does the operator.

While trying to improve this behaviour I set "lpq cache time" to zero,
thinking this would help. (It didn't.) But I made another discovery. With
the cacheing disabled each "Refresh" from the Windows end (NT workstation)
causes THREE calls to the "lpq command" script !

Finally I tried using a separate lpq command script for each user by adding
%U to the script name in smb.conf and set cache time to 2 seconds to work
round the three calls thing. This gives better performance but still the
serious "crosstalk" problem remains.

Anyone got any insights to offer me on any of the above?

PCC
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Samba Printing Issue - Windows cannot see the print queue

2002-10-30 Thread Fernando Ruza
I have samba working fine. It even prints ok.

The problem is that Windows cannot see the print jobs
in the spooler on the Linux box. I can see them for a
while but then I can see them in the spooler on the
Linux box and not in the Windows queue.

I am using RedHat 7.1 with Samba 2.2.6. I
am also using the default lpd spooler and settings are
in /etc/printcap

printing=bsd

is set in my smb.conf file.

Please help!

Thanks.


=
Fernando Ruza Rodríguez
[EMAIL PROTECTED]

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Printing issue

2002-10-18 Thread Jason Valenzuela
> 1.  Are you using the Windows native drivers?  If so, update them to
> more current drivers from HP.  I'm using either NT/Win2k v4.3.2.38 or
> Win2k/XP v02.12.02 of the PCL 5E drivers.  The MS-Supplied HP LJ4 drivers
>  (and Lexmark Optra S and more...) have a host of problems.  Including
> missing characters, graphics, etc.
I updated with the drivers from HP's website, no change. BTW if I plug the
printers directly into the workstation's parallel port everything prints
fine.

> 2.  Run testparm on your Samba box to see/fix problems in your
> setup.  Directory rights on the lprng or samba spool dirs may cause
> the "Access Denied" errors.  Look at the LPRng How-To for the
> correct syntax for the smb.conf entries.  Run checkpc -V -f to
> see/fix problems in the lprng setup.
testparm and checkpc seem happy. Printer spool directories are owned by the
lpd user and the daemon group. The samba printer spool directory is owned by
the lpd user and the users group. I got the smb.conf printing commands from
the LPRng docs.


> 3.  If you're using the print$ share to distribute your drivers,
> adding guest ok=yes may clear up the "Access Denied" errors.  Be sure
> that you have "guest account" and "Map to Guest" configured in smb.conf.
The printer drivers are installed locally on the workstations, I'm only
using linux/samba as a central queue for a pair of printers.

> Use SWAT to get to the smb.conf readme for more info.
Not using SWAT.


Jason Valenzuela


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



RE: [Samba] Printing issue

2002-10-17 Thread Van Sickler, Jim
> -Original Message-
> From: Jason Valenzuela [mailto:jvalenzuela@;dspfl.com]
> Sent: Thursday, October 17, 2002 9:27 AM
> To: [EMAIL PROTECTED]
> Subject: [Samba] Printing issue
> 
> 
> I'm trying to setup a print server for Samba clients to use. 
> I have a HP
> LaserJet 4 connected to /dev/lp0 and I'm using the LPRng 
> spooling package.
> Documents printed from Windows clients make it to the 
> printer. However the
> printed documents, mostly Excel/Word documents, have various 
> abberations on
> them. Graphical flaws, the text seems fine. In addition I 
> seem to get 2
> copies for some reason. Also when I look at the print queue 
> via Windows I
> get, "Access denied, unable to connect."
> I have no filters in place, using -l with the lpr print 
> command, as I do not
> wish to print directly from the Samba box. Any suggestions?
> 
> Thanks,
> Jason Valenzuela
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba

Jason,

1.  Are you using the Windows native drivers?  If so, update them to
more current drivers from HP.  I'm using either NT/Win2k v4.3.2.38 or
Win2k/XP v02.12.02 of the PCL 5E drivers.  The MS-Supplied HP LJ4 drivers
 (and Lexmark Optra S and more...) have a host of problems.  Including
missing characters, graphics, etc.

2.  Run testparm on your Samba box to see/fix problems in your
setup.  Directory rights on the lprng or samba spool dirs may cause
the "Access Denied" errors.  Look at the LPRng How-To for the
correct syntax for the smb.conf entries.  Run checkpc -V -f to
see/fix problems in the lprng setup.

3.  If you're using the print$ share to distribute your drivers,
adding guest ok=yes may clear up the "Access Denied" errors.  Be sure
that you have "guest account" and "Map to Guest" configured in smb.conf.
Use SWAT to get to the smb.conf readme for more info.

Jim
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Printing issue

2002-10-17 Thread Jason Valenzuela
> What version of Unix/Linux are you running?
I'm running Linux 2.4.19, Samba 2.2.5, and LPRng 3.8.15. Everything compiled
from source.

> In your smb.conf file, do you specify the appropriate printing system via:
>
> printing = lprng (or bsd, aix, etc.)
>
> The command I use for printing is:
>
> print command = /usr/sbin/lpr -h -r -P %p %s
>
> Incidentally, if you are using postscript (or PCL) to print, the data is
sent as
>
> text for the most part.  So, maybe your -l option is not translating the
> character set appropriately.
I have
printing = lprng
print command = /usr/bin/lpr -P%p -l -r %s

I just added the -l to see if it would fix my problem, it made no difference
at all.

Jason Valenzuela

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Printing issue

2002-10-17 Thread Jason Valenzuela
> I would check with HP for a more recent driver to load on the workstation.

>Also,if you are printing heavy graphics, you need to make certain you have
>plenty of memory in the printer.  Unix/Linux just passes the job to the
>printer.  The  printer
>will sometimes generate errors if it cannot render the complete image in
its
>memory before printing.

If I plug the printer directly into the workstations it works fine.

Jason Valenzuela

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Printing issue

2002-10-17 Thread Jason Valenzuela
I'm trying to setup a print server for Samba clients to use. I have a HP
LaserJet 4 connected to /dev/lp0 and I'm using the LPRng spooling package.
Documents printed from Windows clients make it to the printer. However the
printed documents, mostly Excel/Word documents, have various abberations on
them. Graphical flaws, the text seems fine. In addition I seem to get 2
copies for some reason. Also when I look at the print queue via Windows I
get, "Access denied, unable to connect."
I have no filters in place, using -l with the lpr print command, as I do not
wish to print directly from the Samba box. Any suggestions?

Thanks,
Jason Valenzuela

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Samba Printing Issue - Windows cannot see the print queue

2002-05-30 Thread Sanjiv Bawa

I have samba working fine. It even prints ok.

The problem is that Windows cannot see the print jobs in the spooler on the
Linux box.

I am using RedHat 7.2 with a bunch of versions of Samba including 2.2.3a. I
am also using the default lpd spooler and settings are in /etc/printcap

printing=bsd

is set in my smb.conf file.

Please help!

Thanks.


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba