Printing fails with "Unable to open print file"

オープン
#53 コメント 6 件 リアクション 0 件 担当者 1 名 GitHub で見る

@michaelrsweet がすでに取り組んでいます。

2025年5月7日 から。

評価

この issue はまだ評価されていません。

説明

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

主要言語
C
スター
51
フォーク
21
平均マージ
22時間 49分
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenPrinting/cups-browsed のほかの issue

OpenPrinting/cups-browsed の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。