Error deploying ESB route in TAC, Connection Refused

Five Stars

Error deploying ESB route in TAC, Connection Refused

I'm unable to deploy a route to the runtime server from TAC after publishing the route to Nexus. 

 

The 2 errors I'm getting from tac.log are:

java.lang.RuntimeException: Error resolving artifact ESB_TEST:TestRoute-feature:xml:0.1.0-SNAPSHOT: Could not transfer artifact ESB_TEST:TestRoute-feature:xml:0.1.0-SNAPSHOT from/to tesb.snapshot (http://admin:****@localhost:8081/nexus/content/repositories/snapshots/): Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused) : mvn:http://admin:****@localhost:8081/nexus/content/repositories/snapshots!ESB_TEST/TestRoute-feature/0.1.0-SNAPSHOT/xml

 

and 

 

Unexpected exception : Service method 'public abstract boolean org.talend.gwtadministrator.client.module.conductor.esbconductor.service.EsbConductorService.checkIfFeatureDeployed(int) throws org.talend.gwttoolkit.client.exception.ClientBusinessException' threw an unexpected exception: org.talend.gwttoolkit.client.exception.ClientSystemException: NullPointerException

 

Our setup consists of 2 machines, nexus and tac are on 1 machine and runtime and jobserver are on the other.

Regular talend integration jobs deploy and run fine onto jobserver but ESB routes are unable to be deployed.

 

The runtime/jobserver machine shows up fine in the Server Tab of Tac, port 8000 and 8001 are green, although it says the monitoring port 8888 is misconfigured.

 

For the first error I wanted to try giving it the actual ip address to nexus but I can't figure out where to set that. I have no idea whats causing the 2nd error.

 

Any help on how to resolve would be greatly appreciated!

Moderator

Re: Error deploying ESB route in TAC, Connection Refused

Hi,

Can you deploy your job in runtime from studio directly? Does this issue repro on all your routes or a specific one?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Seven Stars

Re: Error deploying ESB route in TAC, Connection Refused

even I am getting kind of same error while deploying rest service onto runtime server.

 

publish to nexus works fine however I keep getting below error while deploying job to runtime server:

 

Suppressed: java.io.IOException: Error downloading mvnSmiley TongueOC/TESTRESTSERVICE_3/0.2.0
at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:77)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
... 3 more
Caused by: java.io.IOException: Error resolving artifact POC:TESTRESTSERVICE_3:jar:0.2.0: [Could not find artifact POC:TESTRESTSERVICE_3:jar:0.2.0 in defaultlocal (file:/home/talenduser/.m2/repository/), Could not transfer artifact POC:TESTRESTSERVICE_3:jar:0.2.0 from/to tesb.release (http://admin:Talend123@localhost:8081/nexus/content/repositories/releases/): Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused), Could not transfer artifact POC:TESTRESTSERVICE_3:jar:0.2.0 from/to tesb.snapshot (http://admin:Talend123@localhost:8081/nexus/content/repositories/snapshots/): Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused), Could not find artifact POC:TESTRESTSERVICE_3:jar:0.2.0 in central (http://repo1.maven.org/maven2/)]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:720)
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:659)
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:600)
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:567)
at org.apache.karaf.features.internal.download.impl.MavenDownloadTask.download(MavenDownloadTask.java:47)
at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:60)
... 7 more
Suppressed: shaded.org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact POC:TESTRESTSERVICE_3:jar:0.2.0 in defaultlocal (file:/home/talenduser/.m2/repository/)
at shaded.org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:39)
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
at shaded.org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:705)
... 12 more
Suppressed: shaded.org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact POC:TESTRESTSERVICE_3:jar:0.2.0 from/to tesb.release (http://admin:Talend123@localhost:8081/nexus/content/repositories/releases/): Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
at shaded.org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43)
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
at shaded.org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:705)
... 12 more
Caused by: shaded.org.apache.maven.wagon.TransferFailedException: Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
at shaded.org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1085)
at shaded.org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:977)
at shaded.org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at shaded.org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at shaded.org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at shaded.org.eclipse.aether.transport.wagon.WagonTransporter$GetTaskRunner.run(WagonTransporter.java:560)
at shaded.org.eclipse.aether.transport.wagon.WagonTransporter.execute(WagonTransporter.java:427)
at shaded.org.eclipse.aether.transport.wagon.WagonTransporter.get(WagonTransporter.java:404)
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:447)
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)
... 21 more
Caused by: shaded.org.apache.http.conn.HttpHostConnectException: Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
at shaded.org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:140)
at shaded.org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:318)
at shaded.org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
at shaded.org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
at shaded.org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
at shaded.org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
at shaded.org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
at shaded.org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at shaded.org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.ops4j.pax.url.mvn.internal.wagon.ConfigurableHttpWagon.execute(ConfigurableHttpWagon.java:149)
at shaded.org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1000)
... 30 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 shaded.org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72)
at shaded.org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:123)
... 40 more
Suppressed: shaded.org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact POC:TESTRESTSERVICE_3:jar:0.2.0 from/to tesb.snapshot (http://admin:Talend123@localhost:8081/nexus/content/repositories/snapshots/): Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
at shaded.org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43)
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
at shaded.org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:705)
... 12 more
Caused by: shaded.org.apache.maven.wagon.TransferFailedException: Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
at shaded.org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1085)
at shaded.org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:977)
at shaded.org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at shaded.org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at shaded.org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at shaded.org.eclipse.aether.transport.wagon.WagonTransporter$GetTaskRunner.run(WagonTransporter.java:560)
at shaded.org.eclipse.aether.transport.wagon.WagonTransporter.execute(WagonTransporter.java:427)
at shaded.org.eclipse.aether.transport.wagon.WagonTransporter.get(WagonTransporter.java:404)
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:447)
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)

Four Stars

Re: Error deploying ESB route in TAC, Connection Refused

Hi Kelsonpdx,

 

1. For monitoring port issue, please try to use the FQDN (fully-qualified-domain-name) of the Execution / JobServer, while adding the server. I had a similar problem and it is resolved now - Thanks to Talend Community. Obviously, check if TAC can reach Execution / JobServer host in the port 8888 - sometimes firewall might be the culprit.

 

2. For your Route deployment, your Runtime is looking for the Nexus Repository in localhost (which need not be and is not in most of the cases Smiley Wink). For this, please go to the runtime directory or ESB container directory (depending upon your type of install), and in "etc" directory, you shall find a file called "org.ops4j.pax.url.mvn". In that file, scroll down to the last to find the Nexus configuration. Please change the hostname appropriately. =====> Kindly pay attention to which version of Nexus you are using. Right now, 7.0.1 uses Nexus v3 and older ones might use Nexus v2.

 

Hope these answers help you. Good luck

 

Cheers,

Adharsh