Godex G300 nyomtató nem nyomtat

Fórumok

Egy hálózatba kötött Godex G300 cimkenyomtatót szeretnék működésre bírni Linux alatt, de Filter failed hibát kapok.

Hozzászólások

> Filter failed hibát kapok.

Cool, tehát jó eséllyel nem a nyomtatónak van baja, hanem a szoftver vacakol valamit. Első lépésként olvassuk el a logot.

E [24/Jan/2017:21:41:21 +0100] [Job 401] Job stopped due to filter errors; please consult the error_log file for details.
D [24/Jan/2017:21:41:21 +0100] [Job 401] The following messages were recorded from 21:41:21 to 21:41:21
D [24/Jan/2017:21:41:21 +0100] [Job 401] Adding start banner page "none".
D [24/Jan/2017:21:41:21 +0100] [Job 401] Adding end banner page "none".
D [24/Jan/2017:21:41:21 +0100] [Job 401] File of type application/vnd.cups-pdf-banner queued by "b".
D [24/Jan/2017:21:41:21 +0100] [Job 401] hold_until=0
D [24/Jan/2017:21:41:21 +0100] [Job 401] Queued on "GodexG300" by "b".
D [24/Jan/2017:21:41:21 +0100] [Job 401] time-at-processing=1485290481
D [24/Jan/2017:21:41:21 +0100] [Job 401] 4 filters for job:
D [24/Jan/2017:21:41:21 +0100] [Job 401] bannertopdf (application/vnd.cups-pdf-banner to application/pdf, cost 32)
D [24/Jan/2017:21:41:21 +0100] [Job 401] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [24/Jan/2017:21:41:21 +0100] [Job 401] gstoraster (application/vnd.cups-pdf to application/vnd.cups-raster, cost 99)
D [24/Jan/2017:21:41:21 +0100] [Job 401] rastertoezpl (application/vnd.cups-raster to printer/GodexG300, cost 50)
D [24/Jan/2017:21:41:21 +0100] [Job 401] job-sheets=none,none
D [24/Jan/2017:21:41:21 +0100] [Job 401] argv[0]="GodexG300"
D [24/Jan/2017:21:41:21 +0100] [Job 401] argv[1]="401"
D [24/Jan/2017:21:41:21 +0100] [Job 401] argv[2]="b"
D [24/Jan/2017:21:41:21 +0100] [Job 401] argv[3]="Tesztoldal"
D [24/Jan/2017:21:41:21 +0100] [Job 401] argv[4]="1"
D [24/Jan/2017:21:41:21 +0100] [Job 401] argv[5]="job-uuid=urn:uuid:29e83abf-98a5-352d-4c5e-e5b8e7d0b2ef job-originating-host-name=localhost time-at-creation=1485290481 time-at-processing=1485290481"
D [24/Jan/2017:21:41:21 +0100] [Job 401] argv[6]="/var/spool/cups/d00401-001"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[8]="HOME=/var/spool/cups/tmp"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[10]="SERVER_ADMIN=root@lws-b"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[11]="SOFTWARE=CUPS/1.7.2"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[13]="USER=root"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[14]="CUPS_MAX_MESSAGE=2047"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[17]="IPP_PORT=631"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[18]="CHARSET=utf-8"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[19]="LANG=hu_HU.UTF-8"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[20]="PPD=/etc/cups/ppd/GodexG300.ppd"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[21]="RIP_MAX_CACHE=128m"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[22]="CONTENT_TYPE=application/vnd.cups-pdf-banner"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[23]="DEVICE_URI=socket://192.168.0.102:9100"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[24]="PRINTER_INFO=Unknown"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[25]="PRINTER_LOCATION="
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[26]="PRINTER=GodexG300"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[27]="PRINTER_STATE_REASONS=none"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[28]="CUPS_FILETYPE=document"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[29]="FINAL_CONTENT_TYPE=printer/GodexG300"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[30]="AUTH_I****"
D [24/Jan/2017:21:41:21 +0100] [Job 401] Started filter /usr/lib/cups/filter/bannertopdf (PID 6450)
D [24/Jan/2017:21:41:21 +0100] [Job 401] Started filter /usr/lib/cups/filter/pdftopdf (PID 6451)
D [24/Jan/2017:21:41:21 +0100] [Job 401] Started filter /usr/lib/cups/filter/gstoraster (PID 6452)
D [24/Jan/2017:21:41:21 +0100] [Job 401] Started filter /usr/lib/cups/filter/rastertoezpl (PID 6453)
D [24/Jan/2017:21:41:21 +0100] [Job 401] Started backend /usr/lib/cups/backend/socket (PID 6454)
D [24/Jan/2017:21:41:21 +0100] [Job 401] PID 6453 (/usr/lib/cups/filter/rastertoezpl) stopped with status 113 (Permission denied)
D [24/Jan/2017:21:41:21 +0100] [Job 401] Hint: Try setting the LogLevel to "debug" to find out more.
D [24/Jan/2017:21:41:21 +0100] [Job 401] STATE: +connecting-to-device
D [24/Jan/2017:21:41:21 +0100] [Job 401] Looking up "192.168.0.102"...
D [24/Jan/2017:21:41:21 +0100] [Job 401] hrDeviceDesc="Unknown"
D [24/Jan/2017:21:41:21 +0100] [Job 401] prtGeneralCurrentLocalization type is 5, expected 2!
D [24/Jan/2017:21:41:21 +0100] [Job 401] backendWaitLoop(snmp_fd=5, addr=0x55ec0702cbd8, side_cb=0x55ec05397200)
D [24/Jan/2017:21:41:21 +0100] [Job 401] PID 6454 (/usr/lib/cups/backend/socket) exited with no errors.
D [24/Jan/2017:21:41:21 +0100] [Job 401] PDF template file doesn't have form. It's okay.
D [24/Jan/2017:21:41:21 +0100] [Job 401] PID 6450 (/usr/lib/cups/filter/bannertopdf) exited with no errors.
D [24/Jan/2017:21:41:21 +0100] [Job 401] PID 6451 (/usr/lib/cups/filter/pdftopdf) exited with no errors.
D [24/Jan/2017:21:41:21 +0100] [Job 401] Calling FindDeviceById(cups-GodexG300)
D [24/Jan/2017:21:41:21 +0100] [Job 401] Found device /org/freedesktop/ColorManager/devices/cups_GodexG300
D [24/Jan/2017:21:41:21 +0100] [Job 401] Calling org.freedesktop.ColorManager.Device.Get(ProfilingInhibitors)
D [24/Jan/2017:21:41:21 +0100] [Job 401] PPD uses qualifier 'Gray..203dpi'
D [24/Jan/2017:21:41:21 +0100] [Job 401] Calling FindDeviceById(cups-GodexG300)
D [24/Jan/2017:21:41:21 +0100] [Job 401] Found device /org/freedesktop/ColorManager/devices/cups_GodexG300
D [24/Jan/2017:21:41:21 +0100] [Job 401] Calling GetProfileForQualifiers(Gray..203dpi...)
D [24/Jan/2017:21:41:21 +0100] [Job 401] Found profile /org/freedesktop/ColorManager/profiles/GodexG300_Gray__
D [24/Jan/2017:21:41:21 +0100] [Job 401] Calling org.freedesktop.ColorManager.Profile.Get(Filename)
D [24/Jan/2017:21:41:21 +0100] [Job 401] Use profile filename: ''
D [24/Jan/2017:21:41:21 +0100] [Job 401] Using ICC Profile ''
D [24/Jan/2017:21:41:21 +0100] [Job 401] Ghostscript command line: /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout -sOutputType=none -r203x203 -dDEVICEWIDTHPOINTS=170 -dDEVICEHEIGHTPOINTS=85 -dcupsBitsPerColor=1 -dcupsColorOrder=0 -dcupsColorSpace=3 -scupsPageSizeName=w170h85 -I/usr/share/cups/fonts -c '<>setpagedevice' -f -_
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[8]="HOME=/var/spool/cups/tmp"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[10]="SERVER_ADMIN=root@lws-b"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[11]="SOFTWARE=CUPS/1.7.2"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[12]="USER=root"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[13]="CUPS_MAX_MESSAGE=2047"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[14]="CUPS_SERVER=/var/run/cups/cups.sock"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[15]="CUPS_ENCRYPTION=IfRequested"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[16]="IPP_PORT=631"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[17]="CHARSET=utf-8"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[18]="LANG=hu_HU.UTF-8"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[19]="PPD=/etc/cups/ppd/GodexG300.ppd"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[20]="RIP_MAX_CACHE=128m"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[21]="CONTENT_TYPE=application/vnd.cups-pdf-banner"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[22]="DEVICE_URI=socket://192.168.0.102:9100"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[23]="PRINTER_INFO=Unknown"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[24]="PRINTER_LOCATION="
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[25]="PRINTER=GodexG300"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[26]="PRINTER_STATE_REASONS=none"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[27]="CUPS_FILETYPE=document"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[28]="FINAL_CONTENT_TYPE=printer/GodexG300"
D [24/Jan/2017:21:41:21 +0100] [Job 401] envp[29]="AUTH_INFO_REQUIRED=none"
D [24/Jan/2017:21:41:21 +0100] [Job 401] Start rendering...
D [24/Jan/2017:21:41:21 +0100] [Job 401] Processing page 1...
D [24/Jan/2017:21:41:21 +0100] [Job 401] Processing page 2...
D [24/Jan/2017:21:41:21 +0100] [Job 401] Rendering completed
D [24/Jan/2017:21:41:21 +0100] [Job 401] PID 6452 (/usr/lib/cups/filter/gstoraster) exited with no errors.
D [24/Jan/2017:21:41:21 +0100] [Job 401] End of messages
D [24/Jan/2017:21:41:21 +0100] [Job 401] printer-state=3(idle)
D [24/Jan/2017:21:41:21 +0100] [Job 401] printer-state-message="Rendering completed"
D [24/Jan/2017:21:41:21 +0100] [Job 401] printer-state-reasons=none

