You are not logged in.

#1 2019-12-07 02:27:43

dirtbag
Member
Registered: 2019-06-15
Posts: 21

Cant print remotely to arch linux cups server.. [SOLVED]

I have a brother MFC7340 hooked up to my arch linux server via usb cable.. Its working fine from the Arch computer itself. Printing from a remote OSX computer is giving me fits..  I have the following packages installed:
brother-mfc7340 2.0.2_1-1
cups 2.3.0-4

when the file comes in from the OSX laptop, I see the following in my logs:

E [06/Dec/2019:20:52:08 -0500] [Job 212] Job stopped due to filter errors; please consult the /var/log/cups/error_log file for details.
D [06/Dec/2019:20:52:08 -0500] [Job 212] The following messages were recorded from 20:52:06 to 20:52:08
D [06/Dec/2019:20:52:08 -0500] [Job 212] Applying default options...
D [06/Dec/2019:20:52:08 -0500] [Job 212] Adding default pdftops-renderer=gs
D [06/Dec/2019:20:52:08 -0500] [Job 212] Adding start banner page "none".
D [06/Dec/2019:20:52:08 -0500] [Job 212] Queued on "Brother_MFC-7340" by "jason".
D [06/Dec/2019:20:52:08 -0500] [Job 212] File of type application/vnd.cups-raster queued by "jason".
D [06/Dec/2019:20:52:08 -0500] [Job 212] Adding end banner page "none".
D [06/Dec/2019:20:52:08 -0500] [Job 212] time-at-processing=1575683527
D [06/Dec/2019:20:52:08 -0500] [Job 212] 5 filters for job:
D [06/Dec/2019:20:52:08 -0500] [Job 212] rastertopwg (application/vnd.cups-raster to image/urf, cost 100)
D [06/Dec/2019:20:52:08 -0500] [Job 212] rastertopdf (image/urf to application/pdf, cost 0)
D [06/Dec/2019:20:52:08 -0500] [Job 212] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [06/Dec/2019:20:52:08 -0500] [Job 212] pdftops (application/vnd.cups-pdf to application/vnd.cups-postscript, cost 100)
D [06/Dec/2019:20:52:08 -0500] [Job 212] brlpdwrapperMFC7340 (application/vnd.cups-postscript to printer/Brother_MFC-7340, cost 0)
D [06/Dec/2019:20:52:08 -0500] [Job 212] job-sheets=none,none
D [06/Dec/2019:20:52:08 -0500] [Job 212] argv[0]="Brother_MFC-7340"
D [06/Dec/2019:20:52:08 -0500] [Job 212] argv[1]="212"
D [06/Dec/2019:20:52:08 -0500] [Job 212] argv[2]="jason"
D [06/Dec/2019:20:52:08 -0500] [Job 212] argv[3]="newsyslog.conf"
D [06/Dec/2019:20:52:08 -0500] [Job 212] argv[4]="1"
D [06/Dec/2019:20:52:08 -0500] [Job 212] argv[5]="job-uuid=urn:uuid:8ab801e5-d416-37e3-73a3-6c1f68a69939 pdftops-renderer=gs job-originating-host-name=10.1.1.177 date-time-at-creation= date-time-at-processing= time-at-creation=1575683526 time-at-processing=1575683527"
D [06/Dec/2019:20:52:08 -0500] [Job 212] argv[6]="/var/spool/cups/d00212-001"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[7]="CUPS_STATEDIR=/run/cups"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[8]="HOME=/var/spool/cups/tmp"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/bin:/bin:/usr/bin"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[10]="SERVER_ADMIN=root@archlinux"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[11]="SOFTWARE=CUPS/2.3.0"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[13]="USER=root"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[14]="CUPS_MAX_MESSAGE=2047"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[15]="CUPS_SERVER=/run/cups/cups.sock"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[17]="IPP_PORT=631"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[18]="CHARSET=utf-8"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[19]="LANG=en_US.UTF-8"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[20]="PPD=/etc/cups/ppd/Brother_MFC-7340.ppd"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[21]="RIP_MAX_CACHE=128m"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[22]="CONTENT_TYPE=application/vnd.cups-raster"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[23]="DEVICE_URI=usb://Brother/MFC-7340?serial=000A9N930716"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[24]="PRINTER_INFO=Brother MFC-7340"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[25]="PRINTER_LOCATION="
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[26]="PRINTER=Brother_MFC-7340"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[27]="PRINTER_STATE_REASONS=none"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[28]="CUPS_FILETYPE=document"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[29]="FINAL_CONTENT_TYPE=application/vnd.cups-postscript"
D [06/Dec/2019:20:52:08 -0500] [Job 212] envp[30]="AUTH_I****"
D [06/Dec/2019:20:52:08 -0500] [Job 212] Started filter /usr/lib/cups/filter/rastertopwg (PID 81936)
D [06/Dec/2019:20:52:08 -0500] [Job 212] Started filter /usr/lib/cups/filter/rastertopdf (PID 81937)
D [06/Dec/2019:20:52:08 -0500] [Job 212] Started filter /usr/lib/cups/filter/pdftopdf (PID 81938)
D [06/Dec/2019:20:52:08 -0500] [Job 212] Started filter /usr/lib/cups/filter/pdftops (PID 81939)
D [06/Dec/2019:20:52:08 -0500] [Job 212] Started filter /usr/lib/cups/filter/brlpdwrapperMFC7340 (PID 81940)
D [06/Dec/2019:20:52:08 -0500] [Job 212] Started backend /usr/lib/cups/backend/usb (PID 81941)
D [06/Dec/2019:20:52:08 -0500] [Job 212] PID 81936 (/usr/lib/cups/filter/rastertopwg) exited with no errors.
D [06/Dec/2019:20:52:08 -0500] [Job 212] pdftops - copying to temp print file \"/var/spool/cups/tmp/140135df7ab9e\"
D [06/Dec/2019:20:52:08 -0500] [Job 212] pdftopdf: Last filter determined by the PPD: brlpdwrapperMFC7340; FINAL_CONTENT_TYPE: application/vnd.cups-postscript => pdftopdf will not log pages in page_log.
D [06/Dec/2019:20:52:08 -0500] [Job 212] OUTFORMAT=\"(null)\", output format will be PDF
D [06/Dec/2019:20:52:08 -0500] [Job 212] Color Manager: Calibration Mode/Off
D [06/Dec/2019:20:52:08 -0500] [Job 212] Loading USB quirks from \"/usr/share/cups/usb\".
D [06/Dec/2019:20:52:08 -0500] [Job 212] Loaded 95 quirks.
D [06/Dec/2019:20:52:08 -0500] [Job 212] Printing on printer with URI: usb://Brother/MFC-7340?serial=000A9N930716
D [06/Dec/2019:20:52:08 -0500] [Job 212] Calling FindDeviceById(cups-Brother_MFC-7340)
D [06/Dec/2019:20:52:08 -0500] [Job 212] Found device /org/freedesktop/ColorManager/devices/cups_Brother_MFC_7340
D [06/Dec/2019:20:52:08 -0500] [Job 212] Calling org.freedesktop.ColorManager.Device.Get(ProfilingInhibitors)
D [06/Dec/2019:20:52:08 -0500] [Job 212] PID 81937 (/usr/lib/cups/filter/rastertopdf) stopped with status 1.
D [06/Dec/2019:20:52:08 -0500] [Job 212] Hint: Try setting the LogLevel to "debug" to find out more.
D [06/Dec/2019:20:52:08 -0500] [Job 212] PDF interactive form and annotation flattening done via QPDF
D [06/Dec/2019:20:52:08 -0500] [Job 212] PID 81938 (/usr/lib/cups/filter/pdftopdf) exited with no errors.
D [06/Dec/2019:20:52:08 -0500] [Job 212] libusb_get_device_list=8
D [06/Dec/2019:20:52:08 -0500] [Job 212] STATE: +connecting-to-device
D [06/Dec/2019:20:52:08 -0500] [Job 212] Printer make and model: Brother Brother MFC-7340 series
D [06/Dec/2019:20:52:08 -0500] [Job 212] Running command line for pstops: pstops 212 jason newsyslog.conf 1 \'job-uuid=urn:uuid:8ab801e5-d416-37e3-73a3-6c1f68a69939 pdftops-renderer=gs job-originating-host-name=10.1.1.177 date-time-at-creation= date-time-at-processing= time-at-creation=1575683526 time-at-processing=1575683527\'
D [06/Dec/2019:20:52:08 -0500] [Job 212] Using image rendering resolution 600 dpi
D [06/Dec/2019:20:52:08 -0500] [Job 212] Deactivation of Ghostscript\'s image compression for Brother printers to workarounmd PS interpreter bug
D [06/Dec/2019:20:52:08 -0500] [Job 212] Running command line for gs: gs -q -dNOPAUSE -dBATCH -dSAFER -dNOMEDIAATTRS -sDEVICE=ps2write -dShowAcroForm -sOUTPUTFILE=%stdout -sProcessColorModel=DeviceGray -sColorConversionStrategy=Gray -dLanguageLevel=2 -r600 -dCompressFonts=false -dNoT3CCITTSTATE: -connecting-to-device
D [06/Dec/2019:20:52:08 -0500] [Job 212] -dEncodeMonoImages=false -dEncodeColorImages=false -dNOINTERPOLATE -c \'save pop\' -f /var/spool/cups/tmp/140135df7ab9e
D [06/Dec/2019:20:52:08 -0500] [Job 212] Started filter gs (PID 81957)
D [06/Dec/2019:20:52:08 -0500] [Job 212] Started post-processing (PID 81959)
D [06/Dec/2019:20:52:08 -0500] [Job 212] Started filter pstops (PID 81960)
D [06/Dec/2019:20:52:08 -0500] [Job 212] Printer found with device ID: MFG:Brother;CMD:PJL,HBP;MDL:MFC-7340;CLS:PRINTER; Device URI: usb://Brother/MFC-7340?serial=000A9N930716
D [06/Dec/2019:20:52:08 -0500] [Job 212] Device protocol: 2
D [06/Dec/2019:20:52:08 -0500] [Job 212] Sending data to printer.
D [06/Dec/2019:20:52:08 -0500] [Job 212] Inserted workaround PostScript code for Brother printers
D [06/Dec/2019:20:52:08 -0500] [Job 212] Page = 612x792; 18,12 to 594,780
D [06/Dec/2019:20:52:08 -0500] [Job 212] slow_collate=0, slow_duplex=0, slow_order=0
D [06/Dec/2019:20:52:08 -0500] [Job 212] This document does not conform to the Adobe Document Structuring Conventions and may not print correctly.
D [06/Dec/2019:20:52:08 -0500] [Job 212] PID 81957 (gs) exited with no errors.
D [06/Dec/2019:20:52:08 -0500] [Job 212] PID 81959 (Post-processing) exited with no errors.
D [06/Dec/2019:20:52:08 -0500] [Job 212] PID 81960 (pstops) exited with no errors.
D [06/Dec/2019:20:52:08 -0500] [Job 212] PID 81939 (/usr/lib/cups/filter/pdftops) exited with no errors.
D [06/Dec/2019:20:52:08 -0500] [Job 212] GPL Ghostscript 9.50: Unrecoverable error, exit code 1
D [06/Dec/2019:20:52:08 -0500] [Job 212] Read 483 bytes of print data...
D [06/Dec/2019:20:52:08 -0500] [Job 212] Wrote 483 bytes of print data...
D [06/Dec/2019:20:52:08 -0500] [Job 212] Sent 483 bytes...
D [06/Dec/2019:20:52:08 -0500] [Job 212] PID 81940 (/usr/lib/cups/filter/brlpdwrapperMFC7340) exited with no errors.
D [06/Dec/2019:20:52:08 -0500] [Job 212] Waiting for read thread to exit...
D [06/Dec/2019:20:52:08 -0500] [Job 212] PID 81941 (/usr/lib/cups/backend/usb) exited with no errors.
D [06/Dec/2019:20:52:08 -0500] [Job 212] End of messages
D [06/Dec/2019:20:52:08 -0500] [Job 212] printer-state=3(idle)
D [06/Dec/2019:20:52:08 -0500] [Job 212] printer-state-message="Sending data to printer."
D [06/Dec/2019:20:52:08 -0500] [Job 212] printer-state-reasons=none

