You are not logged in.

#1 2023-10-25 09:06:42

Blowfish
Member
Registered: 2017-11-24
Posts: 5

"Unable to get printer status." with Kyocera FS-4200DN

I've been trying to get this printer for a while now but no matter what the status in CUPS is "Unable to get printer status." whenever i try to print something.

I tried the IPP Everywhere as well as kyocera_universal, kyocera-cups, foomatic and the driver from kyocera (which i think is the same as in kyocera_universal).
All of them with the same result.

lpinfo -v

network dnssd://Kyocera%20FS-4200DN._ipp._tcp.local/?uuid=4509a320-00ca-003d-011d-00251a5039d8
network ipp://Kyocera%20FS-4200DN._ipp._tcp.local/

/var/log/cups/error_log:

D [25/Oct/2023:10:42:40 +0200] [Client 180] Processing GET /printers
D [25/Oct/2023:10:42:40 +0200] [CGI] argv[0] = "/usr/lib/cups/cgi-bin/printers.cgi"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[3] = "CUPS_REQUESTROOT=/var/spool/cups"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[4] = "CUPS_SERVERBIN=/usr/lib/cups"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[5] = "CUPS_SERVERROOT=/etc/cups"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[6] = "CUPS_STATEDIR=/run/cups"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[7] = "HOME=/var/spool/cups/tmp"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[8] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/bin:/bin:/usr/bin"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[9] = "SERVER_ADMIN=root@arch"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[10] = "SOFTWARE=CUPS/2.4.7"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[11] = "TMPDIR=/var/spool/cups/tmp"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[12] = "USER=root"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[13] = "CUPS_MAX_MESSAGE=2047"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[14] = "CUPS_SERVER=/run/cups/cups.sock"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[15] = "CUPS_ENCRYPTION=IfRequested"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[16] = "IPP_PORT=631"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[17] = "AUTH_TYPE=Basic"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[18] = "LANG=en_US.UTF8"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[19] = "REDIRECT_STATUS=1"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[20] = "GATEWAY_INTERFACE=CGI/1.1"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[21] = "SERVER_NAME=localhost"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[22] = "SERVER_PORT=631"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[23] = "REMOTE_ADDR=127.0.0.1"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[24] = "REMOTE_HOST=localhost"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[25] = "SCRIPT_NAME=/printers"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[26] = "SCRIPT_FILENAME=/usr/share/cups/doc/printers"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[27] = "REMOTE_USER=angelo"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[28] = "SERVER_PROTOCOL=HTTP/1.1"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[29] = "HTTP_COOKIE=org.cups.sid=f4e8715a1eb070aaeccbb64cc90d1e03"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[30] = "HTTP_USER_AGENT=Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[31] = "REQUEST_METHOD=GET"
D [25/Oct/2023:10:42:40 +0200] [CGI] envp[32] = "QUERY_STRING="
D [25/Oct/2023:10:42:40 +0200] cupsdAddCert: Adding certificate for PID 90609
D [25/Oct/2023:10:42:40 +0200] [CGI] Started /usr/lib/cups/cgi-bin/printers.cgi (PID 90609)
I [25/Oct/2023:10:42:40 +0200] [Client 180] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=90609, file=13)
D [25/Oct/2023:10:42:40 +0200] [Client 180] Waiting for CGI data.
D [25/Oct/2023:10:42:40 +0200] [CGI] org.cups.sid cookie is \"f4e8715a1eb070aaeccbb64cc90d1e03\"
D [25/Oct/2023:10:42:40 +0200] [CGI] cgiSetVariable: SECTION=\"printers\"
D [25/Oct/2023:10:42:40 +0200] [CGI] cgiSetVariable: REFRESH_PAGE=\"\"
D [25/Oct/2023:10:42:40 +0200] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [25/Oct/2023:10:42:40 +0200] [Client 189] Server address is "/run/cups/cups.sock".
D [25/Oct/2023:10:42:40 +0200] [Client 189] Accepted from localhost (Domain)
D [25/Oct/2023:10:42:40 +0200] [Client 189] Waiting for request.
D [25/Oct/2023:10:42:40 +0200] [Client 189] POST / HTTP/1.1
D [25/Oct/2023:10:42:40 +0200] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [25/Oct/2023:10:42:40 +0200] [Client 189] Read: status=200, state=6
D [25/Oct/2023:10:42:40 +0200] [Client 189] No authentication data provided.
D [25/Oct/2023:10:42:40 +0200] [Client 189] 2.0 CUPS-Get-Default 1
D [25/Oct/2023:10:42:40 +0200] CUPS-Get-Default
D [25/Oct/2023:10:42:40 +0200] CUPS-Get-Default client-error-not-found: No default printer.
D [25/Oct/2023:10:42:40 +0200] [Client 189] Returning IPP client-error-not-found for CUPS-Get-Default (no URI) from localhost.
D [25/Oct/2023:10:42:40 +0200] [Client 189] Content-Length: 113
D [25/Oct/2023:10:42:40 +0200] [Client 189] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [25/Oct/2023:10:42:40 +0200] [Client 189] con->http=0x55d65e68acb0
D [25/Oct/2023:10:42:40 +0200] [Client 189] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=113, response=0x55d65e67f4c0(IPP_STATE_DATA), pipe_pid=0, file=-1
D [25/Oct/2023:10:42:40 +0200] [Client 189] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [25/Oct/2023:10:42:40 +0200] [Client 189] bytes=0, http_state=0, data_remaining=113
D [25/Oct/2023:10:42:40 +0200] [Client 189] Flushing write buffer.
D [25/Oct/2023:10:42:40 +0200] [Client 189] New state is HTTP_STATE_WAITING
D [25/Oct/2023:10:42:40 +0200] [Client 189] Waiting for request.
D [25/Oct/2023:10:42:40 +0200] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [25/Oct/2023:10:42:40 +0200] [CGI] show_all_printers(http=0x55e2be68b280, user=\"angelo\")
D [25/Oct/2023:10:42:40 +0200] [CGI] cgiSetVariable: TITLE=\"Printers\"
D [25/Oct/2023:10:42:40 +0200] [CGI] cgiSetVariable: SERVER_NAME=\"localhost\"
D [25/Oct/2023:10:42:40 +0200] [CGI] cgiSetVariable: REMOTE_USER=\"angelo\"
D [25/Oct/2023:10:42:40 +0200] [CGI] cgiSetVariable: CUPS_VERSION=\"CUPS v2.4.7\"
D [25/Oct/2023:10:42:40 +0200] [Client 180] CGI data ready to be sent.
D [25/Oct/2023:10:42:40 +0200] [Client 180] con->http=0x55d65e5e6080
D [25/Oct/2023:10:42:40 +0200] [Client 180] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=2147483647, response=(nil)(), pipe_pid=90609, file=13
D [25/Oct/2023:10:42:40 +0200] [Client 180] Waiting for CGI data.
D [25/Oct/2023:10:42:40 +0200] [Client 180] Script header: Content-Type: text/html;charset=utf-8
D [25/Oct/2023:10:42:40 +0200] [Client 180] Script header: 
D [25/Oct/2023:10:42:40 +0200] [Client 180] Sending status 200 for CGI.
D [25/Oct/2023:10:42:40 +0200] [Client 180] cupsdSendHeader: code=200, type="(null)", auth_type=0
D [25/Oct/2023:10:42:40 +0200] [Client 180] con->http=0x55d65e5e6080
D [25/Oct/2023:10:42:40 +0200] [Client 180] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=90609, file=13
D [25/Oct/2023:10:42:40 +0200] [Client 180] Waiting for CGI data.
D [25/Oct/2023:10:42:40 +0200] [Client 189] POST / HTTP/1.1
D [25/Oct/2023:10:42:40 +0200] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [25/Oct/2023:10:42:40 +0200] [Client 189] Read: status=200, state=6
D [25/Oct/2023:10:42:40 +0200] [Client 189] No authentication data provided.
D [25/Oct/2023:10:42:40 +0200] [Client 189] 2.0 CUPS-Get-Printers 2
D [25/Oct/2023:10:42:40 +0200] CUPS-Get-Printers
D [25/Oct/2023:10:42:40 +0200] CUPS-Get-Printers client-error-not-found: No destinations added.
D [25/Oct/2023:10:42:40 +0200] [Client 189] Returning IPP client-error-not-found for CUPS-Get-Printers (no URI) from localhost.
D [25/Oct/2023:10:42:40 +0200] [Client 189] Content-Length: 116
D [25/Oct/2023:10:42:40 +0200] [Client 189] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [25/Oct/2023:10:42:40 +0200] [Client 189] con->http=0x55d65e68acb0
D [25/Oct/2023:10:42:40 +0200] [Client 189] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=116, response=0x55d65e6a9b10(IPP_STATE_DATA), pipe_pid=0, file=-1
D [25/Oct/2023:10:42:40 +0200] [Client 189] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [25/Oct/2023:10:42:40 +0200] [Client 189] bytes=0, http_state=0, data_remaining=116
D [25/Oct/2023:10:42:40 +0200] [Client 189] Flushing write buffer.
D [25/Oct/2023:10:42:40 +0200] [Client 189] New state is HTTP_STATE_WAITING
D [25/Oct/2023:10:42:40 +0200] [Client 189] Waiting for request.
D [25/Oct/2023:10:42:40 +0200] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [25/Oct/2023:10:42:40 +0200] [CGI] cgiSetVariable: TOTAL=\"0\"
D [25/Oct/2023:10:42:40 +0200] [CGI] cgiSetVariable: THISURL=\"/printers/\"
D [25/Oct/2023:10:42:40 +0200] [Client 180] CGI data ready to be sent.
D [25/Oct/2023:10:42:40 +0200] [Client 180] con->http=0x55d65e5e6080
D [25/Oct/2023:10:42:40 +0200] [Client 180] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=90609, file=13
D [25/Oct/2023:10:42:40 +0200] [Client 180] Waiting for CGI data.
D [25/Oct/2023:10:42:40 +0200] [Client 180] con->http=0x55d65e5e6080
D [25/Oct/2023:10:42:40 +0200] [Client 180] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=90609, file=13
D [25/Oct/2023:10:42:40 +0200] [Client 180] Waiting for CGI data.
D [25/Oct/2023:10:42:40 +0200] [Client 180] CGI data ready to be sent.
D [25/Oct/2023:10:42:40 +0200] [Client 180] con->http=0x55d65e5e6080
D [25/Oct/2023:10:42:40 +0200] [Client 180] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=90609, file=13
D [25/Oct/2023:10:42:40 +0200] [Client 180] Waiting for CGI data.
D [25/Oct/2023:10:42:40 +0200] [Client 180] con->http=0x55d65e5e6080
D [25/Oct/2023:10:42:40 +0200] [Client 180] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=90609, file=13
D [25/Oct/2023:10:42:40 +0200] [Client 180] Waiting for CGI data.
D [25/Oct/2023:10:42:40 +0200] [Client 189] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [25/Oct/2023:10:42:40 +0200] [Client 189] Closing connection.
D [25/Oct/2023:10:42:40 +0200] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [25/Oct/2023:10:42:40 +0200] [Client 180] CGI data ready to be sent.
D [25/Oct/2023:10:42:40 +0200] PID 90609 (/usr/lib/cups/cgi-bin/printers.cgi) exited with no errors.
D [25/Oct/2023:10:42:40 +0200] [Client 180] con->http=0x55d65e5e6080
D [25/Oct/2023:10:42:40 +0200] [Client 180] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=90609, file=13
D [25/Oct/2023:10:42:40 +0200] [Client 180] Waiting for CGI data.
D [25/Oct/2023:10:42:40 +0200] [Client 180] Sending 0-length chunk.
D [25/Oct/2023:10:42:40 +0200] [Client 180] Flushing write buffer.
D [25/Oct/2023:10:42:40 +0200] [Client 180] New state is HTTP_STATE_WAITING
D [25/Oct/2023:10:42:40 +0200] [Client 180] Waiting for request.
D [25/Oct/2023:10:42:40 +0200] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [25/Oct/2023:10:42:50 +0200] [Client 180] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [25/Oct/2023:10:42:50 +0200] [Client 180] Closing connection.
D [25/Oct/2023:10:42:50 +0200] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
I [25/Oct/2023:10:43:06 +0200] Saving printers.conf...
I [25/Oct/2023:10:43:06 +0200] Generating printcap /etc/printcap...
D [25/Oct/2023:10:43:06 +0200] cupsdSetBusyState: newbusy="Not busy", busy="Dirty files"
D [25/Oct/2023:10:43:06 +0200] Report: clients=0
D [25/Oct/2023:10:43:06 +0200] Report: jobs=1
D [25/Oct/2023:10:43:06 +0200] Report: jobs-active=0
D [25/Oct/2023:10:43:06 +0200] Report: printers=0
D [25/Oct/2023:10:43:06 +0200] Report: stringpool-string-count=318
D [25/Oct/2023:10:43:06 +0200] Report: stringpool-alloc-bytes=3832
D [25/Oct/2023:10:43:06 +0200] Report: stringpool-total-bytes=4440

The most interesting thing i found was the ipp test with ipp tool:

$ ipptool -tv ipp://Kyocera%20FS-4200DN._ipp._tcp.local/ ipp-everywhere.test
"/usr/share/cups/ipptool/ipp-1.1.test":
    Get-Printer-Attributes:
        attributes-charset (charset) = utf-8
        attributes-natural-language (naturalLanguage) = en
        printer-uri (uri) = ipp://KMA518F8.local:631/ipp/print
    RFC 8011 section 4.1.1: Bad request-id value 0                       [PASS]
        RECEIVED: 75 bytes in response
        status-code = client-error-bad-request (client-error-bad-request)
        attributes-charset (charset) = utf-8
        attributes-natural-language (naturalLanguage) = en-us
    Get-Printer-Attributes:
    RFC 8011 section 4.1.4: No Operation Attributes                      [PASS]
        RECEIVED: 75 bytes in response
        status-code = client-error-bad-request (client-error-bad-request)
        attributes-charset (charset) = utf-8
        attributes-natural-language (naturalLanguage) = en-us
    Get-Printer-Attributes:
        attributes-charset (charset) = utf-8
        printer-uri (uri) = ipp://KMA518F8.local:631/ipp/print
    RFC 8011 section 4.1.4: attributes-charset                           [PASS]
        RECEIVED: 75 bytes in response
        status-code = client-error-bad-request (client-error-bad-request)
        attributes-charset (charset) = utf-8
        attributes-natural-language (naturalLanguage) = en-us
    Get-Printer-Attributes:
        attributes-natural-language (naturalLanguage) = en
        printer-uri (uri) = ipp://KMA518F8.local:631/ipp/print
    RFC 8011 section 4.1.4: attributes-natural-language                  [PASS]
        RECEIVED: 72 bytes in response
        status-code = client-error-bad-request (client-error-bad-request)
        attributes-charset (charset) = utf-8
        attributes-natural-language (naturalLanguage) = en
    Get-Printer-Attributes:
        attributes-natural-language (naturalLanguage) = en
        attributes-charset (charset) = utf-8
        printer-uri (uri) = ipp://KMA518F8.local:631/ipp/print
    RFC 8011 section 4.1.4: attributes-natural-language + attributes-cha [PASS]
        RECEIVED: 72 bytes in response
        status-code = client-error-bad-request (client-error-bad-request)
        attributes-charset (charset) = utf-8
        attributes-natural-language (naturalLanguage) = en
    Get-Printer-Attributes:
        attributes-charset (charset) = utf-8
        attributes-natural-language (naturalLanguage) = en
        printer-uri (uri) = ipp://KMA518F8.local:631/ipp/print
    RFC 8011 section 4.1.4: attributes-charset + attributes-natural-lang [FAIL]
        RECEIVED: 0 bytes in response
        status-code = server-error-internal-error (Unable to read response.)
        IPP request failed with status server-error-internal-error (Unable to read response.)
"/usr/share/cups/ipptool/ipp-2.0.test":
    Get-Printer-Attributes:
        attributes-charset (charset) = utf-8
        attributes-natural-language (naturalLanguage) = en
        printer-uri (uri) = ipp://KMA518F8.local:631/ipp/print
        requesting-user-name (nameWithoutLanguage) = angelo
        document-format (mimeMediaType) = application/octet-stream
    PWG 5100.12 section 6.2 - Required Printer Description Attributes    [FAIL]
        RECEIVED: 0 bytes in response
        status-code = server-error-internal-error (Unable to read response.)
        IPP request failed with status server-error-internal-error (Unable to read response.)
"/usr/share/cups/ipptool/ipp-everywhere.test":
    Get-Printer-Attributes:
        attributes-charset (charset) = utf-8
        attributes-natural-language (naturalLanguage) = en
        printer-uri (uri) = ipp://KMA518F8.local:631/ipp/print
        requesting-user-name (nameWithoutLanguage) = angelo
        document-format (mimeMediaType) = application/octet-stream
        requested-attributes (1setOf keyword) = all,media-col-database
    PWG 5100.14 section 5.1/5.2 - Required Operations and Attributes     [FAIL]
        RECEIVED: 0 bytes in response
        status-code = server-error-internal-error (Unable to read response.)
        IPP request failed with status server-error-internal-error (Unable to read response.)

It seems the printer doesn't support IPP 2.0 at all and there is one failed test for IPP 1.1.
I assume that is the issue, but i don't know what to do with this and where to go from here.

Any help would be appreciated.

Offline

#2 2023-10-25 20:01:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,422

Re: "Unable to get printer status." with Kyocera FS-4200DN

https://www.openprinting.org/printer/Ky … -FS-4200DN - though those are old (there's deb and rpm, no need for snap)
https://aur.archlinux.org/packages?O=0&K=kyocera
https://aur.archlinux.org/packages/kyocera-cups has your model as comment in the PKGBUILD, so might be worth a shot:/

Offline

Board footer

Powered by FluxBB