Ha tippelnem kellene, amit odafönn láthatunk, az már egy CUPS debug log, ami viszont nem tartalmazza a forkolt filter processzek kimenetét.

Én megpróbálnám kézzel elindítani (a CUPS júzeréből) azt a filtert, aztán meglátnám, mi történik. (Szükség esetén strace és társai)

Külön CUPS usert nem találok, a cupsd root alatt fut.
Mind root júzerrel mind a saját júzerrelel, mely alól a nyomtatás történne a filtert elindítva a következő kimenetet adja:

Usage: ./rastertoezpl job-id user title copies options [file]
Version: 1.1.0

A loglevelt átállítva debug-ra közel 700 sort kreált a logba de az alapján sem jutottam közelebb.

Ettől nem lettem okosabb, sajnos.
Kérlek, próbáld ki a következőket.
Tegyél egy nyomtatni való .pdf-et a ~/test.pdf helyre, majd futtasd userként az alábbiakat:


cd /usr/lib/cups/filter
./pdftopdf 1 test cim 1 options ~/test.pdf | ./gstoraster 1 test cim 1 options | ./rastertopdf 1 test cim 1 options > ~/testpdf.pdf
./pdftopdf 1 test cim 1 options ~/test.pdf | ./gstoraster 1 test cim 1 options | ./rastertoezpl 1 test cim 1 options > ~/testpdf.ezpl

