Bug#841843: printer-driver-escpr: backend can't find PPD file]

2016-11-03 Thread Matteo Croce
I've tried this:

root@apu:/tmp# lpadmin -p newq -v
'usb://EPSON/WF-2530%20Series?serial=514B34593134343081=1'
-E -m 
escpr:0/cups/model/epson-inkjet-printer-escpr/Epson-WF-100_Series-epson-escpr-en.ppd
root@apu:/tmp# cupsfilter -p /etc/cups/ppd/newq.ppd -d newq -m
printer/foo -e /etc/nsswitch.conf > file.out 2> newq.log
root@apu:/tmp# grep 'exited with no errors' newq.log
INFO: texttopdf (PID 2569) exited with no errors.
INFO: pdftopdf (PID 2570) exited with no errors.
INFO: gstoraster (PID 2571) exited with no errors.
INFO: epson-escpr-wrapper (PID 2572) exited with no errors.

and I can actually print

2016-11-02 11:19 GMT+01:00 Brian Potkin :
> On Tue 01 Nov 2016 at 23:17:23 +0100, Matteo Croce wrote:
>
>> 2016-10-28 15:39 GMT+02:00 Brian Potkin :
>> >
>> > Set up a new queue with a different PPD:
>> >
>> >  lpadmin -p newq -v file:/dev/null -E -m 
>> > escpr:/0/cups/model/epson-inkjet-printer-escpr/Epson-WF-100_Series-epson-escpr-en-ppd
>> >
>> > Without any symlinking print to the queue in any way you choose and look
>> > at the error log. Is "Cannot get option of PIPS" still there?
>>
>> I get this:
>>
>> # lpadmin -p newq -v file:/dev/null -E -m
>> escpr:/0/cups/model/epson-inkjet-printer-escpr/Epson-WF-100_Series-epson-escpr-en-ppd
>> lpadmin: Unable to open PPD "/tmp/045f3581fdf83": Missing
>> PPD-Adobe-4.x header on line 0.
>>
>> maybe the device name is wrong?
>
> It is! I copied it from the screen of my test machine to my main machine
> and from habit automatically put a "/" after the ":". Well-spotted.
>
>> # lpinfo -m |grep -i WF-100
>> escpr:0/cups/model/epson-inkjet-printer-escpr/Epson-WF-100_Series-epson-escpr-en.ppd
>> EPSON WF-100 Series , Epson Inkjet Printer Driver (ESC/P-R) for Linux
>>
>> I've retried with this device:
>>
>> # lpadmin -p newq -v file:/dev/null -E -m
>> escpr:0/cups/model/epson-inkjet-printer-escpr/Epson-WF-100_Series-epson-escpr-en.ppd
>>
>> > Alternatively:
>> >
>> >  cupsfilter -p /etc/cups/ppd/newq.ppd -d newq -m printer/foo -e 
>> > /etc/nsswitch.conf > file.out 2> newq.log
>> >
>> > Does newq.log contain lines like this?
>> >
>> >  gstoraster (PID n) exited with no errors.
>> >  epson-escpr-wrapper (PID n) exited with no errors.
>>
>> # grep 'exited with no errors' newq.log
>> INFO: texttopdf (PID 18625) exited with no errors.
>> INFO: pdftopdf (PID 18626) exited with no errors.
>> INFO: gstoraster (PID 18627) exited with no errors.
>> INFO: epson-escpr-wrapper (PID 18628) exited with no errors.
>
> That is exactly what should happen.
>
> Now would you repeat the lpadmin and cupsfilters commands but use the
> PPD for your printer. (That's the only change to make). How does it go?
>
> To actually print to the printer you will have to have -v as
>
>  usb://EPSON/WF-2530%20Series?serial=514B34593134343081=1"
>
> I got that from your error_log. You can check it with 'lpinfo -v'.
>
> Can you print?
>
> Cheers,
>
> Brian.



Bug#841843: printer-driver-escpr: backend can't find PPD file]

2016-11-02 Thread Brian Potkin
On Tue 01 Nov 2016 at 23:17:23 +0100, Matteo Croce wrote:

> 2016-10-28 15:39 GMT+02:00 Brian Potkin :
> >
> > Set up a new queue with a different PPD:
> >
> >  lpadmin -p newq -v file:/dev/null -E -m 
> > escpr:/0/cups/model/epson-inkjet-printer-escpr/Epson-WF-100_Series-epson-escpr-en-ppd
> >
> > Without any symlinking print to the queue in any way you choose and look
> > at the error log. Is "Cannot get option of PIPS" still there?
> 
> I get this:
> 
> # lpadmin -p newq -v file:/dev/null -E -m
> escpr:/0/cups/model/epson-inkjet-printer-escpr/Epson-WF-100_Series-epson-escpr-en-ppd
> lpadmin: Unable to open PPD "/tmp/045f3581fdf83": Missing
> PPD-Adobe-4.x header on line 0.
> 
> maybe the device name is wrong?

It is! I copied it from the screen of my test machine to my main machine
and from habit automatically put a "/" after the ":". Well-spotted.

> # lpinfo -m |grep -i WF-100
> escpr:0/cups/model/epson-inkjet-printer-escpr/Epson-WF-100_Series-epson-escpr-en.ppd
> EPSON WF-100 Series , Epson Inkjet Printer Driver (ESC/P-R) for Linux
> 
> I've retried with this device:
> 
> # lpadmin -p newq -v file:/dev/null -E -m
> escpr:0/cups/model/epson-inkjet-printer-escpr/Epson-WF-100_Series-epson-escpr-en.ppd
> 
> > Alternatively:
> >
> >  cupsfilter -p /etc/cups/ppd/newq.ppd -d newq -m printer/foo -e 
> > /etc/nsswitch.conf > file.out 2> newq.log
> >
> > Does newq.log contain lines like this?
> >
> >  gstoraster (PID n) exited with no errors.
> >  epson-escpr-wrapper (PID n) exited with no errors.
> 
> # grep 'exited with no errors' newq.log
> INFO: texttopdf (PID 18625) exited with no errors.
> INFO: pdftopdf (PID 18626) exited with no errors.
> INFO: gstoraster (PID 18627) exited with no errors.
> INFO: epson-escpr-wrapper (PID 18628) exited with no errors.

That is exactly what should happen.

Now would you repeat the lpadmin and cupsfilters commands but use the
PPD for your printer. (That's the only change to make). How does it go?

To actually print to the printer you will have to have -v as

 usb://EPSON/WF-2530%20Series?serial=514B34593134343081=1"

I got that from your error_log. You can check it with 'lpinfo -v'.

Can you print?

Cheers,

Brian.



Bug#841843: printer-driver-escpr: backend can't find PPD file

2016-11-02 Thread Brian Potkin
On Wed 26 Oct 2016 at 19:58:08 +0200, Matteo Croce wrote:

> Yes it prints.
> But here it seems I have two separate issues:
> 
> 1) can't print without symlinking
> /etc/cups/ppd/usr/lib/cups/filter/epson-escpr-wrapper.ppd to
> /etc/cups/ppd/Epson_2530.ppd

Everything I said before was on the basis that you did not make that
symlink for doing the tests I described. If the log below was obtained
when the cupsfilter command was used after symlinking it is invalid.

Did the /usr/lib/cups/filter/epson-escpr-wrapper command get the symlink
made in /tmp without your altering the system? Please let me know if I
am not being clear on what to do.

> 2) can't print from another cpus server and a raw queue.

Sounds like a different issue. Let's stick with this one for now.

