* bug#32296: cups not started
@ 2018-07-28 13:10 Gnu Röoty
2018-08-01 13:59 ` Oleg Pykhalov
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Gnu Röoty @ 2018-07-28 13:10 UTC (permalink / raw)
To: 32296
[-- Attachment #1: Type: text/plain, Size: 333 bytes --]
Hi I have a problem with the CUPS service.
I put the script
(service cups-service-type
(cups-configuration
(web-interface? #t)
(extensions
(list cups-filters hplip))))
and I have put in the 'use-service-module cups' and 'use-package-module
cups'
I upgrade my GuixSD with sudo -E guix system reconfigure /etc/config
but it's same.
[-- Attachment #2: Type: text/html, Size: 457 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#32296: cups not started
2018-07-28 13:10 bug#32296: cups not started Gnu Röoty
@ 2018-08-01 13:59 ` Oleg Pykhalov
2018-08-01 18:05 ` Gnu Röoty
2018-08-02 7:05 ` bug#32296: Gnu Röoty
2 siblings, 0 replies; 8+ messages in thread
From: Oleg Pykhalov @ 2018-08-01 13:59 UTC (permalink / raw)
To: Gnu Röoty; +Cc: 32296
[-- Attachment #1: Type: text/plain, Size: 1777 bytes --]
Hello,
Gnu Röoty <walidslack@gmail.com> writes:
> Hi I have a problem with the CUPS service.
What is the problem?
Does ‘sudo herd status cups’ tells the service is not started?
What about listening ports and running process?
Does ‘netstat’ response is differ for you?
--8<---------------cut here---------------start------------->8---
$ sudo netstat -plunt | grep cups
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 459/cupsd
tcp6 0 0 ::1:631 :::* LISTEN 459/cupsd
--8<---------------cut here---------------end--------------->8---
And ‘pgrep’?
--8<---------------cut here---------------start------------->8---
$ pgrep -fa cups
459 /gnu/store/4f5309lrqj4y4r0zajbgkja610gxg2z2-cups-2.2.8/sbin/cupsd -f -c /gnu/store/7fwyhl7j4ims62lfysjrzvlr8pb1x67v-cupsd.conf -s /gnu/store/za00ywd2app6a8pw4hrcgwzcy18sgana-cups-files.conf
--8<---------------cut here---------------end--------------->8---
> I put the script
>
> (service cups-service-type
> (cups-configuration
> (web-interface? #t)
> (extensions
> (list cups-filters hplip))))
>
> and I have put in the 'use-service-module cups' and 'use-package-module
> cups'
The snippet look legit. Could you post your full system ‘config.scm’?
> I upgrade my GuixSD with sudo -E guix system reconfigure /etc/config
> but it's same.
I run a ‘sudo -E guix system reconfigure /etc/config’ command [1] to
reconfigure my system, too. Did you run ‘guix pull’ before [1] command?
What does ‘guix --version’ tell?
Do logs contain useful information (‘/var/log/messages’ and
‘/var/log/cups/access_log’, ‘/var/log/cups/error_log’ files)?
Thanks,
Oleg.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#32296: cups not started
2018-07-28 13:10 bug#32296: cups not started Gnu Röoty
2018-08-01 13:59 ` Oleg Pykhalov
@ 2018-08-01 18:05 ` Gnu Röoty
2018-08-01 21:50 ` Oleg Pykhalov
2018-08-02 7:05 ` bug#32296: Gnu Röoty
2 siblings, 1 reply; 8+ messages in thread
From: Gnu Röoty @ 2018-08-01 18:05 UTC (permalink / raw)
To: 32296
[-- Attachment #1: Type: text/plain, Size: 1869 bytes --]
Yeah I have herd status but I dont find the service cups.
I did guix pull before sudo -E guix system reconfigure /etc/config.scm
The command guix --version tell that,
guix (GNU Guix) 2207053542f293980266ab77c920fcd8de2f961b
Here my config.scm :
(use-modules (gnu) (gnu system nss))
(use-service-modules desktop networking dbus cups)
(use-package-modules certs mate wicd glib cups)
(service cups-service-type
(cups-configuration
(web-interface? #t)
(extensions
(list cups-filters hplip))))
(operating-system
(host-name "x200")
(timezone "Europe/Paris")
(locale "fr_FR.utf8")
;; Use the UEFI variant of GRUB with the EFI System
;; Partition mounted on /boot/efi.
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/sda")))
(file-systems (cons (file-system
(device (file-system-label "GnuOS"))
(mount-point "/")
(type "ext4"))
%base-file-systems))
(users (cons (user-account
(name "walid")
(comment "")
(group "users")
(supplementary-groups '("wheel" "netdev"
"audio" "video"))
(home-directory "/home/walid"))
%base-user-accounts))
;; This is where we specify system-wide packages.
(packages (cons* nss-certs ;for HTTPS access
%base-packages))
;; Add GNOME and/or Xfce---we can choose at the log-in
;; screen with F1. Use the "desktop" services, which
;; include the X11 log-in service, networking with
;; NetworkManager, and more.
(services (cons* (mate-desktop-service)
%desktop-services))
;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss))
[-- Attachment #2: Type: text/html, Size: 2596 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#32296: cups not started
2018-08-01 18:05 ` Gnu Röoty
@ 2018-08-01 21:50 ` Oleg Pykhalov
0 siblings, 0 replies; 8+ messages in thread
From: Oleg Pykhalov @ 2018-08-01 21:50 UTC (permalink / raw)
To: Gnu Röoty; +Cc: 32296
[-- Attachment #1: Type: text/plain, Size: 600 bytes --]
Gnu Röoty <walidslack@gmail.com> writes:
[…]
> Here my config.scm :
[…]
> (service cups-service-type
> (cups-configuration
> (web-interface? #t)
> (extensions
> (list cups-filters hplip))))
This ‘(service cups-service-type …)’ should be inside the ‘(services
(cons* HERE))’.
> (operating-system
> …
> (services (cons* (mate-desktop-service)
> %desktop-services))
>
> ;; Allow resolution of '.local' host names with mDNS.
> (name-service-switch %mdns-host-lookup-nss))
Then don't forget to reconfigure your GuixSD.
Oleg.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#32296:
2018-07-28 13:10 bug#32296: cups not started Gnu Röoty
2018-08-01 13:59 ` Oleg Pykhalov
2018-08-01 18:05 ` Gnu Röoty
@ 2018-08-02 7:05 ` Gnu Röoty
2018-08-02 7:45 ` bug#32296: Oleg Pykhalov
2018-08-02 7:51 ` bug#32296: Martin Castillo
2 siblings, 2 replies; 8+ messages in thread
From: Gnu Röoty @ 2018-08-02 7:05 UTC (permalink / raw)
To: 32296
[-- Attachment #1: Type: text/plain, Size: 570 bytes --]
I did that and I have this error,
(use-modules (gnu) (gnu system nss))
(use-service-modules desktop networking dbus cups)
(use-package-modules certs mate wicd glib cups)
(services (cons* (service-cups-service-type
(cups-configuration
(web-interface? #t)
(extensions
(list cups-filters htplip))))))
(operating-system
(host-name "x200")
(timezone "Europe/Paris")
(locale "fr_FR.utf8")
sudo -E guix system reconfigure /etc/config.scm
/etc/config.scm:7:0: erreur : services : variable non liée
conseil : Auriez-vous oublié un `use-modules' ?
[-- Attachment #2: Type: text/html, Size: 686 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#32296:
2018-08-02 7:05 ` bug#32296: Gnu Röoty
@ 2018-08-02 7:45 ` Oleg Pykhalov
2018-08-02 7:51 ` bug#32296: Martin Castillo
1 sibling, 0 replies; 8+ messages in thread
From: Oleg Pykhalov @ 2018-08-02 7:45 UTC (permalink / raw)
To: Gnu Röoty; +Cc: 32296
[-- Attachment #1: Type: text/plain, Size: 1036 bytes --]
Hello,
No, you had (services …) inside (operating-system …). E.g. a line 47 in
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/system/examples/bare-bones.tmpl?h=master#n47
Gnu Röoty <walidslack@gmail.com> writes:
[…]
Should be like this:
--8<---------------cut here---------------start------------->8---
(use-modules (gnu) (gnu system nss))
(use-service-modules desktop networking dbus cups)
(use-package-modules certs mate wicd glib cups)
(operating-system
(host-name "x200")
(timezone "Europe/Paris")
(locale "fr_FR.utf8")
;; Other configuration …
(services (cons* (mate-desktop-service)
(service cups-service-type
(cups-configuration
(web-interface? #t)
(extensions
(list cups-filters htplip))))
%desktop-services))
;; Other configuration …
)
--8<---------------cut here---------------end--------------->8---
Oleg.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#32296:
2018-08-02 7:05 ` bug#32296: Gnu Röoty
2018-08-02 7:45 ` bug#32296: Oleg Pykhalov
@ 2018-08-02 7:51 ` Martin Castillo
2018-08-02 12:33 ` bug#32296: Andreas Enge
1 sibling, 1 reply; 8+ messages in thread
From: Martin Castillo @ 2018-08-02 7:51 UTC (permalink / raw)
To: 32296, walidslack
Am 2. August 2018 09:05:51 MESZ schrieb "Gnu Röoty" <walidslack@gmail.com>:
>I did that and I have this error,
>
>(use-modules (gnu) (gnu system nss))
>(use-service-modules desktop networking dbus cups)
>(use-package-modules certs mate wicd glib cups)
>
>(services (cons* (service-cups-service-type
>(cups-configuration
>(web-interface? #t)
>(extensions
>(list cups-filters htplip))))))
>
>(operating-system
> (host-name "x200")
> (timezone "Europe/Paris")
> (locale "fr_FR.utf8")
>
>sudo -E guix system reconfigure /etc/config.scm
>/etc/config.scm:7:0: erreur : services : variable non liée
>conseil : Auriez-vous oublié un `use-modules' ?
The (services) field belongs into (operating-system) like (locale) etc.
Martin
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#32296:
2018-08-02 7:51 ` bug#32296: Martin Castillo
@ 2018-08-02 12:33 ` Andreas Enge
0 siblings, 0 replies; 8+ messages in thread
From: Andreas Enge @ 2018-08-02 12:33 UTC (permalink / raw)
To: Martin Castillo; +Cc: walidslack, 32296-done
Hello,
it looks as if the provided answers solve the problem, so I am closing
this bug. It does not appear to be related to a bug in Guix in the end,
so if you still have problems getting things to work, I would suggest
sending a mail to help-guix@gnu.org .
Thanks,
Andreas
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2018-08-02 12:34 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-28 13:10 bug#32296: cups not started Gnu Röoty
2018-08-01 13:59 ` Oleg Pykhalov
2018-08-01 18:05 ` Gnu Röoty
2018-08-01 21:50 ` Oleg Pykhalov
2018-08-02 7:05 ` bug#32296: Gnu Röoty
2018-08-02 7:45 ` bug#32296: Oleg Pykhalov
2018-08-02 7:51 ` bug#32296: Martin Castillo
2018-08-02 12:33 ` bug#32296: Andreas Enge
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).