[ome-devel] Errors in OMERO ICE TRACE & IcePatch2 Functionality on WinXP
Carl, Andrew F (AS)
a.carl at ngc.com
Thu Aug 20 23:45:13 BST 2009
Appologies for the multiple commented-out sections (lots of
experimenting!) Regards, Andy
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Start Master.cfg (contents of internal.cfg & windows.cfg are commented
out)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#
# OMERO Master Configuration
# Copyright 2007 Glencoe Software, Inc. All Rights Reserved.
# Use is subject to license terms supplied in LICENSE.txt
#
########################################################
########################################################
# The following from internal.cfg
Ice.Default.Locator=IceGrid/Locator:tcp -h 127.0.0.1 -p 4061
IceGridAdmin.Username=root
IceGridAdmin.Password=ome
#
# IceStormAdmin properties are only used if this
# file is used in combination with icestormadmin --Ice.Config=
#
IceStormAdmin.TopicManager.Default=OMERO.IceStorm/TopicManager at OMERO.Ice
Storm.TopicManager
########################################################
########################################################
########################################################
# Registry properties
########################################################
IceGrid.Registry.Client.Endpoints=tcp -h 127.0.0.1 -p 4061
IceGrid.Registry.Server.Endpoints=tcp -h 127.0.0.1
IceGrid.Registry.Internal.Endpoints=tcp -h 127.0.0.1
#IceGrid.Registry.Data=var/registry
#IceGrid.Registry.DynamicRegistration=0
IceGrid.Registry.DynamicRegistration=1
IceGrid.Registry.AdminPermissionsVerifier=IceGrid/NullPermissionsVerifie
r
#IceGrid.Registry.DefaultTemplates=etc/grid/templates.xml
#IceGrid.Registry.SessionManager.Endpoints=tcp -h 127.0.0.1
#IceGrid.Registry.AdminCryptPasswords=etc/passwd
########################################################
# Node properties
########################################################
IceGrid.Node.CollocateRegistry=1
IceGrid.Node.Endpoints=tcp -h 127.0.0.1
IceGrid.Node.Name=master
#IceGrid.Node.Data=var/master
#IceGrid.Node.Output=var/log
IceGrid.Node.Output=C:/omero_dist/var/log
#IceGrid.Node.RedirectErrToOut=1
# Defines that the standard out from this node and all
# contained servers will be saved in the following files.
# If Output is set, then output from the servers will be
# redirected _after_ Ice.Communicator creation.
#Ice.StdOut=var/log/master.out
#Ice.StdErr=var/log/master.err
########################################################
# Trace properties
########################################################
Ice.Warn.Connections=1
# Only 0 and 1
IceGrid.Registry.Trace.Application=1
IceGrid.Registry.Trace.Adapter=1
IceGrid.Registry.Trace.Object=1
IceGrid.Registry.Trace.Patch=1
IceGrid.Registry.Trace.Replica=1
IceGrid.Registry.Trace.Server=1
# Between 0 and 2
IceGrid.Registry.Trace.Locator=2
IceGrid.Registry.Trace.Node=2
IceGrid.Registry.Trace.Session=2
# Between 0 and 3
IceGrid.Node.Trace.Activator=3
IceGrid.Node.Trace.Adapter=3
IceGrid.Node.Trace.Patch=3
IceGrid.Node.Trace.Replica=3
IceGrid.Node.Trace.Server=3
########################################################
########################################################
# The following from windows.cfg
IceGrid.Registry.Data=c:\omero_dist\var\registry
IceGrid.Registry.DefaultTemplates=c:\omero_dist\etc\grid\templates.xml
IceGrid.Node.Data=c:\omero_dist\var\master
Ice.StdOut=c:\omero_dist\var\log\master.out
Ice.StdErr=c:\omero_dist\var\log\master.err
#IceGrid.Registry.AdminCryptPasswords=c:\omero_dist\etc\passwd
########################################################
########################################################
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
End Master.cfg (contents of internal.cfg & windows.cfg are commented
out)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Start Windefault.xml
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
<icegrid>
<!--
OMERO Grid Application Descriptor
Copyright 2009 Glencoe Software, Inc. All Rights Reserved.
Use is subject to license terms supplied in LICENSE.txt
Configuration for use on Windows. See definition of OMERO_HOME
parameter below.
-->
<application name="OMERO" import-default-templates="true">
<!--<distrib icepatch="${application}.IcePatch2/server"/>-->
<!--<distrib/>-->
<!--<distrib>
<directory>C:/omero_dist/icepatch2</directory>
</distrib>-->
<!--
On Windows, absolute paths are required for proper functioning.
All the necessary paths will use the ${OMERO_HOME} parameter,
especially in templates.xml
-->
<variable name="OMERO_HOME" value="c:\\omero_dist"/>
<variable name="OMEROPY_HOME" value="${OMERO_HOME}\\lib\\python\\"/>
<variable name="PYTHONPATH"
value="PYTHONPATH=%PYTHONPATH%;${OMEROPY_HOME}"/>
<properties id="Profile">
<!--
Any properties beginning with "omero" set here will
be passed to the servers as if via "-Domero.example=value"
were set on the command line. These values may be overwritten
by `bin/omero config` values.
-->
<property name="omero.example" value="my_value"/>
</properties>
<replica-group id="BlitzAdapters">
<load-balancing type="adaptive" load-sample="5" n-replicas="2"/>
<object identity="BlitzVerifier"
type="::Glacier2::PermissionVerifier"/>
<object identity="BlitzManager"
type="::Glacier2::SessionManager"/>
</replica-group>
<replica-group id="ProcessorAdapters">
<!--load-balancing type="adaptive" load-sample="5"
n-replicas="2"/-->
<load-balancing type="round-robin"/>
<object identity="Processor" type="::omero::grid::Processor"/>
</replica-group>
<node name="master">
<!--<icebox id="iceboxserver" exe="icebox"
activation="always">
<service name="Hello"
entry="HelloService:create">
<adapter name="${service}"
endpoints="tcp"/>
</service>
<distrib>
<directory>data</directory>
</distrib>
</icebox>-->
<!--<server-instance template="IcePatch2"
directory="C:\omero_dist\icepatch2\data"/>-->
<!--<server-template id="IcePatch2">
<parameter name="instance-name"
default="${application}.IcePatch2"/>
<parameter name="endpoints" default="default"/>
<parameter name="directory"/>
<server id="${instance-name}" exe="icepatch2server"
application-distrib="false" activation="on-demand">
<adapter name="IcePatch2" endpoints="${endpoints}">
<object identity="${instance-name}/server"
type="::IcePatch2::FileServer"/>
</adapter>
<properties>
<property name="IcePatch2.InstanceName"
value="${instance-name}"/>
<property name="IcePatch2.Directory" value="${directory}"/>
</properties>
</server>
</server-template>-->
<!--<server id="OMERO.IcePatch2" exe="icepatch2server"
application-distrib="false" activation="on-demand">
<adapter name="IcePatch2" endpoints="default">
<object identity="OMERO/server"
type="::IcePatch2::FileServer"/>
</adapter>
<properties>
<property name="IcePatch2.InstanceName" value="OMERO"/>
<property name="IcePatch2.Directory"
value="C:\omero_dist\icepatch2\data"/>
</properties>
</server>-->
<server-instance template="IcePatch2Template"
directory="C:\omero_dist\icepatch2\data"/>
<server-instance template="Glacier2Template"
client-endpoints="tcp -p 4063"
session-timeout="300"
server-endpoints="tcp -h 127.0.0.1"/>
<server-instance template="WinBlitzTemplate" index="0"
config="default"/>
<server-instance template="WinIndexerTemplate" index="0"/>
<server-instance template="DropBoxTemplate"/>
<server-instance template="FSTemplate"/>
<!--<server-instance template="ProcessorTemplate" index="0"
instance-name="icebox1">-->
<server-instance template="ProcessorTemplate" index="0">
<!--<distrib>
<directory>C:\omero_dist\ServerFiles</directory>
</distrib>-->
</server-instance>
<server-instance template="WebTemplate"/>
<server-instance template="StormTemplate"/>
</node>
<node name="backup">
<!--<server-instance template="BlitzTemplate" index="1"
config="backup"/>-->
<server-instance template="WinBlitzTemplate" index="1"
config="backup"/>
</node>
<node name="node1">
<server-instance template="ProcessorTemplate" index="1"/>
</node>
<node name="node2">
<server-instance template="ProcessorTemplate" index="2"/>
</node>
<!--<distrib>
<directory>application</directory>
</distrib>-->
<distrib/>
</application>
</icegrid>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
End Windefault.xml
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-----Original Message-----
From: josh.moore at gmx.de [mailto:josh.moore at gmx.de]
Sent: Thursday, August 20, 2009 3:38 PM
To: Carl, Andrew F (AS)
Cc: OME developers
Subject: [ome-devel] Errors in OMERO ICE TRACE & IcePatch2 Functionality
on WinXP
Hi Andy,
> 1) OMERO ICE TRACE & IcePatch2 Functionality
>
http://www.zeroc.com/forums/help-center/4507-request-icegrid-icepatch2-d
emo-example.html
thanks for pointing out the thread. I watch the forums, but didn't
realize this one was from you.
> caused both the TRACE and IcePatch2 functionality to fail. Since this
is
> the standard method for the OMERO deployment, any progress has been
> painfully non-existant, until I received your supplied example demo.
The cause *may* be the way in which OMERO is registered as a service
when using "bin/omero admin start", but I regularly use the
"Trace.Activator" on Windows to debug, so there are probably several
things going on.
> I am unclear as to why it should make any difference between being
> deployed as a service or from the command-line interface. Please
advise
> if this is a "ICE" issue, or an "OMERO" issue.
Without seeing your modified configuration files, it's hard to know,
but the major difference between deploying from the command-line and
as a service is that the service is started from a separate Windows
account (unless you took steps to change that). This has bitten me any
number of times.
Hope that helps,
~Josh.
More information about the ome-devel
mailing list