> 2016-10-26 19:51 GMT+02:00 Brian Potkin :
> > On Wed 26 Oct 2016 at 19:04:56 +0200, Matteo Croce wrote:
> >
> >> 2016-10-26 18:55 GMT+02:00 Brian Potkin :
> >> > On Wed 26 Oct 2016 at 12:25:36 +0200, Matteo Croce wrote:
> >> >
> >> >> 2016-10-24 23:58 GMT+02:00 Brian Potkin :
> >> >> > On Mon 24 Oct 2016 at 19:46:51 +0200, Matteo Croce wrote:
> >> >> > My print queue was set up (all on one line) with
> >> >> >
> >> >> >   lpadmin -p wf2530 -v file:/home/brian/wf2530 -E
> >> >> > -m 
> >> >> > escpr:/0/cups/model/epson-inkjet-printer-escpr/Epsom-WF-2530_Series-epson-escpr-en-ppd
> >> >> >
> >> >> > and I printed with
> >> >> >
> >> >> >   lp -d wf2530 /etc/nsswitch.conf
> >> >> >
> >> >> > You could try this to see whether it gets printing going for you.
> >> >>
> >> >> I get the same error.
> >> >> I managed to print with:
> >> >>
> >> >> # mkdir -p /etc/cups/ppd/usr/lib/cups/filter
> >> >> # ln -s /etc/cups/ppd/Epson_2530.ppd
> >> >> /etc/cups/ppd/usr/lib/cups/filter/epson-escpr-wrapper.ppd
> >> >> # lp -d Epson_2530 /etc/nsswitch.conf
> >> >
> >> > This is indeed a step forward and a possible clue.
> >> >
> >> >  cupsfilter -p /etc/cups/ppd/wf2530.ppd -m application/vnd.cups-raster 
> >> > /etc/nsswitch.conf > wf2530.ras 2>log
> >> >
> >> > produces a raster file for me. I would expect it to do the same for you.
> >> >
> >> >  /usr/lib/cups/filter/epson-escpr-wrapper 1 1 1 1 1 wf2530.ras > 
> >> > wf2530.data
> >> >
> >> > produces a printer ready file from the raster file for me. From what you
> >> > relate in your initial mail, this is likely not to work for you and
> >> > wf2530.data will be empty.
> >> >
> >> > Part of the strace log from running strace on the second command has
> >> >
> >> >  
> >> > stat64("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd",{st_mode=S_IFREG|0644,
> >> >  st_size=50341, ...}) = 0
> >> >  access("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd", 
> >> > R_OK) = 0
> >> >  symlink("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd", 
> >> > "/tmp/5810d9a20db33") = 0
> >> >  open("/tmp/5810d9a20db33", O_RDONLY|O_LARGEFILE) = 4
> >> >
> >> > It seems a PPD file of size 50341 has been found and accessed. A symlink
> >> > is made to it in /tmp. The link /tmp/5810d9a20db33 exists and points to
> >> > /etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd. Opening it
> >> > shows wf2530.ppd.
> >> >
> >> > Does the issue come down to whether you are having a link made? And if
> >> > it is not made, why not?
> >> >
> >> > In another mail I wrote
> >> >
> >> >  cupsfilter -p /etc/cups/ppd/Epson_2530.ppd -m printer/foo -e 
> >> > /etc/nsswitch.conf > file.out 2> wf2530.log
> >> >
> >> > It is incorrect. This is better (and works for me):
> >> >
> >> >  cupsfilter -p /etc/cups/ppd/Epson_2530.ppd -d Epson_2530 -m printer/foo 
> >> > -e /etc/nsswitch.conf > file.out 2> wf2530.log
> >> >
> >> > Cheers,
> >> >
> >> > Brian.
> >> >
> >>
> >> Hi,
> >>
> >> now file.out is a 208 kb "data" file
> >
> > That's ok.
> >
> >> I attach the log output
> >
> >> cupsfilter: File "/usr/lib/cups/filter/epson-escpr-wrapper" permessi OK 
> >> (040755/uid=0/gid=0).
> >> DEBUG: argv[0]="Epson_2530"
> >> DEBUG: argv[1]="1"
> >> DEBUG: argv[2]="root"
> >> DEBUG: argv[3]="nsswitch.conf"
> >> DEBUG: argv[4]="1"
> >> DEBUG: argv[5]=""
> >> DEBUG: argv[6]="/etc/nsswitch.conf"
> >> DEBUG: envp[0]=""
> >> DEBUG: envp[1]="CONTENT_TYPE=text/plain"
> >> DEBUG: envp[2]="CUPS_DATADIR=/usr/share/cups"
> >> DEBUG: envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
> >> DEBUG: envp[4]="CUPS_SERVERBIN=/usr/lib/cups"
> >> DEBUG: envp[5]="CUPS_SERVERROOT=/etc/cups"
> >> DEBUG: envp[6]="LANG=it_IT.UTF8"
> >> DEBUG: envp[7]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
> >> DEBUG: envp[8]="PPD=/etc/cups/ppd/Epson_2530.ppd"
> >> DEBUG: envp[9]="PRINTER_INFO=EPSON WF-2530 Series"
> >> DEBUG: envp[10]="PRINTER_LOCATION="
> >> DEBUG: envp[11]="PRINTER=Epson_2530"
> >> DEBUG: envp[12]="RIP_MAX_CACHE=128m"
> >> DEBUG: envp[13]="USER=root"
> >> DEBUG: envp[14]="CHARSET=utf-8"
> >> DEBUG: envp[15]="FINAL_CONTENT_TYPE=application/vnd.cups-raster"
> >> 

Bug#841843: printer-driver-escpr: backend can't find PPD file]

2016-11-01 Thread Matteo Croce
2016-10-28 15:39 GMT+02:00 Brian Potkin <claremont...@gmail.com>:
> Many apologies, Matteo. Because I read bug reports in debian-printing I
> inadvertently sent the mail below there and not to you or the bug.
>
> I have tried everything I can think of to reproduce your issue on Jessie
> and unstable but without success. One last try! There is probably some
> repetition of what we have done before but I am not sure if I was as
> clear as I could have been. If this does not work I am out of ideas.
>
> Set up a new queue with a different PPD:
>
>  lpadmin -p newq -v file:/dev/null -E -m 
> escpr:/0/cups/model/epson-inkjet-printer-escpr/Epson-WF-100_Series-epson-escpr-en-ppd
>
> Without any symlinking print to the queue in any way you choose and look
> at the error log. Is "Cannot get option of PIPS" still there?

I get this:

# lpadmin -p newq -v file:/dev/null -E -m
escpr:/0/cups/model/epson-inkjet-printer-escpr/Epson-WF-100_Series-epson-escpr-en-ppd
lpadmin: Unable to open PPD "/tmp/045f3581fdf83": Missing
PPD-Adobe-4.x header on line 0.

maybe the device name is wrong?

# lpinfo -m |grep -i WF-100
escpr:0/cups/model/epson-inkjet-printer-escpr/Epson-WF-100_Series-epson-escpr-en.ppd
EPSON WF-100 Series , Epson Inkjet Printer Driver (ESC/P-R) for Linux

I've retried with this device:

# lpadmin -p newq -v file:/dev/null -E -m
escpr:0/cups/model/epson-inkjet-printer-escpr/Epson-WF-100_Series-epson-escpr-en.ppd

