[ome-users] Omero restart

josh.moore at gmx.de josh.moore at gmx.de
Fri Sep 11 16:15:12 BST 2009


I'd agree with Nick's first email: definitely,

  bin/omero admin start

"command not found" will signal that something did not complete
successfully. When that happens, it's necessary to stop everything,
because later commands will not execute. If you'd like, you could add
them all to one script:


#!/bin/bash

set -e
set -x

export PATH=/opt/Ice-3.3/bin:$PATH
export DYLD_LIBRARY_PATH=/opt/Ice-3.3/lib:$DYLD_LIBRARY_PATH
export PYTHONPATH=/opt/Ice-3.3/python:$PYTHONPATH
cd /usr/share/omero/omero_dist
bin/omero admin start
# ... do anything else ...


The "set -e" means that on the first error the script will exit; "set
-x" means that commands will be echoed to the terminal. That way you
know what happend last and that it failed.

Best wishes,
~Josh.


Nick Perry writes:
 > Ah right I didn't read carefully enough.
 > 
 > Did you turn it off last time?
 > 
 > $ bin/omero admin ice
 > $ server disable Web
 > $ server stop Web
 > $ exit
 > 
 > $ bin/omero admin stop
 > 
 > if not, try using:
 > 
 > $ kill icegridnode
 > 
 > and then try restarting?
 > 
 > Nick
 > 
 > On Fri, Sep 11, 2009 at 3:19 PM, Nick Perry <nperry at stanford.edu> wrote:
 > 
 > > "gl_labserv:omero_dist gordonlaurie$ bin /omero admin start"
 > >
 > > isn't bin a folder? so the correct command would be:
 > >
 > > $ bin/omero admin start
 > >
 > > Let me know if that works,
 > > Nick
 > >
 > >
 > > On Fri, Sep 11, 2009 at 3:13 PM, Gordon W. Laurie <glaurie at virginia.edu>wrote:
 > >
 > >> Thought I had the sequence for restarting Omero understood from a previous
 > >> restart approximately one month ago.  This is the sequence that previously
 > >> worked:
 > >>
 > >> 1. Open up pgAdmin III.  Control (ctrl) click on PostrgreSQL 8.3
 > >> (localhost)
 > >> and connect.
 > >>
 > >> 2. Enter three commands in Terminal:
 > >> export PATH=/opt/Ice-3.3/bin:$PATH
 > >> export DYLD_LIBRARY_PATH=/opt/Ice-3.3/lib:$DYLD_LIBRARY_PATH
 > >> export PYTHONPATH=/opt/Ice-3.3/python:$PYTHONPATH
 > >>
 > >> 3. Move to /omero_dist directory and start:
 > >> cd /usr/share/omero/omero_dist
 > >> bin /omero admin start
 > >> bin/omero admin ice
 > >> >>>server enable Web
 > >> >>>server start Web
 > >>
 > >>
 > >>
 > >> Below is the failed attempt.  I am running in Mac OS 10.5.8.
 > >>
 > >> gl_labserv:~ gordonlaurie$ export PATH=/opt/Ice-3.3/bin:$PATH
 > >> gl_labserv:~ gordonlaurie$ export
 > >> DYLD_LIBRARY_PATH=/opt/Ice-3.3/lib:$DYLD_LIBRARY_PATH
 > >> gl_labserv:~ gordonlaurie$ export
 > >> PYTHONPATH=/opt/Ice-3.3/python:$PYTHONPATH
 > >> gl_labserv:~ gordonlaurie$ cd /usr/share/omero/omero_dist
 > >> gl_labserv:omero_dist gordonlaurie$ bin /omero admin start
 > >> -bash: bin: command not found
 > >> gl_labserv:omero_dist gordonlaurie$ bin/omero admin ice
 > >> icegridadmin: could not contact the default locator:
 > >> Network.cpp:1220: Ice::ConnectionRefusedException:
 > >> connection refused: Connection refused
 > >>
 > >>
 > >> Any suggestions?
 > >> Gordon.



More information about the ome-users mailing list