Six Stars

Error deploying ESB task from TAC.

Error messages: (the 2nd msg here states "Not Authorized" but I don't know where to even confirm the credentials for it, nor why this only fails in ESB Conductor.)

Repository spec http://<user>:<passw>@d-ap-tal-01.<domain>.com:8081/nexus/content/repositories/snapshots/ does not contain an identifier. This is deprecated & discouraged & just evil.

 

Error resolving artifact com.premisehealth:JobInfo:jar:0.1.0-SNAPSHOT: Could not transfer artifact com.premisehealth:JobInfo:jar:0.1.0-SNAPSHOT from/to tesb.snapshot (http://<user>:<password>@localhost:8081/nexus/content/repositories/snapshots/): Not authorized , ReasonPhrase:Unauthorized

 

esb-deploy-failed.png

 

 

{
  "_index": "logstash-2017.11.10",
  "_type": "TAC",
  "_id": "AV-mtmJ8SyvFeNhR0egB",
  "_score": 1,
  "_source": {
    "message": "Repository spec http://<user>:<passw>@d-ap-tal-01.<domain>.com:8081/nexus/content/repositories/snapshots/ does not contain an identifier. This is deprecated & discouraged & just evil.",
    "@version": "1",
    "@timestamp": "2017-11-10T16:14:49.688Z",
    "timestamp": 1510330489688,
    "path": "org.ops4j.pax.url.mvn.internal.config.MavenRepositoryURL",
    "priority": "WARN",
    "logger_name": "org.ops4j.pax.url.mvn.internal.config.MavenRepositoryURL",
    "thread": "SocketAppenderWithEmergencyLocalAppender_pool-1-thread-1",
    "class": "?",
    "file": "?:?",
    "method": "?",
    "host": "127.0.0.1:63250",
    "type": "TAC"
  },
  "fields": {
    "@timestamp": [
      1510330489688
    ]
  }
}

 

5 REPLIES
Twelve Stars

Re: Error deploying ESB task from TAC.

This is an irritating error message that refers to your /etc/org.ops4j.pax.url.mvn file config. The example given here (https://help.talend.com/reader/Le3CQSmd8KQrsDxjrH8xCw/me_9MdKIMOzmP2DGpFsdTg) shows the config below (which needs to be tailored to your system)....

 

http://localhost:8080/nexus-webapp/content/repositories/releases@id=tesb.release, \
http://localhost:8080/nexus-webapp/content/repositories/snapshots@snapshots@id=tesb.snapshot, \

 You will notice the @id=tesb.release and @id=tesb.snapshot sections. These are your identifiers. With a relatively default config, you should be able to just add these sections to your urls and it should work.

Rilhia Solutions
Six Stars

Re: Error deploying ESB task from TAC.

I'm meeting with a Talend Rep today and will discuss this solution with them. I'll following up after. Thanks for the response!

Six Stars

Re: Error deploying ESB task from TAC.

I've updated the .cfg file with the nexus url and credentials and restarted everything. I then redeployed via TAC and attempted to Start it. This is what I get now.

Error 1.
message: ESB Conductor: Problem on get installed profiles. Please check that provisioning agent was started in runtime. Error 2. message: executionTask.esb.message.start.error.notDeployed stack trace: org.talend.exception.BusinessException: executionTask.esb.message.start.error.notDeployed at org.talend.administrator.esbconductor.business.command.ConductorEsbTaskStarter.executeMainProcess(ConductorEsbTaskStarter.java:62) at org.talend.administrator.esbconductor.business.command.AbstractEsbConductorTemplateMethod.executeOnAloneRuntime(AbstractEsbConductorTemplateMethod.java:273) at org.talend.administrator.esbconductor.business.command.AbstractEsbConductorTemplateMethod.execute(AbstractEsbConductorTemplateMethod.java:127) at org.talend.administrator.esbconductor.business.command.AbstractEsbConductorTemplateMethod.execute(AbstractEsbConductorTemplateMethod.java:87) at org.talend.gwtadministrator.server.scheduler.services.ExecutionTaskServiceImpl.requestRun(ExecutionTaskServiceImpl.java:355) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) at org.talend.gwttoolkit.server.TalendRemoteServiceServlet.processCall(TalendRemoteServiceServlet.java:104) at org.talend.gwtadministrator.server.LoggedAndLicenseCheckRemoteServiceServlet.processCall(LoggedAndLicenseCheckRemoteServiceServlet.java:36) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.talend.gwttoolkit.server.common.http.HeadersFilter.doFilter(HeadersFilter.java:55) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2521) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2510) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745)
Six Stars