> Alternatively:
>
>  cupsfilter -p /etc/cups/ppd/newq.ppd -d newq -m printer/foo -e 
> /etc/nsswitch.conf > file.out 2> newq.log
>
> Does newq.log contain lines like this?
>
>  gstoraster (PID n) exited with no errors.
>  epson-escpr-wrapper (PID n) exited with no errors.

# grep 'exited with no errors' newq.log
INFO: texttopdf (PID 18625) exited with no errors.
INFO: pdftopdf (PID 18626) exited with no errors.
INFO: gstoraster (PID 18627) exited with no errors.
INFO: epson-escpr-wrapper (PID 18628) exited with no errors.

> (Forget about the command
>
>  /usr/lib/cups/filter/epson-escpr-wrapper 1 1 1 1 1 wf2530.ras > wf2530.data
>
> and its strace output. Another mistake on my part. It worked because I
> had made the symlink you suggested).
>
> Cheers,
>
> Brian.
>
>
>
> - Forwarded message from Brian Potkin <claremont...@gmail.com> -----
>
> Date: Wed, 26 Oct 2016 19:19:55 +0100
> From: Brian Potkin <claremont...@gmail.com>
> To: debian-print...@lists.debian.org
> Subject: Re: Bug#841843: printer-driver-escpr: backend can't find PPD file
> User-Agent: Mutt/1.5.23 (2014-03-12)
>
> On Wed 26 Oct 2016 at 19:58:08 +0200, Matteo Croce wrote:
>
>> Yes it prints.
>> But here it seems I have two separate issues:
>>
>> 1) can't print without symlinking
>> /etc/cups/ppd/usr/lib/cups/filter/epson-escpr-wrapper.ppd to
>> /etc/cups/ppd/Epson_2530.ppd
>
> Everything I said before was on the basis that you did not make that
> symlink for doing the tests I described. If the log below was obtained
> when the cupsfilter command was used after symlinking it is invalid.
>
> Did the /usr/lib/cups/filter/epson-escpr-wrapper command get the symlink
> made in /tmp without your altering the system? Please let me know if I
> am not being clear on what to do.
>
>> 2) can't print from another cpus server and a raw queue.
>
> Sounds like a different issue. Let's stick with this one for now.
>
>> 2016-10-26 19:51 GMT+02:00 Brian Potkin <claremont...@gmail.com>:
>> > On Wed 26 Oct 2016 at 19:04:56 +0200, Matteo Croce wrote:
>> >
>> >> 2016-10-26 18:55 GMT+02:00 Brian Potkin <claremont...@gmail.com>:
>> >> > On Wed 26 Oct 2016 at 12:25:36 +0200, Matteo Croce wrote:
>> >> >
>> >> >> 2016-10-24 23:58 GMT+02:00 Brian Potkin <claremont...@gmail.com>:
>> >> >> > On Mon 24 Oct 2016 at 19:46:51 +0200, Matteo Croce wrote:
>> >> >> > My print queue was set up (all on one line) with
>> >> >> >
>> >> >> >   lpadmin -p wf2530 -v file:/home/brian/wf2530 -E
>> >> >> > -m 
>> >> >> > escpr:/0/cups/model/epson-inkjet-printer-escpr/Epsom-WF-2530_Series-epson-escpr-en-ppd
>> >> >> >
>> >> >> > and I printed with
>> >> >> >
>> >> >> >   lp -d wf2530 /etc/nsswitch.conf
>> >> >> >
>> >> >> > You could try this to see whether it gets printing going for you.
>> >> >>
>> >> >> I get the same error.
>> >> >> I managed to print with:
>> >> >>
>> >>

Bug#841843: printer-driver-escpr: backend can't find PPD file]

2016-10-31 Thread Brian Potkin
tags 841843 moreinfo
thanks


On Fri 28 Oct 2016 at 14:39:57 +0100, Brian Potkin wrote:

> Many apologies, Matteo. Because I read bug reports in debian-printing I
> inadvertently sent the mail below there and not to you or the bug.
> 
> I have tried everything I can think of to reproduce your issue on Jessie
> and unstable but without success. One last try! There is probably some
> repetition of what we have done before but I am not sure if I was as
> clear as I could have been. If this does not work I am out of ideas.
> 
> Set up a new queue with a different PPD:
> 
>  lpadmin -p newq -v file:/dev/null -E -m 
> escpr:/0/cups/model/epson-inkjet-printer-escpr/Epson-WF-100_Series-epson-escpr-en-ppd
> 
> Without any symlinking print to the queue in any way you choose and look
> at the error log. Is "Cannot get option of PIPS" still there?
> 
> Alternatively:
> 
>  cupsfilter -p /etc/cups/ppd/newq.ppd -d newq -m printer/foo -e 
> /etc/nsswitch.conf > file.out 2> newq.log
> 
> Does newq.log contain lines like this?
> 
>  gstoraster (PID n) exited with no errors.
>  epson-escpr-wrapper (PID n) exited with no errors.
> 
> (Forget about the command
> 
>  /usr/lib/cups/filter/epson-escpr-wrapper 1 1 1 1 1 wf2530.ras > wf2530.data
> 
> and its strace output. Another mistake on my part. It worked because I
> had made the symlink you suggested).

Matteo,

Any news on your tests?

Cheers,

Brian.



Bug#841843: printer-driver-escpr: backend can't find PPD file]

2016-10-28 Thread Brian Potkin
Many apologies, Matteo. Because I read bug reports in debian-printing I
inadvertently sent the mail below there and not to you or the bug.

I have tried everything I can think of to reproduce your issue on Jessie
and unstable but without success. One last try! There is probably some
repetition of what we have done before but I am not sure if I was as
clear as I could have been. If this does not work I am out of ideas.

Set up a new queue with a different PPD:

 lpadmin -p newq -v file:/dev/null -E -m 
escpr:/0/cups/model/epson-inkjet-printer-escpr/Epson-WF-100_Series-epson-escpr-en-ppd

Without any symlinking print to the queue in any way you choose and look
at the error log. Is "Cannot get option of PIPS" still there?

Alternatively:

 cupsfilter -p /etc/cups/ppd/newq.ppd -d newq -m printer/foo -e 
/etc/nsswitch.conf > file.out 2> newq.log

Does newq.log contain lines like this?

 gstoraster (PID n) exited with no errors.
 epson-escpr-wrapper (PID n) exited with no errors.

(Forget about the command

 /usr/lib/cups/filter/epson-escpr-wrapper 1 1 1 1 1 wf2530.ras > wf2530.data

and its strace output. Another mistake on my part. It worked because I
had made the symlink you suggested).

Cheers,

Brian.
 


- Forwarded message from Brian Potkin <claremont...@gmail.com> -

Date: Wed, 26 Oct 2016 19:19:55 +0100
From: Brian Potkin <claremont...@gmail.com>
To: debian-print...@lists.debian.org
Subject: Re: Bug#841843: printer-driver-escpr: backend can't find PPD file
User-Agent: Mutt/1.5.23 (2014-03-12)

On Wed 26 Oct 2016 at 19:58:08 +0200, Matteo Croce wrote:

> Yes it prints.
> But here it seems I have two separate issues:
> 
> 1) can't print without symlinking
> /etc/cups/ppd/usr/lib/cups/filter/epson-escpr-wrapper.ppd to
> /etc/cups/ppd/Epson_2530.ppd

Everything I said before was on the basis that you did not make that
symlink for doing the tests I described. If the log below was obtained
when the cupsfilter command was used after symlinking it is invalid.

Did the /usr/lib/cups/filter/epson-escpr-wrapper command get the symlink
made in /tmp without your altering the system? Please let me know if I
am not being clear on what to do.

