cups sharing printer doesn't work????

Issues related to configuring your network
Post Reply
zethro
Posts: 47
Joined: 2017/05/29 18:43:10
Location: SEOUL,SOUTH KOREA
Contact:

cups sharing printer doesn't work????

Post by zethro » 2018/10/07 08:23:46

After fixing the emergency mode with xfs_repair problem, network printer doesn't work through CUPS!
could anybody help me with this?

error message of /var/log/cups/ as follows:

Code: Select all

E [07/Oct/2018:11:27:23 +0900] [Job 45] Job stopped due to filter errors; please consult the error_log file for details.
D [07/Oct/2018:11:27:23 +0900] [Job 45] The following messages were recorded from 11시 27분 22초 to 11시 27분 23초
D [07/Oct/2018:11:27:23 +0900] [Job 45] Adding start banner page "none".
D [07/Oct/2018:11:27:23 +0900] [Job 45] Queued on "HP_Officejet_J3600_series" by "yoonjungsuep".
D [07/Oct/2018:11:27:23 +0900] [Job 45] File of type application/vnd.cups-pdf queued by "yoonjungsuep".
D [07/Oct/2018:11:27:23 +0900] [Job 45] Adding end banner page "none".
D [07/Oct/2018:11:27:23 +0900] [Job 45] time-at-processing=1538879243
D [07/Oct/2018:11:27:23 +0900] [Job 45] 1 filters for job:
D [07/Oct/2018:11:27:23 +0900] [Job 45] foomatic-rip (application/vnd.cups-pdf to printer/HP_Officejet_J3600_series, cost 0)
D [07/Oct/2018:11:27:23 +0900] [Job 45] job-sheets=none,none
D [07/Oct/2018:11:27:23 +0900] [Job 45] argv[0]="HP_Officejet_J3600_series"
D [07/Oct/2018:11:27:23 +0900] [Job 45] argv[1]="45"
D [07/Oct/2018:11:27:23 +0900] [Job 45] argv[2]="yoonjungsuep"
D [07/Oct/2018:11:27:23 +0900] [Job 45] argv[3]="테스트 페이지"
D [07/Oct/2018:11:27:23 +0900] [Job 45] argv[4]="1"
D [07/Oct/2018:11:27:23 +0900] [Job 45] argv[5]="job-uuid=urn:uuid:284cd41b-3207-35d9-7604-843b6792ee8d job-originating-host-name=192.168.10.114 time-at-creation=1538879242 time-at-processing=1538879243"
D [07/Oct/2018:11:27:23 +0900] [Job 45] argv[6]="/var/spool/cups/d00045-001"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[2]="CUPS_DOCROOT=/usr/share/cups/www"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[8]="HOME=/var/spool/cups/tmp"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[9]="PATH=/usr/lib/cups/filter:/usr/lib64/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[10]="SERVER_ADMIN=root@horyundangIII.pe.kr"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[11]="SOFTWARE=CUPS/1.6.3"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[13]="USER=root"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[14]="CUPS_MAX_MESSAGE=2047"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[17]="IPP_PORT=631"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[18]="CHARSET=utf-8"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[19]="LANG=ko_KR.UTF-8"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[20]="PPD=/etc/cups/ppd/HP_Officejet_J3600_series.ppd"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[21]="RIP_MAX_CACHE=128m"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[22]="CONTENT_TYPE=application/vnd.cups-pdf"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[23]="DEVICE_URI=usb://HP/Officejet%20J3600%20series?serial=CN16M6N05G052M&interface=1"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[24]="PRINTER_INFO=HP Officejet J3600 series"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[25]="PRINTER_LOCATION=myroom"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[26]="PRINTER=HP_Officejet_J3600_series"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[27]="PRINTER_STATE_REASONS=none"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[28]="CUPS_FILETYPE=document"
D [07/Oct/2018:11:27:23 +0900] [Job 45] envp[29]="AUTH_I****"
D [07/Oct/2018:11:27:23 +0900] [Job 45] Started filter /usr/lib/cups/filter/foomatic-rip (PID 13364)
D [07/Oct/2018:11:27:23 +0900] [Job 45] Started backend /usr/lib/cups/backend/usb (PID 13365)
D [07/Oct/2018:11:27:23 +0900] [Job 45] Printing on printer with URI: usb://HP/Officejet%20J3600%20series?serial=CN16M6N05G052M&interface=1
D [07/Oct/2018:11:27:23 +0900] [Job 45] libusb_get_device_list=8
D [07/Oct/2018:11:27:23 +0900] [Job 45] STATE: +connecting-to-device
D [07/Oct/2018:11:27:23 +0900] [Job 45] STATE: -connecting-to-device
D [07/Oct/2018:11:27:23 +0900] [Job 45] Printer found with device ID: MFG:HP;MDL:Officejet J3600 series;CMD:LDL,MLC,PML,DYN;CLS:PRINTER;1284.4DL:4d,4e,1;SN:CN16M6N05G052M;S:0380008000020020002c148000cc250002e;Z:007; Device URI: usb://HP/Officejet%20J3600%20series?serial=CN16M6N05G052M&interface=1
D [07/Oct/2018:11:27:23 +0900] [Job 45] Device protocol: 2
D [07/Oct/2018:11:27:23 +0900] [Job 45] Sending data to printer.
D [07/Oct/2018:11:27:23 +0900] [Job 45] Set job-printer-state-message to "Sending data to printer.", current level=INFO
D [07/Oct/2018:11:27:23 +0900] [Job 45] Getting input from file /var/spool/cups/d00045-001
D [07/Oct/2018:11:27:23 +0900] [Job 45] foomatic-rip version 4.0.17.256 running...
D [07/Oct/2018:11:27:23 +0900] [Job 45] Parsing PPD file ...
D [07/Oct/2018:11:27:23 +0900] [Job 45] Added option ColorSpace
D [07/Oct/2018:11:27:23 +0900] [Job 45] Added option Resolution
D [07/Oct/2018:11:27:23 +0900] [Job 45] Added option PageSize
D [07/Oct/2018:11:27:23 +0900] [Job 45] Added option Model
D [07/Oct/2018:11:27:23 +0900] [Job 45] Added option PrintoutMode
D [07/Oct/2018:11:27:23 +0900] [Job 45] Added option Quality
D [07/Oct/2018:11:27:23 +0900] [Job 45] Added option ImageableArea
D [07/Oct/2018:11:27:23 +0900] [Job 45] Added option PaperDimension
D [07/Oct/2018:11:27:23 +0900] [Job 45] Added option Font
D [07/Oct/2018:11:27:23 +0900] [Job 45] Parameter Summary
D [07/Oct/2018:11:27:23 +0900] [Job 45] -----------------
D [07/Oct/2018:11:27:23 +0900] [Job 45] Spooler: cups
D [07/Oct/2018:11:27:23 +0900] [Job 45] Printer: HP_Officejet_J3600_series
D [07/Oct/2018:11:27:23 +0900] [Job 45] Shell: /bin/bash
D [07/Oct/2018:11:27:23 +0900] [Job 45] PPD file: /etc/cups/ppd/HP_Officejet_J3600_series.ppd
D [07/Oct/2018:11:27:23 +0900] [Job 45] ATTR file: 
D [07/Oct/2018:11:27:23 +0900] [Job 45] Printer model: HP Officejet j3500 Series hpijs, 3.15.9
D [07/Oct/2018:11:27:23 +0900] [Job 45] Job title: 테스트 페이지
D [07/Oct/2018:11:27:23 +0900] [Job 45] File(s) to be printed:
D [07/Oct/2018:11:27:23 +0900] [Job 45] /var/spool/cups/d00045-001 
D [07/Oct/2018:11:27:23 +0900] [Job 45] Ghostscript extra search path ('GS_LIB'): /usr/share/cups/fonts
D [07/Oct/2018:11:27:23 +0900] [Job 45] Printing system options:
D [07/Oct/2018:11:27:23 +0900] [Job 45] Pondering option 'job-uuid=urn:uuid:284cd41b-3207-35d9-7604-843b6792ee8d'
D [07/Oct/2018:11:27:23 +0900] [Job 45] Unknown option job-uuid=urn:uuid:284cd41b-3207-35d9-7604-843b6792ee8d.
D [07/Oct/2018:11:27:23 +0900] [Job 45] Pondering option 'job-originating-host-name=192.168.10.114'
D [07/Oct/2018:11:27:23 +0900] [Job 45] Unknown option job-originating-host-name=192.168.10.114.
D [07/Oct/2018:11:27:23 +0900] [Job 45] Pondering option 'time-at-creation=1538879242'
D [07/Oct/2018:11:27:23 +0900] [Job 45] Unknown option time-at-creation=1538879242.
D [07/Oct/2018:11:27:23 +0900] [Job 45] Pondering option 'time-at-processing=1538879243'
D [07/Oct/2018:11:27:23 +0900] [Job 45] Unknown option time-at-processing=1538879243.
D [07/Oct/2018:11:27:23 +0900] [Job 45] Options from the PPD file:
D [07/Oct/2018:11:27:23 +0900] [Job 45] ================================================
D [07/Oct/2018:11:27:23 +0900] [Job 45] File: /var/spool/cups/d00045-001
D [07/Oct/2018:11:27:23 +0900] [Job 45] ================================================
D [07/Oct/2018:11:27:23 +0900] [Job 45] Cannot process "/var/spool/cups/d00045-001": Unknown filetype.
D [07/Oct/2018:11:27:23 +0900] [Job 45] Process is dying with "Could not print file /var/spool/cups/d00045-001
D [07/Oct/2018:11:27:23 +0900] [Job 45] ", exit stat 2
D [07/Oct/2018:11:27:23 +0900] [Job 45] Cleaning up...
D [07/Oct/2018:11:27:23 +0900] [Job 45] Sent 0 bytes...
D [07/Oct/2018:11:27:23 +0900] [Job 45] PID 13364 (/usr/lib/cups/filter/foomatic-rip) stopped with status 2.
D [07/Oct/2018:11:27:23 +0900] [Job 45] Hint: Try setting the LogLevel to "debug" to find out more.
D [07/Oct/2018:11:27:23 +0900] [Job 45] Waiting for read thread to exit...
D [07/Oct/2018:11:27:23 +0900] [Job 45] PID 13365 (/usr/lib/cups/backend/usb) exited with no errors.
D [07/Oct/2018:11:27:23 +0900] [Job 45] End of messages
D [07/Oct/2018:11:27:23 +0900] [Job 45] printer-state=3(idle)
D [07/Oct/2018:11:27:23 +0900] [Job 45] printer-state-message="Filter failed"
D [07/Oct/2018:11:27:23 +0900] [Job 45] printer-state-reasons=none
E

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: cups sharing printer doesn't work????