so it looks like the filter/rastertopdf seems to have failed for some reason, but I cant seem to find any info on what this means or how to troubleshoot it.

One other thing, I have tried the following:
lpadmin -p Brother_MFC-7340 -o pdftops-renderer-default=gs
and
lpadmin -p Brother_MFC-7340 -o pdftops-renderer-default=pdftops

but neither one seems to work.

I set this because of an error message in the logs about not being able to print greyscale and I should set that option to mudpf or poppler or ghostscript.
So setting that option seemed to help.

any ideas how to troubleshoot this?

-db

Last edited by dirtbag (2020-01-11 02:16:30)

Offline

#2 2019-12-07 08:42:14

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: Cant print remotely to arch linux cups server.. [SOLVED]

Please edit your post and wrap the error log in "code" tags, thanks.

D [06/Dec/2019:20:52:08 -0500] [Job 212] Deactivation of Ghostscript\'s image compression for Brother printers to workarounmd PS interpreter bug
D [06/Dec/2019:20:52:08 -0500] [Job 212] Running command line for gs: gs -q -dNOPAUSE -dBATCH -dSAFER -dNOMEDIAATTRS -sDEVICE=ps2write -dShowAcroForm -sOUTPUTFILE=%stdout -sProcessColorModel=DeviceGray -sColorConversionStrategy=Gray -dLanguageLevel=2 -r600 -dCompressFonts=false -dNoT3CCITTSTATE: -connecting-to-device
D [06/Dec/2019:20:52:08 -0500] [Job 212] -dEncodeMonoImages=false -dEncodeColorImages=false -dNOINTERPOLATE -c \'save pop\' -f /var/spool/cups/tmp/140135df7ab9e
…
D [06/Dec/2019:20:52:08 -0500] [Job 212] PID 81939 (/usr/lib/cups/filter/pdftops) exited with no errors.
D [06/Dec/2019:20:52:08 -0500] [Job 212] GPL Ghostscript 9.50: Unrecoverable error, exit code 1
D [06/Dec/2019:20:52:08 -0500] [Job 212] Read 483 bytes of print data...
D [06/Dec/2019:20:52:08 -0500] [Job 212] Wrote 483 bytes of print data...
D [06/Dec/2019:20:52:08 -0500] [Job 212] Sent 483 bytes...
D [06/Dec/2019:20:52:08 -0500] [Job 212] PID 81940 (/usr/lib/cups/filter/brlpdwrapperMFC7340) exited with no errors.

