On 2022-10-19 18:21, Ludovic Courtès wrote:
Toggle quote (5 lines)
> Hi,
>
> Andrew, does the bug report below ring a bell?
>
Yes, I don't remember if I created a thread on that (probably not) or
just discussed it in some chat, but when shepherd stops it doesn't clean
up its socket file, so you can't start shepherd again until manually
remove socket.
Checked it right now:
Toggle snippet (4 lines)
herd stop root
shepherd # fails with Address already in use
I found it out, when was experimenting with the place, where I start
environment variables I start it by sway compositor, not login shell and
if in addition to sway session I login on another tty, elogind won't
remove XDG_RUNTIME_DIR => shepherd/socket is not removed => shepherd
fails to start after sway restart.
Toggle quote (53 lines)
>
> (I haven’t hit that problem myself.)
>
> Ludo’.
>
> Tom Willemse <tom@ryuslash.org> skribis:
>
>> Hi Guix!
>>
>> I've been using Guix on Archlinux for a little while now, and ever since
>> I've started using Guix Home on my laptop to start up user-level
>> services I've been having the issue that about 50% of the time when I
>> boot my laptop shepherd fails to start.
>>
>> My .xsession-errors says:
>>
>>> shepherd: while opening socket '/run/user/1000/shepherd/socket': bind:
>>> Address already in use
>>
>> and looking at my shepherd log:
>>
>>> 2022-09-15 11:47:18 Service root has been started.
>>> 2022-09-15 11:47:18 Service root has been started.
>>> 2022-09-15 11:47:19 Starting services...
>>> 2022-09-15 11:47:19 Starting services...
>>> 2022-09-15 11:47:19 Exiting shepherd...
>>> 2022-09-15 11:47:19 Service dunst has been started.
>>> 2022-09-15 11:47:19 Service unclutter has been started.
>>> 2022-09-15 11:47:19 Service syncthing has been started.
>>> 2022-09-15 11:47:19 Service polybar has been started.
>>> 2022-09-15 11:47:19 Service cmst has been started.
>>> 2022-09-15 11:47:19 Service kdeconnect has been started.
>>> 2022-09-15 11:47:20 Service xbindkeys has been started.
>>> 2022-09-15 11:47:20 Service picom has been started.
>>> 2022-09-15 11:47:20 Service xmodmap has been started.
>>> 2022-09-15 11:47:20 Service redshift has been started.
>>> 2022-09-15 11:47:20 Exiting shepherd...
>>> 2022-09-15 11:47:20 Service syncthing has been stopped.
>>> 2022-09-15 11:47:20 Service xbindkeys has been stopped.
>>> 2022-09-15 11:47:20 Service redshift has been stopped.
>>> 2022-09-15 11:47:20 Service cmst has been stopped.
>>> 2022-09-15 11:47:20 Service kdeconnect has been stopped.
>>> 2022-09-15 11:47:20 Service polybar has been stopped.
>>> 2022-09-15 11:47:20 Service dunst has been stopped.
>>> 2022-09-15 11:47:20 Service picom has been stopped.
>>> 2022-09-15 11:47:20 Service unclutter has been stopped.
>>> 2022-09-15 11:47:20 Exiting.
>>
>> It looks like it starts twice and then exits both, but I'm not sure why.
>> I'm guessing it's the ~/.guix-home/activate and
>> ~/.guix-home/on-first-login that are trying to start it.
~/.guix-home/activate should be launched only by guix home reconfigure,
so it shouldn't be touched during startup of the session at all, also
they both have a condition, which must prevent the start of shepherd if
socket exists.
Tom, can you show your startup scripts, please (like xsession or
whatever you use for starting graphical environment)? Sharing home
environment config can be useful as well. Do you use some display/login
manager?
Toggle quote (6 lines)
>>
>> I'm not sure what other information I can provide you that will help, so
>> please let me know!
>>
--
Best regards,
Andrew Tropin
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmNQ6JsACgkQIgjSCVjB
3rA3yQ/+OA0sNDZc5m2bOcVca3CTMk+PeMnrY7it1fIl2hbnLNoR5F3beEWGoKd4
me5Gg4eP+apCEKG8X+idNYkknk9Rlw7KAuizgupSoc+GN/RzpO8LWXayKvPmGGP1
V01MP1Om2fh3eXFkJEKrzsjcR3AXv/EF2vlzad9MX//6EVxAXbhdvy5mg35udpXP
gTGifrZTpweWdaKOtlaBw53daIQAD/JUrUyVCsZqG2oS1A7MXFBybr2b2ZSNoPok
spJbnCmOFil6Gv7A3L5vtAKh6aLSIT+9JvXJKTNhyNEl1B2+0zskd1nFG+8fHhFT
ffs3Y41xBPGW2rgaiKOakadtykqU54C3nrSCcXANX6OYsEdUHkEvI5rkNAzClwb/
Ux6ZtCNAvB1hRycQRG+QmdUsOAF2UATxzezE2GDYD9Bchl5tSDsFGt5A5IF9SH8Y
mtikmE8cJ3GX7ZP/XmV3kTIusKkMCRz2F7KtqhgG6InbClgoFHGPv9Hq+v+vQvDP
ftY1OuCDuRM8JNB35nhsr1SV5jKBu+QJOfkhv5NRWsUp4Vyxb1BXbtqqK9g83xGj
ZOoB5dWhEhJJ3z/WHU0Suf5qt725uqSPhdbHet06V9NlrjAQq9v+j5p4UzaW8WeG
UGLwKngyUlvMU0HWOeIIEf1DgZNBibgsztgnDk8efVoxqC63ZIg=
=0TGL
-----END PGP SIGNATURE-----