Print

Print


Hi again...

I'm now in one of the situations where tomcat started but one VO does 
not work from the VO-Admin web interface. The catalina.out log shows:

23:17:22.717 - ERROR 
[org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/voms/ict.vo.ibergrid.eu]:3809] 
- Exception sending context destroyed event to listener instance of 
class org.glite.security.voms.admin.servlets.VOMSContextListener
org.glite.security.voms.admin.configuration.VOMSConfigurationException: 
VOMS configuration not loaded! Use the load method to load it.

and

23:17:40.678 - ERROR 
[org.glite.security.voms.admin.core.VOMSService:180] - VOMS-Admin 
configuration failed!
org.glite.security.voms.admin.configuration.VOMSConfigurationException: 
Error loading voms-admin configuration: 'VO_NAME' VO runtime property, 
needed to properly initialize voms-admin services, was not found in JNDI 
naming service and in the process environment!

I've tried to load the configuration directly using


[# /opt/glite/sbin/init-voms-admin.py 
--context=/var/glite/etc/voms-admin/ict.vo.ibergrid.eu/voms-admin-ict.vo.ibergrid.eu.xml 
start ict.vo.ibergrid.eu

but the same errors keep appearing. It seems it can not found the 
VO_NAME var in 
/var/glite/etc/voms-admin/ict.vo.ibergrid.eu/voms-admin-ict.vo.ibergrid.eu.xml, 
but indeed it is there:

[root@voms01 ~]# cat 
/var/glite/etc/voms-admin/ict.vo.ibergrid.eu/voms-admin-ict.vo.ibergrid.eu.xml

<Context path="/voms/ict.vo.ibergrid.eu"
         docBase="/opt/glite/share/webapps/glite-security-voms-admin.war"
         debug="0"
         reloadable="true">

<Environment name="VO_NAME" value="ict.vo.ibergrid.eu" 
type="java.lang.String"/>

<Environment name="CONFIG_DIR" 
value="/var/glite/etc/voms-admin/ict.vo.ibergrid.eu" 
type="java.lang.String"/>

<Environment name="GLITE_LOCATION" value="/opt/glite" 
type="java.lang.String"/>

<Environment name="GLITE_LOCATION_VAR" value="/var/glite" 
type="java.lang.String"/>

<Environment name="VOMS_LOCATION" value="/opt/glite" 
type="java.lang.String"/>

I do not have more ideas...

Cheers
Goncalo







On 01/05/2011 10:25 PM, Gonçalo Borges wrote:
> Dear All...
>
> I've passed the last 2 days fighting with tomcat errors after a VOMS 
> upgrade from gLite 3.1 to 3.2.  I've upgraded according to the 
> Upgrading section on 
> https://twiki.cern.ch/twiki/bin/view/EGEE/VomsInstallGuide_32. 
> However, something is very wrong with tomcat since I'm not able to 
> start it properly. Just for the record, I'm running the service in a 
> VM but with 4 GB of RAM. The tomcat behaviour at startup is erratic 
> since sometimes it is able to start and sometimes it is not. The yaim 
> configuration didn't showed any error.
>
> Let's go by steps:
>
> 1) The first problem I got was that tomcat complained about Out of 
> Memory for PermSize. Maybe this is a problem at startup, and it 
> appears because I have 13 VOs in the same server. I was able to 
> overcome this problem configuring
>     CATALINA_OPTS="-Xmx2048M -server 
> -Dsun.net.client.defaultReadTimeout=240000 -*XX:MaxPermSize=1024M*"
> in /etc/tomcat5/tomcat5.conf
>
> 2) Sometimes, tomcat simply dies after restart. There are a lot of 
> logs in catalina.out (too much) but the relevant information I can 
> obtain on those cases is:
>
> 9:25:36.029 - ERROR 
> [org.glite.security.voms.admin.core.VOMSService:180] - VOMS-Admin 
> configuration failed!
> org.glite.security.voms.admin.configuration.VOMSConfigurationException: Error 
> loading voms-admin configuration: 'VO_NAME' VO runtime property, 
> needed to properly initialize voms-admin services, was not found in 
> JNDI naming service and in the process environment!
>     at 
> org.glite.security.voms.admin.configuration.VOMSConfiguration.loadVORuntimeProperties(VOMSConfiguration.java:1074) 
> [VOMSConfiguration.class:na]
> (...)
>
> Other times, tomcat starts but not all VOs are OK in the web interface 
> and I have to restart voms-admin by hand for each of the problematic VOs.
>
> I've managed to put it running but I never know if after the next 
> reboot / restart / reconfiguration I will not deal with these problems 
> anymore.
>
>
> Can someone give a hint?
>
> Cheers
> Goncalo
>