perfsonar-user - Re: [perfsonar-user] SSHTelnet MP
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Rodesch Christian <>
- To: ,
- Subject: Re: [perfsonar-user] SSHTelnet MP
- Date: Thu, 29 May 2008 08:20:46 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Stijn,
I continued my testing and was confirmed in my theory. If I restart
Tomcat, the service is not working,so the WEB IF shows me a JAVA error
and also the service does only sent an empty list.
After waiting some minutes (+/- 15min) the service starts working
sudently. The WEB IF shows like it should and the service sends the
correct list of devices. I can execute commands like it should be.
So there seems to be something going wrong when starting Tomcat.
I hope this helps you a little in finding the bug. If you need further
information or log files, just tell me and I'll send them to you
Regards,
Christian
Stijn Melis wrote:
> > Hi Christian,
> >
> > the service doesn't make connection to the database unless it is
> > necessary. This will only happen in the following cases:
> >
> > * you press apply in the basic page of the web admin interface, it will
> > try upload the metadata configuration file specified to the eXist
database
> > * a MetadataKeyRequest is received -> the MP will then return all the
> > metadata from the database as a response
> > * a SetupDataRequest is receivce -> the MP will try and get all the
> > needed login information for the device, and the needed information for
> > performing the command.
> >
> > Your problem could be with tomcat though, as you say. When you start
> > tomcat, it might be that it starts the MP first, and the eXist database
> > a bit later. So the database isn't yet there when it is needed.
> >
> > About the LS registration: there seems to be a problem with it. I am
> > investigating what is going wrong. I also can't seem to register the MP
> > with the LS. Please note though, that you have to restart tomcat
> > whenever you change something to the configuration.
> >
> > Should you need any more help, feel free to contact me.
> >
> > Cheers,
> >
> > Stijn
> >
> > Rodesch Christian wrote:
>> >> Hi,
>> >>
>> >> I used the configurator to create the MetaData File and suddenly
>> >> everything worked fine! Even the web IF worked like it should.
>> >>
>> >> Then I tried to configure the LS via the Web Interface. After
restarting
>> >> tomcat, it's the same again :-( The web service shows me the
java error
>> >> and the looking glass can't poll the service.
>> >>
>> >> I think that the problem has to do something with the database
>> >> connection. When I start the service, it does not work, but when the
>> >> service has been running for a while it's suddenly working.
>> >> Does the server reconnect to the database in regular periods? Maybe,
>> >> when tomcat is starting the service is being launched before eXist has
>> >> been started and therefore the whole problem?
>> >>
>> >> I will continue to locate the problem...
>> >>
>> >> Thanks for your help!
>> >>
>> >> Christian
>> >>
>> >>
>> >> Stijn Melis wrote:
>>> >>> Sorry, forgot to add Michalis to the addressees.
>> >>
>>> >>> Cheers,
>> >>
>>> >>> Stijn
>> >>
>>> >>> Stijn Melis wrote:
>>>> >>>> Hi Christian,
>>>> >>>>
>>>> >>>> Rodesch Christian wrote:
>>>>> >>>>> Hi,
>>>>> >>>>>
>>>>> >>>>> I already installed the SSHTelnet MP from perfsonar 2.2 and in
>>>>> >>>>> combination with the Looking Glass client, it worked quite well.
>>>>> >>>>> Now, I installed the new Service of perfSONAR 3.0 and I only
got a lot
>>>>> >>>>> of problems:
>>>>> >>>>>
>>>>> >>>>> 1) The Web IF is not working, if I open the URL, the main
page appears
>>>>> >>>>> like it should,but if I click on any link like Basic Setup,
I get this
>>>>> >>>>> message:
>>>>> >>>>>
>>>>> >>>>> HTTP Status 500 -
>>>>> >>>>>
>>>>> >>>>> type Exception report
>>>>> >>>>>
>>>>> >>>>> message
>>>>> >>>>>
>>>>> >>>>> description The server encountered an internal error () that
prevented
>>>>> >>>>> it from fulfilling this request.
>>>>> >>>>>
>>>>> >>>>> exception
>>>>> >>>>>
>>>>> >>>>> javax.servlet.ServletException: Error instantiating servlet
class
>>>>> >>>>> perfSONARWebAdmin.admin.wizard.Wizard
>>>>> >>>>>
>>>>> >>>>>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>>>> >>>>>
>>>>> >>>>> java.lang.Thread.run(Thread.java:595)
>>>>> >>>>>
>>>>> >>>>> root cause
>>>>> >>>>>
>>>>> >>>>> java.lang.NullPointerException
>>>>> >>>>>
>>>>> >>>>>
org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1967)
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1759)
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327)
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>>>> >>>>> java.lang.Class.getDeclaredConstructors0(Native Method)
>>>>> >>>>>
java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>>>>> >>>>> java.lang.Class.getConstructor0(Class.java:2671)
>>>>> >>>>> java.lang.Class.newInstance0(Class.java:321)
>>>>> >>>>> java.lang.Class.newInstance(Class.java:303)
>>>>> >>>>>
>>>>> >>>>>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>>
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>>>> >>>>>
>>>>> >>>>> java.lang.Thread.run(Thread.java:595)
>>>>> >>>>>
>>>>> >>>>> note The full stack trace of the root cause is available in
the Apache
>>>>> >>>>> Tomcat/6.0.16 logs.
>>>>> >>>>> Apache Tomcat/6.0.16
>>>>> >>>>>
>>>>> >>>>>
>>>>> >>>>> The log shows me the following:
>>>>> >>>>>
>>>>> >>>>> 2008-05-27 16:01:31,692 DEBUG - In AxisServletBase init
>>>>> >>>>> 2008-05-27 16:01:31,705 DEBUG - Enter: getEngine()
>>>>> >>>>> 2008-05-27 16:01:31,717 DEBUG -
>>>>> >>>>>
getBundle(org.apache.axis,org.apache.axis.i18n,resource,null,...)
>>>>> >>>>> 2008-05-27 16:01:31,726 DEBUG - loadBundle: Ignoring
>>>>> >>>>> MissingResourceException: Can't find bundle for base name
>>>>> >>>>> org.apache.axis.resource, locale en_US
>>>>> >>>>> 2008-05-27 16:01:31,726 DEBUG - Created
org.apache.axis.i18n.resource,
>>>>> >>>>> linked to parent null
>>>>> >>>>> 2008-05-27 16:01:31,727 DEBUG -
>>>>> >>>>>
getBundle(org.apache.axis,org.apache.axis.utils,resource,null,...)
>>>>> >>>>> 2008-05-27 16:01:31,729 DEBUG - loadBundle: Ignoring
>>>>> >>>>> MissingResourceException: Can't find bundle for base name
>>>>> >>>>> org.apache.axis.utils.resource, locale en_US
>>>>> >>>>> 2008-05-27 16:01:31,729 DEBUG - loadBundle: Ignoring
>>>>> >>>>> MissingResourceException: Can't find bundle for base name
>>>>> >>>>> org.apache.axis.resource, locale en_US
>>>>> >>>>> 2008-05-27 16:01:31,729 DEBUG - Root package not found,
cross link to
>>>>> >>>>> org.apache.axis.i18n.resource
>>>>> >>>>> 2008-05-27 16:01:31,729 DEBUG - Root package not found,
cross link to
>>>>> >>>>> org.apache.axis.i18n.resource
>>>>> >>>>> 2008-05-27 16:01:31,729 DEBUG -
>>>>> >>>>> org.apache.axis.i18n.resource::handleGetObject(engineFactory)
>>>>> >>>>> 2008-05-27 16:01:31,729 DEBUG - Got EngineFactory:
>>>>> >>>>> org.apache.axis.configuration.EngineConfigurationFactoryServlet
>>>>> >>>>> 2008-05-27 16:01:31,732 DEBUG -
>>>>> >>>>>
org.apache.axis.i18n.resource::handleGetObject(readOnlyConfigFile)
>>>>> >>>>> 2008-05-27 16:01:31,732 INFO - Configuration file read-only
so engine
>>>>> >>>>> configuration changes will not be saved.
>>>>> >>>>> 2008-05-27 16:01:31,736 DEBUG - Enter:
>>>>> >>>>> DefaultAxisServerFactory::getServer
>>>>> >>>>> 2008-05-27 16:01:31,736 DEBUG - Enter:
>>>>> >>>>> DefaultAxisServerFactory::getEngineConfiguration
>>>>> >>>>> 2008-05-27 16:01:31,736 DEBUG - Exit:
>>>>> >>>>> DefaultAxisServerFactory::getEngineConfiguration
>>>>> >>>>> 2008-05-27 16:01:31,738 DEBUG - Enter: AxisEngine::init
>>>>> >>>>> 2008-05-27 16:01:32,076 DEBUG -
>>>>> >>>>> org.apache.axis.i18n.resource::handleGetObject(attachEnabled)
>>>>> >>>>> 2008-05-27 16:01:32,076 DEBUG - Attachment support is
enabled? true
>>>>> >>>>> 2008-05-27 16:01:32,092 DEBUG - Enter/Exit:
>>>>> >>>>> JAFDataHandlerDeserializerFactory(class java.lang.String,
>>>>> >>>>> {http://xml.apache.org/xml-soap}PlainText)
>>>>> >>>>> 2008-05-27 16:01:32,094 DEBUG -
>>>>> >>>>> org.apache.axis.i18n.resource::handleGetObject(oddDigits00)
>>>>> >>>>> 2008-05-27 16:01:32,094 DEBUG -
>>>>> >>>>> org.apache.axis.i18n.resource::handleGetObject(badChars01)
>>>>> >>>>> 2008-05-27 16:01:32,136 DEBUG - Enter/Exit:
>>>>> >>>>> JAFDataHandlerDeserializerFactory(class java.awt.Image,
>>>>> >>>>> {http://xml.apache.org/xml-soap}Image)
>>>>> >>>>> 2008-05-27 16:01:32,137 DEBUG - Enter/Exit:
>>>>> >>>>> JAFDataHandlerDeserializerFactory(class
>>>>> >>>>> javax.mail.internet.MimeMultipart,
>>>>> >>>>> {http://xml.apache.org/xml-soap}Multipart)
>>>>> >>>>> 2008-05-27 16:01:32,138 DEBUG - Enter/Exit:
>>>>> >>>>> JAFDataHandlerDeserializerFactory(interface
>>>>> >>>>> javax.xml.transform.Source,
>>>>> >>>>> {http://xml.apache.org/xml-soap}Source)
>>>>> >>>>> 2008-05-27 16:01:32,139 DEBUG - Enter/Exit:
>>>>> >>>>> JAFDataHandlerDeserializerFactory(class
>>>>> >>>>> org.apache.axis.attachments.OctetStream,
>>>>> >>>>> {http://xml.apache.org/xml-soap}octet-stream)
>>>>> >>>>> 2008-05-27 16:01:32,139 DEBUG - Enter/Exit:
>>>>> >>>>> JAFDataHandlerDeserializerFactory()
>>>>> >>>>> 2008-05-27 16:01:32,196 DEBUG - Exit: AxisEngine::init
>>>>> >>>>> 2008-05-27 16:01:32,196 DEBUG - Exit:
>>>>> >>>>> DefaultAxisServerFactory::getServer
>>>>> >>>>> 2008-05-27 16:01:32,196 DEBUG - Exit: getEngine()
>>>> >>>> Honestly, I have no idea what is causing this. Did you use the
war,
>>>> >>>> rpm or deb file? Which log file are you talking about, because
there
>>>> >>>> are several?
>>>> >>>> Maybe Michalis can give some more information about this too,
since he
>>>> >>>> is responsible for the WebAdmin.
>>>> >>>>
>>>>> >>>>> 2) Therefore I configured everything by hand, the
>>>>> >>>>> service.properties and
>>>>> >>>>> the xml file. I also uploaded the file to the eXist
database. When I
>>>>> >>>>> then open the Looking Glass it depends on my luck whether I
get the
>>>>> >>>>> configured router and the commands,or if I get a popup with
an error
>>>>> >>>>> message. So the fact that once or twice I got the list with the
>>>>> >>>>> commands
>>>>> >>>>> I wrote in the xml file, shows that the xml is ok and correctly
>>>>> >>>>> uploaded
>>>>> >>>>> to the eXist database.
>>>> >>>> The password for the devices should be encrypted in Base64.
You can
>>>> >>>> use the SSHTELNET MP configuration tool for this. You can find
it here:
>>>> >>>>
>>>> >>>>
http://wiki.perfsonar.net/jra1-wiki/index.php/SSH-Telnet-download#Configuration_script_to_be_used_together_with_version_1.3
>>>> >>>>
>>>> >>>>
>>>> >>>>
>>>> >>>> If you entered the password in plain text in the metadata
>>>> >>>> configuration file, it will not work. You will however still
see the
>>>> >>>> devices and commands like you do now, but they won't work.
>>>> >>>>
>>>> >>>> About the Looking Glass: I am aware that it is not working
properly as
>>>> >>>> it should and that is gives too much errors when trying to do
>>>> >>>> something. I am busy integrating the Looking Glass into psUI,
so you
>>>> >>>> will have a new version to use very soon.
>>>> >>>>
>>>> >>>>
>>>>> >>>>> 3) As I used the SSHTelnet service of perfsonar bundle 2.2,
I miss the
>>>>> >>>>> option to chose whether to connect by Telnet or SSH in the
xml meta
>>>>> >>>>> data
>>>>> >>>>> file. Is there an xml element for this?
>>>> >>>> This is still there. If you use the configuration tool I mentioned
>>>> >>>> above, you will still have the same options as in 2.2 (it's
actually
>>>> >>>> the same script, but on a standalone basis). However, if you
want to
>>>> >>>> change it manually, you have to change the class_name element. For
>>>> >>>> example, for a Cisco Telnet connection you have to enter:
>>>> >>>>
>>>> >>>>
org.perfsonar.service.measurementPoint.lookingGlassType.engine.adapters.CiscoAdapter
>>>> >>>>
>>>> >>>>
>>>> >>>>
>>>> >>>> other possibilities are:
>>>> >>>>
>>>> >>>> org.<...>.adapters.CiscoSshAdapter -> Cisco/SSH
>>>> >>>> org.<...>.adapters.CiscoKeyAdapter -> Cisco/SSH with a key
>>>> >>>> org.<...>.adapters.JuniperAdapter -> Juniper/Telnet
>>>> >>>> org.<...>.adapters.JuniperSshAdapter -> Juniper/SSH
>>>> >>>> org.<...>.adapters.JuniperKeyAdapter -> Juniper/SSH with a key
>>>> >>>>
>>>> >>>> Please not however that if you change the type of connection, some
>>>> >>>> other parameters will get a different meaning. For example, if
you use
>>>> >>>> a Key, the password parameter has no meaning, and should be
replaced
>>>> >>>> by a keyUrl parameter, which specifies the path to the key,
and you
>>>> >>>> could also add a passphrase parameter, which indicates a possible
>>>> >>>> password for your key.
>>>> >>>>
>>>> >>>> So, to make it short, I'd advise you to use the configuration
tool,
>>>> >>>> since this will solve the problem with the Base64 encoding of the
>>>> >>>> password, as well as ask you all the right questions according
to the
>>>> >>>> chosen type of connection/device.
>>>> >>>>
>>>> >>>>
>>>>> >>>>> I hope I'm not bothering you too much, but I really like the
>>>>> >>>>> concept of
>>>>> >>>>> perfSONAR and I'm trying my best to get the services to work.
>>>>> >>>>>
>>>>> >>>>> Regards,
>>>>> >>>>>
>>>>> >>>>> Christian
>>>> >>>> Regards,
>>>> >>>>
>>>> >>>> Stijn
>> >>
> >
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIPks+SQwVwoDEhQsRApVwAKDRxEsg3uMkdZ5fMfN85KR/oqRhjACg72Va
tkQfWTPUf+4fF68lvG01hyo=
=hw2A
-----END PGP SIGNATURE-----
- Re: [perfsonar-user] SSHTelnet MP, Rodesch Christian, 05/29/2008
- Re: [perfsonar-user] SSHTelnet MP, Stijn Melis, 05/29/2008
- Re: [perfsonar-user] SSHTelnet MP, Loukik Kudarimoti, 05/29/2008
- Re: [perfsonar-user] SSHTelnet MP, Stijn Melis, 05/29/2008
- Re: [perfsonar-user] SSHTelnet MP, Loukik Kudarimoti, 05/29/2008
- Re: [perfsonar-user] SSHTelnet MP, Stijn Melis, 05/29/2008
Archive powered by MHonArc 2.6.16.