https://bbs.archlinux.org/viewtopic.php?id=250323

Is this a script?

file /usr/lib/cups/filter/brlpdwrapperMFC7340

In case please paste it.

Online

#3 2019-12-07 13:11:20

dirtbag
Member
Registered: 2019-06-15
Posts: 21

Re: Cant print remotely to arch linux cups server.. [SOLVED]

Here is my  /usr/lib/cups/filter/brlpdwrapperMFC7340


#! /bin/sh
#
# Brother Print filter  >>  /usr/lib/cups/filter/brlpdwrapperMFC7340
# Copyright (C) 2005 Brother. Industries, Ltd.
#                                    Ver1.00

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA  02111-1307  USA
#
LOGFILE="/dev/null"
LOGCLEVEL="7"
DEBUG=0
NUPENABLE=1
ENABLECOPY=0
LOG_LATESTONLY=1
errorcode=0

set +o noclobber
if [ "`echo $5 | grep 'debug-noprint=1'`" != '' ]; then
    DEBUG=1
fi
if [ "`echo $5 | grep 'debug-noprint=2'`" != '' ]; then
    DEBUG=2
fi
if [ "`echo $5 | grep 'debug-noprint=3'`" != '' ]; then
    DEBUG=3
fi
if [ $DEBUG != 0 ]; then
    LOGFILE=/tmp/br_cupsfilter_debug_log
