[cups] Custom backend does not show in lpinfo -v

Helge Blischke helgeblischke at web.de
Wed Dec 10 14:03:14 PST 2014


Mihaela,
your error_log shows that custom backends are processed as expected if correctly installed
(see the be backend).
The error_log tells us that your 2file backend exited with status 8. This error code means – according
to /usr/include/asm-generic/errno-base.h (on Ubuntu based Linux systems) – that the file is not recognized
as an executable file (the error name is ENOEXEC). Are you sure these backends are installed with execute permission?
You could post the output of
sudo ls -l /usr/lib/cups/backend
for clarification.

Helge
> Am 10.12.2014 um 19:30 schrieb Mihaela Gaspar <mgaspar at graphicproducts.com>:
> 
> Unusual lines in the error log (errors)
> 
> E [10/Dec/2014:08:28:46 -0800] Avahi client failed, closing client to allow a clean restart
> E [10/Dec/2014:08:53:06 -0800] [cups-deviced] PID 7899 (2file) stopped with status 8!
> E [10/Dec/2014:08:53:06 -0800] [cups-deviced] PID 7901 (2file~) stopped with status 8!
> E [10/Dec/2014:09:41:26 -0800] Unknown directive SystemGroup on line 16 of /etc/cups/cupsd.conf.
> 
> 
> The offending line 16 in /etc/cups/cupsd.conf
> 
> SystemGroup lpadmin
> 
> 
> -----Original Message-----
> From: cups-bounces at cups.org [mailto:cups-bounces at cups.org] On Behalf Of Mihaela Gaspar
> Sent: Wednesday, December 10, 2014 9:55 AM
> To: The CUPS user discussion list.
> Subject: Re: [cups] Custom backend does not show in lpinfo -v
> 
> Thank you for reply, Helge
> 
> I have attached the error log to this message, not sure where I can upload it - I am at work and not allowed to use file sharing sites
> 
> Mihaela
> 
> -----Original Message-----
> From: cups-bounces at cups.org [mailto:cups-bounces at cups.org] On Behalf Of Helge Blischke
> Sent: Wednesday, December 10, 2014 9:33 AM
> To: The CUPS user discussion list.
> Subject: Re: [cups] Custom backend does not show in lpinfo -v
> 
> Mihaela,
> 
> I have home-grown backends in CUPS versions 1.3.11, 1.5.3, 1.7.2, and 2.0.0. All are listed by lpinfo -v.
> Perhaps you could switch your cups to debug-logging, run lpinfo -v and post (an URL to) the error_log then?
> 
> Helge
> 
>> Am 10.12.2014 um 16:21 schrieb Mihaela Gaspar <mgaspar at graphicproducts.com>:
>> 
>> I am trying to create a custom backend, using the "educational backend":
>> https://community.kde.org/Printing/Developer_Tools#.272dir.27_CUPS_bac
>> kend_script_.28Bash_code.29
>> (either "2file" or "2dir")
>> 
>> I copied the contents of the file "2dir" and "2file" to 
>> /usr/lib/cups/backend/ I set correct permissions (experimented with 
>> everything from 700 to 555 to 755, right now 755). Unfortunately
>>   lpinfo -v
>> does not list either backend.
>> 
>> What could be the problem ?
>> 
>> I checked for line endings:
>>   file 2dir
>>   2dir: UTF-8 Unicode English text
>> (because I converted it using "dos2unix")
>> 
>> The scripts are exactly as shown on the given site - they have the "backend discovery mode".
>> I tried restarting cups (though the site tells me I shouldn't need to) 
>> I am using Ubuntu 12.04 and will also have to use this on Mac OS X 10-6-10.9... I imagine once it works on one it will work on both.
>> 
>> What can I try, how do I make this work ?
>> 
>> Thank you
>> 
>> 
>> Note to moderators: I have sent this before I joined the cups mailing list (I had joined the cups-devel list and did not realize the target for my question is user). I have not received anything including a copy of my post or some sort of confirmation, that is why I am sending it again, I imagine previous e-mail was discarded.
>> I truly hope that someone can help me with this, it is such a simple procedure that I can't see what I could be doing wrong.
>> Thank you very much
>> 
>> 
>> _______________________________________________
>> cups mailing list
>> cups at cups.org
>> https://www.cups.org/mailman/listinfo/cups
> 
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups
> 
> 
> 
> 
> 
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups




More information about the cups mailing list