You are not logged in.

#1 2014-11-09 12:58:49

nartes
Member
From: Minsk, Belarus
Registered: 2014-07-05
Posts: 62
Website

[SOLVED] cups 2.0.0-2 error_log: pstocapt3 write error,32

Hello!

My goal is to configure printer Canon LBP6000B.

I've followed https://wiki.archlinux.org/index.php/Canon_CAPT and done the following steps:

  1. installed required dependencies

    HIDDEN_HOSTNAME% pacman -Qs '(cups|capt-src|ghostscript|gsfonts|lib32-cups|libcups|lib32-libxml|lib32-popt)'
    local/capt-src 2.60-2
        Canon CAPT Printer Driver for Linux. Compiled from source code.
    local/cups 2.0.0-2
        The CUPS Printing System - daemon package
    local/cups-filters 1.0.61-2
        OpenPrinting CUPS Filters
    local/cups-pk-helper 0.2.5-1
        A helper that makes system-config-printer use PolicyKit
    local/ghostscript 9.15-1
        An interpreter for the PostScript language
    local/gsfonts 20130917-1
        URW and Postscript core35 fonts
    local/lib32-libcups 1.7.5-1
        The CUPS Printing System - client libraries (32-bit)
    local/lib32-libxml2 2.9.1-1
        XML parsing library, version 2 (32-bit)
    local/lib32-popt 1.16-6
        A commandline option parser (32 bit)
    local/libcups 2.0.0-2
        The CUPS Printing System - client libraries and headers
    local/python-pycups 1.9.68-1
        Python 3 CUPS Bindings
    local/system-config-printer 1.5.3-3
        A CUPS printer configuration tool and status applet
  2. configured printer via lpadmin, ccpdadmin:

    HIDDEN_HOSTNAME% cat /etc/cups/printers.conf
    # Printer configuration file for CUPS v2.0.0
    # Written by cupsd on 2014-11-09 14:02
    # DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
    <Printer LBP6000-LBP6018-2>
    UUID urn:uuid:1e72114d-e2ac-3cea-5134-f78008b25775
    Info Canon LBP6000/LBP6018
    Location HIDDEN_HOSTNAME
    DeviceURI usb://Canon/LBP6000/LBP6018?serial=0000B4B57ESG
    State Idle
    StateTime 1415530936
    Type 8393860
    Accepting No
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy stop-printer
    </Printer>
    <DefaultPrinter LBP6000B>
    UUID urn:uuid:1810d3d0-b717-3785-687c-f36cf53c1c6b
    Info LBP6000B
    DeviceURI ccp://localhost:59687
    State Idle
    StateTime 1415530931
    Type 8393860
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy stop-printer
    </DefaultPrinter>
    HIDDEN_HOSTNAME% cat /etc/ccpd.conf
    # Canon Printer Daemon for CUPS Configuration Data
    
    <Path>
    # CUPS configuration file path.
    #  Default  /etc/cups/
    
    CUPS_ConfigPath   /etc/cups/
    
    # Log directory path.
    LogDirectoryPath /var/log/CCPD/
    
    </Path>
    
    # Printer entries.
    #  Mapping each "Printer Name" to each "Printer Device Port".
    #  The "Printer Name" has to be identical to the CUPS printer queue name.
    #  
    #  For example, if you prepare a printer named "LBP3200" as a CUPS printer
    #  queue name, and the printer is connected to the USB port "/dev/usb/lp0",
    #  you can use the following three lines example just by removing the
    #  comment symbol "#" of each line.
    #<Printer  LBP3200>
    #DevicePath  /dev/usb/lp0
    #</Printer>
    
    <Printer LBP6000B>
    DevicePath /dev/usb/lp0
    </Printer>
    
    <Ports>
    # Status monitoring socket port.
    #  Default 59787
    UI_Port  59787
    PDATA_Port  59687
    </Ports>

Captstatusui connects to printer easily and execute cleaning.

But when I'm trying to print at least test page via system-config-printer cause:

D [09/Nov/2014:14:47:38 +0300] [Job 32] Set job-printer-state-message to "pstocapt3 write error,32.", current level=ERROR
D [09/Nov/2014:14:47:38 +0300] [Job 32] PID 30402 (/usr/lib/cups/filter/pstocapt3) stopped with status 1.

