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.
- 2068 megtekintés
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.
- A hozzászóláshoz be kell jelentkezni
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
- A hozzászóláshoz be kell jelentkezni
Legközelebb pastebin, kérlek!
> PID 6453 (/usr/lib/cups/filter/rastertoezpl) stopped with status 113 (Permission denied)
Nos, hát akkor tegyél ez ellen...
- A hozzászóláshoz be kell jelentkezni
chmod 755 /usr/lib/cups/filter/rastertoezpl
és továbbra is ugyan ugyan ez a hiba. Vagy valami mást kell tennem ellene?
- A hozzászóláshoz be kell jelentkezni
Ha jól értem, nem az adott bináris jogosultságaival volt gond, hanem a működése közben jogosultsági hibával állt le.
loglevel-t átállítottad?
Üdv,
Marci
- A hozzászóláshoz be kell jelentkezni
Ennyire sajnos még nem vagyok otthon a témában, így nem állítottam loglevet-t.
Hogyan tudom átállítani?
- A hozzászóláshoz be kell jelentkezni
Gondolom a /etc/cups/cupsd.conf-ban a LogLevel-t "debug"-ra kéne állítani és a cups-ot újraindítani.
Üdv,
Marci
- A hozzászóláshoz be kell jelentkezni
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)
- A hozzászóláshoz be kell jelentkezni
Simán lehet, nem használok cups-ot, nem tudom, mennyire beszédes magától... Ez esetben viszont a "Hint: Try setting the LogLevel to "debug" to find out more." üzenet értelme válik kérdésessé.
Üdv,
Marci
- A hozzászóláshoz be kell jelentkezni
Jogos lehet, azt pedig én nem vettem észre :)
- A hozzászóláshoz be kell jelentkezni
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.
- A hozzászóláshoz be kell jelentkezni
Gondolom, hiányolja a paramétereket. Azok nélkül nehéz neki tudni, hogy mivel mit kéne csinálni...
Azért azt a logot tedd elérhetővé. Köszi!
Üdv,
Marci
- A hozzászóláshoz be kell jelentkezni
A log itt érhető el:
https://drive.google.com/open?id=0BzQANKGSJhQYa0tSSHpMS1JzSzg
- A hozzászóláshoz be kell jelentkezni
Ez azt írja, hogy elrontottad a rastertoezpl jogosultságait a 777-el, így nem biztonságos, nem futtatja.
Vissza kéne állítani a jogosultságot, lefuttatni, logot elküldeni.
Üdv,
Marci
- A hozzászóláshoz be kell jelentkezni
Vissza állítottam.
A log:
https://drive.google.com/open?id=0BzQANKGSJhQYR2JnNks5MEJTQ3M
- A hozzászóláshoz be kell jelentkezni
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
- A hozzászóláshoz be kell jelentkezni
Úgy látom rastertopdf filter nincs valamiért nálam.
~/testpdf.pdf
~/testpdf.ezpl
Mindkét fájl mérete 0 kb.
stderr kimenete mellékelve:
https://drive.google.com/open?id=0BzQANKGSJhQYVEFsX0w0bU5SRGs
- A hozzászóláshoz be kell jelentkezni
Ebben nem látszik Permission denied, nálam is hasonló STDERR kimenettel (+üres STDOUT) fut le a rastertoezpl.
Nálam (Ubuntu 16.04) a cups-filters-core-drivers csomag tartalmazza a rastertopdf-et.
Üdv,
Marci
- A hozzászóláshoz be kell jelentkezni
Nálam Ubuntu 14.04 van és itt nem igazán találok rastertopdf-et.
És az ubuntu.com package keresője sem ad találatot erre a fájlra ebben az Ubuntu verzióban.
- A hozzászóláshoz be kell jelentkezni
Mindegy is, nem visz közelebb a megoldáshoz.
Üdv,
Marci
- A hozzászóláshoz be kell jelentkezni
A magyarországi szerviz szerint firmware frissítéssel kellene megpróbálkozni.
- A hozzászóláshoz be kell jelentkezni
Én e helyütt szereznék egy EPDL file-t (pl. Windows alatt file-ba nyomtatással) és ráküldeném Linux alatt az eszközre, kijön-e?
Üdv,
Marci
- A hozzászóláshoz be kell jelentkezni
+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 .
- A hozzászóláshoz be kell jelentkezni
HEURÉKA!
A /usr/lib/cups/filter/rastertoezpl
egy simlink volt ami a /user/local/libexecrastertoezpl/rastertoezlp
fájlra mutatott.
A simlinket kitörölve és helyére bemásolva a fájlt már elküldi a nyomtatást a nyomtatóra.
Köszönöm szépen mindenkinek a segítséget.
- A hozzászóláshoz be kell jelentkezni
chmod 0777 /usr/lib/cups/filter/rastertoezpl joggal a
/usr/lib/cups/filter/rastertoezpl) stopped with status 113 (Permission denied)
üzenet helyett
File "/usr/lib/cups/filter/rastertoezpl" has insecure permissions (0100777/uid=0/gid=0).
üzenet kerül.
- A hozzászóláshoz be kell jelentkezni
Nem csoda.
Üdv,
Marci
- A hozzászóláshoz be kell jelentkezni
Szia!
Még emlékszel honnan szerezted a ppd-t? Esetleg valahová feltudod rakni?
Én is belefutottam pont ugyanebbe a felállásba.
- A hozzászóláshoz be kell jelentkezni
https://www.godexintl.com/downloads?type=15246521193763638&locale=en
Innen le lehet tölteni.
- A hozzászóláshoz be kell jelentkezni