GNU bug report logs - #32296
cups not started

Previous Next

Package: guix;

Reported by: Gnu Röoty <walidslack <at> gmail.com>

Date: Sat, 28 Jul 2018 13:11:02 UTC

Severity: normal

Done: Andreas Enge <andreas <at> enge.fr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32296 in the body.
You can then email your comments to 32296 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#32296; Package guix. (Sat, 28 Jul 2018 13:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gnu Röoty <walidslack <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 28 Jul 2018 13:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gnu Röoty <walidslack <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: cups not started
Date: Sat, 28 Jul 2018 15:10:25 +0200
[Message part 1 (text/plain, inline)]
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.
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#32296; Package guix. (Wed, 01 Aug 2018 14:00:02 GMT) Full text and rfc822 format available.

Message #8 received at 32296 <at> debbugs.gnu.org (full text, mbox):

From: Oleg Pykhalov <go.wigust <at> gmail.com>
To: Gnu Röoty <walidslack <at> gmail.com>
Cc: 32296 <at> debbugs.gnu.org
Subject: Re: bug#32296: cups not started
Date: Wed, 01 Aug 2018 16:59:23 +0300
[Message part 1 (text/plain, inline)]
Hello,

Gnu Röoty <walidslack <at> 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.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#32296; Package guix. (Wed, 01 Aug 2018 18:06:01 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gnu Röoty <walidslack <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: Re: bug#32296: cups not started
Date: Wed, 1 Aug 2018 20:05:11 +0200
[Message part 1 (text/plain, inline)]
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))
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#32296; Package guix. (Wed, 01 Aug 2018 21:51:01 GMT) Full text and rfc822 format available.

Message #14 received at 32296 <at> debbugs.gnu.org (full text, mbox):

From: Oleg Pykhalov <go.wigust <at> gmail.com>
To: Gnu Röoty <walidslack <at> gmail.com>
Cc: 32296 <at> debbugs.gnu.org
Subject: Re: bug#32296: cups not started
Date: Thu, 02 Aug 2018 00:50:04 +0300
[Message part 1 (text/plain, inline)]
Gnu Röoty <walidslack <at> 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.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#32296; Package guix. (Thu, 02 Aug 2018 07:07:02 GMT) Full text and rfc822 format available.

Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gnu Röoty <walidslack <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: bug#32296
Date: Thu, 2 Aug 2018 09:05:51 +0200
[Message part 1 (text/plain, inline)]
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' ?
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#32296; Package guix. (Thu, 02 Aug 2018 07:46:02 GMT) Full text and rfc822 format available.

Message #20 received at 32296 <at> debbugs.gnu.org (full text, mbox):

From: Oleg Pykhalov <go.wigust <at> gmail.com>
To: Gnu Röoty <walidslack <at> gmail.com>
Cc: 32296 <at> debbugs.gnu.org
Subject: Re: bug#32296:
Date: Thu, 02 Aug 2018 10:45:01 +0300
[Message part 1 (text/plain, inline)]
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 <at> 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.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#32296; Package guix. (Thu, 02 Aug 2018 07:53:01 GMT) Full text and rfc822 format available.

Message #23 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Martin Castillo <castilma <at> uni-bremen.de>
To: bug-guix <at> gnu.org, Gnu Röoty <walidslack <at> gmail.com>,
 32296 <at> debbugs.gnu.org
Subject: Re: bug#32296:
Date: Thu, 02 Aug 2018 09:51:18 +0200
Am 2. August 2018 09:05:51 MESZ schrieb "Gnu Röoty" <walidslack <at> 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




Information forwarded to bug-guix <at> gnu.org:
bug#32296; Package guix. (Thu, 02 Aug 2018 07:53:02 GMT) Full text and rfc822 format available.

Reply sent to Andreas Enge <andreas <at> enge.fr>:
You have taken responsibility. (Thu, 02 Aug 2018 12:34:02 GMT) Full text and rfc822 format available.

Notification sent to Gnu Röoty <walidslack <at> gmail.com>:
bug acknowledged by developer. (Thu, 02 Aug 2018 12:34:02 GMT) Full text and rfc822 format available.

Message #31 received at 32296-done <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: Martin Castillo <castilma <at> uni-bremen.de>
Cc: walidslack <at> gmail.com, 32296-done <at> debbugs.gnu.org
Subject: Re: bug#32296:
Date: Thu, 2 Aug 2018 14:33:22 +0200
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 <at> gnu.org .

Thanks,

Andreas





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 31 Aug 2018 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 295 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.