Пятый день бьюсь над подключением принетра HP LaserJet Professional M1212nf MFP к CUPS через Ethernet порт.
Отказывается работать и все тут... Установка проходит без проблем, поддержка принетра в hplip имеется.
При попытке отправить на печать тестовую страницу, задание останавливается с ошибкой /usr/lib/cups/filter/foomatic-rip failed:
foomatic-rip на месте:
Код: Выделить всё
root@debian:~# file /usr/lib/cups/filter/foomatic-rip
/usr/lib/cups/filter/foomatic-rip: symbolic link to `../../../bin/foomatic-rip'
root@debian:~# file /usr/bin/foomatic-rip
/usr/bin/foomatic-rip: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, strippedКонфиг принтера и наличее установленных пакетов следующее:
Код: Выделить всё
root@debian:~# dpkg -l | grep hp
ii hpijs 3.10.6-2 HP Linux Printing and Imaging - gs IJS driver (hpijs)
ii hplip 3.10.6-2 HP Linux Printing and Imaging System (HPLIP)
ii hplip-cups 3.10.6-2 HP Linux Printing and Imaging - CUPS Raster driver (hpcups)
ii hplip-data 3.10.6-2 HP Linux Printing and Imaging - data files
ii libhpmud0 3.10.6-2 HP Multi-Point Transport Driver (hpmud) run-time libraries
ii libsane-hpaio 3.10.6-2 HP SANE backend for multi-function peripherals
root@debian:~# dpkg -l | grep cups
ii cups 1.4.4-7 Common UNIX Printing System(tm) - server
ii cups-client 1.4.4-7 Common UNIX Printing System(tm) - client programs (SysV)
ii cups-common 1.4.4-7 Common UNIX Printing System(tm) - common files
ii cups-driver-gutenprint 5.2.6-1 printer drivers for CUPS
ii cups-ppdc 1.4.4-7 Common UNIX Printing System(tm) - PPD manipulation utilities
ii ghostscript-cups 8.71~dfsg2-9 The GPL Ghostscript PostScript/PDF interpreter - CUPS filters
ii hplip-cups 3.10.6-2 HP Linux Printing and Imaging - CUPS Raster driver (hpcups)
ii libcups2 1.4.4-7 Common UNIX Printing System(tm) - Core library
ii libcupscgi1 1.4.4-7 Common UNIX Printing System(tm) - CGI library
ii libcupsdriver1 1.4.4-7 Common UNIX Printing System(tm) - Driver library
ii libcupsimage2 1.4.4-7 Common UNIX Printing System(tm) - Raster image library
ii libcupsmime1 1.4.4-7 Common UNIX Printing System(tm) - MIME library
ii libcupsppdc1 1.4.4-7 Common UNIX Printing System(tm) - PPD manipulation library
root@debian:~# cat /etc/cups/printers.conf
# Printer configuration file for CUPS v1.4.4
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer Print1212>
Info
Location
MakeModel HP LaserJet Professional m1212nf MFP hpijs, 3.10.6
DeviceURI socket://10.0.0.202
State Idle
StateTime 1318576254
Type 8425484
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-postscript 100 foomatic-rip
Filter application/vnd.cups-pdf 0 foomatic-rip
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>При этом, при отправке задания в логе такая каша:
Код: Выделить всё
root@debian:~# grep 14 /var/log/cups/error_log
E [14/Oct/2011:11:10:54 +0400] [Job 14] Job stopped due to filter errors; please consult the error_log file for details.
D [14/Oct/2011:11:10:54 +0400] [Job 14] The following messages were recorded from 11:10:50 to 11:10:54
D [14/Oct/2011:11:10:54 +0400] [Job 14] Adding start banner page "none".
D [14/Oct/2011:11:10:54 +0400] [Job 14] Adding end banner page "none".
D [14/Oct/2011:11:10:54 +0400] [Job 14] File of type application/vnd.cups-banner queued by "root".
D [14/Oct/2011:11:10:54 +0400] [Job 14] hold_until=0
D [14/Oct/2011:11:10:54 +0400] [Job 14] Queued on "Print1212" by "root".
D [14/Oct/2011:11:10:54 +0400] [Job 14] job-sheets=none,none
D [14/Oct/2011:11:10:54 +0400] [Job 14] argv[0]="Print1212"
D [14/Oct/2011:11:10:54 +0400] [Job 14] argv[1]="14"
D [14/Oct/2011:11:10:54 +0400] [Job 14] argv[2]="root"
D [14/Oct/2011:11:10:54 +0400] [Job 14] argv[3]="Test Page"
D [14/Oct/2011:11:10:54 +0400] [Job 14] argv[4]="1"
D [14/Oct/2011:11:10:54 +0400] [Job 14] argv[5]="job-uuid=urn:uuid:78ad5560-ffaf-3e1d-64f1-a637047d2dad job-originating-host-name=localhost"
D [14/Oct/2011:11:10:54 +0400] [Job 14] argv[6]="/var/spool/cups/d00014-001"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[8]="HOME=/var/spool/cups/tmp"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[10]="SERVER_ADMIN=root@debian"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[11]="SOFTWARE=CUPS/1.4.4"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[13]="TZ=Europe/Moscow"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[14]="USER=root"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[17]="IPP_PORT=631"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[18]="CHARSET=utf-8"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[19]="LANG=ru_RU.UTF-8"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[20]="PPD=/etc/cups/ppd/Print1212.ppd"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[21]="RIP_MAX_CACHE=auto"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[22]="CONTENT_TYPE=application/vnd.cups-banner"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[23]="DEVICE_URI=socket://10.0.0.202"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[24]="PRINTER_INFO="
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[25]="PRINTER_LOCATION="
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[26]="PRINTER=Print1212"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[27]="CUPS_FILETYPE=document"
D [14/Oct/2011:11:10:54 +0400] [Job 14] envp[28]="FINAL_CONTENT_TYPE=printer/Print1212"
D [14/Oct/2011:11:10:54 +0400] [Job 14] Started filter /usr/lib/cups/filter/bannertops (PID 6147)
D [14/Oct/2011:11:10:54 +0400] [Job 14] Started filter /usr/lib/cups/filter/pstopdf (PID 6148)
D [14/Oct/2011:11:10:54 +0400] [Job 14] Started filter /usr/lib/cups/filter/pdftopdf (PID 6150)
D [14/Oct/2011:11:10:54 +0400] [Job 14] Started filter /usr/lib/cups/filter/foomatic-rip (PID 6151)
D [14/Oct/2011:11:10:54 +0400] [Job 14] Started backend /usr/lib/cups/backend/socket (PID 6152)
D [14/Oct/2011:11:10:54 +0400] [Job 14] pstopdf 5 args: 14 root Test Page 1 job-uuid=urn:uuid:78ad5560-ffaf-3e1d-64f1-a637047d2dad job-originating-host-name=localhost
D [14/Oct/2011:11:10:54 +0400] [Job 14] PPD: /etc/cups/ppd/Print1212.ppd
D [14/Oct/2011:11:10:54 +0400] [Job 14] Getting input from file
D [14/Oct/2011:11:10:54 +0400] [Job 14] foomatic-rip version 4.0.5.223 running...
D [14/Oct/2011:11:10:54 +0400] [Job 14] Parsing PPD file ...
D [14/Oct/2011:11:10:54 +0400] [Job 14] Added option Resolution
D [14/Oct/2011:11:10:54 +0400] [Job 14] Added option PageSize
D [14/Oct/2011:11:10:54 +0400] [Job 14] Added option Model
D [14/Oct/2011:11:10:54 +0400] [Job 14] load_banner(filename="/var/spool/cups/d00014-001")
D [14/Oct/2011:11:10:54 +0400] [Job 14] STATE: +connecting-to-device
D [14/Oct/2011:11:10:54 +0400] [Job 14] Looking up "10.0.0.202"...
D [14/Oct/2011:11:10:54 +0400] [Job 14] Connecting to 10.0.0.202:9100
D [14/Oct/2011:11:10:54 +0400] [Job 14] Added option PrintoutMode
D [14/Oct/2011:11:10:54 +0400] [Job 14] Added option MediaType
D [14/Oct/2011:11:10:54 +0400] [Job 14] Added option InputSlot
D [14/Oct/2011:11:10:54 +0400] [Job 14] Added option Quality
D [14/Oct/2011:11:10:54 +0400] [Job 14] Page = 595x842; 18,14 to 577,828
D [14/Oct/2011:11:10:54 +0400] [Job 14] Подключение к принтеру…
D [14/Oct/2011:11:10:54 +0400] [Job 14] Added option ImageableArea
D [14/Oct/2011:11:10:54 +0400] [Job 14] STATE: -connecting-to-device
D [14/Oct/2011:11:10:54 +0400] [Job 14] Подключен к принтеру…
D [14/Oct/2011:11:10:54 +0400] [Job 14] Connected to 10.0.0.202:9100 (IPv4)...
D [14/Oct/2011:11:10:54 +0400] [Job 14] Added option PaperDimension
D [14/Oct/2011:11:10:54 +0400] [Job 14] Added option Font
D [14/Oct/2011:11:10:54 +0400] [Job 14]
D [14/Oct/2011:11:10:54 +0400] [Job 14] Parameter Summary
D [14/Oct/2011:11:10:54 +0400] [Job 14] -----------------
D [14/Oct/2011:11:10:54 +0400] [Job 14]
D [14/Oct/2011:11:10:54 +0400] [Job 14] Spooler: cups
D [14/Oct/2011:11:10:54 +0400] [Job 14] Printer: Print1212
D [14/Oct/2011:11:10:54 +0400] [Job 14] Shell: /bin/bash
D [14/Oct/2011:11:10:54 +0400] [Job 14] PPD file: /etc/cups/ppd/Print1212.ppd
D [14/Oct/2011:11:10:54 +0400] [Job 14] ATTR file:
D [14/Oct/2011:11:10:54 +0400] [Job 14] Printer model: HP LaserJet Professional m1212nf MFP hpijs, 3.10.6
D [14/Oct/2011:11:10:54 +0400] [Job 14] Job title: Test Page
D [14/Oct/2011:11:10:54 +0400] [Job 14] File(s) to be printed:
D [14/Oct/2011:11:10:54 +0400] [Job 14] <STDIN>
D [14/Oct/2011:11:10:54 +0400] [Job 14]
D [14/Oct/2011:11:10:54 +0400] [Job 14] Ghostscript extra search path ('GS_LIB'): /usr/share/cups/fonts
D [14/Oct/2011:11:10:54 +0400] [Job 14] Printing system options:
D [14/Oct/2011:11:10:54 +0400] [Job 14] Pondering option 'job-uuid=urn:uuid:78ad5560-ffaf-3e1d-64f1-a637047d2dad'
D [14/Oct/2011:11:10:54 +0400] [Job 14] Unknown option job-uuid=urn:uuid:78ad5560-ffaf-3e1d-64f1-a637047d2dad.
D [14/Oct/2011:11:10:54 +0400] [Job 14] Pondering option 'job-originating-host-name=localhost'
D [14/Oct/2011:11:10:54 +0400] [Job 14] Unknown option job-originating-host-name=localhost.
D [14/Oct/2011:11:10:54 +0400] [Job 14] Options from the PPD file:
D [14/Oct/2011:11:10:54 +0400] [Job 14]
D [14/Oct/2011:11:10:54 +0400] [Job 14] ================================================
D [14/Oct/2011:11:10:54 +0400] [Job 14]
D [14/Oct/2011:11:10:54 +0400] [Job 14] File: <STDIN>
D [14/Oct/2011:11:10:54 +0400] [Job 14]
D [14/Oct/2011:11:10:54 +0400] [Job 14] ================================================
D [14/Oct/2011:11:10:54 +0400] [Job 14]
D [14/Oct/2011:11:10:54 +0400] [Job 14] PNG image: 128x128x8, color_type=6 (RGB+ALPHA)
D [14/Oct/2011:11:10:54 +0400] [Job 14] PNG image: 192x128x8, color_type=2 (RGB)
D [14/Oct/2011:11:10:54 +0400] [Job 14] Resolution: 600
D [14/Oct/2011:11:10:54 +0400] [Job 14] Page size: A4
D [14/Oct/2011:11:10:54 +0400] [Job 14] Width: 595, height: 842, absolute margins: 18, 14.39999961853, 577, 827.60000038147
D [14/Oct/2011:11:10:54 +0400] [Job 14] Relative margins: 18, 14.39999961853, 18, 14.39999961853
D [14/Oct/2011:11:10:54 +0400] [Job 14] PPD options: -r600 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842
D [14/Oct/2011:11:10:54 +0400] [Job 14] PostScript to be injected:
D [14/Oct/2011:11:10:54 +0400] [Job 14] Running cat | /usr/bin/gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoRotatePages=/None -dAutoFilterColorImages=false -dNOPLATFONTS -dPARANOIDSAFER -sstdout=%stderr -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/printer -dColorConversionStrategy=/LeaveColorUnchanged -dDoNumCopies -r600 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -sOutputFile=- -c .setpdfwrite -f -
D [14/Oct/2011:11:10:54 +0400] [Job 14] Filetype: PDF
D [14/Oct/2011:11:10:54 +0400] [Job 14] Storing temporary files in /var/spool/cups/tmp
D [14/Oct/2011:11:10:54 +0400] [Job 14] File contains 1 pages
D [14/Oct/2011:11:10:54 +0400] [Job 14] Starting renderer with command: gs -dFirstPage=1 -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="HP LaserJet 1018" -r600 -sIjsParams=Quality:Quality=0,Quality:ColorMode=0,Quality:PenSet=0,PS:MediaPosition=7 -dIjsUseOutputFD -sOutputFile=- /var/spool/cups/tmp/foomatic-hSNgMa
D [14/Oct/2011:11:10:54 +0400] [Job 14] Starting process "kid3" (generation 1)
D [14/Oct/2011:11:10:54 +0400] [Job 14] Starting process "kid4" (generation 2)
D [14/Oct/2011:11:10:54 +0400] [Job 14] Starting process "renderer" (generation 2)
D [14/Oct/2011:11:10:54 +0400] [Job 14] JCL: 2345X@PJL
D [14/Oct/2011:11:10:54 +0400] [Job 14] <job data>
D [14/Oct/2011:11:10:54 +0400] [Job 14]
D [14/Oct/2011:11:10:54 +0400] [Job 14] prnt/hpijs/hpijs.cpp 268: unable to set device=HP LaserJet 1018, err=48
D [14/Oct/2011:11:10:54 +0400] [Job 14] prnt/hpijs/hpijs.cpp 289: unable to set device=HP LaserJet 1018, err=48
D [14/Oct/2011:11:10:54 +0400] [Job 14] prnt/hpijs/hpijs.cpp 694: unable to read client data err=-2
D [14/Oct/2011:11:10:54 +0400] [Job 14] renderer exited with status 1
D [14/Oct/2011:11:10:54 +0400] [Job 14] Possible error on renderer command line or PostScript error. Check options.Kid3 exit status: 3
D [14/Oct/2011:11:10:54 +0400] [Job 14] hrDeviceDesc="Unknown"
D [14/Oct/2011:11:10:54 +0400] [Job 14] prtGeneralCurrentLocalization type is 0, expected 2!
D [14/Oct/2011:11:10:54 +0400] [Job 14] backendRunLoop(print_fd=0, device_fd=5, snmp_fd=6, addr=0xb83080cc, use_bc=1, side_cb=0xb77224e0)
D [14/Oct/2011:11:10:54 +0400] [Job 14] Read 50 bytes of print data...
D [14/Oct/2011:11:10:54 +0400] [Job 14] Wrote 50 bytes of print data...
D [14/Oct/2011:11:10:54 +0400] [Job 14] Файл печати отправлен, ожидание окончания работы принтера…
D [14/Oct/2011:11:10:54 +0400] [Job 14] Готов к печати.
D [14/Oct/2011:11:10:54 +0400] [Job 14] End of messages
D [14/Oct/2011:11:10:54 +0400] [Job 14] printer-state=3(idle)
D [14/Oct/2011:11:10:54 +0400] [Job 14] printer-state-message="Готов к печати."
D [14/Oct/2011:11:10:54 +0400] [Job 14] printer-state-reasons=none
E [14/Oct/2011:11:10:54 +0400] [CGI] Saw EOF, expected '}'!Как мне его заставить работать? И почему он в логе указывает модель принтера 1018?
спасибо.