tor2web / Tor2web

Tor2web is an HTTP proxy software that enables access to Tor Hidden Services by mean of common web browsers
https://www.tor2web.org
GNU Affero General Public License v3.0
705 stars 176 forks source link

tor2web-workers got <defunct> and cannot be killed: required server restart #220

Open fpietrosanti opened 9 years ago

fpietrosanti commented 9 years ago

It happened that this morning one server working under tor2web.org domain got all the tor2web-worker in "zombie" state and it was impossible to kill them, even with a "kill -9" .

It was impossible to restart the tor2web process because /etc/init.d/tor2web restart was giving error: Tor2web Startup Failure: error while binding on 127.0.0.1 8789 ([Errno 98] Address already in use)

The following process list was zombizied: tor2web 16953 1.9 0.0 0 0 ? Z Feb20 21:01 [tor2web-worker] tor2web 16956 1.9 0.0 0 0 ? Z Feb20 20:48 [tor2web-worker] tor2web 16963 1.9 0.0 0 0 ? Z Feb20 20:56 [tor2web-worker] tor2web 16981 1.9 0.0 0 0 ? Z Feb20 19:20 [tor2web-worker]

A server restart has been required in order to bring tor2web working again.

This ticket is to evaluate how this could happen and to prevent this from happening (or if it does happen, prevent from causing a functional problem).

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/8774405-tor2web-workers-got-defunct-and-cannot-be-killed-required-server-restart?utm_campaign=plugin&utm_content=tracker%2F318575&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F318575&utm_medium=issues&utm_source=github).