Print

Print


Hi Ewan,

SO not sure if this is the issue or not, after looking at the source it looks like this line is failing:

 if centralCfg['Registry']['Hosts'][host].existsKey( 'DN' ):

When the CFG object is trying to lookup it's dictionary hash. From the code the cfg host is supposed to be created assuming the variable host is set by:

 host = localCfg.getOption( cfgInstallPath( 'Host' ), getFQDN() )

It looks like in the default input file on the webpage has:

 #
  #  The following options define components to be installed
  #
  #  Name of the installation host (default: the current host )
  #  Used to build the URLs the services will publish
  #  For a test installation you can use 127.0.0.1
  # Host = dirac.cern.ch
  Host =
So I'm wondering if helpfully the example config doesn't actually work and this needs to be set to something, you may have already done this and I'm barking up the wrong tree... but maybe that'll help.

Gareth





On 12 Apr 2013, at 16:01, Ewan MacMahon wrote:

Hi all,

I've been having a play with various things around the area of
supporting small VOs, just to try to get myself up to speed on
the tools we're hoping to have them use. I've just tried to
install a little Dirac server, since it's apparently terribly
easy, and I'm stuck.

The installation instructions:
http://diracgrid.org/files/docs/AdministratorGuide/InstallingDIRACService/index.html
basically amount to downloading and running a magic script, which
I've now tried on both SL5 and 6, and on a minimal install, and
one with a full set of development tools and a full grid UI
installed, and with various config files, including completely
unmodified copies of the example configs, and with several
different versions of dirac itself.

Every single time, the install script does some stuff, and then
dies like this:

Executing: /opt/dirac/versions/v6r8p3_1365776881/DIRAC/Core/scripts/dirac-configure.py install.cfg  
Checking DIRAC installation at "/opt/dirac/versions/v6r8p3_1365776881"
DIRAC Root Path = /opt/dirac/versions/v6r8p3_1365776881
Installing Master Configuration Server
Loading configuration template /opt/dirac/versions/v6r8p3_1365776881/DIRAC/ConfigurationSystem/ConfigTemplate.cfg
Traceback (most host = localCfg.getOption( cfgInstallPath( 'Host' ), getFQDN() )recent call last):
  File "/opt/dirac/versions/v6r8p3_1365776881/DIRAC/Core/scripts/dirac-setup-site.py", line 36, in <module>
    result = InstallTools.setupSite( Script.localCfg, cfg )
  File "/opt/dirac/versions/v6r8p3_1365776881/DIRAC/Core/Utilities/InstallTools.py", line 1295, in setupSite
    centralCfg = _getCentralCfg( localCfg )
  File "/opt/dirac/versions/v6r8p3_1365776881/DIRAC/Core/Utilities/InstallTools.py", line 403, in _getCentralCfg
    if centralCfg['Registry']['Hosts'][host].existsKey( 'DN' ):
  File "/opt/dirac/versions/v6r8p3_1365776881/DIRAC/Core/Utilities/CFG.py", line 562, in __getitem__
    return self.__dataDict[ key ]
KeyError: ''

I've managed to find one decent reference to this error, on
the dirac bug tracker:
https://github.com/DIRACGrid/DIRAC/issues/1320
but that goes no-where, just a suggestion to use a newer version
(I've tried that version, and the latest, and some others).

Has anyone actually managed to install a new dirac server anywhere
at all recently, and if so, how?

Ewan