Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
OpenDeploy can't connect to RMI port 9173
simon1
Hi,
Our OpenDeploy server suddenly failed to deploy, and when (I desperation of any other solution to solve the problem) tried to restart (/etc/init.d/stop and start) the OpenDeploy server (5.5.1 on AIX), it fails with the following log:
Anybody knows why?
----- log message ---
iwod:20031027:1157: Starting iwdeploy server
OD HOME is: /usr/OpenDeployNG
RMI registry port: 9173
DEPLOYAPI_AGENT_CMD /usr/OpenDeployNG/jre/bin/java -Xss2m -Xoss2m -Xms64m -Xmx256m -classpath /usr/OpenDeployNG/lib/odapi_svr100.jar:/usr/OpenDeployNG/lib/oda
pi_cl100.jar:/usr/OpenDeployNG/lib/odng.jar:/usr/OpenDeployNG/lib/od_fo.jar:/usr/OpenDeployNG/lib/od_se.jar:/usr/OpenDeployNG/lib/cfg2xml.jar:/usr/OpenDeployN
G/lib/odcombo.jar -Djava.library.path=/usr/OpenDeployNG/lib:/usr/lib -Djava.compiler=NONE -Djava.rmi.server.codebase=file:/usr/OpenDeployNG/lib/odapi_cl100.ja
r -Djava.security.policy=/usr/OpenDeployNG/lib/deployapi.policy -Dinterwoven.deployapi.locator=<IWRMINamingServiceLocator><localhostPort>9173</localhostPort><
/IWRMINamingServiceLocator> -Dod.home=/usr/OpenDeployNG com.interwoven.deployapi.service.IWODServiceServer /usr/OpenDeployNG/etc/deploy.cfg
START OD AGENT
Parsing command line.
Reading configuration:
File "/usr/OpenDeployNG/etc/deploy.cfg".
Getting locator.
Starting services:
Starting service "Deploy":
Creating service "Deploy". [Interface version: "-0.0"]
Registering service "Deploy" as "IWDeployService".
OpenDeploy server host: localhost, RMI registry port: 9173
Exception: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: A remote host refused an attempted connect operation.
java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: A remote host refused an attempted connect operation.
java.net.ConnectException: A remote host refused an attempted connect operation.
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:329)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:141)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:128)
at java.net.Socket.<init>(Socket.java:285)
at java.net.Socket.<init>(Socket.java:112)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:29)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:124)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:512)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:206)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:190)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:324)
at sun.rmi.registry.RegistryImpl_Stub.rebind(RegistryImpl_Stub.java:125)
at java.rmi.Naming.rebind(Naming.java:161)
at com.interwoven.deployapi.service.IWODRMINamingServiceLocator.registerRemote(IWODRMINamingServiceLocator.java:281)
at com.interwoven.deployapi.service.IWODServiceRemoterImpl.<init>(IWODServiceRemoterImpl.java:121)
at com.interwoven.deployapi.deploy.IWDeployServiceRemoterImpl.<init>(IWDeployServiceRemoterImpl.java:71)
at java.lang.reflect.Constructor.newInstance(Native Method)
at com.interwoven.deployapi.service.IWODServiceServer.startService(IWODServiceServer.java:373)
at com.interwoven.deployapi.service.IWODServiceServer.startServiceList(IWODServiceServer.java:296)
at com.interwoven.deployapi.service.IWODServiceServer.server(IWODServiceServer.java:158)
at com.interwoven.deployapi.service.IWODServiceServer.main(IWODServiceServer.java:169)
Exception: null
java.lang.reflect.InvocationTargetException: com.interwoven.deployapi.service.IWODService$ConfigException: Exception registering service.
at com.interwoven.deployapi.service.IWODServiceRemoterImpl.<init>(IWODServiceRemoterImpl.java:124)
at com.interwoven.deployapi.deploy.IWDeployServiceRemoterImpl.<init>(IWDeployServiceRemoterImpl.java:71)
at java.lang.reflect.Constructor.newInstance(Native Method)
at com.interwoven.deployapi.service.IWODServiceServer.startService(IWODServiceServer.java:373)
at com.interwoven.deployapi.service.IWODServiceServer.startServiceList(IWODServiceServer.java:296)
at com.interwoven.deployapi.service.IWODServiceServer.server(IWODServiceServer.java:158)
at com.interwoven.deployapi.service.IWODServiceServer.main(IWODServiceServer.java:169)
Find more posts tagged with
Comments
Adam Stoller
In between running /etc/init.d/iwod stop and /etc/init.d/iwod start - I recommend running: netstat -na | grep 9173
In the past, stopping OD did not necessarily mean that all the sockets had been cleared - some of them may still be sitting in a wait state or something.
When the netstat command no longer shows anything listening on 9173 - then run /etc/init.d/iwod start
In your case - make sure to run the 'stop' again first before running the netstat command.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
simon1
Thanks for the tip, but…
After a couple of tries, it went up again. But now I got another problem, when checking the server status (bin/iwodserverstatus) or logging in to the admin GUI, I get:
From the GUI
* Failed to get server handle.null
And in the log file:
API: 2003-10-27 12:37:28 CET GMT+01:00 ***ERROR - failed to get server handle.
java.lang.NullPointerException
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:70)
at com.interwoven.deploy.config100.TAgentConfiguration.<init>(TAgentConfiguration.java:139)
at com.interwoven.deploy.engine.TDeploySvrEngine.<init>(TDeploySvrEngine.java:194)
at com.interwoven.deploy.engine.TDeploySvrEngine.instance(TDeploySvrEngine.java:138)
at com.interwoven.deployapi.deploy.IWGetEngine.getEngine(IWGetEngine.java:87)
at com.interwoven.deployapi.deploy.IWGetEngine.getInitiator(IWGetEngine.java:149)
at com.interwoven.deployapi.deploy.IWDeployMonitor.getDeployList(IWDeployMonitor.java:392)
at com.interwoven.deployapi.deploy.IWDeployRemoterImpl.getUserDeployList(IWDeployRemoterImpl.java:65)
at java.lang.reflect.Method.invoke(Native Method)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:242)
at sun.rmi.transport.Transport$1.run(Transport.java:155)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:152)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:462)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:662)
at java.lang.Thread.run(Thread.java:498)
Any idea why?
/Simon
Ottawa_IWOV
Can anyone explain to me what the RMI service is actually doing? As well what activity happens on port 20017?
Thanks,
Lucas.
Lucas Cochrane
lcochrane@dc.com
Migrateduser
9173 is the default port for the RMI registry, which the OD CLTs and Admin use to locate the OpenDeploy services (which are instantiated within the Base Server or Receiver.)
There is a summary of all OD ports and their uses in the OD 5.6 Inst & Ref Guide, chapter 13.
Todd Scallan
Group Product Manager
Interwoven
t: 408-530-7167
e:
tscallan@interwoven.com