[Zope] Can't stop Zope, machine hanging

Ken Ara feedreader at yahoo.com
Sun Sep 3 04:18:55 EDT 2006


Thanks Andreas,

I am logged in as root user. 
Here is the result of 'top':

last pid: 77998;  load averages:  0.01,  0.06,  0.06  
                                                      
                                           up
0+15:03:27  04:06:22
18 processes:  1 running, 11 sleeping, 5 stopped, 1
zombie
CPU states:  0.0% user,  0.0% nice,  0.8% system, 
0.0% interrupt, 99.2% idle
Mem: 186M Active, 104M Inact, 152M Wired, 36M Cache,
111M Buf, 518M Free
Swap: 4096M Total, 329M Used, 3767M Free, 8% Inuse

  PID USERNAME PRI NICE   SIZE    RES STATE    TIME  
WCPU    CPU COMMAND
  945 ken       76    0   442M   131M STOP   112:18 
0.00%  0.00% python2.3
  937 root      96    0  7288K  2588K select   0:01 
0.00%  0.00% perl
77681 ken       96    0  6092K  1844K select   0:01 
0.00%  0.00% sshd
  975 root       8    0  1356K   208K nanslp   0:00 
0.00%  0.00% cron
  893 root      96    0  1312K   392K select   0:00 
0.00%  0.00% syslogd
77693 root      20    0  2296K  1560K pause    0:00 
0.00%  0.00% csh
77661 root       4    0  6112K  1780K sbwait   0:00 
0.00%  0.00% sshd
77685 ken       20    0  2252K  1480K pause    0:00 
0.00%  0.00% csh
  994 mailnull  96    0  4224K   140K select   0:00 
0.00%  0.00% exim-4.44-0
  968 root      96    0  3360K   328K select   0:00 
0.00%  0.00% sshd
77690 ken        8    0  1600K  1124K wait     0:00 
0.00%  0.00% su
77991 root      96    0  2200K  1240K RUN      0:00 
0.00%  0.00% top


I was able to kill one of the Zope processes but not
pid 945. Maybe it wasn't a good idea, but even 'kill
-s HUP 945' had no effect. Zope is not running. Here
is what I get using 'zopectl fg' :

geneva# /usr/local/www/Zope/zope01/bin/zopectl fg
export EVENT_LOG_FILE
EVENT_LOG_FILE=
/usr/local/www/Zope/zope01/bin/runzope
Traceback (most recent call last):
  File
"/usr/local/www/Zope/lib/python/Zope/Startup/run.py",
line 50, in ?
    run()
  File
"/usr/local/www/Zope/lib/python/Zope/Startup/run.py",
line 19, in run
    start_zope(opts.configroot)
  File
"/usr/local/www/Zope/lib/python/Zope/Startup/__init__.py",
line 46, in start_zope
    starter.setupServers()
  File
"/usr/local/www/Zope/lib/python/Zope/Startup/__init__.py",
line 198, in setupServers
    raise ZConfig.ConfigurationError(socket_err
ZConfig.ConfigurationError: There was a problem
starting a server of type "HTTPServer". This may mean
that your user does not have permission to bind to the
port which the server is trying to use or the port may
already be in use by another application. (Address
already in use)

Same exact error trying to restart Zope with
bin/runzope

As I mentioned, I can't even reboot the machine, the
shutdown command can't kill this process either.

Ken

--- Andreas Jung <lists at zopyx.com> wrote:

> 
> 
> --On 2. September 2006 23:43:50 -0700 Ken Ara
> <feedreader at yahoo.com> wrote:
> 
> > Hi all,
> >
> > My Zope is stuck like never before. With my server
> on
> > another continent, 8 hours time difference, and on
> a
> > Sunday, I am pulling out my few remaining hairs...
> >
> > Our box runs FreeBSD 5, Zope 2.78 (if I remember
> > correctly) and Squid.
> >
> > The ISP has been preparing for a move and shifted
> some
> > machines, pulled some wires, and I see that the
> > machine has rebooted.
> >
> > I can't restart or stop Zope -
> > '/usr/local/www/Zope/zope01/bin/zopectl stop' just
> > produces '........' for a long time - should I
> wait?
> 
> Use "netstat -anp" to figure out if there is any
> process listening to
> *your* Zope port (port should be in state LISTEN).
> If yes, the "-p"
> option should give you the process id. Try to kill
> the process (if you have 
> the permissions). If you don't have the permissions,
> ask your administrator.
> If there is no process running, try "zopectl
> fg"...this should give you more
> detailed error messages on the console.
> 
> -aj


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Zope mailing list