> 2) can't print from another cpus server and a raw queue.

Sounds like a different issue. Let's stick with this one for now.

> 2016-10-26 19:51 GMT+02:00 Brian Potkin <claremont...@gmail.com>:
> > On Wed 26 Oct 2016 at 19:04:56 +0200, Matteo Croce wrote:
> >
> >> 2016-10-26 18:55 GMT+02:00 Brian Potkin <claremont...@gmail.com>:
> >> > On Wed 26 Oct 2016 at 12:25:36 +0200, Matteo Croce wrote:
> >> >
> >> >> 2016-10-24 23:58 GMT+02:00 Brian Potkin <claremont...@gmail.com>:
> >> >> > On Mon 24 Oct 2016 at 19:46:51 +0200, Matteo Croce wrote:
> >> >> > My print queue was set up (all on one line) with
> >> >> >
> >> >> >   lpadmin -p wf2530 -v file:/home/brian/wf2530 -E
> >> >> > -m 
> >> >> > escpr:/0/cups/model/epson-inkjet-printer-escpr/Epsom-WF-2530_Series-epson-escpr-en-ppd
> >> >> >
> >> >> > and I printed with
> >> >> >
> >> >> >   lp -d wf2530 /etc/nsswitch.conf
> >> >> >
> >> >> > You could try this to see whether it gets printing going for you.
> >> >>
> >> >> I get the same error.
> >> >> I managed to print with:
> >> >>
> >> >> # mkdir -p /etc/cups/ppd/usr/lib/cups/filter
> >> >> # ln -s /etc/cups/ppd/Epson_2530.ppd
> >> >> /etc/cups/ppd/usr/lib/cups/filter/epson-escpr-wrapper.ppd
> >> >> # lp -d Epson_2530 /etc/nsswitch.conf
> >> >
> >> > This is indeed a step forward and a possible clue.
> >> >
> >> >  cupsfilter -p /etc/cups/ppd/wf2530.ppd -m application/vnd.cups-raster 
> >> > /etc/nsswitch.conf > wf2530.ras 2>log
> >> >
> >> > produces a raster file for me. I would expect it to do the same for you.
> >> >
> >> >  /usr/lib/cups/filter/epson-escpr-wrapper 1 1 1 1 1 wf2530.ras > 
> >> > wf2530.data
> >> >
> >> > produces a printer ready file from the raster file for me. From what you
> >> > relate in your initial mail, this is likely not to work for you and
> >> > wf2530.data will be empty.
> >> >
> >> > Part of the strace log from running strace on the second command has
> >> >
> >> >  
> >> > stat64("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd",{st_mode=S_IFREG|0644,
> >> >  st_size=50341, ...}) = 0
> >> >

Bug#841843: printer-driver-escpr: backend can't find PPD file

2016-10-26 Thread Matteo Croce
Yes it prints.
But here it seems I have two separate issues:

1) can't print without symlinking
/etc/cups/ppd/usr/lib/cups/filter/epson-escpr-wrapper.ppd to
/etc/cups/ppd/Epson_2530.ppd
2) can't print from another cpus server and a raw queue.


2016-10-26 19:51 GMT+02:00 Brian Potkin :
> On Wed 26 Oct 2016 at 19:04:56 +0200, Matteo Croce wrote:
>
>> 2016-10-26 18:55 GMT+02:00 Brian Potkin :
>> > On Wed 26 Oct 2016 at 12:25:36 +0200, Matteo Croce wrote:
>> >
>> >> 2016-10-24 23:58 GMT+02:00 Brian Potkin :
>> >> > On Mon 24 Oct 2016 at 19:46:51 +0200, Matteo Croce wrote:
>> >> > My print queue was set up (all on one line) with
>> >> >
>> >> >   lpadmin -p wf2530 -v file:/home/brian/wf2530 -E
>> >> > -m 
>> >> > escpr:/0/cups/model/epson-inkjet-printer-escpr/Epsom-WF-2530_Series-epson-escpr-en-ppd
>> >> >
>> >> > and I printed with
>> >> >
>> >> >   lp -d wf2530 /etc/nsswitch.conf
>> >> >
>> >> > You could try this to see whether it gets printing going for you.
>> >>
>> >> I get the same error.
>> >> I managed to print with:
>> >>
>> >> # mkdir -p /etc/cups/ppd/usr/lib/cups/filter
>> >> # ln -s /etc/cups/ppd/Epson_2530.ppd
>> >> /etc/cups/ppd/usr/lib/cups/filter/epson-escpr-wrapper.ppd
>> >> # lp -d Epson_2530 /etc/nsswitch.conf
>> >
>> > This is indeed a step forward and a possible clue.
>> >
>> >  cupsfilter -p /etc/cups/ppd/wf2530.ppd -m application/vnd.cups-raster 
>> > /etc/nsswitch.conf > wf2530.ras 2>log
>> >
>> > produces a raster file for me. I would expect it to do the same for you.
>> >
>> >  /usr/lib/cups/filter/epson-escpr-wrapper 1 1 1 1 1 wf2530.ras > 
>> > wf2530.data
>> >
>> > produces a printer ready file from the raster file for me. From what you
>> > relate in your initial mail, this is likely not to work for you and
>> > wf2530.data will be empty.
>> >
>> > Part of the strace log from running strace on the second command has
>> >
>> >  
>> > stat64("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd",{st_mode=S_IFREG|0644,
>> >  st_size=50341, ...}) = 0
>> >  access("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd", 
>> > R_OK) = 0
>> >  symlink("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd", 
>> > "/tmp/5810d9a20db33") = 0
>> >  open("/tmp/5810d9a20db33", O_RDONLY|O_LARGEFILE) = 4
>> >
>> > It seems a PPD file of size 50341 has been found and accessed. A symlink
>> > is made to it in /tmp. The link /tmp/5810d9a20db33 exists and points to
>> > /etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd. Opening it
>> > shows wf2530.ppd.
>> >
>> > Does the issue come down to whether you are having a link made? And if
>> > it is not made, why not?
>> >
>> > In another mail I wrote
>> >
>> >  cupsfilter -p /etc/cups/ppd/Epson_2530.ppd -m printer/foo -e 
>> > /etc/nsswitch.conf > file.out 2> wf2530.log
>> >
>> > It is incorrect. This is better (and works for me):
>> >
>> >  cupsfilter -p /etc/cups/ppd/Epson_2530.ppd -d Epson_2530 -m printer/foo 
>> > -e /etc/nsswitch.conf > file.out 2> wf2530.log
>> >
>> > Cheers,
>> >
>> > Brian.
>> >
>>
>> Hi,
>>
>> now file.out is a 208 kb "data" file
>
> That's ok.
>
>> I attach the log output
>
>> cupsfilter: File "/usr/lib/cups/filter/epson-escpr-wrapper" permessi OK 
>> (040755/uid=0/gid=0).
>> DEBUG: argv[0]="Epson_2530"
>> DEBUG: argv[1]="1"
>> DEBUG: argv[2]="root"
>> DEBUG: argv[3]="nsswitch.conf"
>> DEBUG: argv[4]="1"
>> DEBUG: argv[5]=""
>> DEBUG: argv[6]="/etc/nsswitch.conf"
>> DEBUG: envp[0]=""
>> DEBUG: envp[1]="CONTENT_TYPE=text/plain"
>> DEBUG: envp[2]="CUPS_DATADIR=/usr/share/cups"
>> DEBUG: envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
>> DEBUG: envp[4]="CUPS_SERVERBIN=/usr/lib/cups"
>> DEBUG: envp[5]="CUPS_SERVERROOT=/etc/cups"
>> DEBUG: envp[6]="LANG=it_IT.UTF8"
>> DEBUG: envp[7]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
>> DEBUG: envp[8]="PPD=/etc/cups/ppd/Epson_2530.ppd"
>> DEBUG: envp[9]="PRINTER_INFO=EPSON WF-2530 Series"
>> DEBUG: envp[10]="PRINTER_LOCATION="
>> DEBUG: envp[11]="PRINTER=Epson_2530"
>> DEBUG: envp[12]="RIP_MAX_CACHE=128m"
>> DEBUG: envp[13]="USER=root"
>> DEBUG: envp[14]="CHARSET=utf-8"
>> DEBUG: envp[15]="FINAL_CONTENT_TYPE=application/vnd.cups-raster"
>> INFO: texttopdf (PID 24556) started.
>> INFO: pdftopdf (PID 24557) started.
>> INFO: gstoraster (PID 24558) started.
>> INFO: epson-escpr-wrapper (PID 24559) started.
>> DEBUG: pdftopdf: Last filter determined by the PPD: epson-escpr-wrapper; 
>> FINAL_CONTENT_TYPE: application/vnd.cups-raster => pdftopdf will not log 
>> pages in page_log.
>> DEBUG: OUTFORMAT="(null)", so output format will be CUPS/PWG Raster
>> DEBUG: Page = 595x842; 8,8 to 587,833
>> INFO: texttopdf (PID 24556) exited with no errors.
>> INFO: pdftopdf (PID 24557) exited with no errors.
>> DEBUG: Color Manager: Calibration Mode/Off
>> DEBUG: Calling FindDeviceById(cups-Epson_2530)
>> DEBUG: Failed to send: org.freedesktop.DBus.Error.ServiceUnknown:The name 
>> 

