Printing fails with "Unable to open print file"
@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
- 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ự
-
`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
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
OpenPrinting/cups#1826 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Backport to 3.0 advertises a suffix that does not existCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
389ds/389-ds-base#8152 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
RetroAchievements/rcheevos#580 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày