Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #196758
| From | Rainer Dorsch <ml@bokomoko.de> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Tea4CUPS: TEABILLING reports error |
| Date | 2018-06-18 22:10 +0200 |
| Message-ID | <w28Do-1yQ-11@gated-at.bofh.it> (permalink) |
| References | <vV6Q2-7Fj-5@gated-at.bofh.it> <vVgFI-51E-5@gated-at.bofh.it> <vVAuJ-8vj-17@gated-at.bofh.it> |
| Organization | @home |
Hi Brian,
thank you for your response and please apologize for my slow response.
On Donnerstag, 31. Mai 2018 20:04:22 CEST Brian wrote:
> Your tea4cups.conf is poorly. Here is a minimal one which works for me:
> [Global]
> debug : yes
> directory : /var/spool/cups/
> prehook_sispmctl : sispmctl -ng 4 2> /tmp/SISPMCTL
Hmm....mine does not look so much different, I edited them template shipped by
Debian:
rd@b370:/var/log/cups$ grep -v '^#' /etc/cups/tea4cups.conf |grep -v '^$'
[global]
directory : /var/spool/cups/
prehook_sispmctl : /usr/local/bin/printeron
rd@b370:/var/log/cups$
...
I had to change [Global]-> [global] in your config (?)
E [18/Jun/2018:21:25:15 +0200] [Job 37] Tea4CUPS (PID 19895) : Traceback (most
recent call last):
E [18/Jun/2018:21:25:15 +0200] [Job 37] Tea4CUPS (PID 19895) : File \"/usr/
lib/cups/backend/tea4cups\", line 1503, in <module>
E [18/Jun/2018:21:25:15 +0200] [Job 37] Tea4CUPS (PID 19895) : returncode
= wrapper.runBranches()
E [18/Jun/2018:21:25:15 +0200] [Job 37] Tea4CUPS (PID 19895) : File \"/usr/
lib/cups/backend/tea4cups\", line 1302, in runBranches
E [18/Jun/2018:21:25:15 +0200] [Job 37] Tea4CUPS (PID 19895) : branches =
self.enumBranches(self.PrinterName, \"prehook\")
E [18/Jun/2018:21:25:15 +0200] [Job 37] Tea4CUPS (PID 19895) : File \"/usr/
lib/cups/backend/tea4cups\", line 1010, in enumBranches
E [18/Jun/2018:21:25:15 +0200] [Job 37] Tea4CUPS (PID 19895) : raise
ConfigError, \"Invalid configuration file : %s\" % msg
E [18/Jun/2018:21:25:15 +0200] [Job 37] Tea4CUPS (PID 19895) : ConfigError:
Invalid configuration file : No section: \'global\'
rd@b370:~$ cat /etc/cups/tea4cups.conf
[global]
debug : yes
directory : /var/spool/cups/
prehook_sispmctl : sispmctl -ng 4 2> /tmp/SISPMCTL
rd@b370:~$
> 1. touch /tmp/SISPMCTL
rd@b370:~$ ls -l /tmp/SISPMCTL
-rw-rw-rw- 1 root root 0 Jun 18 21:29 /tmp/SISPMCTL
rd@b370:~$
> 2. Set up a raw queue:
>
> lpadmin -p virtq -v tea4cups:// -E -m raw
root@b370:/etc/cups# lpadmin -p virtq -v tea4cups:// -E -m raw
lpadmin: Raw queues are deprecated and will stop working in a future version
of CUPS.
root@b370:/etc/cups#
> 3. Print to virtq:
>
> lp -d virtq /etc/services
root@b370:/etc/cups# lp -d virtq /etc/services
Anfrage-ID ist virtq-40 (1 Datei(en))
root@b370:/etc/cups#
> 4. cat /tmp/SISPMCTL and look at the error_log.
rd@b370:~$ cat /tmp/SISPMCTL
rd@b370:~$
not sure why this is empty... (?)
but no entry in the error_log
> 5. Test with your original queue and my tea4cups.conf.
same behavior as above, printeron is executed when issuing
lp -d virtq /etc/services
But when printing on my queue
<Printer CP1525NW>
UUID urn:uuid:2b1f194f-d781-33a6-7340-1b2f4d154ce4
AuthInfoRequired none
Info CP1525NW
MakeModel HP Color LaserJet cp1518ni pcl3, hpcups 3.17.10
DeviceURI tea4cups:/http://hpljwlan:631/ipp/
State Idle
StateTime 1529351306
ConfigTime 1526331301
Reason cups-ipp-conformance-failure-report
Reason cups-ipp-missing-send-document
Type 36892
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
Attribute marker-colors \#00FFFF,#FF00FF,#FFFF00,#000000
Attribute marker-levels 44,46,46,48
Attribute marker-low-levels 6,6,6,7
Attribute marker-high-levels 100,100,100,100
Attribute marker-names Cyan Cartridge HP CE321A,Magenta Cartridge HP
CE323A,Yellow Cartridge HP CE322A,Black Cartridge HP CE320A
Attribute marker-types toner,toner,toner,toner
Attribute marker-change-time 1527675649
</Printer>
I get the same error_log again:
[18/Jun/2018:21:48:26 +0200] [Job 45] Tea4CUPS (PID 20932) : Traceback (most
recent call last):
E [18/Jun/2018:21:48:26 +0200] [Job 45] Tea4CUPS (PID 20932) : File \"/usr/
lib/cups/backend/tea4cups\", line 1502, in <module>
E [18/Jun/2018:21:48:26 +0200] [Job 45] Tea4CUPS (PID 20932) :
wrapper.exportAttributes()
E [18/Jun/2018:21:48:26 +0200] [Job 45] Tea4CUPS (PID 20932) : File \"/usr/
lib/cups/backend/tea4cups\", line 1214, in exportAttributes
E [18/Jun/2018:21:48:26 +0200] [Job 45] Tea4CUPS (PID 20932) :
os.environ[\"TEABILLING\"] = self.JobBilling or \"\"
E [18/Jun/2018:21:48:26 +0200] [Job 45] Tea4CUPS (PID 20932) : File \"/usr/
lib/python2.7/os.py\", line 473, in __setitem__
E [18/Jun/2018:21:48:26 +0200] [Job 45] Tea4CUPS (PID 20932) : putenv(key,
item)
E [18/Jun/2018:21:48:26 +0200] [Job 45] Tea4CUPS (PID 20932) : TypeError:
putenv() argument 2 must be string, not int
Is my DeviceURI wrong?
For reference, my printeron:
rd@b370:~$ cat /usr/local/bin/printeron
#!/bin/sh
sispmctl -o 3
date > /tmp/printeron
# Wait until printer is active
while ! nc -vzw 1 hpljwlan 80 2> /dev/null; do
sleep 5
done
date >> /tmp/printeron
rd@b370:~$
Thanks
Rainer
--
Rainer Dorsch
http://bokomoko.de/
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Tea4CUPS: TEABILLING reports error Rainer Dorsch <ml@bokomoko.de> - 2018-05-30 12:50 +0200
Re: Tea4CUPS: TEABILLING reports error Brian Potkin <brian@copernicus.org.uk> - 2018-05-30 16:50 +0200
Re: Tea4CUPS: TEABILLING reports error Rainer Dorsch <ml@bokomoko.de> - 2018-05-30 23:20 +0200
Re: Tea4CUPS: TEABILLING reports error Brian <ad44@cityscape.co.uk> - 2018-05-31 20:30 +0200
Re: Tea4CUPS: TEABILLING reports error Rainer Dorsch <ml@bokomoko.de> - 2018-06-18 22:10 +0200
Re: Tea4CUPS: TEABILLING reports error Brian <ad44@cityscape.co.uk> - 2018-06-19 15:10 +0200
Re: Tea4CUPS: TEABILLING reports error daniel-mailinglists@dadosch.de - 2018-08-11 18:00 +0200
Re: Tea4CUPS: TEABILLING reports error Rainer Dorsch <ml@bokomoko.de> - 2018-08-12 16:10 +0200
csiph-web