unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* CUPS package woes
@ 2015-05-26  6:13 Alexander Shendi
  2015-05-26 20:46 ` Ricardo Wurmus
  2015-05-26 20:52 ` Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Shendi @ 2015-05-26  6:13 UTC (permalink / raw)
  To: guix-devel


Dear guix-devel,
 
I have some problems with the CUPS package.  I have made some progress since I complained on #guix last night.
But I'm still not able to print files.
 
At first the CUPS-daemon cupsd refused to start. I was able to solve this:
- I created groups ("lpadmin" "sys" "system") in my OS-template.
 
Now I can start cupsd as root, but when using either the web interface or lpadmin to
administrate printers I get an error message:
"lpadmin: Request Entity Too Large"
 
Googling I realized that this was CUPS' way to tell me it could not write to the spool directory
or the log files.
Indeed I found the following lines in /var/log/messages.
 
May 26 05:26:13 localhost cupsd: Unable to change ownership of "/gnu/store/543kjj82rf610fgnjgp938f0h4wnf4i6-cups-2.0.1/var/log/cups" - Read-only file system
May 26 05:26:13 localhost cupsd: Unable to open log file "/gnu/store/543kjj82rf610fgnjgp938f0h4wnf4i6-cups-2.0.1/var/log/cups/error_log" - Read-only file system
 
Apparently cupsd tries to write to some location within the store, which is mounted
read-only.
 
So what do I do about this? THanks in advance for any suggestions/help.
 
Best Regards,
 
Alexander
 
 
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: CUPS package woes
  2015-05-26  6:13 CUPS package woes Alexander Shendi
@ 2015-05-26 20:46 ` Ricardo Wurmus
  2015-05-26 20:52 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ricardo Wurmus @ 2015-05-26 20:46 UTC (permalink / raw)
  To: Alexander Shendi; +Cc: guix-devel


Alexander Shendi writes:

> Googling I realized that this was CUPS' way to tell me it could not write to the spool directory
> or the log files.
> Indeed I found the following lines in /var/log/messages.
>
> May 26 05:26:13 localhost cupsd: Unable to change ownership of "/gnu/store/543kjj82rf610fgnjgp938f0h4wnf4i6-cups-2.0.1/var/log/cups" - Read-only file system
> May 26 05:26:13 localhost cupsd: Unable to open log file "/gnu/store/543kjj82rf610fgnjgp938f0h4wnf4i6-cups-2.0.1/var/log/cups/error_log" - Read-only file system
>
> Apparently cupsd tries to write to some location within the store, which is mounted
> read-only.

The paths cupsd uses can be configured with etc/cups/cupsd.conf and
etc/cups/cups-files.conf.  I see that the socket listen path in the
first file is incorrect; the log file paths in the latter are also
referring to store paths, which is not okay.  The package recipe should
be updated to install configuration files with more appropriate paths.

(When I packaged CUPS initially I was only concerned with using its
development headers for IcedTea; I did not actually test printing.)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: CUPS package woes
  2015-05-26  6:13 CUPS package woes Alexander Shendi
  2015-05-26 20:46 ` Ricardo Wurmus
@ 2015-05-26 20:52 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2015-05-26 20:52 UTC (permalink / raw)
  To: Alexander Shendi; +Cc: guix-devel

"Alexander Shendi" <Alexander.Shendi@web.de> skribis:

> Indeed I found the following lines in /var/log/messages.
>  
> May 26 05:26:13 localhost cupsd: Unable to change ownership of "/gnu/store/543kjj82rf610fgnjgp938f0h4wnf4i6-cups-2.0.1/var/log/cups" - Read-only file system
> May 26 05:26:13 localhost cupsd: Unable to open log file "/gnu/store/543kjj82rf610fgnjgp938f0h4wnf4i6-cups-2.0.1/var/log/cups/error_log" - Read-only file system
>  
> Apparently cupsd tries to write to some location within the store, which is mounted
> read-only.

I think the solution is to add an extra configure flag in the ‘cups’
package recipe: --localstatedir=/var.

Let us know on #guix how it goes!

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-26 20:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-26  6:13 CUPS package woes Alexander Shendi
2015-05-26 20:46 ` Ricardo Wurmus
2015-05-26 20:52 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).