RE: [Zope] Little Zope horror story
A little tip for a little horror story (*NIX platforms): fuser -n tcp -ikv 8080 Fuser shows processes that use filehandles. The above options refer to a tcp filehandle (-n tcp), on port 8080. The options (k) kill all processes using this filehandle, (i) ask before killing each process, and (v) do it verbosely. Just a note: if you do this as a normal user, you will get no feedback. As root, the command works. Troy -----Original Message----- From: Dieter Maurer [mailto:dieter@handshake.de] Sent: Wednesday, January 31, 2001 2:56 PM To: zope@zope.org Cc: brian@digicool.com Subject: [Zope] Little Zope horror story Another little Zope horror story. You need to be worried only if you start external background processes from Zope. Today was not a good Zope day for me: Colleagues are currently installing a new firewall. Something went wrong and the Zope Webserver was frozen in connections with the backoffice behind the firewall. To get things start again, I stopped Zope and tried to restart it, but in vain! Zope continued to report "address already in use". Of cause, there was no longer any Zope process that used that port... After 1/2 hour of desparate search, I found the culprit. It was again an external background process. It had inherited the open listening socket and kept the port blocked. It, too, was frozen by the firewall and made no longer any progress. Killing the external process let Zope start again. The listening socket should get a "close_on_exec", too, as now do the request sockets. Dieter _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
+-------[ Farrell, Troy ]---------------------- | A little tip for a little horror story (*NIX platforms): | | fuser -n tcp -ikv 8080 This isn't available on BSD systems. I'm sure this is a Linux only utility, my Solaris box is powered down at the moment so I can't verify its existance for Solaris. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au|
On Thu, 8 Feb 2001, Andrew Kenneth Milton wrote:
| fuser -n tcp -ikv 8080
This isn't available on BSD systems.
I'm sure this is a Linux only utility, my Solaris box is powered down at the moment so I can't verify its existance for Solaris.
My Solaris 2.5.1 has it in /usr/sbin Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Andrew Kenneth Milton writes:
+-------[ Farrell, Troy ]---------------------- | A little tip for a little horror story (*NIX platforms): | | fuser -n tcp -ikv 8080
This isn't available on BSD systems.
I'm sure this is a Linux only utility, my Solaris box is powered down at the moment so I can't verify its existance for Solaris. My colleague (Unix admin) used "lsof" to determine the bad process. "lsof" is avaiable under Solaris. Its disadvantage: only "root" can call it.
Dieter
On Thu, Feb 08, 2001 at 01:13:17AM +1000, Andrew Kenneth Milton wrote:
+-------[ Farrell, Troy ]---------------------- | A little tip for a little horror story (*NIX platforms): | | fuser -n tcp -ikv 8080
This isn't available on BSD systems.
I'm sure this is a Linux only utility, my Solaris box is powered down at the moment so I can't verify its existance for Solaris.
HP-UX atleast has fuser. However, the implementation of fuser is very system dependant. -- Riku Voipio riku.voipio@tietoenator.com 09-862 60764
participants (5)
-
Andrew Kenneth Milton -
Dieter Maurer -
Farrell, Troy -
Oleg Broytmann -
Voipio Riku