CUPS get stuck after restart on active cups-browsed print jobs
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
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- c, linux, ubuntu
- Lĩnh vực
- operating-systems
Hướng nghiên cứu
Bắt đầu bằng cách xem xét các unit systemd của cups và cups-browsed, các log dịch vụ được báo cáo và trạng thái hàng đợi trong /var/spool/cups sau khi khởi động lại. Tái hiện lỗi trên Ubuntu 22.04 với một job cups-browsed đang hoạt động và so sánh hành vi khi từng daemon được khởi động lại. Được xem là hoàn tất khi các máy in đang trong hàng đợi khôi phục mà không có lỗi destination-host dai dẳng và không cần xóa các tệp spool.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
Printer queues getting stuck or disabled and sometimes yield a status message "No suitable destination host found by cups-browsed, retrying later" or "No destination host name supplied by cups-browsed for printer , is cups-browsed running?". Printing on other printer queues from cups-browsed works successful, at least most of the time.
We tried solving the problem by clearing all print queues on the affected workstations at first (stopping both daemons and clear printers.conf), but it didn't stop it. The patch https://github.com/OpenPrinting/cups-browsed/commit/57d9351ea45f47b3bd185f263b1e37d276cf17b8 from #23 didn't really solved it, too.
At the moment, I suspect a line of shell script in our configuration management (fai) which restarts the cups-browsed daemon after a configuration change.
To Reproduce
Steps to reproduce the behavior:
- Print a job to a printer queue managed by cups-browsed. Helpful if the print job is bigger than a few pages so you got more time to react.
- Wait till the program printed and the job is processed by CUPS.
- Restart the
cupsorcups-browsedsystemd unit. Both should result in some or an other error described above. - Printing again to the same queue yields to the same error. Maybe a single print job passes through, but the same error is excepted.
Expected behavior
Printing works even through restart from one of the responsible daemons or the avoidance of persisting the error.
System Information:
- OS: Ubuntu
- Version 22.04 LTS
cups-browsed and cups-filters are backported from Ubuntu mantic (Version 2.0.0-0ubuntu2) because of trouble in earlier versions in junction to our CUPS server on Debian 11.
Also added the patch https://github.com/OpenPrinting/cups-browsed/commit/57d9351ea45f47b3bd185f263b1e37d276cf17b8
Additional context
From my current understanding, it's a problem when CUPS want to print but cups-browsed hasn't detected the remote printer. It could be because of those cases:
- cups-browsed is in restart and therefor, printing isn't possible.
- CUPS started and have unfinished jobs from the previous run. The daemon tries to print but cups-browsed didn't detected the remote printers yet, so no target to print.
When restarting CUPS, these problematic printing queues persist while other queues appear after cups-browsed detected them. Don't know if thats just a CUPS problem because theres a print job for him also.
On most workstations that reported the problem, we found log messages that systemd killed the service at some time and cups-browsed reports the following message for all print queues at the next start:
Timeout happened during creation of the queue <name>, turn on DebugLogging for more info.
We now tried to temporarily solve this problem by the following systemd unit override for cups.service:
# /etc/systemd/system/cups.service.d/20-cups-jobs.conf
[Service]
ExecStartPre=/usr/bin/find /var/spool/cups -maxdepth 1 -type f -delete
It cleans the printing queue before the start so it wont trigger an undetected cups-browsed printer.
I can give feedback if this solves it. At least at the next restart.
Would be nice if cups-browsed would be more resilient with this.
- 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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenPrinting/cups-browsed
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 67/100
OpenPrinting/cups-browsed#82 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
OpenPrinting/cups-browsed#77 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
OpenPrinting/cups-browsed#76 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 50/100
OpenPrinting/cups-browsed#75 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
OpenPrinting/cups-browsed#71 ·
Tất cả issue của OpenPrinting/cups-browsed
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ChupathingyCE/chupathingyce#1550 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
redis/redis#16302 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
slice
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Life-Framework/Life-Framework#3878 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`sha256()` returns a wrong hash when libsql-ffi is built with gcc 11 or laterCó thể đã có người làm @colinhacks đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
tursodatabase/libsql#2333 ·
Maintainer thường phản hồi trong vòng 11 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100