A keletkező ~/testpdf.pdf-et nyisd meg PDF-nézővel, mit látsz benne?
A keletkező ~/testpdf.ezpl mit tartalmaz? Miket ír közben az STDERR-re?

Üdv,
Marci

+1 (szerintem sem firmware lesz)

Talán még az /etc/cups/ppd/GodexG300.ppd-t adnák olvasási jogot mindenkinek egy teszt erejéig.

A rastertoezpl.c-ből itélve olyan sok helyen nem hozhat "permission denied"-ot.

Szerk.: a driver doc mappájában lévő FAQ-nak két pontja van az egyik ez:

1. Compilation and installation was successful, but CUPS system for printer
notify on: 'Filter "rastertoezpl" for printer "..." not available: Permission
denied' or in state of printing jobs is: ".../rastertoezpl failed".
- CUPS system doesn't have any access to the filter. Check mode of the path
and of the rastertoezpl filter (read and execute for all). If you use
security system (e.g. AppArmor, SELinux) check settings.

- for AppArmor user
If your system use AppArmor, check if the installed filter is accessible
and executable from CUPS daemon over AppArmor setting. Or you can put
AppArmor on CUPS to complain mode run
$ sudo aa-complain /usr/sbin/cupsd
and check if the problem is in setting of AppArmor. Edit AppArmor config
file /etc/apparmor.d/usr.sbin.cupsd and line with permission for new filter
"/usr/local/libexec/rastertoezpl/rastertoezpl Uxr,"
add to section /usr/sbin/cupsd (of course, the path must be directed to the
file, not to a symbolic link!).

And then activate AppArmor with:
$ sudo aa-enforce /usr/sbin/cupsd .

Szia!

Még emlékszel honnan szerezted a ppd-t? Esetleg valahová feltudod rakni?
Én is belefutottam pont ugyanebbe a felállásba.