Bug#841843: printer-driver-escpr: backend can't find PPD file

2016-10-26 Thread Brian Potkin
On Wed 26 Oct 2016 at 19:04:56 +0200, Matteo Croce wrote:

> 2016-10-26 18:55 GMT+02:00 Brian Potkin :
> > On Wed 26 Oct 2016 at 12:25:36 +0200, Matteo Croce wrote:
> >
> >> 2016-10-24 23:58 GMT+02:00 Brian Potkin :
> >> > On Mon 24 Oct 2016 at 19:46:51 +0200, Matteo Croce wrote:
> >> > My print queue was set up (all on one line) with
> >> >
> >> >   lpadmin -p wf2530 -v file:/home/brian/wf2530 -E
> >> > -m 
> >> > escpr:/0/cups/model/epson-inkjet-printer-escpr/Epsom-WF-2530_Series-epson-escpr-en-ppd
> >> >
> >> > and I printed with
> >> >
> >> >   lp -d wf2530 /etc/nsswitch.conf
> >> >
> >> > You could try this to see whether it gets printing going for you.
> >>
> >> I get the same error.
> >> I managed to print with:
> >>
> >> # mkdir -p /etc/cups/ppd/usr/lib/cups/filter
> >> # ln -s /etc/cups/ppd/Epson_2530.ppd
> >> /etc/cups/ppd/usr/lib/cups/filter/epson-escpr-wrapper.ppd
> >> # lp -d Epson_2530 /etc/nsswitch.conf
> >
> > This is indeed a step forward and a possible clue.
> >
> >  cupsfilter -p /etc/cups/ppd/wf2530.ppd -m application/vnd.cups-raster 
> > /etc/nsswitch.conf > wf2530.ras 2>log
> >
> > produces a raster file for me. I would expect it to do the same for you.
> >
> >  /usr/lib/cups/filter/epson-escpr-wrapper 1 1 1 1 1 wf2530.ras > wf2530.data
> >
> > produces a printer ready file from the raster file for me. From what you
> > relate in your initial mail, this is likely not to work for you and
> > wf2530.data will be empty.
> >
> > Part of the strace log from running strace on the second command has
> >
> >  
> > stat64("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd",{st_mode=S_IFREG|0644,
> >  st_size=50341, ...}) = 0
> >  access("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd", R_OK) 
> > = 0
> >  symlink("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd", 
> > "/tmp/5810d9a20db33") = 0
> >  open("/tmp/5810d9a20db33", O_RDONLY|O_LARGEFILE) = 4
> >
> > It seems a PPD file of size 50341 has been found and accessed. A symlink
> > is made to it in /tmp. The link /tmp/5810d9a20db33 exists and points to
> > /etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd. Opening it
> > shows wf2530.ppd.
> >
> > Does the issue come down to whether you are having a link made? And if
> > it is not made, why not?
> >
> > In another mail I wrote
> >
> >  cupsfilter -p /etc/cups/ppd/Epson_2530.ppd -m printer/foo -e 
> > /etc/nsswitch.conf > file.out 2> wf2530.log
> >
> > It is incorrect. This is better (and works for me):
> >
> >  cupsfilter -p /etc/cups/ppd/Epson_2530.ppd -d Epson_2530 -m printer/foo -e 
> > /etc/nsswitch.conf > file.out 2> wf2530.log
> >
> > Cheers,
> >
> > Brian.
> >
> 
> Hi,
> 
> now file.out is a 208 kb "data" file

That's ok.

> I attach the log output

> cupsfilter: File "/usr/lib/cups/filter/epson-escpr-wrapper" permessi OK 
> (040755/uid=0/gid=0).
> DEBUG: argv[0]="Epson_2530"
> DEBUG: argv[1]="1"
> DEBUG: argv[2]="root"
> DEBUG: argv[3]="nsswitch.conf"
> DEBUG: argv[4]="1"
> DEBUG: argv[5]=""
> DEBUG: argv[6]="/etc/nsswitch.conf"
> DEBUG: envp[0]=""
> DEBUG: envp[1]="CONTENT_TYPE=text/plain"
> DEBUG: envp[2]="CUPS_DATADIR=/usr/share/cups"
> DEBUG: envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
> DEBUG: envp[4]="CUPS_SERVERBIN=/usr/lib/cups"
> DEBUG: envp[5]="CUPS_SERVERROOT=/etc/cups"
> DEBUG: envp[6]="LANG=it_IT.UTF8"
> DEBUG: envp[7]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
> DEBUG: envp[8]="PPD=/etc/cups/ppd/Epson_2530.ppd"
> DEBUG: envp[9]="PRINTER_INFO=EPSON WF-2530 Series"
> DEBUG: envp[10]="PRINTER_LOCATION="
> DEBUG: envp[11]="PRINTER=Epson_2530"
> DEBUG: envp[12]="RIP_MAX_CACHE=128m"
> DEBUG: envp[13]="USER=root"
> DEBUG: envp[14]="CHARSET=utf-8"
> DEBUG: envp[15]="FINAL_CONTENT_TYPE=application/vnd.cups-raster"
> INFO: texttopdf (PID 24556) started.
> INFO: pdftopdf (PID 24557) started.
> INFO: gstoraster (PID 24558) started.
> INFO: epson-escpr-wrapper (PID 24559) started.
> DEBUG: pdftopdf: Last filter determined by the PPD: epson-escpr-wrapper; 
> FINAL_CONTENT_TYPE: application/vnd.cups-raster => pdftopdf will not log 
> pages in page_log.
> DEBUG: OUTFORMAT="(null)", so output format will be CUPS/PWG Raster
> DEBUG: Page = 595x842; 8,8 to 587,833
> INFO: texttopdf (PID 24556) exited with no errors.
> INFO: pdftopdf (PID 24557) exited with no errors.
> DEBUG: Color Manager: Calibration Mode/Off
> DEBUG: Calling FindDeviceById(cups-Epson_2530)
> DEBUG: Failed to send: org.freedesktop.DBus.Error.ServiceUnknown:The name 
> org.freedesktop.ColorManager was not provided by any .service files
> DEBUG: Failed to get find device cups-Epson_2530
> DEBUG: Calling FindDeviceById(cups-Epson_2530)
> DEBUG: Failed to send: org.freedesktop.DBus.Error.ServiceUnknown:The name 
> org.freedesktop.ColorManager was not provided by any .service files
> DEBUG: Failed to get device cups-Epson_2530
> INFO: Color Manager: no profiles specified in PPD
> DEBUG: Color Manager: ICC Profile: 