Here is full /var/log/cups/error_log: http://pastebin.com/G6JwEM0g

Google tells, that it's broken pipe error code. I'd like to find out which pipe, but wasn't trying to debug.

Here is some links I surfed:

but didn't found something new.

What is my example missing?

UPD:
There are some similar problems on other sites:

  • https://www.centos.org/forums/viewtopic.php?t=31731,
    where according to the logs, user should add following symlinks:

    ln -s /usr/lib/cups/filter/pstocapt /usr/lib64/cups/filter/pstocapt
    ln -s /usr/lib/cups/filter/pstocapt2 /usr/lib64/cups/filter/pstocapt2
    ln -s /usr/lib/cups/filter/pstocapt3 /usr/lib64/cups/filter/pstocapt3
    ln -s /usr/lib/cups/backend/ccp /usr/lib64/cups/backend/ccp

    but on the arch, lib64 by default points to lib, so all this links are done automatically:

    HIDDEN_HOSTNAME [ls] /usr 
    HIDDEN_HOSTNAME% ls -all
    total 392
    drwxr-xr-x   9 root root   4096 Nov  2 01:24 .
    drwxr-xr-x  17 root root   4096 Nov  1 22:48 ..
    drwxr-xr-x   5 root root 131072 Nov  9 15:56 bin
    drwxr-xr-x 433 root root  45056 Nov  9 15:56 include
    drwxr-xr-x 237 root root 143360 Nov  9 15:56 lib
    drwxr-xr-x  27 root root  36864 Nov  9 15:56 lib32
    lrwxrwxrwx   1 root root      3 Oct 25 21:41 lib64 -> lib
    drwxr-xr-x  11 root root   4096 Jun 12 02:11 local
    lrwxrwxrwx   1 root root      3 Oct 25 21:41 sbin -> bin
    drwxr-xr-x 245 root root  12288 Nov  9 15:56 share
    drwxr-xr-x   3 root root   4096 Oct 12 18:32 src
    HIDDEN_HOSTNAME [ls -all] /usr                                                           HIDDEN_HOSTNAME [ls -all] /usr                                                                                                                14-11-09  7:14PM
    HIDDEN_HOSTNAME% ls -all /usr/lib/cups/filter/pstocapt*
    -rwxr-xr-x 1 root root 21394 Nov  9 12:14 /usr/lib/cups/filter/pstocapt
    -rwxr-xr-x 1 root root 25595 Nov  9 12:14 /usr/lib/cups/filter/pstocapt2
    -rwxr-xr-x 1 root root 31135 Nov  9 12:14 /usr/lib/cups/filter/pstocapt3
    HIDDEN_HOSTNAME [ls -all /usr/lib/cups/filter/pstocapt*] /usr           14-11-09  7:15PM
    HIDDEN_HOSTNAME% ls -all /usr/lib64/cups/filter/pstocapt*
    -rwxr-xr-x 1 root root 21394 Nov  9 12:14 /usr/lib64/cups/filter/pstocapt
    -rwxr-xr-x 1 root root 25595 Nov  9 12:14 /usr/lib64/cups/filter/pstocapt2
    -rwxr-xr-x 1 root root 31135 Nov  9 12:14 /usr/lib64/cups/filter/pstocapt3
    HIDDEN_HOSTNAME [ls -all /usr/lib64/cups/filter/pstocapt*] /usr         14-11-09  7:15PM
    HIDDEN_HOSTNAME% ls -all /usr/lib64/cups/backend/ccp     
    -rwxr-xr-x 1 root root 16450 Nov  9 12:14 /usr/lib64/cups/backend/ccp
    HIDDEN_HOSTNAME [ls -all /usr/lib64/cups/backend/ccp] /usr              14-11-09  7:15PM
    HIDDEN_HOSTNAME% ls -all /usr/lib/cups/backend/ccp 
    -rwxr-xr-x 1 root root 16450 Nov  9 12:14 /usr/lib/cups/backend/ccp

    .
    There are also lot of other guides based on symlinking, but still have not found anything usefull.

  • http://forums.opensuse.org/showthread.p … e-error-32, but here is no actual solution, just pointing to other guides, so not able to benefit from the post.

UPD:
Gaved up, just have no need to use that printer, marked as SOLVED

Last edited by nartes (2016-05-05 21:25:05)

Offline

Board footer

Powered by FluxBB