Re: [cups] Difficulties with Printer Sharing of Brother L2300D
Aaron Laws <[email protected]> Tue, 22 Aug 2023 15:22:24 -0400
| Newsgroups | gmane.comp.printing.cups.general |
|---|---|
| Message-ID | <CADu-kvdbrR=z+N+PcESs-G9d+sM0T9ZDcN=DCrqvr+7jKachrQ@mail.gmail.com> |
On Tue, Aug 22, 2023 at 3:02 PM Aaron Laws <[email protected]> wrote: > I have a printer connected via USB to a computer, ryle. It's a brother > L2300D. I used https://aur.archlinux.org/packages/brlaser for driver > installation. It works and prints documents as expected. > > I have another computer, reformed, that I would like to be able to use the > printer. On reformed, I installed the same package and went to > http://localhost:631/admin then chose "Add Printer". I chose the > appropriate "Discovered Network Printers" (which uses the connection > string, > "dnssd://bw_L2300D%20%40%20ryle._ipp._tcp.local/cups?uuid=e5cb8a27-9c25-37b8-48cb-cac011335c2c"), > chose the brlaser v6 driver in "Model", then added the printer. > > When I print a document on ryle (the first two pages of this document: > https://static.squarespace.com/static/50a02efce4b046b42952af27/t/50a8701fe4b08d1f2ced2ff4/1353216031950/MourtsRelation.pdf > which is a "simple" PDF with text, no images), I see the following in > `/var/logs/cups/error_log`: > > > I [22/Aug/2023:14:43:28 -0400] [Job ???] Request file type is > application/pdf. > I [22/Aug/2023:14:43:28 -0400] [Job 1467] Adding start banner page "none". > I [22/Aug/2023:14:43:28 -0400] [Job 1467] Adding end banner page "none". > I [22/Aug/2023:14:43:28 -0400] [Job 1467] File of type application/pdf > queued by "lawsa". > I [22/Aug/2023:14:43:28 -0400] [Job 1467] Queued on "bw_L2300D" by "lawsa". > I [22/Aug/2023:14:43:28 -0400] [Job 1467] Started filter > /usr/lib/cups/filter/pdftopdf (PID 259729) > I [22/Aug/2023:14:43:28 -0400] [Job 1467] Started filter > /usr/lib/cups/filter/gstoraster (PID 259730) > I [22/Aug/2023:14:43:28 -0400] [Job 1467] Started filter > /usr/lib/cups/filter/rastertobrlaser (PID 259731) > I [22/Aug/2023:14:43:28 -0400] [Job 1467] Started backend > /usr/lib/cups/backend/usb (PID 259732) > I [22/Aug/2023:14:43:29 -0400] [Job 1467] Job completed. > I [22/Aug/2023:14:43:58 -0400] Saving job.cache... > > > When I try to print the first two pages from reformed, the logs look like > this: > > I [22/Aug/2023:14:54:48 -0400] [Job ???] Request file type is > application/pdf. > I [22/Aug/2023:14:54:48 -0400] [Job 3131] Adding start banner page "none". > I [22/Aug/2023:14:54:48 -0400] [Job 3131] Adding end banner page "none". > I [22/Aug/2023:14:54:48 -0400] [Job 3131] File of type application/pdf > queued by "crystal". > I [22/Aug/2023:14:54:48 -0400] [Job 3131] Queued on "HL-L2300D" by > "crystal". > I [22/Aug/2023:14:54:48 -0400] [Job 3131] Started filter > /usr/lib/cups/filter/pdftopdf (PID 113805) > I [22/Aug/2023:14:54:48 -0400] [Job 3131] Started filter > /usr/lib/cups/filter/gstoraster (PID 113806) > I [22/Aug/2023:14:54:48 -0400] [Job 3131] Started filter > /usr/lib/cups/filter/rastertobrlaser (PID 113807) > I [22/Aug/2023:14:54:48 -0400] [Job 3131] Started backend > /usr/lib/cups/backend/dnssd (PID 113808) > I [22/Aug/2023:14:54:53 -0400] Saving printers.conf... > > and on ryle (where the printer is connected), I see: > > I [22/Aug/2023:14:43:04 -0400] [Job 1466] Adding start banner page "none". > I [22/Aug/2023:14:43:04 -0400] [Job 1466] Queued on "bw_L2300D" by > "crystal". > I [22/Aug/2023:14:43:04 -0400] [Job 1466] File of type > application/vnd.cups-raster queued by "crystal". > I [22/Aug/2023:14:43:04 -0400] [Job 1466] Adding end banner page "none". > I [22/Aug/2023:14:43:04 -0400] [Job 1466] Started filter > /usr/lib/cups/filter/rastertobrlaser (PID 259647) > I [22/Aug/2023:14:43:04 -0400] [Job 1466] Started backend > /usr/lib/cups/backend/usb (PID 259648) > I [22/Aug/2023:14:43:04 -0400] [Job 1466] Hint: Try setting the LogLevel > to "debug" to find out more. > E [22/Aug/2023:14:43:05 -0400] [Job 1466] Job stopped due to filter > errors; please consult the /var/log/cups/error_log file for details. > D [22/Aug/2023:14:43:05 -0400] [Job 1466] The following messages were > recorded from 02:43:04 PM to 02:43:05 PM > D [22/Aug/2023:14:43:05 -0400] [Job 1466] Applying default options... > D [22/Aug/2023:14:43:05 -0400] [Job 1466] time-at-processing=1692729784 > D [22/Aug/2023:14:43:05 -0400] [Job 1466] 1 filters for job: > D [22/Aug/2023:14:43:05 -0400] [Job 1466] rastertobrlaser > (application/vnd.cups-raster to printer/bw_L2300D, cost 33) > D [22/Aug/2023:14:43:05 -0400] [Job 1466] job-sheets=none,none > D [22/Aug/2023:14:43:05 -0400] [Job 1466] argv[0]="bw_L2300D" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] argv[1]="1466" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] argv[2]="crystal" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] argv[3]="MourtsRelation.pdf" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] argv[4]="1" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > argv[5]="job-uuid=urn:uuid:5e89d23d-3ac3-319c-603f-938bf0340ea6 > job-originating-host-name=[v1.2601:801:380:af5b::2000] > date-time-at-creation= date-time-at-processing= time-at-creation=1692729784 > time-at-processing=1692729784" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > argv[6]="/var/spool/cups/d01466-001" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > envp[0]="CUPS_CACHEDIR=/var/cache/cups" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > envp[1]="CUPS_DATADIR=/usr/share/cups" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > envp[2]="CUPS_DOCROOT=/usr/share/cups/doc" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > envp[3]="CUPS_REQUESTROOT=/var/spool/cups" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > envp[4]="CUPS_SERVERBIN=/usr/lib/cups" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > envp[5]="CUPS_SERVERROOT=/etc/cups" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] envp[6]="CUPS_STATEDIR=/run/cups" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > envp[7]="HOME=/var/spool/cups/tmp" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > envp[8]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/bin:/bin:/usr/bin" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] envp[9]="SERVER_ADMIN=root@ryle" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] envp[10]="SOFTWARE=CUPS/2.4.6" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > envp[11]="TMPDIR=/var/spool/cups/tmp" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] envp[12]="USER=root" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] envp[13]="CUPS_MAX_MESSAGE=2047" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > envp[14]="CUPS_SERVER=/run/cups/cups.sock" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > envp[15]="CUPS_ENCRYPTION=IfRequested" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] envp[16]="IPP_PORT=631" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] envp[17]="CHARSET=utf-8" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] envp[18]="LANG=en.UTF-8" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > envp[19]="PPD=/etc/cups/ppd/bw_L2300D.ppd" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > envp[20]="CONTENT_TYPE=application/vnd.cups-raster" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > envp[21]="DEVICE_URI=usb://Brother/HL-L2300D%20series?serial=U63878H0N345905" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] envp[22]="PRINTER_INFO=" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > envp[23]="PRINTER_LOCATION=usb-ryle" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] envp[24]="PRINTER=bw_L2300D" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > envp[25]="PRINTER_STATE_REASONS=none" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] envp[26]="CUPS_FILETYPE=document" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] > envp[27]="FINAL_CONTENT_TYPE=printer/bw_L2300D" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] envp[28]="AUTH_I****" > D [22/Aug/2023:14:43:05 -0400] [Job 1466] Loading USB quirks from > \"/usr/share/cups/usb\". > D [22/Aug/2023:14:43:05 -0400] [Job 1466] Loaded 119 quirks. > D [22/Aug/2023:14:43:05 -0400] [Job 1466] Printing on printer with URI: > usb://Brother/HL-L2300D%20series?serial=U63878H0N345905 > D [22/Aug/2023:14:43:05 -0400] [Job 1466] brlaser version 6 > D [22/Aug/2023:14:43:05 -0400] [Job 1466] Set job-printer-state-message to > "brlaser version 6", current level=INFO > D [22/Aug/2023:14:43:05 -0400] [Job 1466] brlaser: Cannot read raster > data. Most likely an earlier filter in the pipeline failed. > .... > > What steps should I take to correct or better understand this problem? > I think I figured it out. I changed reformed to use a "generic IPP printer" and used a connection string of ipp://ryle/printers/bw_L2300D. This way, reformed sends the document in PDF format to ryle which is able to run filters pdftopdf, gstoraster, rastertobrlaser which works fine. Sorry for the interruption. _______________________________________________ cups mailing list [email protected] https://lists.cups.org/mailman/listinfo/cups