Bug#841843: printer-driver-escpr: backend can't find PPD file

2016-10-26 Thread Matteo Croce
2016-10-26 18:55 GMT+02:00 Brian Potkin :
> On Wed 26 Oct 2016 at 12:25:36 +0200, Matteo Croce wrote:
>
>> 2016-10-24 23:58 GMT+02:00 Brian Potkin :
>> > On Mon 24 Oct 2016 at 19:46:51 +0200, Matteo Croce wrote:
>> > My print queue was set up (all on one line) with
>> >
>> >   lpadmin -p wf2530 -v file:/home/brian/wf2530 -E
>> > -m 
>> > escpr:/0/cups/model/epson-inkjet-printer-escpr/Epsom-WF-2530_Series-epson-escpr-en-ppd
>> >
>> > and I printed with
>> >
>> >   lp -d wf2530 /etc/nsswitch.conf
>> >
>> > You could try this to see whether it gets printing going for you.
>>
>> I get the same error.
>> I managed to print with:
>>
>> # mkdir -p /etc/cups/ppd/usr/lib/cups/filter
>> # ln -s /etc/cups/ppd/Epson_2530.ppd
>> /etc/cups/ppd/usr/lib/cups/filter/epson-escpr-wrapper.ppd
>> # lp -d Epson_2530 /etc/nsswitch.conf
>
> This is indeed a step forward and a possible clue.
>
>  cupsfilter -p /etc/cups/ppd/wf2530.ppd -m application/vnd.cups-raster 
> /etc/nsswitch.conf > wf2530.ras 2>log
>
> produces a raster file for me. I would expect it to do the same for you.
>
>  /usr/lib/cups/filter/epson-escpr-wrapper 1 1 1 1 1 wf2530.ras > wf2530.data
>
> produces a printer ready file from the raster file for me. From what you
> relate in your initial mail, this is likely not to work for you and
> wf2530.data will be empty.
>
> Part of the strace log from running strace on the second command has
>
>  
> stat64("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd",{st_mode=S_IFREG|0644,
>  st_size=50341, ...}) = 0
>  access("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd", R_OK) = > 0
>  symlink("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd", 
> "/tmp/5810d9a20db33") = 0
>  open("/tmp/5810d9a20db33", O_RDONLY|O_LARGEFILE) = 4
>
> It seems a PPD file of size 50341 has been found and accessed. A symlink
> is made to it in /tmp. The link /tmp/5810d9a20db33 exists and points to
> /etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd. Opening it
> shows wf2530.ppd.
>
> Does the issue come down to whether you are having a link made? And if
> it is not made, why not?
>
> In another mail I wrote
>
>  cupsfilter -p /etc/cups/ppd/Epson_2530.ppd -m printer/foo -e 
> /etc/nsswitch.conf > file.out 2> wf2530.log
>
> It is incorrect. This is better (and works for me):
>
>  cupsfilter -p /etc/cups/ppd/Epson_2530.ppd -d Epson_2530 -m printer/foo -e 
> /etc/nsswitch.conf > file.out 2> wf2530.log
>
> Cheers,
>
> Brian.
>

Hi,

now file.out is a 208 kb "data" file
I attach the log output
cupsfilter: File "/usr/lib/cups/filter/epson-escpr-wrapper" permessi OK (040755/uid=0/gid=0).
DEBUG: argv[0]="Epson_2530"
DEBUG: argv[1]="1"
DEBUG: argv[2]="root"
DEBUG: argv[3]="nsswitch.conf"
DEBUG: argv[4]="1"
DEBUG: argv[5]=""
DEBUG: argv[6]="/etc/nsswitch.conf"
DEBUG: envp[0]=""
DEBUG: envp[1]="CONTENT_TYPE=text/plain"
DEBUG: envp[2]="CUPS_DATADIR=/usr/share/cups"
DEBUG: envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
DEBUG: envp[4]="CUPS_SERVERBIN=/usr/lib/cups"
DEBUG: envp[5]="CUPS_SERVERROOT=/etc/cups"
DEBUG: envp[6]="LANG=it_IT.UTF8"
DEBUG: envp[7]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
DEBUG: envp[8]="PPD=/etc/cups/ppd/Epson_2530.ppd"
DEBUG: envp[9]="PRINTER_INFO=EPSON WF-2530 Series"
DEBUG: envp[10]="PRINTER_LOCATION="
DEBUG: envp[11]="PRINTER=Epson_2530"
DEBUG: envp[12]="RIP_MAX_CACHE=128m"
DEBUG: envp[13]="USER=root"
DEBUG: envp[14]="CHARSET=utf-8"
DEBUG: envp[15]="FINAL_CONTENT_TYPE=application/vnd.cups-raster"
INFO: texttopdf (PID 24556) started.
INFO: pdftopdf (PID 24557) started.
INFO: gstoraster (PID 24558) started.
INFO: epson-escpr-wrapper (PID 24559) started.
DEBUG: pdftopdf: Last filter determined by the PPD: epson-escpr-wrapper; FINAL_CONTENT_TYPE: application/vnd.cups-raster => pdftopdf will not log pages in page_log.
DEBUG: OUTFORMAT="(null)", so output format will be CUPS/PWG Raster
DEBUG: Page = 595x842; 8,8 to 587,833
INFO: texttopdf (PID 24556) exited with no errors.
INFO: pdftopdf (PID 24557) exited with no errors.
DEBUG: Color Manager: Calibration Mode/Off
DEBUG: Calling FindDeviceById(cups-Epson_2530)
DEBUG: Failed to send: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
DEBUG: Failed to get find device cups-Epson_2530
DEBUG: Calling FindDeviceById(cups-Epson_2530)
DEBUG: Failed to send: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
DEBUG: Failed to get device cups-Epson_2530
INFO: Color Manager: no profiles specified in PPD
DEBUG: Color Manager: ICC Profile: None
DEBUG: Ghostscript using Any-Part-of-Pixel method to fill paths.
DEBUG: Ghostscript command line: /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=cups -r360x360 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=841 -dcupsBitsPerColor=8 

Bug#841843: printer-driver-escpr: backend can't find PPD file

2016-10-26 Thread Brian Potkin
On Wed 26 Oct 2016 at 12:25:36 +0200, Matteo Croce wrote:

