Project

General

Profile

Connection refused

Added by Hamar Vanessa over 14 years ago

Hi all,

I can submit jobs to EELA2 sites, but when I try to get job status I got Connection refused:

jsaga-job-status.sh [wms://wms-eela.ceta-ciemat.es:7443/glite_wms_wmproxy_server]-[https://lb-eela.ceta-ciemat.es:9000/W38uDLHA7jkLQ7bIhYYQfA]
Exception in thread "main" NoSuccess: java.net.ConnectException: Connection refused
at fr.in2p3.jsaga.adaptor.wms.job.WMSJobMonitorAdaptor.getStatus(WMSJobMonitorAdaptor.java:135)
at fr.in2p3.jsaga.engine.job.monitor.request.JobStatusRequestor.getJobStatus(JobStatusRequestor.java:32)
at fr.in2p3.jsaga.engine.job.monitor.JobMonitorService.getState(JobMonitorService.java:57)
at fr.in2p3.jsaga.impl.job.instance.AbstractSyncJobImpl.queryState(AbstractSyncJobImpl.java:218)
at fr.in2p3.jsaga.impl.task.AbstractTaskImpl.getState(AbstractTaskImpl.java:229)
at fr.in2p3.jsaga.impl.job.instance.JobImpl.getState(JobImpl.java:79)
at fr.in2p3.jsaga.command.JobStatus.main(JobStatus.java:60)
Caused by: java.net.ConnectException: Connection refused
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at org.glite.wsdl.services.lb.LoggingAndBookkeepingStub.jobStatus(LoggingAndBookkeepingStub.java:802)
at fr.in2p3.jsaga.adaptor.wms.job.WMSJobMonitorAdaptor.getStatus(WMSJobMonitorAdaptor.java:122)
... 6 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:525)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.globus.axis.transport.HTTPSSender.getSocket(HTTPSSender.java:47)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
... 17 more

I know than the WMS service is up. Could you please help me.

Thanks in advance,

Vanessa


Replies (3)

RE: Connection refused - Added by Reynaud Sylvain over 14 years ago

Hi Vanessa,

I don't why it refuses to connect, but here is some information that may help you to find the reason why:
  • Job monitoring is not done through WMS but through LB.
  • LB can run on the same host than WMS, or it can run on a different host, depending on site choice.
  • JSAGA extract LB host from job id and save it to a local file (see ~/.jsaga/var/WMStoLB.properties), but you can also set it by configuration in file jsaga-universe.xml (see example below).
  • Default LB port is 9003, but you can change this in file jsaga-universe.xml (see example below).

Extract of jsaga-universe.xml configuration file:

            <job type="wms">
                <attribute name="MonitorPort" value="9003"/>
                <monitorService url="wms://lb-eela.ceta-ciemat.es"/>
            </job>

I hope this will help you to find why connection is refused.

Regards,
Sylvain

RE: Connection refused - Added by Hamar Vanessa over 14 years ago

Hi Sylvain,

It's working after add the lines to the configuration file.

Thanks,

Vanessa

RE: Connection refused - Added by Reynaud Sylvain over 14 years ago

Good to know, thanks for the feedback.

The monitorService configuration element helps for testing, however if later you want to use several different WMS servers, it could be annoying because all of them will try to use the same LB server.

Can you please post your ~/.jsaga/var/WMStoLB.properties file ?

Regards,
Sylvain

    (1-3/3)