Re: Error deploying ESB task from TAC.

After updating the config and restarting I'm now getting:

 

Error 1.
message: ESB Conductor: Problem on get installed profiles. Please check that provisioning agent was started in runtime.


Error 2.
message: executionTask.esb.message.start.error.notDeployed

stack trace: org.talend.exception.BusinessException: executionTask.esb.message.start.error.notDeployed
	at org.talend.administrator.esbconductor.business.command.ConductorEsbTaskStarter.executeMainProcess(ConductorEsbTaskStarter.java:62)
	at org.talend.administrator.esbconductor.business.command.AbstractEsbConductorTemplateMethod.executeOnAloneRuntime(AbstractEsbConductorTemplateMethod.java:273)
	at org.talend.administrator.esbconductor.business.command.AbstractEsbConductorTemplateMethod.execute(AbstractEsbConductorTemplateMethod.java:127)
	at org.talend.administrator.esbconductor.business.command.AbstractEsbConductorTemplateMethod.execute(AbstractEsbConductorTemplateMethod.java:87)
	at org.talend.gwtadministrator.server.scheduler.services.ExecutionTaskServiceImpl.requestRun(ExecutionTaskServiceImpl.java:355)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
	at org.talend.gwttoolkit.server.TalendRemoteServiceServlet.processCall(TalendRemoteServiceServlet.java:104)
	at org.talend.gwtadministrator.server.LoggedAndLicenseCheckRemoteServiceServlet.processCall(LoggedAndLicenseCheckRemoteServiceServlet.java:36)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
	at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at org.talend.gwttoolkit.server.common.http.HeadersFilter.doFilter(HeadersFilter.java:55)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2521)
	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2510)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
Twelve Stars

Re: Error deploying ESB task from TAC.

Ok, this error I have not seen before. It either suggests that your edits to your cfg file are incorrect or that they have allowed you to get further and that this is a new issue. A way to test this is to manually try to deploy a feature in the runtime (Apache Karaf). 

 

Open the Karaf on your server. I am assuming it is running as a service. I am also assuming that since you have met your Talend rep recently, that Talend installed it for you using their default config. If so, you can switch on your Karaf client by going to your "application" container's bin folder (at the same level as the etc folder) on the commandline and running this command....

 

client -h localhost -a 8102

This will open your Karaf client.

 

Next try running this command (replacing "My.Path.To.Feature" with the Nexus path to your feature, then adding your snapshot version and ending in "/xml"). For example, my route is called MyFirstRoute and I am using Snapshot 0.3.0 in the example below...

 

feature:repo-add mvn:My.Path.To.Feature/MyFirstRoute-feature/0.3.0-SNAPSHOT/xml

If this works, then your Nexus config is correct. Your problem is elsewhere. If not, you may want to publish your config, minus any sensitive data.

 

If this did work, you may wish to back out what you just did. To do that, use the command below (replacing sections as appropriate)...

 

feature:repo-remove mvn:My.Path.To.Feature/MyFirstRoute-feature/0.3.0-SNAPSHOT/xml

It is often quite useful to get to grips with the Karaf client for doing stuff like this. This is what TAC does, but TAC doesn't always get it done. When TAC fails, it is nice to be able to sort it yourself :-)

Rilhia Solutions