cups: "Can't create temporary file"

  • Done
  • quality assurance status badge
Details
3 participants
  • Danny Milosavljevic
  • Efraim Flashner
  • Ricardo Wurmus
Owner
unassigned
Submitted by
Danny Milosavljevic
Severity
normal

Debbugs page

Danny Milosavljevic wrote 5 years ago
(address . bug-guix@gnu.org)
20200517205441.6df39a00@scratchpost.org
Hi,

so I was trying to print something after a long time of not printing anything.

I got the error message "Can't creeate temporary file" in http://localhost:631.

The reason was that /var/spool/cups/tmp was

drwxr-xr-x 2 root lp tmp

when it should have been

drwxrwxr-x 2 root lp tmp

otherwise HP PSC 2170 wouldn't print.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl7BiIEACgkQ5xo1VCww
uqUbhwf/bpRkeHFvWKHUI1/0pj4F2eTPYkJZipkBrrzcq67bIkrDI5xk3lcNycoe
sciQk3OnpjXpfxNxK6xqLTihRS7pjAPvo9pmzzR3ePTqk2XUV/LoHaxWymPYdef6
T626k2q7m9+1GwJDXc6VO4SLFUqaLmqftSxYC3t4aVwrW9lBvgJaa27AmJbI0b9/
iR6gDWAzleQp8kWfq+OLlfcl2fk0b6v/A8jUjuT7+UVs8hwmRNBp6S9fffvwssGB
HD4kmgQZC5PkK4OTnTrT5odyS6HZeJxIoNI/Yst6HTLEV+rnS5refOE8w/qigBbH
D2orRBFJqqMijq2Lfu+bXTnL79fMcA==
=uytG
-----END PGP SIGNATURE-----


Efraim Flashner wrote 5 years ago
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 41367@debbugs.gnu.org)
20200517190528.GH31833@E5400
On Sun, May 17, 2020 at 08:54:57PM +0200, Danny Milosavljevic wrote:
Toggle quote (16 lines)
> Hi,
>
> so I was trying to print something after a long time of not printing anything.
>
> I got the error message "Can't creeate temporary file" in http://localhost:631 .
>
> The reason was that /var/spool/cups/tmp was
>
> drwxr-xr-x 2 root lp tmp
>
> when it should have been
>
> drwxrwxr-x 2 root lp tmp
>
> otherwise HP PSC 2170 wouldn't print.

The cups service, in (gnu services cups) line 916, creates
/var/spool/cups as #o755. Sounds like it should be #o775.


--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl7BivQACgkQQarn3Mo9
g1HxrQ//aJ6R7E4C7y21wQ7AXe83Y6Tt2R3+hKfJmaRPJFPiYkxoo7x1nXRZXyNA
YPu2dZ8fHyneJWRaZNUfoYlioQFAP8bw+NlZoF5BG37sIkza23WnqHX/5Zu5YKYh
hOHvxK1AtcQt3rZntH5+TlRfCtrBkpgaajPkW731rknhKbH/UmZELQUVzTyQoWla
ZTuZ7afVAdHbSl5UucRLJU4H/AZYwXSXNXlgfFXO70/pnTlWDwT0q53Sbmcvy2Pj
ty91XifNUfF58PfI3HvgQlcro6t7GjnEZfr1YcqeUf7bv8s4RO+Y+s5RPIPNmHkH
OsT0eKmOrTObcGSWQtOa5Wp5aO2S3cavobDztatuuiHOYfk33W5YBFVfdvM63uGy
b15pTfmK0jWv6Fr6r3YCZiaBPzM5p55AUVyUq3kjdFiB0mYfR+jAB2gij4goWFcF
XkA6XJrKDiGG/ugLaz3GFTbpp4d0IH4ltNIjP6tl3G1r4RxOj+6Ffd4p5mamG9uR
qIQKz0z10HBPqHtqWol8o9tHECEVPS4k36/Sm5/1c+cK8yvCfcbeY1JvmZToX8ev
k8vB+6FS1yb6ulupnwJ4lJ9B5MLBrCiQx5345XcCdQYTQlzNLe0TYzU4xcFa6t04
2/VGo1YV4tcPv1MRYDnrOAA5I10gcjmpjGbegHyBB5oVdU4gLeI=
=UsPo
-----END PGP SIGNATURE-----


Danny Milosavljevic wrote 5 years ago
20200517224218.7039bea4@scratchpost.org
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl7BoaoACgkQ5xo1VCww
uqXNKQf/TW/iKwwgeMmvEs1PNOhPzz0CKJLno0mmE5MKj3MkMEz42CHQFL2e/67K
vLmBNBk0q7LO38wGTbUwDROjvvlOvYh0Ilc0WyVdwp/p7OxF7i0BWnamL3DcWTab
nwtN2v+OoaO9L3eDcJMxDH2GX9i4CPKCHsELYjtvyQuyYS4grY2mNnF50vhpR3AJ
DIF7V/8WP6RRX7unWAxkv2munonVZsB28J3Wu/Suw2xP8ghw1ZPdakNsL301K1Yc
3I2jc6HCfb5Fx1MxbDoFsl94ZFoyFJTJfQBmQBMPyy9awz2hQ3fGUdqn1gRwtp+I
ZHmavs/qmtMIlh4YZ8F0ncUsQzac6w==
=8B58
-----END PGP SIGNATURE-----


Ricardo Wurmus wrote 5 years ago
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 41367@debbugs.gnu.org)
877dx9h7g1.fsf@elephly.net
Danny Milosavljevic <dannym@scratchpost.org> writes:

Toggle quote (4 lines)
> Found a previous bug report at
>
> https://lists.gnu.org/archive/html/bug-guix/2018-10/msg00177.html

Alternative URL:


I also ran into this problem and making the directory group-writable
fixed it.

--
Ricardo
Danny Milosavljevic wrote 5 years ago
(address . 41367@debbugs.gnu.org)
20200526155835.4b8808f4@scratchpost.org
On Sun, 17 May 2020 20:54:57 +0200
Danny Milosavljevic <dannym@scratchpost.org> wrote:

Toggle quote (12 lines)
> I got the error message "Can't creeate temporary file" in http://localhost:631.
>
> The reason was that /var/spool/cups/tmp was
>
> drwxr-xr-x 2 root lp tmp
>
> when it should have been
>
> drwxrwxr-x 2 root lp tmp
>
> otherwise HP PSC 2170 wouldn't print.

After fixing that, it eventually auto-broke again after some time.
Permissions automatically reverted to the former ones.

Endless error loop :P
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl7NIIsACgkQ5xo1VCww
uqU/8Qf9ElXWaoy2RYNke5jL2dW2I85o65p65B3aliBvHYY/XW8mN/rYSkqjtmT5
UFij7BGAuqdwN7DWwk2E4jIWLWuC1ZikE9pHCyqWimUiLD2Res9t8KWtEB5A/EXk
L7Qag+MOS78DW9wtjl7dpCYwO7TBV7YFcx6NnWMfoDmj8g7e7IDp98MMpohciLDc
8UeXmDE+9G1P1i8XtFrdcvANGL5U6fU/PU+m/ehNyp5Xs123AQrcm2yriUOvfW5D
osocG6j4LsKEHcBDB5ofpCnjqZKNuZS7thGaOViRDXjGgMatfcIza4CrqUNQ/0iU
C1DhRu/ECcZHOM7HVZ92jMRVqYNa1A==
=ReyD
-----END PGP SIGNATURE-----


Danny Milosavljevic wrote 5 years ago
(address . 41367-done@debbugs.gnu.org)
20200526160428.0c2b116e@scratchpost.org
Fixed in guix master commit 6ac7526e488ad3dd73080d1c00efe2066b1bf0a2.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl7NIewACgkQ5xo1VCww
uqXm2Qf/Zvuozqs+xQMy3rwxUcXh+j5bikH1Rq7YP86yqBZ0Ywhc7Fub/+UA0UQP
7nBjMG8NSUF4R7ZAJM+Zn+AhY7YUotg1/2ntH6o4ppq74kUdpNzuGsjxDMyXCOfT
mvpcvbabjvop1R1QO4onr7MqxIx7HENF8+74NeNH1X8Ei8JckXl7kNaTJuFpmGNE
3XAQHQkoHKPTlOowqwlCVuthaBPGrxrQ9OM8zKZU7UrKS7oyYhJpe5RGHCrdjSDB
Wnt7dOSHBMoQu+3Tqjz/xo4RUhL+6vlWUNTsfv11TFDPPhY+I2+HoPtnorKGsEUa
7brRyWoLlzwNEJwehcxkT6SArFut3Q==
=3jvx
-----END PGP SIGNATURE-----


Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 41367@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 41367
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help