Debian Bug report logs -
#514616
bad pidfile handling on ENOSPC
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, hramrach@centrum.cz, Peter Palfrader <weasel@debian.org>:
Bug#514616; Package tor.
(Mon, 09 Feb 2009 14:24:04 GMT) (full text, mbox, link).
Acknowledgement sent
to michal.suchanek@ruk.cuni.cz:
New Bug report received and forwarded. Copy sent to hramrach@centrum.cz, Peter Palfrader <weasel@debian.org>.
(Mon, 09 Feb 2009 14:24:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: tor
Version: 0.2.0.32-1
Severity: normal
Hello
I upgraded tor and the package scripts fail to restart the daemon.
Apparently it is still running when the upgrade is finished but the
scripts are not aware of it running. Start during package configuration
fails because the port is in use.
Observer on two different systems with default configuration.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.28-macmini (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages tor depends on:
ii adduser 3.110 add and remove users and groups
ii libc6 2.7-16 GNU C Library: Shared libraries
ii libevent1 1.3e-3 An asynchronous event notification
ii libssl0.9.8 0.9.8g-14 SSL shared libraries
ii tsocks 1.8beta5-9.1 transparent network access through
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
Versions of packages tor recommends:
ii logrotate 3.7.1-5 Log rotation utility
ii privoxy 3.0.9-1 Privacy enhancing HTTP Proxy
ii socat 1.6.0.1-1 multipurpose relay for bidirection
ii tor-geoipdb 0.2.0.32-1 geoIP database for Tor
Versions of packages tor suggests:
pn anon-proxy <none> (no description available)
pn mixmaster <none> (no description available)
pn mixminion <none> (no description available)
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org:
Bug#514616; Package tor.
(Mon, 09 Feb 2009 14:30:11 GMT) (full text, mbox, link).
Acknowledgement sent
to Peter Palfrader <weasel@debian.org>:
Extra info received and forwarded to list.
(Mon, 09 Feb 2009 14:30:11 GMT) (full text, mbox, link).
Message #10 received at 514616@bugs.debian.org (full text, mbox, reply):
On Mon, 09 Feb 2009, michal.suchanek@ruk.cuni.cz wrote:
> I upgraded tor and the package scripts fail to restart the daemon.
>
> Apparently it is still running when the upgrade is finished but the
> scripts are not aware of it running. Start during package configuration
> fails because the port is in use.
>
> Observer on two different systems with default configuration.
How was it started prior to the package upgrade? Manually as some other
user, or was it running as debian-tor and had been started with the init
script? Which version did you upgrade from?
Peter
--
| .''`. ** Debian GNU/Linux **
Peter Palfrader | : :' : The universal
http://www.palfrader.org/ | `. `' Operating System
| `- http://www.debian.org/
Information forwarded
to debian-bugs-dist@lists.debian.org, Peter Palfrader <weasel@debian.org>:
Bug#514616; Package tor.
(Mon, 09 Feb 2009 16:03:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Michal Suchanek <michal.suchanek@ruk.cuni.cz>:
Extra info received and forwarded to list. Copy sent to Peter Palfrader <weasel@debian.org>.
(Mon, 09 Feb 2009 16:03:02 GMT) (full text, mbox, link).
Message #15 received at 514616@bugs.debian.org (full text, mbox, reply):
On 02/09/2009 03:27 PM, Peter Palfrader wrote:
> On Mon, 09 Feb 2009, michal.suchanek@ruk.cuni.cz wrote:
>
>> I upgraded tor and the package scripts fail to restart the daemon.
>>
>> Apparently it is still running when the upgrade is finished but the
>> scripts are not aware of it running. Start during package configuration
>> fails because the port is in use.
>>
>> Observer on two different systems with default configuration.
>
> How was it started prior to the package upgrade? Manually as some other
> user, or was it running as debian-tor and had been started with the init
> script? Which version did you upgrade from?
>
It was started by the init script, I never start it in another way.
upgrade tor 0.2.0.32-1 0.2.0.33-1
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
105 9076 0.0 5.6 17428 14508 ? S 2008 15:58
/usr/sbin/tor
debian-tor:x:105:104::/var/lib/tor:/bin/bash
Thanks
Michal
Information forwarded
to debian-bugs-dist@lists.debian.org, Peter Palfrader <weasel@debian.org>:
Bug#514616; Package tor.
(Mon, 09 Feb 2009 16:03:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Peter Palfrader <peter@palfrader.org>:
Extra info received and forwarded to list. Copy sent to Peter Palfrader <weasel@debian.org>.
(Mon, 09 Feb 2009 16:03:03 GMT) (full text, mbox, link).
Message #20 received at 514616@bugs.debian.org (full text, mbox, reply):
On Mon, 09 Feb 2009, Michal Suchanek wrote:
> >How was it started prior to the package upgrade? Manually as some other
> >user, or was it running as debian-tor and had been started with the init
> >script? Which version did you upgrade from?
>
> It was started by the init script, I never start it in another way.
>
> upgrade tor 0.2.0.32-1 0.2.0.33-1
>
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> 105 9076 0.0 5.6 17428 14508 ? S 2008 15:58
> /usr/sbin/tor
Is it still running? What does the /var/run/tor/tor.pid file say? If
the md5sum of your /etc/init.d/tor file isn't
d373ea1cd482577b83813e3b3210a5be, how does it look like?
--
| .''`. ** Debian GNU/Linux **
Peter Palfrader | : :' : The universal
http://www.palfrader.org/ | `. `' Operating System
| `- http://www.debian.org/
Information forwarded
to debian-bugs-dist@lists.debian.org, Peter Palfrader <weasel@debian.org>:
Bug#514616; Package tor.
(Tue, 10 Feb 2009 09:27:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Michal Suchanek <michal.suchanek@ruk.cuni.cz>:
Extra info received and forwarded to list. Copy sent to Peter Palfrader <weasel@debian.org>.
(Tue, 10 Feb 2009 09:27:03 GMT) (full text, mbox, link).
Message #25 received at 514616@bugs.debian.org (full text, mbox, reply):
Peter Palfrader wrote:
> On Mon, 09 Feb 2009, Michal Suchanek wrote:
>
>
>>> How was it started prior to the package upgrade? Manually as some other
>>> user, or was it running as debian-tor and had been started with the init
>>> script? Which version did you upgrade from?
>>>
>> It was started by the init script, I never start it in another way.
>>
>> upgrade tor 0.2.0.32-1 0.2.0.33-1
>>
>> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
>> 105 9076 0.0 5.6 17428 14508 ? S 2008 15:58
>> /usr/sbin/tor
>>
>
> Is it still running?
Yes, it's the process 9076 I would think.
> What does the /var/run/tor/tor.pid file say?
It's empty.
> If
> the md5sum of your /etc/init.d/tor file isn't
> d373ea1cd482577b83813e3b3210a5be, how does it look like?
>
>
It has that checksum.
The system probably ran out of disk space at some point.
Thanks
Michal
Information forwarded
to debian-bugs-dist@lists.debian.org:
Bug#514616; Package tor.
(Tue, 10 Feb 2009 09:42:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Peter Palfrader <weasel@debian.org>:
Extra info received and forwarded to list.
(Tue, 10 Feb 2009 09:42:02 GMT) (full text, mbox, link).
Message #30 received at 514616@bugs.debian.org (full text, mbox, reply):
On Tue, 10 Feb 2009, Michal Suchanek wrote:
> >>upgrade tor 0.2.0.32-1 0.2.0.33-1
> >>
> >>USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> >>105 9076 0.0 5.6 17428 14508 ? S 2008 15:58
> >>/usr/sbin/tor
> >>
> >Is it still running?
> Yes, it's the process 9076 I would think.
> >What does the /var/run/tor/tor.pid file say?
> It's empty.
> >If
> >the md5sum of your /etc/init.d/tor file isn't
> >d373ea1cd482577b83813e3b3210a5be, how does it look like?
> >
> >
> It has that checksum.
>
>
> The system probably ran out of disk space at some point.
Oh. Well, then it couldn't create its pidfile then. Unixes never like
when you run out of disk space.
If you write the proper pid into the pidfile it should all work out. Or
you kill the tor process and start it again.
I think we can close this bug?
Peter
--
| .''`. ** Debian GNU/Linux **
Peter Palfrader | : :' : The universal
http://www.palfrader.org/ | `. `' Operating System
| `- http://www.debian.org/
Information forwarded
to debian-bugs-dist@lists.debian.org, Peter Palfrader <weasel@debian.org>:
Bug#514616; Package tor.
(Tue, 10 Feb 2009 10:00:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Michal Suchanek <michal.suchanek@ruk.cuni.cz>:
Extra info received and forwarded to list. Copy sent to Peter Palfrader <weasel@debian.org>.
(Tue, 10 Feb 2009 10:00:02 GMT) (full text, mbox, link).
Message #35 received at 514616@bugs.debian.org (full text, mbox, reply):
On 02/10/2009 10:38 AM, Peter Palfrader wrote:
> On Tue, 10 Feb 2009, Michal Suchanek wrote:
>
>>>> upgrade tor 0.2.0.32-1 0.2.0.33-1
>>>>
>>>> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
>>>> 105 9076 0.0 5.6 17428 14508 ? S 2008 15:58
>>>> /usr/sbin/tor
>>>>
>
>>> Is it still running?
>> Yes, it's the process 9076 I would think.
>
>>> What does the /var/run/tor/tor.pid file say?
>> It's empty.
>
>>> If
>>> the md5sum of your /etc/init.d/tor file isn't
>>> d373ea1cd482577b83813e3b3210a5be, how does it look like?
>>>
>>>
>> It has that checksum.
>>
>>
>> The system probably ran out of disk space at some point.
>
> Oh. Well, then it couldn't create its pidfile then. Unixes never like
> when you run out of disk space.
>
> If you write the proper pid into the pidfile it should all work out. Or
> you kill the tor process and start it again.
>
> I think we can close this bug?
Perhaps tor should check the return value of the write()/close()?
It could also write the file as root which would work ..
Thanks
Michal
Information forwarded
to debian-bugs-dist@lists.debian.org:
Bug#514616; Package tor.
(Tue, 10 Feb 2009 10:18:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Peter Palfrader <weasel@debian.org>:
Extra info received and forwarded to list.
(Tue, 10 Feb 2009 10:18:04 GMT) (full text, mbox, link).
Message #40 received at 514616@bugs.debian.org (full text, mbox, reply):
On Tue, 10 Feb 2009, Michal Suchanek wrote:
> >If you write the proper pid into the pidfile it should all work out. Or
> >you kill the tor process and start it again.
> >
> >I think we can close this bug?
>
> Perhaps tor should check the return value of the write()/close()?
Maybe. And then what? Just die? We can't say anything on stdout/err,
we already detached. This isn't as trivial as it may seem.
> It could also write the file as root which would work ..
I'm not sure this is such a good idea.
--
| .''`. ** Debian GNU/Linux **
Peter Palfrader | : :' : The universal
http://www.palfrader.org/ | `. `' Operating System
| `- http://www.debian.org/
Information forwarded
to debian-bugs-dist@lists.debian.org, Peter Palfrader <weasel@debian.org>:
Bug#514616; Package tor.
(Tue, 10 Feb 2009 10:45:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Michal Suchanek <michal.suchanek@ruk.cuni.cz>:
Extra info received and forwarded to list. Copy sent to Peter Palfrader <weasel@debian.org>.
(Tue, 10 Feb 2009 10:45:02 GMT) (full text, mbox, link).
Message #45 received at 514616@bugs.debian.org (full text, mbox, reply):
On 02/10/2009 11:06 AM, Peter Palfrader wrote:
> On Tue, 10 Feb 2009, Michal Suchanek wrote:
>
>>> If you write the proper pid into the pidfile it should all work out. Or
>>> you kill the tor process and start it again.
>>>
>>> I think we can close this bug?
>> Perhaps tor should check the return value of the write()/close()?
>
> Maybe. And then what? Just die? We can't say anything on stdout/err,
> we already detached. This isn't as trivial as it may seem.
Log on syslog or just die. Whatever. But if it fails to create the pid
file it is a failure and daemons normally refuse to start in that case.
It can be even done so that the daemon forks and the parent writes the
pid file and if it fails it kills the daemon again.
Note that logging on syslog would work, it runs as root. And if even
syslog does not work you should notice.
Thanks
Michal
Changed Bug title to `bad pidfile handling on ENOSPC' from `tor: restart on upgrade fails'.
Request was from Peter Palfrader <weasel@debian.org>
to control@bugs.debian.org.
(Tue, 10 Feb 2009 10:51:05 GMT) (full text, mbox, link).
Reply sent
to Peter Palfrader <weasel@debian.org>:
You have taken responsibility.
(Wed, 11 Jan 2012 20:18:04 GMT) (full text, mbox, link).
Notification sent
to michal.suchanek@ruk.cuni.cz:
Bug acknowledged by developer.
(Wed, 11 Jan 2012 20:18:04 GMT) (full text, mbox, link).
Message #54 received at 514616-done@bugs.debian.org (full text, mbox, reply):
Lots of unix programs behave weird if they run out of disk space. I
don't think spending lots of time on tor to do much better than the
rest, or waiting for that, is a good use of anybody's resource.
Closing.
--
| .''`. ** Debian **
Peter Palfrader | : :' : The universal
http://www.palfrader.org/ | `. `' Operating System
| `- http://www.debian.org/
Information forwarded
to debian-bugs-dist@lists.debian.org, Peter Palfrader <weasel@debian.org>:
Bug#514616; Package tor.
(Thu, 12 Jan 2012 12:30:53 GMT) (full text, mbox, link).
Acknowledgement sent
to Michal Suchanek <michal.suchanek@ruk.cuni.cz>:
Extra info received and forwarded to list. Copy sent to Peter Palfrader <weasel@debian.org>.
(Thu, 12 Jan 2012 12:31:25 GMT) (full text, mbox, link).
Message #59 received at 514616@bugs.debian.org (full text, mbox, reply):
Excerpts from Debian Bug Tracking System's message of Wed Jan 11 21:18:04 +0100 2012:
> This is an automatic notification regarding your Bug report
> which was filed against the tor package:
>
> #514616: bad pidfile handling on ENOSPC
>
> It has been closed by Peter Palfrader <weasel@debian.org>.
>
> Their explanation is attached below along with your original report.
> If this explanation is unsatisfactory and you have not received a
> better one in a separate message then please contact Peter Palfrader <weasel@debian.org> by
> replying to this email.
>
> Lots of unix programs behave weird if they run out of disk space. I
> don't think spending lots of time on tor to do much better than the
> rest, or waiting for that, is a good use of anybody's resource.
Well, the thing is that lots of other programs *do* better.
They write the PID file as root.
Tor is standing out as behaving exceptionally poorly here.
Regards
Michal
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 10 Feb 2012 07:35:19 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Tue Nov 2 02:29:06 2021;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.