fi

PRINTER=MFC7340


if [ "$PPD" = "" ]; then
    PPD="/usr/share/cups/model/MFC7340.ppd"
fi


if [ $LOGFILE != "/dev/null" ]; then
  if [ $LOG_LATESTONLY == "1" ]; then
    rm -f $LOGFILE
    date                                                           >$LOGFILE
  else
    if [ -e $LOGFILE ]; then
	    date                                                        >>$LOGFILE
    else
	    date                                                        >$LOGFILE
    fi
  fi
    echo "arg0 = $0"                                           >>$LOGFILE
    echo "arg1 = $1"                                           >>$LOGFILE
    echo "arg2 = $2"                                           >>$LOGFILE
    echo "arg3 = $3"                                           >>$LOGFILE
    echo "arg4 = $4"                                           >>$LOGFILE
    echo "arg5 = $5"                                           >>$LOGFILE
    echo "arg6 = $6"                                           >>$LOGFILE
    echo "PPD  = $PPD"                                         >>$LOGFILE
fi

INPUT_TEMP_PS=`mktemp /tmp/br_input_ps.XXXXXX`

nup="cat"
if [ "`echo $5 | grep 'Nup='`" != '' ] && [ $NUPENABLE != 0 ]; then

	if   [ "`echo $5 | grep 'Nup=64'`" != '' ]; then
		nup="psnup -64"
	elif [ "`echo $5 | grep 'Nup=32'`" != '' ]; then
		nup="psnup -32"
	elif [ "`echo $5 | grep 'Nup=25'`" != '' ]; then
		nup="psnup -25"
	elif [ "`echo $5 | grep 'Nup=16'`" != '' ]; then
		nup="psnup -16"
	elif [ "`echo $5 | grep 'Nup=8'`" != '' ]; then
		nup="psnup -8"
	elif [ "`echo $5 | grep 'Nup=6'`" != '' ]; then
		nup="psnup -6"
	elif [ "`echo $5 | grep 'Nup=4'`" != '' ]; then
		nup="psnup -4"
	elif [ "`echo $5 | grep 'Nup=2'`" != '' ]; then
		nup="psnup -2"
	elif [ "`echo $5 | grep 'Nup=1'`" != '' ]; then
		nup="cat"
	fi
	echo   "NUP=$nup"                                      >>$LOGFILE
   if [ -e /usr/bin/psnup ]; then
       if [ $# -ge 7 ]; then
	       cat $6  | $nup > $INPUT_TEMP_PS
       else
	       cat       | $nup > $INPUT_TEMP_PS
       fi
   else
       if [ $# -ge 7 ]; then
	       cp $6  $INPUT_TEMP_PS
       else
	       cat    > $INPUT_TEMP_PS
       fi
   fi
else
   if [ $# -ge 7 ]; then
      cp $6  $INPUT_TEMP_PS
   else
      cat    > $INPUT_TEMP_PS
   fi
fi

if [ "$ENABLECOPY" != 0 ];then
  if [ "$4" -ge 2 ];then
     options="$5"" ""Copies=$4"
  else
     options="$5"
  fi
else
  options="$5"
fi


if [ -e "/usr/share/brother/lpd/filter$PRINTER" ]; then
       :
else
    echo "ERROR: /usr/share/brother/lpd/filter$PRINTER does not exist"   >>$LOGFILE
    errorcode=30
    exit $errorcode
fi

if [ -e "/usr/share/brother/cupswrapper/brcupsconfig3" ]; then
  if [ $DEBUG = 0 ]; then
     /usr/share/brother/cupswrapper/brcupsconfig3  $PRINTER  $PPD 0 "$options" >> /dev/null
  else
     /usr/share/brother/cupswrapper/brcupsconfig3  $PRINTER  $PPD $LOGCLEVEL "$options" >>$LOGFILE
  fi
fi


if [ $DEBUG -le 2 ]; then
    cat    $INPUT_TEMP_PS | /usr/share/brother/lpd/filter$PRINTER
fi

if [ $DEBUG -ge 2 ];  then
	   if [ $LOGFILE != "/dev/null" ]; then
	     echo ""                                                >>$LOGFILE
	     echo "    ------PostScript Data-------"                >>$LOGFILE
	     cat    $INPUT_TEMP_PS                                  >>$LOGFILE
	   fi
fi
rm -f  $INPUT_TEMP_PS

exit $errorcode

Thanks for looking.

Offline

#4 2019-12-07 16:32:36

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: Cant print remotely to arch linux cups server.. [SOLVED]

Nope. But I fetched the sources ;-)

Edit /usr/local/Brother/lpd/psconvert and try to replace

GHOST_OPT="-q -dNOPROMPT -dNOPAUSE -dSAFER -sDEVICE=$OUTPUT_TYPE -sOutputFile=- - -c quit"

with

GHOST_OPT="-q -dNOPROMPT -dNOPAUSE -dNOSAFER -sDEVICE=$OUTPUT_TYPE -sOutputFile=- - -c quit"

Online

#5 2019-12-08 02:56:20

dirtbag
Member
Registered: 2019-06-15
Posts: 21

Re: Cant print remotely to arch linux cups server.. [SOLVED]

umm, I dont see GHOST_OPT in my  Here is my  /usr/lib/cups/filter/brlpdwrapperMFC7340
and I dont have a  /usr/local/Brother/lpd/psconvert  ??

-db

Offline

#6 2019-12-08 07:40:47

seth
Member
Registered: 2012-09-03
Posts: 49,980

Re: Cant print remotely to arch linux cups server.. [SOLVED]

The PGKBUILD apparently changes paths, try

pacman -Ql brother-mfc7340 | grep psconvert

Online

#7 2019-12-15 02:38:48

dirtbag
Member
Registered: 2019-06-15
Posts: 21

Re: Cant print remotely to arch linux cups server.. [SOLVED]

ok sorry for the delay... I made all those changes, and it seems like its still not working...

E [14/Dec/2019:21:41:19 -0500] [Job 223] Job stopped due to filter errors; please consult the /var/log/cups/error_log file for details.
D [14/Dec/2019:21:41:19 -0500] [Job 223] The following messages were recorded from 21:41:17 to 21:41:19
D [14/Dec/2019:21:41:19 -0500] [Job 223] Applying default options...
D [14/Dec/2019:21:41:19 -0500] [Job 223] Adding default pdftops-renderer=gs
D [14/Dec/2019:21:41:19 -0500] [Job 223] Adding start banner page "none".
D [14/Dec/2019:21:41:19 -0500] [Job 223] Queued on "Brother_MFC-7340" by "rita".
D [14/Dec/2019:21:41:19 -0500] [Job 223] File of type application/vnd.cups-raster queued by "rita".
D [14/Dec/2019:21:41:19 -0500] [Job 223] Adding end banner page "none".
D [14/Dec/2019:21:41:19 -0500] [Job 223] time-at-processing=1576377679
D [14/Dec/2019:21:41:19 -0500] [Job 223] 5 filters for job:
D [14/Dec/2019:21:41:19 -0500] [Job 223] rastertopwg (application/vnd.cups-raster to image/urf, cost 100)
D [14/Dec/2019:21:41:19 -0500] [Job 223] rastertopdf (image/urf to application/pdf, cost 0)
D [14/Dec/2019:21:41:19 -0500] [Job 223] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [14/Dec/2019:21:41:19 -0500] [Job 223] pdftops (application/vnd.cups-pdf to application/vnd.cups-postscript, cost 100)
D [14/Dec/2019:21:41:19 -0500] [Job 223] brlpdwrapperMFC7340 (application/vnd.cups-postscript to printer/Brother_MFC-7340, cost 0)
D [14/Dec/2019:21:41:19 -0500] [Job 223] job-sheets=none,none
D [14/Dec/2019:21:41:19 -0500] [Job 223] argv[0]="Brother_MFC-7340"
D [14/Dec/2019:21:41:19 -0500] [Job 223] argv[1]="223"
D [14/Dec/2019:21:41:19 -0500] [Job 223] argv[2]="rita"
D [14/Dec/2019:21:41:19 -0500] [Job 223] argv[3]="Addresses2014.odt"
D [14/Dec/2019:21:41:19 -0500] [Job 223] argv[4]="1"
D [14/Dec/2019:21:41:19 -0500] [Job 223] argv[5]="job-uuid=urn:uuid:c173517b-6e30-3825-71e7-1ed69bd682d1 pdftops-renderer=gs job-originating-host-name=10.1.1.177 date-time-at-creation= date-time-at-processing= time-at-creation=1576377677 time-at-processing=1576377679"
D [14/Dec/2019:21:41:19 -0500] [Job 223] argv[6]="/var/spool/cups/d00223-001"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[7]="CUPS_STATEDIR=/run/cups"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[8]="HOME=/var/spool/cups/tmp"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/bin:/bin:/usr/bin"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[10]="SERVER_ADMIN=root@archlinux"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[11]="SOFTWARE=CUPS/2.3.0"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[13]="USER=root"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[14]="CUPS_MAX_MESSAGE=2047"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[15]="CUPS_SERVER=/run/cups/cups.sock"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[17]="IPP_PORT=631"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[18]="CHARSET=utf-8"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[19]="LANG=en_US.UTF-8"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[20]="PPD=/etc/cups/ppd/Brother_MFC-7340.ppd"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[21]="RIP_MAX_CACHE=128m"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[22]="CONTENT_TYPE=application/vnd.cups-raster"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[23]="DEVICE_URI=usb://Brother/MFC-7340?serial=000A9N930716"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[24]="PRINTER_INFO=Brother MFC-7340"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[25]="PRINTER_LOCATION="
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[26]="PRINTER=Brother_MFC-7340"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[27]="PRINTER_STATE_REASONS=none"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[28]="CUPS_FILETYPE=document"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[29]="FINAL_CONTENT_TYPE=application/vnd.cups-postscript"
D [14/Dec/2019:21:41:19 -0500] [Job 223] envp[30]="AUTH_I****"
D [14/Dec/2019:21:41:19 -0500] [Job 223] Started filter /usr/lib/cups/filter/rastertopwg (PID 25716)
D [14/Dec/2019:21:41:19 -0500] [Job 223] Started filter /usr/lib/cups/filter/rastertopdf (PID 25717)
D [14/Dec/2019:21:41:19 -0500] [Job 223] Started filter /usr/lib/cups/filter/pdftopdf (PID 25718)
D [14/Dec/2019:21:41:19 -0500] [Job 223] Started filter /usr/lib/cups/filter/pdftops (PID 25719)
D [14/Dec/2019:21:41:19 -0500] [Job 223] Started filter /usr/lib/cups/filter/brlpdwrapperMFC7340 (PID 25720)
D [14/Dec/2019:21:41:19 -0500] [Job 223] Started backend /usr/lib/cups/backend/usb (PID 25721)
D [14/Dec/2019:21:41:19 -0500] [Job 223] PID 25716 (/usr/lib/cups/filter/rastertopwg) exited with no errors.
D [14/Dec/2019:21:41:19 -0500] [Job 223] pdftops - copying to temp print file \"/var/spool/cups/tmp/064775dfeacac\"
D [14/Dec/2019:21:41:19 -0500] [Job 223] pdftopdf: Last filter determined by the PPD: brlpdwrapperMFC7340; FINAL_CONTENT_TYPE: application/vnd.cups-postscript => pdftopdf will not log pages in page_log.
D [14/Dec/2019:21:41:19 -0500] [Job 223] Loading USB quirks from \"/usr/share/cups/usb\".
D [14/Dec/2019:21:41:19 -0500] [Job 223] OUTFORMAT=\"(null)\", output format will be PDF
D [14/Dec/2019:21:41:19 -0500] [Job 223] Color Manager: Calibration Mode/Off
D [14/Dec/2019:21:41:19 -0500] [Job 223] Loaded 95 quirks.
D [14/Dec/2019:21:41:19 -0500] [Job 223] Printing on printer with URI: usb://Brother/MFC-7340?serial=000A9N930716
D [14/Dec/2019:21:41:19 -0500] [Job 223] Calling FindDeviceById(cups-Brother_MFC-7340)
D [14/Dec/2019:21:41:19 -0500] [Job 223] Found device /org/freedesktop/ColorManager/devices/cups_Brother_MFC_7340
D [14/Dec/2019:21:41:19 -0500] [Job 223] Calling org.freedesktop.ColorManager.Device.Get(ProfilingInhibitors)
D [14/Dec/2019:21:41:19 -0500] [Job 223] PID 25717 (/usr/lib/cups/filter/rastertopdf) stopped with status 1.
D [14/Dec/2019:21:41:19 -0500] [Job 223] Hint: Try setting the LogLevel to "debug" to find out more.
D [14/Dec/2019:21:41:19 -0500] [Job 223] PDF interactive form and annotation flattening done via QPDF
D [14/Dec/2019:21:41:19 -0500] [Job 223] libusb_get_device_list=7
D [14/Dec/2019:21:41:19 -0500] [Job 223] STATE: +connecting-to-device
D [14/Dec/2019:21:41:19 -0500] [Job 223] STATE: -connecting-to-device
D [14/Dec/2019:21:41:19 -0500] [Job 223] PID 25718 (/usr/lib/cups/filter/pdftopdf) exited with no errors.
D [14/Dec/2019:21:41:19 -0500] [Job 223] Printer make and model: Brother Brother MFC-7340 series
D [14/Dec/2019:21:41:19 -0500] [Job 223] Running command line for pstops: pstops 223 rita Addresses2014.odt 1 \'job-uuid=urn:uuid:c173517b-6e30-3825-71e7-1ed69bd682d1 pdftops-renderer=gs job-originating-host-name=10.1.1.177 date-time-at-creation= date-time-at-processing= time-at-creation=1576377677 time-at-processing=1576377679\'
D [14/Dec/2019:21:41:19 -0500] [Job 223] Using image rendering resolution 600 dpi
D [14/Dec/2019:21:41:19 -0500] [Job 223] Deactivation of Ghostscript\'s image compression for Brother printers to workarounmd PS interpreter bug
D [14/Dec/2019:21:41:19 -0500] [Job 223] Running command line for gs: gs -q -dNOPAUSE -dBATCH -dSAFER -dNOMEDIAATTRS -sDEVICE=ps2write -dShowAcroForm -sOUTPUTFILE=%stdout -sProcessColorModel=DeviceGray -sColorConversionStrategy=Gray -dLanguageLevel=2 -r600 -dCompressFonts=false -dNoT3CCITT -dEncodeMonoImages=false -dEncodeColorImages=false -dNOINTERPOLATE -c \'save pop\' -f /var/spool/cups/tmp/064775dfeacac
D [14/Dec/2019:21:41:19 -0500] [Job 223] Started filter gs (PID 25737)
D [14/Dec/2019:21:41:19 -0500] [Job 223] Started post-processing (PID 25738)
D [14/Dec/2019:21:41:19 -0500] [Job 223] Started filter pstops (PID 25739)
D [14/Dec/2019:21:41:19 -0500] [Job 223] Printer found with device ID: MFG:Brother;CMD:PJL,HBP;MDL:MFC-7340;CLS:PRINTER; Device URI: usb://Brother/MFC-7340?serial=000A9N930716
D [14/Dec/2019:21:41:19 -0500] [Job 223] Device protocol: 2
D [14/Dec/2019:21:41:19 -0500] [Job 223] Sending data to printer.
D [14/Dec/2019:21:41:19 -0500] [Job 223] Inserted workaround PostScript code for Brother printers
D [14/Dec/2019:21:41:19 -0500] [Job 223] Page = 612x792; 18,12 to 594,780
D [14/Dec/2019:21:41:19 -0500] [Job 223] slow_collate=0, slow_duplex=0, slow_order=0
D [14/Dec/2019:21:41:19 -0500] [Job 223] This document does not conform to the Adobe Document Structuring Conventions and may not print correctly.
D [14/Dec/2019:21:41:19 -0500] [Job 223] PID 25737 (gs) exited with no errors.
D [14/Dec/2019:21:41:19 -0500] [Job 223] PID 25738 (Post-processing) exited with no errors.
D [14/Dec/2019:21:41:19 -0500] [Job 223] PID 25739 (pstops) exited with no errors.
D [14/Dec/2019:21:41:19 -0500] [Job 223] PID 25719 (/usr/lib/cups/filter/pdftops) exited with no errors.
D [14/Dec/2019:21:41:19 -0500] [Job 223] GPL Ghostscript 9.50: Unrecoverable error, exit code 1
D [14/Dec/2019:21:41:19 -0500] [Job 223] Read 483 bytes of print data...
D [14/Dec/2019:21:41:19 -0500] [Job 223] Wrote 483 bytes of print data...
D [14/Dec/2019:21:41:19 -0500] [Job 223] Sent 483 bytes...
D [14/Dec/2019:21:41:19 -0500] [Job 223] PID 25720 (/usr/lib/cups/filter/brlpdwrapperMFC7340) exited with no errors.
D [14/Dec/2019:21:41:19 -0500] [Job 223] Waiting for read thread to exit...
D [14/Dec/2019:21:41:19 -0500] [Job 223] PID 25721 (/usr/lib/cups/backend/usb) exited with no errors.
D [14/Dec/2019:21:41:19 -0500] [Job 223] End of messages
D [14/Dec/2019:21:41:19 -0500] [Job 223] printer-state=3(idle)
D [14/Dec/2019:21:41:19 -0500] [Job 223] printer-state-message="Sending data to printer."
D [14/Dec/2019:21:41:19 -0500] [Job 223] printer-state-reasons=none

Last edited by dirtbag (2019-12-15 02:44:46)

Offline

#8 2019-12-15 07:08:17

pb
Member
From: Krakow, PL
Registered: 2014-12-26
Posts: 336
Website

Re: Cant print remotely to arch linux cups server.. [SOLVED]

I'm not sure, but there's many printers that cannot print with CUPS 2.3.0. Maybe try to build cups with this PKGBUILD. It applies patch from upcomming 2.3.1 version.

Offline

#9 2020-01-11 01:11:42

dirtbag
Member
Registered: 2019-06-15
Posts: 21

Re: Cant print remotely to arch linux cups server.. [SOLVED]

this space intentionally left blank. wink

Last edited by dirtbag (2020-01-11 02:14:32)

Offline

#10 2020-01-11 02:14:00

dirtbag
Member
Registered: 2019-06-15
Posts: 21

Re: Cant print remotely to arch linux cups server.. [SOLVED]

soooo, I somehow stumbled across some dudes blog that was having the same problem with the

(/usr/lib/cups/filter/rastertopdf) stopped with status 1.

and he said to do

lpadmin -p <yourprintqueuename> -m raw

and BAM its working for me now!!? big_smile

-db

Last edited by dirtbag (2020-01-11 02:16:05)

Offline

#11 2020-01-11 14:56:45

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: Cant print remotely to arch linux cups server.. [SOLVED]

If "raw" is working, then is it the same as this - https://bbs.archlinux.org/viewtopic.php … 8#p1879208

Offline

Board footer

Powered by FluxBB