unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#68415: User's shepherd services defined in guix home config can not start after guix pull.
@ 2024-01-13  5:15 Feng Shu
  2024-01-16  6:51 ` Sergey Trofimov
  0 siblings, 1 reply; 6+ messages in thread
From: Feng Shu @ 2024-01-13  5:15 UTC (permalink / raw)
  To: 68415


After I guix pull, services defined in guix home config can no start:

-------------------------
服务 root 已启动。
WARNING: Use of `load' in declarative module (#{ g117}#).  Add #:declarative? #f to your define-module invocation.
unbound-variable(#f "Unbound variable: ~S" (service) #f)

Some deprecated features have been used.  Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information.  Set it to "no" to suppress
this message.
Creating XDG user directories... done
Comparing /gnu/store/bfkgfz1sm9q75jyn56pav2kmwl48i7w8-home/profile/share/fonts and
          /gnu/store/bfkgfz1sm9q75jyn56pav2kmwl48i7w8-home/profile/share/fonts... done (same)
Evaluating on-change gexps.

-----------

When I run command: herd status, show error:

feng@Guix ~$ herd status
error: connect: /run/user/1000/shepherd/socket: No such file or directory




-- 





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

* bug#68415: User's shepherd services defined in guix home config can not start after guix pull.
  2024-01-13  5:15 bug#68415: User's shepherd services defined in guix home config can not start after guix pull Feng Shu
@ 2024-01-16  6:51 ` Sergey Trofimov
  2024-01-16 12:44   ` Feng Shu
  0 siblings, 1 reply; 6+ messages in thread
From: Sergey Trofimov @ 2024-01-16  6:51 UTC (permalink / raw)
  To: Feng Shu; +Cc: 68415

Feng Shu <tumashu@163.com> writes:

> After I guix pull, services defined in guix home config can no 
> start:
>
> -------------------------
> 服务 root 已启动。
> WARNING: Use of `load' in declarative module (#{ g117}#).  Add 
> #:declarative? #f to your define-module invocation.
> unbound-variable(#f "Unbound variable: ~S" (service) #f)
>
> Some deprecated features have been used.  Set the environment
> variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
> program to get more information.  Set it to "no" to suppress
> this message.
> Creating XDG user directories... done
> Comparing 
> /gnu/store/bfkgfz1sm9q75jyn56pav2kmwl48i7w8-home/profile/share/fonts 
> and
>           /gnu/store/bfkgfz1sm9q75jyn56pav2kmwl48i7w8-home/profile/share/fonts... 
>           done (same)
> Evaluating on-change gexps.
>
> -----------
>
> When I run command: herd status, show error:
>
> feng@Guix ~$ herd status
> error: connect: /run/user/1000/shepherd/socket: No such file or 
> directory

Have you tried debugging it? Is your home shepherd running? Do you 
see shepherd mentions in ~/.guix-home/on-first-login?
Have you tried restarting your system?




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

* bug#68415: User's shepherd services defined in guix home config can not start after guix pull.
  2024-01-16  6:51 ` Sergey Trofimov
@ 2024-01-16 12:44   ` Feng Shu
  2024-01-17  7:04     ` Sergey Trofimov
  0 siblings, 1 reply; 6+ messages in thread
From: Feng Shu @ 2024-01-16 12:44 UTC (permalink / raw)
  To: Sergey Trofimov; +Cc: 68415

Sergey Trofimov <sarg@sarg.org.ru> writes:

> Feng Shu <tumashu@163.com> writes:
>
>> After I guix pull, services defined in guix home config can no
>> start:
>>
>> -------------------------
>> 服务 root 已启动。
>> WARNING: Use of `load' in declarative module (#{ g117}#).  Add
>> #:declarative? #f to your define-module invocation.
>> unbound-variable(#f "Unbound variable: ~S" (service) #f)
>>
>> Some deprecated features have been used.  Set the environment
>> variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
>> program to get more information.  Set it to "no" to suppress
>> this message.
>> Creating XDG user directories... done
>> Comparing
>> /gnu/store/bfkgfz1sm9q75jyn56pav2kmwl48i7w8-home/profile/share/fonts
>> and
>>           /gnu/store/bfkgfz1sm9q75jyn56pav2kmwl48i7w8-home/profile/share/fonts...
>> done (same)
>> Evaluating on-change gexps.
>>
>> -----------
>>
>> When I run command: herd status, show error:
>>
>> feng@Guix ~$ herd status
>> error: connect: /run/user/1000/shepherd/socket: No such file or
>> directory
>
> Have you tried debugging it? Is your home shepherd running? Do you see

I tried, but I do not know why: unbound-variable service


The below code run have problem, and I think shepherd is not run, for 
'ps aux |grep shepherd' can not found info.

(define xautolock-service
  (shepherd-service
   (provision '(xautolock))
   (documentation "Run 'xautolock'")
   (start #~(make-forkexec-constructor
             (list #$(file-append xautolock "/bin/xautolock")
                   "-detectsleep")))
   (stop #~(make-kill-destructor))))


...

     (service
      home-syncthing-service-type)

     (service
      home-shepherd-service-type
      (home-shepherd-configuration
       (shepherd shepherd)
       (services
        (list xautolock-service))))

> shepherd mentions in ~/.guix-home/on-first-login?

> Have you tried restarting your system?

Restart system no effect.

>

-- 





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

* bug#68415: User's shepherd services defined in guix home config can not start after guix pull.
  2024-01-16 12:44   ` Feng Shu
@ 2024-01-17  7:04     ` Sergey Trofimov
  2024-01-17 12:55       ` Feng Shu
  0 siblings, 1 reply; 6+ messages in thread
From: Sergey Trofimov @ 2024-01-17  7:04 UTC (permalink / raw)
  To: Feng Shu; +Cc: 68415


Feng Shu <tumashu@163.com> writes:

>>
>> Have you tried debugging it? Is your home shepherd running? Do 
>> you see
>
> I tried, but I do not know why: unbound-variable service
>
That is not normal. You need to fix that.

>
> The below code run have problem, and I think shepherd is not 
> run, for
> 'ps aux |grep shepherd' can not found info.

home's shepherd is started by ~/.guix-home/on-first-login, which 
gets invoked in ~/.profile
You can try running the script manually and see what happens.

Please compare your home configuration before and after the pull. 
You can find the configs in 
/var/guix/profiles/per-user/<name>/guix-home-<version>-link/configuration.scm

The subject is "can not start after guix pull", but it seems to me 
your home is misconfigured and the pull might be unrelated.

>
>      (service
>       home-shepherd-service-type
>       (home-shepherd-configuration
>        (shepherd shepherd)

that's the default, no need to specify shepherd

>        (services
>         (list xautolock-service))))
>




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

* bug#68415: User's shepherd services defined in guix home config can not start after guix pull.
  2024-01-17  7:04     ` Sergey Trofimov
@ 2024-01-17 12:55       ` Feng Shu
  2024-03-31 14:19         ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Feng Shu @ 2024-01-17 12:55 UTC (permalink / raw)
  To: Sergey Trofimov; +Cc: 68415

Sergey Trofimov <sarg@sarg.org.ru> writes:

Today, after I guix pull again and reconfig guix home, this problem
dispear, I do not know why :-)

