GNU bug report logs -
#65510
Errors trying to use home-dicod-service-type and home-syncthing-service-type
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 65510 in the body.
You can then email your comments to 65510 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
paren <at> disroot.org, andrew <at> trop.in, ludo <at> gnu.org, bug-guix <at> gnu.org
:
bug#65510
; Package
guix
.
(Thu, 24 Aug 2023 18:45:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Morgan Smith <Morgan.J.Smith <at> outlook.com>
:
New bug report received and forwarded. Copy sent to
paren <at> disroot.org, andrew <at> trop.in, ludo <at> gnu.org, bug-guix <at> gnu.org
.
(Thu, 24 Aug 2023 18:45:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello guix!
Thank you Ludovic for adding a way to map system services to home
services! This is very exciting. However, I can't seem to use some of
those services.
Take a look at this minimal example home configuration:
--8<---------------cut here---------------start------------->8---
(use-modules (gnu services)
(gnu home services dict)
(gnu home services syncthing)
(gnu home services mcron))
(home-environment
(services
(list
;; guix home: error: no target of type 'system' for service 'profile'
(service home-dicod-service-type)
;; guix home: error: no target of type 'system' for service 'profile'
(service home-syncthing-service-type)
;; works great!
(service home-mcron-service-type))))
--8<---------------cut here---------------end--------------->8---
Am I doing something wrong? Both the dicod and syncthing services give
me an error when running "guix home build". The mcron service works
fine though even though it is built using the same "for-home" stuff.
I'm not that comfortable with debugging services and I don't really know
where to start.
I used the "guix repl" to print out "(service home-dicod-service-type)"
and got this:
--8<---------------cut here---------------start------------->8---
$1 = #<<service> type: #<service-type home-dict 7f16dd2e3600> value: #<<dicod-configuration> dico: #<package dico <at> 2.11 gnu/packages/dico.scm:41 7f16dd2e9210> interfaces: ("localhost") handlers: () databases: (#<<dicod-database> name: "gcide" handler: "gcide" complex?: #f options: (#<gexp (string-append "dbdir=" #<gexp-input #<package gcide <at> 0.53 gnu/packages/dictionaries.scm:114 7f16de0644d0>:out> "/share/gcide") gnu/services/dict.scm:94:18 7f16dc110150> #<gexp (string-append "idxdir=" #<gexp-input #<<computed-file> name: "dicod-gcide-index" gexp: #<gexp (begin (use-modules (guix build utils)) (mkdir #<gexp-output out>) (invoke #<gexp-input native #<file-append #<package dico <at> 2.11 gnu/packages/dico.scm:41 7f16dd2e9210> "/libexec/idxgcide">:out> #<gexp-input native #<file-append #<package gcide <at> 0.53 gnu/packages/dictionaries.scm:114 7f16de0644d0> "/share/gcide">:out> #<gexp-output out>)) gnu/services/dict.scm:83:19 7f16dc1101b0> guile: #f options: (#:local-build? #t)>:out>) gnu/services/dict.scm:95:18 7f16dc110120>)>) home-service?: #t>>
--8<---------------cut here---------------end--------------->8---
Information forwarded
to
bug-guix <at> gnu.org
:
bug#65510
; Package
guix
.
(Tue, 29 Aug 2023 09:35:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 65510 <at> debbugs.gnu.org (full text, mbox):
Hi Morgan,
Morgan Smith <Morgan.J.Smith <at> outlook.com> skribis:
> (use-modules (gnu services)
> (gnu home services dict)
> (gnu home services syncthing)
> (gnu home services mcron))
>
> (home-environment
> (services
> (list
> ;; guix home: error: no target of type 'system' for service 'profile'
> (service home-dicod-service-type)
> ;; guix home: error: no target of type 'system' for service 'profile'
> (service home-syncthing-service-type)
Oops. The workaround is to explicitly add (gnu home services shepherd)
to the list of imported modules.
I’ll look for a proper fix.
Thanks for reporting the issue!
Ludo’.
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Tue, 29 Aug 2023 10:31:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Morgan Smith <Morgan.J.Smith <at> outlook.com>
:
bug acknowledged by developer.
(Tue, 29 Aug 2023 10:31:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 65510-done <at> debbugs.gnu.org (full text, mbox):
Hi,
Morgan Smith <Morgan.J.Smith <at> outlook.com> skribis:
> (use-modules (gnu services)
> (gnu home services dict)
> (gnu home services syncthing)
> (gnu home services mcron))
>
> (home-environment
> (services
> (list
> ;; guix home: error: no target of type 'system' for service 'profile'
> (service home-dicod-service-type)
> ;; guix home: error: no target of type 'system' for service 'profile'
> (service home-syncthing-service-type)
Fixed in cf6abf50dbbbd95fef465ab4bb3b608843ac47e1.
It’s not fully satisfactory though so this will need more thought.
Thanks,
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 26 Sep 2023 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 227 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.