Printing fails with "Unable to open print file"

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

@michaelrsweet đang làm issue này rồi.

Từ ngày 7/5/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Hello,

I have a number of machines where printing failed with error "Unable to open print file". As this error message is not especially meaningful, I edited the cups source code (backend/ipp.c) so that additionally the full path of the print file, the name of the process trying to open the print file and the effective UID and GID of that process were given.

So, I found that the print file was a temporary file in /tmp, belonging to user root and group lp, but only readable by root; that the process is named in the scheme (all printers are imported from remote by cups-browsed)

ipp://$RemoteHost:$RemotePort/printers/$Printer

which was running with effective UID of the user trying to print and effective GID lp.

Of. course, the print file could not be opened with these permissions.

But I had another machine where printing worked, with almost the same configuration, and found that there, the process named ipp://$RemoteHost:$RemotePort/printers/$Printer was running with effective UID 0.

So, I deinstalled and then reinstalled all cups packages, deleted all cups-related caches and spools I could find, and somehow after some tests I thought that the problem was solved, but now I have the same again: process with effective UID != 0 trying to open file exclusively accessible by root cannot open the file.

What can I do?

CUPS 2.4.2

Regards
Christoph

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.