On Monday 15 January 2007 13:21, Nicolas Costes wrote:
> Le lundi 15 janvier 2007 12:44, Nicolas Costes a écrit :
> > Le lundi 15 janvier 2007 11:49, Christian Pinedo Zamalloa a écrit :
> >
> > Ok, two interesting things here :
> > > [15/Jan/2007:11:24:36 +0100] PID 1359
> > > (/usr/local/libexec/cups/backend/jasmine) stopped with status 13! D
> >
> > First, this status 13 thing : I looked into Google groups, it seems to
> > be a permission issue. So :
>
> Ok, I could verify this is true, with this code snippet :
>
> $ perl -e 'foreach $n (1..131){ $!=$n; print "$n : $!\n"}'
>
> 1 : Operation not permitted
> [...]
> 13 : Permission denied
> [...]
>
Yes, i have verified the 13 code error is a permission denied problem.
> So, when jasmine returns "13", it is indeed a permission problem. So, now,
> we gotta find a way to discover where is the error, and on which
> directory/file this occurs.
>
> Could you please do the following ?
>
> - Edit jasmine to uncomment line 394 : "sleep 60;", and if you want
> change the "60" to a higher value ("120", for example)
> - Launch a print job, then "ps xau" in the server's shell, and tell us
> which UIDs CUPS and jasmine run on
>
> If this does not work, it means that the error occurs before the "sleep",
> and then you've got to comment again line 394 and write "sleep 60" at the
> beginning of the script, just after "#!/usr/bin/perl -w".
>
> What you can do too is check permissions on the directories CUPS uses, for
> example :
>
> /var/cache/cups
> /usr/local/share/cups
> /usr/local/share/doc/cups
> /usr/local/share/cups/fonts
> /var/spool/cups
> /usr/local/libexec/cups
> /usr/local/etc/cups
> /var/run/cups
>
> Etc... And most probably : /var/spool/cups/tmp
>
>
>
>
> -- Attached file included as plaintext by Listar --
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
>
> iD8DBQBFq3HKNc2aXy7LuOgRAsEgAJ9yocvDRrRsYYSzkdn+sm6J03WRfwCfTi6C
> vTCP2BEQjGLOim954G4t2A8=
> =AAGS
> -----END PGP SIGNATURE-----
Sorry, Sorry, Sorry, Sorry, ....
Why i couldn't log anything with cups and why i could log when i executed the
file as "perl ...."?? Because i didn't give execution permissions for all to
jasmine backend. This is a great mistake.
Now i get in /var/log/messages:
Jan 22 11:45:28 bipt02 jasmine[52865]: Warning: Debug mode is activated, you
should turn it off when going to production ! To do so, set $Debug_Mode to 0
in the /usr/local/libexec/cups/backend/jasmine perl script.
Jan 22 11:45:28 bipt02 jasmine[52865]: Warning: Debug mode is set to 2,
your '/var' partition may be full in a near future...
and nothing more but before i get nothing. In /var/log/all.log *finally* i
get all the outup of jasmine:
Jan 22 11:45:28 bipt02 jasmine[52865]: Warning: Debug mode is activated, you
should turn it off when going to production ! To do so, set $Debug_Mode to 0
in the /usr/local/libexec/cups/backend/jasmine perl script.
Jan 22 11:45:28 bipt02 jasmine[52865]: Warning: Debug mode is set to 2,
your '/var' partition may be full in a near future...
Jan 22 11:45:28 bipt02 jasmine[52865]: ---> Print job started at Mon Jan 22
11:45:28 2007
Jan 22 11:45:28 bipt02 jasmine[52865]: Command
line: /usr/local/libexec/cups/backend/jasmine
Jan 22 11:45:28 bipt02 jasmine[52865]: Arguments: 52|i2tpizac|
smbprn.00003178 Remote Downlevel Document _bash_aliases|1|
job-uuid=urn:uuid:b8389633-9cf6-384f-7e8a-3ffdddec16d1
Jan 22 11:45:28 bipt02 jasmine[52865]: Environnement:
Jan 22 11:45:28 bipt02 jasmine[52865]: - IPP_PORT= 631
Jan 22 11:45:28 bipt02 jasmine[52865]: - CUPS_STATEDIR= /var/run/cups
Jan 22 11:45:28 bipt02 jasmine[52865]: - RIP_MAX_CACHE= 8m
Jan 22 11:45:28 bipt02 jasmine[52865]: - SERVER_ADMIN=
[EMAIL PROTECTED]
Jan 22 11:45:28 bipt02 jasmine[52865]: - FINAL_CONTENT_TYPE=
application/vnd.cups-postscript
Jan 22 11:45:28 bipt02 jasmine[52865]: - CUPS_ENCRYPTION= IfRequested
Jan 22 11:45:28 bipt02 jasmine[52865]: - CUPS_REQUESTROOT= /var/spool/cups
Jan 22 11:45:28 bipt02 jasmine[52865]: -
CUPS_DOCROOT= /usr/local/share/doc/
cups
Jan 22 11:45:28 bipt02 jasmine[52865]: -
CUPS_SERVERBIN= /usr/local/libexec/cups
Jan 22 11:45:28 bipt02 jasmine[52865]: - LANG= en_US
Jan 22 11:45:28 bipt02 jasmine[52865]: - USER= root
Jan 22 11:45:28 bipt02 jasmine[52865]: - CUPS_CACHEDIR= /var/cache/cups
Jan 22 11:45:28 bipt02 jasmine[52865]: -
CUPS_FONTPATH= /usr/local/share/cups/fonts
Jan 22 11:45:28 bipt02 jasmine[52865]: -
PPD= /usr/local/etc/cups/ppd/Lexmark.ppd
Jan 22 11:45:28 bipt02 jasmine[52865]: - CHARSET= utf-8
Jan 22 11:45:28 bipt02 jasmine[52865]: - PRINTER= Lexmark
Jan 22 11:45:28 bipt02 jasmine[52865]: - CONTENT_TYPE=
application/postscript
Jan 22 11:45:28 bipt02 jasmine[52865]: - CUPS_SERVER= localhost
Jan 22 11:45:28 bipt02 jasmine[52865]: -
CUPS_DATADIR= /usr/local/share/cups
Jan 22 11:45:28 bipt02 jasmine[52865]: -
PATH=
/usr/local/libexec/cups/filter:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin
Jan 22 11:45:28 bipt02 jasmine[52865]: - DEVICE_URI=
jasmine:lpd://bipt171.bi.ehu.es
Jan 22 11:45:28 bipt02 jasmine[52865]: - SOFTWARE= CUPS/1.2.7
Jan 22 11:45:28 bipt02 jasmine[52865]: - TMPDIR= /var/spool/cups/tmp
Jan 22 11:45:28 bipt02 jasmine[52865]: -
CUPS_SERVERROOT= /usr/local/etc/cups
I hope this to be more useful. Slowly but we are making progress. Thanks,
--
Christian Pinedo Zamalloa
--
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/