Talend Cloud Remote Engine Route Deployment Failure

Highlighted
Six Stars

Talend Cloud Remote Engine Route Deployment Failure

I am trying to deploy a Route to a Remote Engine via the Talend Cloud management console, but keep getting the following error:

 

 

Error creating kar config file file S3_2_MQ_ROUTE for 1e22ed87-c5f6-4671-83ac-d2b061465c1b
java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused (Connection refused)]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:369) ~[?:?]
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270) ~[?:?]
at org.talend.ipaas.rt.talendruntime.client.TalendRuntimeClientImpl.checkJMXConnection(TalendRuntimeClientImpl.java:525) ~[?:?]
at org.talend.ipaas.rt.talendruntime.client.TalendRuntimeClientImpl.getConfigManagementProxy(TalendRuntimeClientImpl.java:457) ~[?:?]
at org.talend.ipaas.rt.talendruntime.client.TalendRuntimeClientImpl.createConfigProperties(TalendRuntimeClientImpl.java:331) ~[?:?]
at org.talend.ipaas.rt.talendruntime.client.TalendRuntimeClientImpl.createConfig(TalendRuntimeClientImpl.java:355) ~[?:?]
at Proxy335bd747_14e6_4a0b_96b1_defd85fc9f39.createConfig(Unknown Source) ~[?:?]
at org.talend.ipaas.rt.dsrunner.impl.osgi.OsgiRunner.startExecution(OsgiRunner.java:125) ~[?:?]
at org.talend.ipaas.rt.dsrunner.impl.DsRunnerDispatcher.startExecution(DsRunnerDispatcher.java:47) ~[?:?]
at Proxy095d4b26_4b56_46f8_97e8_00a1a1b80dcd.startExecution(Unknown Source) ~[?:?]
at org.talend.ipaas.rt.deployment.agent.impl.FlowDeployerImpl.deployEsbArtifact(FlowDeployerImpl.java:1272) ~[?:?]
at org.talend.ipaas.rt.deployment.agent.impl.FlowDeployerImpl.lambda$startESB$10(FlowDeployerImpl.java:956) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: javax.naming.ServiceUnavailableException
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:136) ~[?:?]
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:205) ~[?:?]
at javax.naming.InitialContext.lookup(InitialContext.java:417) ~[?:?]
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1955) ~[?:?]
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1922) ~[?:?]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:287) ~[?:?]
... 15 more
Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused (Connection refused)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619) ~[?:?]
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216) ~[?:?]
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) ~[?:?]
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:338) ~[?:?]
at sun.rmi.registry.RegistryImpl_Stub.lookup(RegistryImpl_Stub.java:112) ~[?:?]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:132) ~[?:?]
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:205) ~[?:?]
at javax.naming.InitialContext.lookup(InitialContext.java:417) ~[?:?]
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1955) ~[?:?]
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1922) ~[?:?]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:287) ~[?:?]
... 15 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:?]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[?:?]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[?:?]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[?:?]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:?]
at java.net.Socket.connect(Socket.java:589) ~[?:?]
at java.net.Socket.connect(Socket.java:538) ~[?:?]
at java.net.Socket.<init>(Socket.java:434) ~[?:?]
at java.net.Socket.<init>(Socket.java:211) ~[?:?]
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40) ~[?:?]
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:148) ~[?:?]
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613) ~[?:?]
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216) ~[?:?]
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) ~[?:?]
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:338) ~[?:?]
at sun.rmi.registry.RegistryImpl_Stub.lookup(RegistryImpl_Stub.java:112) ~[?:?]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:132) ~[?:?]
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:205) ~[?:?]
at javax.naming.InitialContext.lookup(InitialContext.java:417) ~[?:?]
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1955) ~[?:?]
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1922) ~[?:?]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:287) ~[?:?]
... 15 more

Warning2019-07-10 09:48:28

