On Tue, 27 Sep 2005, Y.Lyublev wrote:
> Dears.
> Help me, please, to understand cause of failure of the formed parameters for
> DCacheSE -
> GlueSAStateAvailableSpace and GlueSAStateUsedSpace
>
> [root@se2 root]# /opt/lcg/libexec/lcg-info-dynamic-se
> Bad
> /opt/d-cache/srm/bin/srm-storage-element-info -x509_user_proxy=/opt/lcg/host
> proxy: status 256
The info providers should not be run as root: they may create files that
will then be unwritable for "edginfo".
Anyway, /opt/lcg/libexec/lcg-info-dynamic-dcache is a simple perl script,
so you can easily modify it to give you debug info. In particular, after
this line:
open STATUS, "$srminfocommand https://$host:8443/srm/infoProvider1_0.wsdl 2>&1 |"
insert the following line:
. " tee /tmp/mydebug.$$ |"
Then you get all its output and errors into a file in /tmp; find the latest
such file like this:
ls -lt /tmp | sed '/mydebug/q'
Look into /var/tmp/.srmconfig/config.xml: the error messages below suggest
it is corrupted; just move it out of the way and it will get remade.
> And zero size of the file lcg-info-dynamic-se.ldif.3399 as a result.
>
> [root@se2 root]# ll /opt/lcg/var/gip/tmp/lcg-info-dynamic-se.ldif.3399
> -rw-r--r-- 1 edginfo edginfo 0 Sep 27 09:58
> /opt/lcg/var/gip/tmp/lcg-info-dynamic-se.ldif.3399
>
> And result of the
> "/opt/d-cache/srm/bin/srm-storage-element-info -x509_user_proxy=/opt/lcg/hos
> tproxy"
> command from root and edginfo users.
>
> [root@se2 root]#
> /opt/d-cache/srm/bin/srm-storage-element-info -x509_user_proxy=/opt/lcg/host
> proxy
> /opt/d-cache/srm
> -x509_user_proxy=/opt/lcg/hostproxy
> configuration file not found, configuring srmcp
> srmcp error : one and only one storage element info server wsdl url should
> be specified
> srmcp error : one and only one storage element info server wsdl url should
> be specified
>
> [root@se2 root]# su - edginfo
> [edginfo@se2 edginfo]$
> /opt/d-cache/srm/bin/srm-storage-element-info -x509_user_proxy=/opt/lcg/host
> proxy
> /opt/d-cache/srm
> -x509_user_proxy=/opt/lcg/hostproxy
> configuration file not found, configuring srmcp
> srmcp error : one and only one storage element info server wsdl url should
> be specified
> srmcp error : one and only one storage element info server wsdl url should
> be specified
>
|