Le jeudi 11 janvier 2007 13:37, Christian Pinedo Zamalloa a écrit : [I skip parts that I agree with ;-) ]
> Also i have a debug mode of two and i have set up well > the python and pgpkcounter paths. These are my only modifications to > jasmine perl file. You didn't forget the database parameters, did you ;-) ? (Password, host, user, db...) > I also set up a /var/log/all.log file where is logged all "*.*" but no > notice about jasmine logs. Ok, my knowledge of *BSD is NULL, so let's start with the basics : Now, that you have setup your syslog.conf and restarted syslog, could you type in your root shell : # tail - f /var/log/all.log & # logger "HelloWorld" You should see "HelloWorld" come out of the tail'ed file. If so, I can't see any reason why jasmine's messages wouldn't appear too... OR, maybe, you miss some perl modules. If so, when manually launching jasmine on the command line, you'd see some message like : # perl /usr/local/libexec/cups/backend/jasmine Can't locate XXXXXXX.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i386-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i386-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .). BEGIN failed--compilation aborted. In this case, install whatever perl::XXXXXX module your system misses. Either use BSD's packaging system, or : # perl -MCPAN -e 'shell' ...Which works well, but is bad regarding your packaging system. And this needs a compiler too, which is not good on a server ! I'm using Mandriva, so many perl modules come installed with the distribution; so, I assumed other systems have them too, which is possibly an error. For example, here are the modules I explicitely load in jasmine : use strict; use POSIX qw(strftime); use File::Basename; use File::Copy; use Sys::Hostname; use DBD::mysql; require Sys::Syslog; use File::Temp; Some are included in perl's core (strict, for example ?), other are provided in Mandriva's default install (POSIX, File, Sys), and I had to install others (DBD::mysql). But maybe some are implicit (loaded even when I don't require them explicitely), and used even without knowing it... Which may not be the case un *BSD. Well, I doubt it, but i'm not (far from it !) a perl guru. I only had to install the perl-DBD-mysql-3.0002-1mdk package to run jasmine, from the out-of-box install... One thing you must have a look at is whether Sys::Syslog is included out-of-the box in your BSD system. If not, you won't get any syslog message from jasmine... Another thing : Try to look at jasmine's messages on CUPS's web interface (http://cups-server:631/) : When viewing a particular printer, you should notice some lines near the printer image : Description: ... Location: ... Etat de l'imprimante: ready, accepting jobs "jasmine: User 'nayco' printed 1 pages on printer 'hp2550'" Device URI: jasmine:socket://ic_hp2550_s205:9100 Notice that jasmine outputs it's status on the 4th line, so you may be able to see its error messages there. At least, the last one ;-) > > Try to set LogLevel to "debug" in /etc/cups/cupsd.conf > Yes i have done and i attach you a large log but i think it's not > interesting. Mmmm, maybe /var/log/cups/access.log could provide some info (i.e. jasmine's output) ? > # uncomment this to enable logging of all log messages > # to /var/log/all.log > # touch /var/log/all.log and chmod it to mode 600 before it will work > *.* /var/log/all.log Seems good, well, like what i'm used to see ;-) > argv[0]="Lexmark" > argv[1]="30" > argv[2]="i2tpizac" > argv[3]="smbprn.00002079 Remote [...] > envp[23]="FINAL_CONTENT_TYPE=application/vnd.cups-postscript" What I learn from this is that CUPS's installation and config is pretty much the same in *BSD that in Linux. Good ;-). > Started backend /usr/local/libexec/cups/backend/jasmine (PID 15920) for > job 30. Ahemmm, well, not exactly the same ;-) ! This path is /usr/lib/cups/backend on Mandriva. > PID 15920 (/usr/local/libexec/cups/backend/jasmine) stopped with status > 13! What is this error code ? I really gotta have a look at CUPS's doc. > /usr/local/libexec/cups/backend/jasmine: Permission denied Ah ! Here is something interesting : What is denied ? Do you think you can find it ? True, having jasmine's logs would be great here ;-) ! Hope this helps ! I'm waiting for your results ;-) -- Put JASmine in your Cups ! To unsubscribe : mailto:[EMAIL PROTECTED] List archives : http://dir.gmane.org/gmane.comp.printing.jasmine.user http://www.mail-archive.com/jasmine%40ml.free.fr/ Web site : http://jasmine.berlios.de/

