Changeset 1538 for pykota/trunk
- Timestamp:
- 06/11/04 10:16:03 (20 years ago)
- Location:
- pykota/trunk
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/FAQ
r1500 r1538 11 11 have to modify it. See the rest of this document to 12 12 learn how to really diagnose what went wrong. 13 14 * How can I diagnose the problem when something goes wrong ? 15 16 Put "LogLevel debug2" in cupsd.conf (usually in /etc/cups/). 17 Then put "logger: stderr", "debug: yes" and 18 "crashrecipient: youremailaddress" in /etc/pykota/pykota.conf. 19 Finally restart CUPS. 20 CUPS' error_log file will now contain many informations which 21 will help diagnose your problem. You will receive failure 22 notices by email, and you can send all this to us for 23 diagnostic. 13 24 14 25 * Why doesn't CUPS under Debian Woody automatically … … 48 59 49 60 In PyKota, the term 'dumb printer' defines a printer which doesn't 50 understand PostScript AND doesn't have an internal page counter, AND51 for which you don't know how to compute a job's size in number of52 pages by analyzing its content. Any printer which is not a53 'dumb printer' according to the above definition is supported54 withPyKota.61 understand PostScript or PCL5 AND doesn't have an internal page 62 counter, AND for which you don't know how to compute a job's size 63 in number of pages by analyzing its content. Any printer which 64 is not a 'dumb printer' according to the above definition is 65 supported by PyKota. 55 66 56 67 * How can I make PyKota work with my non-postscript printer under … … 85 96 needs to be updated to new PyKota functionnalities, because it 86 97 currently lacks. 87 88 * How can I diagnose the problem when something goes wrong ?89 90 Put "LogLevel debug2" in cupsd.conf (usually in /etc/cups/).91 Then put "logger: system" and "debug: yes" in92 /etc/pykota/pykota.conf.93 Finally restart CUPS.94 CUPS' error_log file will now contain many informations which95 will help diagnose your problem. Also your syslog's output for96 the LPR facility (usually /var/log/lpr.log) will contain97 PyKota's debug messages, notably all database related queries98 and their result, be your database PostgreSQL or OpenLDAP.99 With these two files the problem can usually be diagnosed within100 minutes. Send them to the mailing list and wait for an answer.101 98 102 99 * How can I share print quota between some printers only (not all) ? -
pykota/trunk/pykota/tool.py
r1537 r1538 22 22 # 23 23 # $Log$ 24 # Revision 1.100 2004/06/11 08:16:03 jalet 25 # More exceptions catched in case of very early failure. 26 # 24 27 # Revision 1.99 2004/06/11 07:07:38 jalet 25 28 # Now detects and logs configuration syntax errors instead of failing without … … 873 876 self.username = self.username.lower() 874 877 self.preserveinputfile = self.inputfile 875 self.accounter = accounter.openAccounter(self) 878 try : 879 self.accounter = accounter.openAccounter(self) 880 except accounter.PyKotaAccounterError, msg : 881 self.crashed(msg) 882 raise 876 883 self.exportJobInfo() 877 884 self.jobdatastream = self.openJobDataStream()