> 2016-10-24 23:58 GMT+02:00 Brian Potkin :
> > On Mon 24 Oct 2016 at 19:46:51 +0200, Matteo Croce wrote:
> > My print queue was set up (all on one line) with
> >
> >   lpadmin -p wf2530 -v file:/home/brian/wf2530 -E
> > -m 
> > escpr:/0/cups/model/epson-inkjet-printer-escpr/Epsom-WF-2530_Series-epson-escpr-en-ppd
> >
> > and I printed with
> >
> >   lp -d wf2530 /etc/nsswitch.conf
> >
> > You could try this to see whether it gets printing going for you.
> 
> I get the same error.
> I managed to print with:
> 
> # mkdir -p /etc/cups/ppd/usr/lib/cups/filter
> # ln -s /etc/cups/ppd/Epson_2530.ppd
> /etc/cups/ppd/usr/lib/cups/filter/epson-escpr-wrapper.ppd
> # lp -d Epson_2530 /etc/nsswitch.conf

This is indeed a step forward and a possible clue.

 cupsfilter -p /etc/cups/ppd/wf2530.ppd -m application/vnd.cups-raster 
/etc/nsswitch.conf > wf2530.ras 2>log

produces a raster file for me. I would expect it to do the same for you.

 /usr/lib/cups/filter/epson-escpr-wrapper 1 1 1 1 1 wf2530.ras > wf2530.data

produces a printer ready file from the raster file for me. From what you
relate in your initial mail, this is likely not to work for you and
wf2530.data will be empty.

Part of the strace log from running strace on the second command has

 
stat64("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd",{st_mode=S_IFREG|0644,
 st_size=50341, ...}) = 0
 access("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd", R_OK) = 0
 symlink("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd", 
"/tmp/5810d9a20db33") = 0
 open("/tmp/5810d9a20db33", O_RDONLY|O_LARGEFILE) = 4

It seems a PPD file of size 50341 has been found and accessed. A symlink
is made to it in /tmp. The link /tmp/5810d9a20db33 exists and points to
/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd. Opening it
shows wf2530.ppd.

Does the issue come down to whether you are having a link made? And if
it is not made, why not?

In another mail I wrote

 cupsfilter -p /etc/cups/ppd/Epson_2530.ppd -m printer/foo -e 
/etc/nsswitch.conf > file.out 2> wf2530.log

It is incorrect. This is better (and works for me):

 cupsfilter -p /etc/cups/ppd/Epson_2530.ppd -d Epson_2530 -m printer/foo -e 
/etc/nsswitch.conf > file.out 2> wf2530.log

Cheers,

Brian.



Bug#841843: printer-driver-escpr: backend can't find PPD file

2016-10-26 Thread Brian Potkin
On Wed 26 Oct 2016 at 12:44:57 +0200, Matteo Croce wrote:

> Here is my PPD file

There is nothing here for us. It works with my setup; it is not
corrupted. Back to the drawing board!

Cheers,

Brian



Bug#841843: printer-driver-escpr: backend can't find PPD file

2016-10-26 Thread Matteo Croce
2016-10-25 23:21 GMT+02:00 Brian Potkin :
> On Mon 24 Oct 2016 at 22:58:06 +0100, Brian Potkin wrote:
>
>> My print queue was set up (all on one line) with
>>
>>   lpadmin -p wf2530 -v file:/home/brian/wf2530 -E
>> -m 
>> escpr:/0/cups/model/epson-inkjet-printer-escpr/Epsom-WF-2530_Series-epson-escpr-en-ppd
>>
>> and I printed with
>>
>>   lp -d wf2530 /etc/nsswitch.conf
>>
>> You could try this to see whether it gets printing going for you.
>
> I don't know whether you tried this but another request: please post
> your PPD file for us to see.
>
> Cheers,
>
> Brian.

Here is my PPD file


Epson_2530.ppd
Description: Binary data


Bug#841843: printer-driver-escpr: backend can't find PPD file

2016-10-26 Thread Matteo Croce
2016-10-24 23:58 GMT+02:00 Brian Potkin :
> On Mon 24 Oct 2016 at 19:46:51 +0200, Matteo Croce wrote:
> My print queue was set up (all on one line) with
>
>   lpadmin -p wf2530 -v file:/home/brian/wf2530 -E
> -m 
> escpr:/0/cups/model/epson-inkjet-printer-escpr/Epsom-WF-2530_Series-epson-escpr-en-ppd
>
> and I printed with
>
>   lp -d wf2530 /etc/nsswitch.conf
>
> You could try this to see whether it gets printing going for you.

I get the same error.
I managed to print with:

# mkdir -p /etc/cups/ppd/usr/lib/cups/filter
# ln -s /etc/cups/ppd/Epson_2530.ppd
/etc/cups/ppd/usr/lib/cups/filter/epson-escpr-wrapper.ppd
# lp -d Epson_2530 /etc/nsswitch.conf

> Cheers,
>
> Brian.

Cheers,



Bug#841843: printer-driver-escpr: backend can't find PPD file

2016-10-25 Thread Brian Potkin
On Mon 24 Oct 2016 at 22:58:06 +0100, Brian Potkin wrote:

> My print queue was set up (all on one line) with
> 
>   lpadmin -p wf2530 -v file:/home/brian/wf2530 -E 
> -m 
> escpr:/0/cups/model/epson-inkjet-printer-escpr/Epsom-WF-2530_Series-epson-escpr-en-ppd
> 
> and I printed with
> 
>   lp -d wf2530 /etc/nsswitch.conf
> 
> You could try this to see whether it gets printing going for you.

I don't know whether you tried this but another request: please post
your PPD file for us to see.

Cheers,

Brian.



Bug#841843: printer-driver-escpr: backend can't find PPD file

2016-10-24 Thread Brian Potkin
On Mon 24 Oct 2016 at 19:46:51 +0200, Matteo Croce wrote:

> Hi,
> 
> I attach a clean error_log with loglevel set to debug.
> I ran your command, but file.out is empty.

This is because the final filter did not complete.

> I attach wf2530.log anyway

Thanks. I get exactly the same as you. It shows the system being unable
to move on to the final filter, epson-escpr-wrapper. It also appears to
show Ghostscript not carrying out a conversion with the filter
gstoraster. I have observed the same behaviour on Jessie and with other
PPDs from the same package.

  > DEBUG: OUTFORMAT="(null)", so output format will be CUPS/PWG Raster
  > PPD file not found, or PPD file is broken. Cannot get option of PIPS.ERROR: 
epson-escpr-wrapper (PID 538) stopped with status 1

  > INFO: texttopdf (PID 535) exited with no errors.
  > INFO: pdftopdf (PID 536) exited with no errors.

  > DEBUG: Ghostscript command line: /usr/bin/gs -dQUIET -dPARANOIDSAFER 
-dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -sstdout=%stderr 
-sOutputFile=%stdout -sDEVICE=cups -r360x360 -dDEVICEWIDTHPOINTS=595 
-dDEVICEHEIGHTPOINTS=841 -dcupsBitsPerColor=8 -dcupsColorOrder=0 
-dcupsColorSpace=1 -dcupsCompression=1 -scupsPageSizeName=A4 
-I/usr/share/cups/fonts -c '<>setpagedevice' -f -_

  > INFO: Start rendering...
  > INFO: Processing page 1...
  > ERROR: Unable to open raster stream - : Broken pipe
  > Error: /ioerror in --showpage--

  > INFO: Rendering completed
  > ERROR: gstoraster (PID 537) stopped with status 1


You error_log also backs up wf2530.log by showing epson-escpr-wrapper
reporting "Cannot get option of PIPS" and

  D [24/Oct/2016:19:38:57 +0200] [Job 90] PID 32749 
(/usr/lib/cups/filter/epson-escpr-wrapper) stopped with status 1.
  D [24/Oct/2016:19:39:01 +0200] [Job 90] PID 32747 