Failed to delete config S3_2_MQ_ROUTE
java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused (Connection refused)]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:369) ~[?:?]
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270) ~[?:?]
at org.talend.ipaas.rt.talendruntime.client.TalendRuntimeClientImpl.checkJMXConnection(TalendRuntimeClientImpl.java:525) ~[?:?]
at org.talend.ipaas.rt.talendruntime.client.TalendRuntimeClientImpl.getConfigManagementProxy(TalendRuntimeClientImpl.java:457) ~[?:?]
at org.talend.ipaas.rt.talendruntime.client.TalendRuntimeClientImpl.deleteConfigProperties(TalendRuntimeClientImpl.java:345) ~[?:?]
at Proxy335bd747_14e6_4a0b_96b1_defd85fc9f39.deleteConfigProperties(Unknown Source) ~[?:?]
at org.talend.ipaas.rt.dsrunner.impl.osgi.OsgiRunner.deleteEsbRuntimeConfig(OsgiRunner.java:305) ~[?:?]
at org.talend.ipaas.rt.dsrunner.impl.osgi.OsgiRunner.startExecution(OsgiRunner.java:130) ~[?:?]
at org.talend.ipaas.rt.dsrunner.impl.DsRunnerDispatcher.startExecution(DsRunnerDispatcher.java:47) ~[?:?]
at Proxy095d4b26_4b56_46f8_97e8_00a1a1b80dcd.startExecution(Unknown Source) ~[?:?]
at org.talend.ipaas.rt.deployment.agent.impl.FlowDeployerImpl.deployEsbArtifact(FlowDeployerImpl.java:1272) ~[?:?]
at org.talend.ipaas.rt.deployment.agent.impl.FlowDeployerImpl.lambda$startESB$10(FlowDeployerImpl.java:956) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: javax.naming.ServiceUnavailableException
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:136) ~[?:?]
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:205) ~[?:?]
at javax.naming.InitialContext.lookup(InitialContext.java:417) ~[?:?]
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1955) ~[?:?]
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1922) ~[?:?]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:287) ~[?:?]
... 15 more
Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused (Connection refused)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619) ~[?:?]
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216) ~[?:?]
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) ~[?:?]
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:338) ~[?:?]
at sun.rmi.registry.RegistryImpl_Stub.lookup(RegistryImpl_Stub.java:112) ~[?:?]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:132) ~[?:?]
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:205) ~[?:?]
at javax.naming.InitialContext.lookup(InitialContext.java:417) ~[?:?]
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1955) ~[?:?]
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1922) ~[?:?]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:287) ~[?:?]
... 15 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:?]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[?:?]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[?:?]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[?:?]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:?]
at java.net.Socket.connect(Socket.java:589) ~[?:?]
at java.net.Socket.connect(Socket.java:538) ~[?:?]
at java.net.Socket.<init>(Socket.java:434) ~[?:?]
at java.net.Socket.<init>(Socket.java:211) ~[?:?]
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40) ~[?:?]
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:148) ~[?:?]
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613) ~[?:?]
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216) ~[?:?]
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) ~[?:?]
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:338) ~[?:?]
at sun.rmi.registry.RegistryImpl_Stub.lookup(RegistryImpl_Stub.java:112) ~[?:?]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:132) ~[?:?]
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:205) ~[?:?]
at javax.naming.InitialContext.lookup(InitialContext.java:417) ~[?:?]
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1955) ~[?:?]
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1922) ~[?:?]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:287) ~[?:?]
... 15 more

 

My Remote Engine runs on an EC2 instance in AWS when I tested, I changed the security group to open all ports for a short while.


Accepted Solutions
Six Stars

Re: Talend Cloud Remote Engine Route Deployment Failure

The issue wasn't the localhost part, the Talend Remote Engine requires a Talend Runtime still and that service wasnt running on the same machine. after I started the Runtime service on the same machine as the remote engine it was able to deploy the route.

 


All Replies
Community Manager

Re: Talend Cloud Remote Engine Route Deployment Failure

It looks like you have something configured to "localhost". Can you deploy any other route in your Remote Engine? 

 

java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost;
Six Stars

Re: Talend Cloud Remote Engine Route Deployment Failure

The issue wasn't the localhost part, the Talend Remote Engine requires a Talend Runtime still and that service wasnt running on the same machine. after I started the Runtime service on the same machine as the remote engine it was able to deploy the route.

 

Community Manager

Re: Talend Cloud Remote Engine Route Deployment Failure

Good spot. Sorry I assumed that you were running the runtime service. Glad you got it working

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Talend Cloud Developer Series – Fetching Studio License

This video will help someone new to using Talend Studio get started by connecting to Talend Cloud and fetching the Studio License

Watch Now

Talend Cloud Developer Series - Introduction

The Talend Cloud Developer Series was created to give you a solid foundational understanding of Talend’s Cloud Integration Platform

Watch Now

Talend Cloud Available on Microsoft Azure

An integration platform-as-a-serviceto help enterprises collect, govern, transform, and share data from any data sources

Watch Now