> Feng Shu <tumashu@163.com> writes:
>
>>>
>>> Have you tried debugging it? Is your home shepherd running? Do you
>>> see
>>
>> I tried, but I do not know why: unbound-variable service
>>
> That is not normal. You need to fix that.
>
>>
>> The below code run have problem, and I think shepherd is not run,
>> for
>> 'ps aux |grep shepherd' can not found info.
>
> home's shepherd is started by ~/.guix-home/on-first-login, which gets
> invoked in ~/.profile
> You can try running the script manually and see what happens.
>
> Please compare your home configuration before and after the pull. You
> can find the configs in
> /var/guix/profiles/per-user/<name>/guix-home-<version>-link/configuration.scm
>
> The subject is "can not start after guix pull", but it seems to me
> your home is misconfigured and the pull might be unrelated.
>
>>
>>      (service
>>       home-shepherd-service-type
>>       (home-shepherd-configuration
>>        (shepherd shepherd)
>
> that's the default, no need to specify shepherd
>
>>        (services
>>         (list xautolock-service))))
>>
>

-- 





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

* bug#68415: User's shepherd services defined in guix home config can not start after guix pull.
  2024-01-17 12:55       ` Feng Shu
@ 2024-03-31 14:19         ` Ludovic Courtès
  0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2024-03-31 14:19 UTC (permalink / raw)
  To: Feng Shu; +Cc: 68415-done, Sergey Trofimov

Hi,

Feng Shu <tumashu@163.com> skribis:

> Today, after I guix pull again and reconfig guix home, this problem
> dispear, I do not know why :-)
>
>> Feng Shu <tumashu@163.com> writes:

[...]

>>> I tried, but I do not know why: unbound-variable service

I believe this problem was due to the fact that you were running
shepherd < 0.10.

Shepherd 0.10 introduce (service …) as a replacement for (make <service>
…) and Guix switched to that idiom in
477d4f7d241165b5a5fd315c27efd7803fad4a04, meaning that to complete your
upgrade, you effectively had to start the new shepherd (reboot or
whatever).

Closing!

Thanks,
Ludo’.




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

end of thread, other threads:[~2024-03-31 14:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-13  5:15 bug#68415: User's shepherd services defined in guix home config can not start after guix pull Feng Shu
2024-01-16  6:51 ` Sergey Trofimov
2024-01-16 12:44   ` Feng Shu
2024-01-17  7:04     ` Sergey Trofimov
2024-01-17 12:55       ` Feng Shu
2024-03-31 14:19         ` 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).