implicitclass printer stuck with cups-browsed-dest-printer option not found

Đang mở
#56 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
c
Lĩnh vực
backend

Hướng nghiên cứu

Bắt đầu từ backend implicitclass được hiển thị trong log và kiểm tra cách nó đọc tùy chọn cups-browsed-dest-printer cũng như lấy host đích. Tái hiện lỗi của Brother_HL_L2460DW khi cups-browsed đang chạy, sau đó xác minh rằng các job đang xếp hàng đến được máy in được phát hiện mà không thay đổi URI thành ipp. Issue không nêu tên tệp nguồn hoặc test nào.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Describe the bug

A Brother L2460DW printer discovered via cups-browsed.
When printing any document, the job is added to the queue but does not print.
After a minute the printer enters paused state, with status

"No destination host name supplied by cups-browsed for printer "Brother_HL_L2460DW", is cups-browsed running?"

I can work around it by temporarily modifying the printer's URI to use the ipp protocol instead. This allows me to print but the configuration is overwritten after a while, presumably by cups-browsed.

System Information:

  • OS: Debian forky/sid amd64
    cups 2.4.16-1
    cups-browsed 1.28.17-7

Additional context

Logs repeatedly say

D [09/Mar/2026:23:25:58 -0400] [Job 23] Read cups-browsed-dest-printer option: Option not found

Partial debug logs when trying to print a test page from the CUPS web interface

 [09/Mar/2026:23:25:58 -0400] [Job 23] 4 filters for job:
D [09/Mar/2026:23:25:58 -0400] [Job 23] bannertopdf (application/vnd.cups-pdf-banner to application/pdf, cost 32)
D [09/Mar/2026:23:25:58 -0400] [Job 23] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [09/Mar/2026:23:25:58 -0400] [Job 23] - (application/vnd.cups-pdf to printer/Brother_HL_L2460DW/application/pdf, cost 0)
D [09/Mar/2026:23:25:58 -0400] [Job 23] - (printer/Brother_HL_L2460DW/application/pdf to printer/Brother_HL_L2460DW, cost 0)
D [09/Mar/2026:23:25:58 -0400] [Job 23] job-sheets=none,none
D [09/Mar/2026:23:25:58 -0400] [Job 23] argv[0]="Brother_HL_L2460DW"
D [09/Mar/2026:23:25:58 -0400] [Job 23] argv[1]="23"
D [09/Mar/2026:23:25:58 -0400] [Job 23] argv[2]="marcus"
D [09/Mar/2026:23:25:58 -0400] [Job 23] argv[3]="Test Page"
D [09/Mar/2026:23:25:58 -0400] [Job 23] argv[4]="1"
D [09/Mar/2026:23:25:58 -0400] [Job 23] argv[5]="job-uuid=urn:uuid:a2b87d3b-3ba4-379c-5941-79f89e3fc74f cups-browsed finishings=0 media=na_letter_8.5x11in number-up=1 orientation-requested=0 output-bin=face-down print-color-mode=monochrome print-quality=0 printer-resolution=1200x1200dpi sides=one-sided job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1773113154 time-at-processing=1773113158 ColorModel=Gray Duplex=None OutputBin=FaceDown PageSize=Letter"
D [09/Mar/2026:23:25:58 -0400] [Job 23] argv[6]="/var/spool/cups/d00023-001"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[3]="CUPS_REQUESTROOT=/var/spool/cups"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[4]="CUPS_SERVERBIN=/usr/lib/cups"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[5]="CUPS_SERVERROOT=/etc/cups"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[6]="CUPS_STATEDIR=/run/cups"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[7]="HOME=/var/spool/cups/tmp"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[8]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[9]="SERVER_ADMIN=root@mini"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[10]="SOFTWARE=CUPS/2.4.16"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[11]="TMPDIR=/var/spool/cups/tmp"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[12]="USER=root"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[13]="CUPS_MAX_MESSAGE=2047"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[14]="CUPS_SERVER=/run/cups/cups.sock"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[15]="CUPS_ENCRYPTION=IfRequested"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[16]="IPP_PORT=631"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[17]="CHARSET=utf-8"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[18]="LANG=en_US.UTF-8"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[19]="PPD=/etc/cups/ppd/Brother_HL_L2460DW.ppd"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[20]="CONTENT_TYPE=application/vnd.cups-pdf-banner"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[21]="DEVICE_URI=implicitclass://Brother_HL_L2460DW/"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[22]="PRINTER_INFO=Brother_HL_L2460DW"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[23]="PRINTER_LOCATION="
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[24]="PRINTER=Brother_HL_L2460DW"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[25]="PRINTER_STATE_REASONS=none"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[26]="CUPS_FILETYPE=document"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[27]="FINAL_CONTENT_TYPE=application/pdf"
D [09/Mar/2026:23:25:58 -0400] [Job 23] envp[28]="AUTH_I****"
I [09/Mar/2026:23:25:58 -0400] [Job 23] Started filter /usr/lib/cups/filter/bannertopdf (PID 1798999)
I [09/Mar/2026:23:25:58 -0400] [Job 23] Started filter /usr/lib/cups/filter/pdftopdf (PID 1799000)
I [09/Mar/2026:23:25:58 -0400] [Job 23] Started backend /usr/lib/cups/backend/implicitclass (PID 1799001)
D [09/Mar/2026:23:25:58 -0400] cupsdMarkDirty(----S)
D [09/Mar/2026:23:25:58 -0400] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Dirty files"
D [09/Mar/2026:23:25:58 -0400] [Notifier] state=3
D [09/Mar/2026:23:25:58 -0400] [Notifier] state=3
D [09/Mar/2026:23:25:58 -0400] [Notifier] state=3
D [09/Mar/2026:23:25:58 -0400] [Notifier] state=3
D [09/Mar/2026:23:25:58 -0400] [Notifier] state=3
D [09/Mar/2026:23:25:58 -0400] [Notifier] state=3
D [09/Mar/2026:23:25:58 -0400] [Job 23] pdftopdf: Last filter determined by the PPD: -; FINAL_CONTENT_TYPE: application/pdf => pdftopdf will log pages in page_log.
D [09/Mar/2026:23:25:58 -0400] [Job 23] PDF template file doesn\'t have form. It\'s okay.
D [09/Mar/2026:23:25:58 -0400] [Job 23] PID 1798999 (/usr/lib/cups/filter/bannertopdf) exited with no errors.
D [09/Mar/2026:23:25:58 -0400] cupsdSetBusyState: newbusy="Active clients, printing jobs, and dirty files", busy="Printing jobs and dirty files"
D [09/Mar/2026:23:25:58 -0400] [Client 29] Server address is "/run/cups/cups.sock".
D [09/Mar/2026:23:25:58 -0400] [Client 29] Accepted from localhost (Domain)
D [09/Mar/2026:23:25:58 -0400] [Client 29] Waiting for request.
D [09/Mar/2026:23:25:58 -0400] [Client 29] POST / HTTP/1.1
D [09/Mar/2026:23:25:58 -0400] cupsdSetBusyState: newbusy="Active clients, printing jobs, and dirty files", busy="Active clients, printing jobs, and dirty files"
D [09/Mar/2026:23:25:58 -0400] [Client 29] Read: status=200, state=6
D [09/Mar/2026:23:25:58 -0400] [Client 29] No authentication data provided.
D [09/Mar/2026:23:25:58 -0400] [Client 29] 2.0 Get-Printer-Attributes 1
D [09/Mar/2026:23:25:58 -0400] Get-Printer-Attributes ipp://localhost:631/printers/Brother_HL_L2460DW
D [09/Mar/2026:23:25:58 -0400] [Client 29] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost:631/printers/Brother_HL_L2460DW) from localhost.
D [09/Mar/2026:23:25:58 -0400] [Client 29] Content-Length: 1127
D [09/Mar/2026:23:25:58 -0400] [Client 29] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [09/Mar/2026:23:25:58 -0400] [Client 29] con->http=0x55983a0cd090
D [09/Mar/2026:23:25:58 -0400] [Client 29] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=1127, response=0x55983a12d520(IPP_STATE_DATA), pipe_pid=0, file=-1
D [09/Mar/2026:23:25:58 -0400] [Client 29] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [09/Mar/2026:23:25:58 -0400] [Client 29] bytes=0, http_state=0, data_remaining=1127
D [09/Mar/2026:23:25:58 -0400] [Client 29] Flushing write buffer.
D [09/Mar/2026:23:25:58 -0400] [Client 29] New state is HTTP_STATE_WAITING
D [09/Mar/2026:23:25:58 -0400] [Client 29] Waiting for request.
D [09/Mar/2026:23:25:58 -0400] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Active clients, printing jobs, and dirty files"
D [09/Mar/2026:23:25:58 -0400] [Job 23] PDF interactive form and annotation flattening done via QPDF
D [09/Mar/2026:23:25:58 -0400] [Job 23] pdftopdf: \"print-scaling\" IPP attribute: auto
D [09/Mar/2026:23:25:58 -0400] [Job 23] pdftopdf: Print scaling mode: Do not scale, center, crop if needed
D [09/Mar/2026:23:25:58 -0400] [Job 23] After Cropping: 612.000000 792.000000 612.000000 792.000000
D [09/Mar/2026:23:25:58 -0400] [Job 23] PAGE: 1 1
D [09/Mar/2026:23:25:58 -0400] cupsdMarkDirty(----S)
D [09/Mar/2026:23:25:58 -0400] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [09/Mar/2026:23:25:58 -0400] cupsdMarkDirty(---J-)
D [09/Mar/2026:23:25:58 -0400] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [09/Mar/2026:23:25:58 -0400] [Notifier] state=3
D [09/Mar/2026:23:25:58 -0400] [Notifier] state=3
D [09/Mar/2026:23:25:58 -0400] [Notifier] state=3
D [09/Mar/2026:23:25:58 -0400] [Job 23] Read cups-browsed-dest-printer option: Option not found
...
D [09/Mar/2026:23:26:58 -0400] [Job 23] PID 1799001 (/usr/lib/cups/backend/implicitclass) stopped with status 4.
D [09/Mar/2026:23:26:58 -0400] [Job 23] PID 1799000 (/usr/lib/cups/filter/pdftopdf) did not catch or ignore signal 13.
W [09/Mar/2026:23:26:58 -0400] [Job 23] Backend implicitclass returned status 4 (stop printer)
...
 [09/Mar/2026:23:26:58 -0400] [Job 23] printer-state=5(stopped)
D [09/Mar/2026:23:26:58 -0400] [Job 23] printer-state-message="No destination host name supplied by cups-browsed for printer "Brother_HL_L2460DW", is cups-browsed running?"
D [09/Mar/2026:23:26:58 -0400] [Job 23] printer-state-reasons=paused
Ngôn ngữ chính
C
Star
51
Fork
21
Merge trung bình
22 giờ 49 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OpenPrinting/cups-browsed

Tất cả issue của OpenPrinting/cups-browsed

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.