Post by hunter86_bg » 2018/10/08 03:42:08

Have you checked the package integrity?
Maybe something like this will show if there are issues:

Code: Select all

for pkg in $(rpm -qa | grep -I cups); do echo $pkg ;rpm -V $pkg;echo;echo; done
Also, enable debug to find the reason.

zethro
Posts: 47
Joined: 2017/05/29 18:43:10
Location: SEOUL,SOUTH KOREA
Contact:

Re: cups sharing printer doesn't work????

Post by zethro » 2018/10/08 04:31:19

the result you informed is like:

Code: Select all

cups-filters-1.0.35-22.el7.x86_64
S.5....T.  c /etc/cups/cups-browsed.conf


cups-pk-helper-0.2.6-2.el7.x86_64


cups-1.6.3-35.el7.x86_64
.M.......  c /etc/cups/classes.conf


gutenprint-cups-5.2.9-18.el7.x86_64


ghostscript-cups-9.07-28.el7_4.2.x86_64


cups-client-1.6.3-35.el7.x86_64


cups-filesystem-1.6.3-35.el7.noarch


python-cups-1.9.63-6.el7.x86_64


cups-filters-libs-1.0.35-22.el7.x86_64


cups-libs-1.6.3-35.el7.x86_64

zethro
Posts: 47
Joined: 2017/05/29 18:43:10
Location: SEOUL,SOUTH KOREA
Contact:

Re: cups sharing printer doesn't work????

Post by zethro » 2018/10/08 05:31:13

thanks to hunter_bg!
how to reinstall these broken packages?

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: cups sharing printer doesn't work????

Post by hunter86_bg » 2018/10/09 18:01:15

You can always run

Code: Select all

yum reinstall $(rpm -qa | grep -i cups)
Don't use the "-y" switch as you want to verify what you are reinstalling.
From the previous output I'm only worried about:
cups-1.6.3-35.el7.x86_64
.M....... c /etc/cups/classes.conf
Where M indicates problem with the file's mode.

Edit: What was changed recently on the system ? Is it a system update ? If so - try to downgrade the packages to their previous level. If you need to get the old package version -> you can use "yum history info" command.

Post Reply