(/usr/lib/cups/filter/gstoraster) stopped with status 1.

Unfortuately, my error_log show nothing of this. There is no mention of
PIPS and epson-escpr-wrapper and gstoraster complete successfully. I
have no explanation for this difference.

My print queue was set up (all on one line) with

  lpadmin -p wf2530 -v file:/home/brian/wf2530 -E 
-m 
escpr:/0/cups/model/epson-inkjet-printer-escpr/Epsom-WF-2530_Series-epson-escpr-en-ppd

and I printed with

  lp -d wf2530 /etc/nsswitch.conf

You could try this to see whether it gets printing going for you.

Cheers,

Brian.



Bug#841843: printer-driver-escpr: backend can't find PPD file

2016-10-24 Thread Brian Potkin
On Sun 23 Oct 2016 at 20:57:07 +0200, Matteo Croce wrote:

> Package: printer-driver-escpr
> Version: 1.6.8-1
> Severity: important
> 
> Dear Maintainer,
> 
> I have cups installed on a headless system, but can't print anything.
> I ran strace on what the backend does, and it's doing:
> 
> stat("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd",
> 0x7ffe5cf95530) = -1 ENOENT (No such file or directory)
> PPD file not found, or PPD file is broken. Cannot get option of PIPS.
> +++ exited with 1 +++
> 
> The path
> "/etc/cups/ppd//usr/lib/cups/filter/eipson-escpr-wrapper.ppd"
> is obviously wrong, the real path is /etc/cups/ppd/Epson_2530.ppd
> 
> The environment passed to the backend is:
> 
> AUTH_INFO_REQUIRED=none
> CHARSET=utf-8
> CONTENT_TYPE=application/pdf
> CUPS_CACHEDIR=/var/cache/cups
> CUPS_DATADIR=/usr/share/cups
> CUPS_DOCROOT=/usr/share/cups/doc-root
> CUPS_ENCRYPTION=IfRequested
> CUPS_FILETYPE=document
> CUPS_FONTPATH=/usr/share/cups/fonts
> CUPS_MAX_MESSAGE=2047
> CUPS_REQUESTROOT=/var/spool/cups
> CUPS_SERVERBIN=/usr/lib/cups
> CUPS_SERVERROOT=/etc/cups
> CUPS_SERVER=/var/run/cups/cups.sock
> CUPS_STATEDIR=/var/run/cups
> DEVICE_URI=usb://EPSON/WF-2530%20Series?serial=514B34593134343081=1
> FINAL_CONTENT_TYPE=application/vnd.cups-raster
> HOME=/var/spool/cups/tmp
> IPP_PORT=631
> LANG=it_IT.UTF-8
> PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin
> PPD=/etc/cups/ppd/Epson_2530.ppd
> PRINTER=Epson_2530
> PRINTER_INFO=EPSON WF-2530 Series
> PRINTER_LOCATION=
> PRINTER_STATE_REASONS=none
> PWD=/
> RIP_MAX_CACHE=128m
> SERVER_ADMIN=root@apu
> SOFTWARE=CUPS/2.2.1
> TMPDIR=/var/spool/cups/tmp
> USER=root
> 
> and it's spawned with such command line:
> 
> /usr/lib/cups/filter/epson-escpr-wrapper 89 matteo Epson_2530 - CUPS
> 2.2.1 1 PageSize=A4 Collate ColorModel=Grayscale Duplex=None
> 'job-uuid=urn:uuid:e3dad89b-99e3-3df3-5b1b-bc3d323dfbdc
> job-originating-host-name=192.168.85.2 date-time-at-creation=
> date-time-at-processing= time-at-creation=1477246475'
> time-at-processing=1477247385

Thank you for your detailed report, Matteo.

Please enable debug logging on the server and obtain an error_log for a
job to post here. The printing section of the wiki should help you with
this.

Would you also run the command (as root is less hassle):

cupsfilter -p /etc/cups/ppd/Epson_2530.ppd -m printer/foo -e /etc/nsswitch.conf 
> file.out 2> wf2530.log

and post wf2530.log. Check that file.out exists and is identified as
"data".

Regards,

Brian.



Bug#841843: printer-driver-escpr: backend can't find PPD file

2016-10-23 Thread Matteo Croce
Package: printer-driver-escpr
Version: 1.6.8-1
Severity: important

Dear Maintainer,

I have cups installed on a headless system, but can't print anything.
I ran strace on what the backend does, and it's doing:

stat("/etc/cups/ppd//usr/lib/cups/filter/epson-escpr-wrapper.ppd",
0x7ffe5cf95530) = -1 ENOENT (No such file or directory)
PPD file not found, or PPD file is broken. Cannot get option of PIPS.
+++ exited with 1 +++

The path
"/etc/cups/ppd//usr/lib/cups/filter/eipson-escpr-wrapper.ppd"
is obviously wrong, the real path is /etc/cups/ppd/Epson_2530.ppd

The environment passed to the backend is:

AUTH_INFO_REQUIRED=none
CHARSET=utf-8
CONTENT_TYPE=application/pdf
CUPS_CACHEDIR=/var/cache/cups
CUPS_DATADIR=/usr/share/cups
CUPS_DOCROOT=/usr/share/cups/doc-root
CUPS_ENCRYPTION=IfRequested
CUPS_FILETYPE=document
CUPS_FONTPATH=/usr/share/cups/fonts
CUPS_MAX_MESSAGE=2047
CUPS_REQUESTROOT=/var/spool/cups
CUPS_SERVERBIN=/usr/lib/cups
CUPS_SERVERROOT=/etc/cups
CUPS_SERVER=/var/run/cups/cups.sock
CUPS_STATEDIR=/var/run/cups
DEVICE_URI=usb://EPSON/WF-2530%20Series?serial=514B34593134343081=1
FINAL_CONTENT_TYPE=application/vnd.cups-raster
HOME=/var/spool/cups/tmp
IPP_PORT=631
LANG=it_IT.UTF-8
PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin
PPD=/etc/cups/ppd/Epson_2530.ppd
PRINTER=Epson_2530
PRINTER_INFO=EPSON WF-2530 Series
PRINTER_LOCATION=
PRINTER_STATE_REASONS=none
PWD=/
RIP_MAX_CACHE=128m
SERVER_ADMIN=root@apu
SOFTWARE=CUPS/2.2.1
TMPDIR=/var/spool/cups/tmp
USER=root

and it's spawned with such command line:

/usr/lib/cups/filter/epson-escpr-wrapper 89 matteo Epson_2530 - CUPS
2.2.1 1 PageSize=A4 Collate ColorModel=Grayscale Duplex=None
'job-uuid=urn:uuid:e3dad89b-99e3-3df3-5b1b-bc3d323dfbdc
job-originating-host-name=192.168.85.2 date-time-at-creation=
date-time-at-processing= time-at-creation=1477246475'
time-at-processing=1477247385

Hope it helps,
Regards,

-- System Information:
Debian Release: stretch/sid
 APT prefers testing
 APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.1-apu (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages printer-driver-escpr depends on:
ii  libc6  2.24-3
ii  libcups2   2.2.1-1
ii  libcupsimage2  2.2.1-1
ii  python33.5.1-4
ii  xz-utils   5.2.2-1.2

Versions of packages printer-driver-escpr recommends:
ii  cups-ppdc  2.2.1-1

Versions of packages printer-driver-escpr suggests:
pn  psutils  

-- no debconf information