bug#68415: User's shepherd services defined in guix home config can not start after guix pull.

2024-03-31 Thread Ludovic Courtès
Hi,

Feng Shu  skribis:

> Today, after I guix pull again and reconfig guix home, this problem
> dispear, I do not know why :-)
>
>> Feng Shu  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 
…) 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’.





bug#68415: User's shepherd services defined in guix home config can not start after guix pull.

2024-01-17 Thread Feng Shu
Sergey Trofimov  writes:

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

> Feng Shu  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//guix-home--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
>>
>

-- 






bug#68415: User's shepherd services defined in guix home config can not start after guix pull.

2024-01-16 Thread Sergey Trofimov



Feng Shu  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//guix-home--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







bug#68415: User's shepherd services defined in guix home config can not start after guix pull.

2024-01-16 Thread Feng Shu
Sergey Trofimov  writes:

> Feng Shu  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.

>

-- 






bug#68415: User's shepherd services defined in guix home config can not start after guix pull.

2024-01-15 Thread Sergey Trofimov

Feng Shu  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?





bug#68415: User's shepherd services defined in guix home config can not start after guix pull.

2024-01-12 Thread Feng Shu


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




--