* bug#41791: [Shepherd] loses track of Tor
@ 2020-06-10 15:20 Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-06-11 22:11 ` Ludovic Courtès
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2020-06-10 15:20 UTC (permalink / raw)
To: 41791
[-- Attachment #1: Type: text/plain, Size: 1896 bytes --]
All,
--8<---------------cut here---------------start------------->8---
~ λ while :; do sudo herd restart tor; done
Service tor is not running.
Service tor has been started.
Service tor has been stopped.
Service tor could not be started.
Service tor is not running.
Service tor could not be started.
^C
~ λ pgrep tor
22926
23004
--8<---------------cut here---------------end--------------->8---
This has (this year) happened to nginx in tight edit.conf/restart
loops too, but I can't say if the two are at all related.
Here's the output of ‘herd status’ but it's not very useful to me:
--8<---------------cut here---------------start------------->8---
λ sudo herd status
Started:
+ dovecot
+ file-system-/dev/pts
+ file-system-/dev/shm
+ file-system-/gnu/store
+ file-systems
+ guix-daemon
+ loopback
+ mcron
+ networking
+ nginx
+ root
+ root-file-system
+ smtpd
+ ssh-daemon
+ syslogd
+ term-tty1
+ udev
+ urandom-seed
+ user-file-systems
+ user-processes
+ virtual-terminal
Stopped:
- tor
One-shot:
* host-name
* user-homes
--8<---------------cut here---------------end--------------->8---
He looks guilty:
--8<---------------cut here---------------start------------->8---
λ sudo cat /var/run/tor/tor.pid
cat: /var/run/tor/tor.pid: No such file or directory
--8<---------------cut here---------------end--------------->8---
From ps auxwww:
--8<---------------cut here---------------start------------->8---
~ λ head -n6 /gnu/store/5ivhkbd0pzhnnmk38yn7cygcyd02kkk5-torrc
### These lines were generated from your system configuration:
User tor
DataDirectory /var/lib/tor
PidFile /var/run/tor/tor.pid
Log notice syslog
### End of automatically generated lines.
--8<---------------cut here---------------end--------------->8---
No contradictory lines added.
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#41791: [Shepherd] loses track of Tor
2020-06-10 15:20 bug#41791: [Shepherd] loses track of Tor Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2020-06-11 22:11 ` Ludovic Courtès
2020-06-12 12:03 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2021-11-28 12:39 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2020-06-11 22:11 UTC (permalink / raw)
To: Tobias Geerinckx-Rice; +Cc: 41791-done
Hi Tobias,
Tobias Geerinckx-Rice <me@tobias.gr> skribis:
> ~ λ while :; do sudo herd restart tor; done
> Service tor is not running.
> Service tor has been started.
> Service tor has been stopped.
> Service tor could not be started.
> Service tor is not running.
> Service tor could not be started.
> ^C
> ~ λ pgrep tor
> 22926
> 23004
Oops, this one is fixed by b6b95685d0b478698d648f13afd927b1e1700d99.
It’s a regression introduced when switching to the Shepherd 0.8.1.
> This has (this year) happened to nginx in tight edit.conf/restart
> loops too, but I can't say if the two are at all related.
The nginx issue may be different. The Shepherd 0.8.0 included fixes
that should help for multi-process services like nginx. Let me know if
it happens again.
Thanks for reporting the issue… and apologies for grumpily pushing you
to do so on IRC. It’s a positive outcome at any rate!
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#41791: [Shepherd] loses track of Tor
2020-06-10 15:20 bug#41791: [Shepherd] loses track of Tor Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-06-11 22:11 ` Ludovic Courtès
@ 2021-11-28 12:39 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2022-02-28 19:09 ` Attila Lendvai
2023-01-12 14:14 ` Ludovic Courtès
3 siblings, 0 replies; 6+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2021-11-28 12:39 UTC (permalink / raw)
To: 41791; +Cc: Caleb Herbert, Wiktor Żelazny, Ludovic Courtès
[-- Attachment #1: Type: text/plain, Size: 151 bytes --]
All,
Unfortunately, this bug seems to have recropped up:
<https://lists.gnu.org/archive/html/help-guix/2021-11/msg00126.html>.
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#41791: [Shepherd] loses track of Tor
2020-06-10 15:20 bug#41791: [Shepherd] loses track of Tor Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-06-11 22:11 ` Ludovic Courtès
2021-11-28 12:39 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2022-02-28 19:09 ` Attila Lendvai
2023-01-12 14:14 ` Ludovic Courtès
3 siblings, 0 replies; 6+ messages in thread
From: Attila Lendvai @ 2022-02-28 19:09 UTC (permalink / raw)
To: 41791@debbugs.gnu.org
i'm not sure this is related, but it's certainly a bug in MAKE-KILL-DESTRUCTOR
that it doesn't wait for the process to quit after sending it a signal, and thus
may restart the service while the previous instance is still running.
it's also not sending it a kill -9 after a timeout if the process is not
responsive.
--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“[Design] Patterns mean "I have run out of language."”
— Rich Hickey
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#41791: [Shepherd] loses track of Tor
2020-06-10 15:20 bug#41791: [Shepherd] loses track of Tor Tobias Geerinckx-Rice via Bug reports for GNU Guix
` (2 preceding siblings ...)
2022-02-28 19:09 ` Attila Lendvai
@ 2023-01-12 14:14 ` Ludovic Courtès
3 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2023-01-12 14:14 UTC (permalink / raw)
To: Tobias Geerinckx-Rice; +Cc: 41791-done
Hi Tobias,
Tobias Geerinckx-Rice <me@tobias.gr> skribis:
> ~ λ while :; do sudo herd restart tor; done
> Service tor is not running.
> Service tor has been started.
> Service tor has been stopped.
> Service tor could not be started.
> Service tor is not running.
> Service tor could not be started.
> ^C
> ~ λ pgrep tor
> 22926
> 23004
I don’t see that happening with the Shepherd 0.9.3. I believe this was
fixed by making ‘stop’ synchronous:
https://issues.guix.gnu.org/58485
Closing!
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-01-12 14:44 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-10 15:20 bug#41791: [Shepherd] loses track of Tor Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-06-11 22:11 ` Ludovic Courtès
2020-06-12 12:03 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2021-11-28 12:39 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2022-02-28 19:09 ` Attila Lendvai
2023-01-12 14:14 ` 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).