Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
lguevara
Partner - Creator II
Partner - Creator II

Error when undeploy route in TMC

HI,

I create and route in Talend Studio 8 and deploy in tmc with a remote engine in windows, but when I undeployed this have and error "undeployment failed".

there is karaf error:

 

2026-05-21T13:21:24,296 | ERROR | pool-23-thread-3 | MicroserviceRunner               | 228 - org.talend.ipaas.engine.dsrunner.dataservice-runner-core - 2.13.14 |  | [ESB] Stop failed / object: {"flowDeployInfo":{"flowId":"6a0f1dd99a0da028f35f9698","flowVersion":"1.2","environmentVersion":"VERSION_1_3","flowExecutionId":"45936201-22b0-4977-a8a3-0d26823adb5b","clusterFlowExecutionId":null,"startTimestamp":1779375702298,"triggerTimestamp":1779375700875,"finishTimestamp":null,"queryTimestamp":1779387665377,"numberOfProcessedRows":null,"numberOfRejectedRows":null,"flowStatus":"STARTING_FLOW_EXECUTION","flowSubStatus":"TASK_INACTIVE","attempts":null,"timeout":null,"containerId":null,"workspaceId":"69b4433d6c268637f0d65324","userId":"lguevara","userType":"HUMAN","misfiredExecutionReason":null,"errorMessage":"MS Health check : server request fails on http://localhost:5072/health with status code 401","errorType":null,"executionType":"MANUAL","executionDestination":"REMOTE_ENGINE","runProfileId":null,"runProfileVersion":null,"remoteEngineId":"d30d1901-7415-41bd-8572-efeba82b4323","remoteEngineClusterName":null,"remoteEngineClusterId":null,"avgDuration":null,"executionPlanName":null,"executionPlanId":null,"abstractPlanId":null,"stepName":null,"stepId":null,"taskArtifactId":null,"artifactName":"jroute_simple_fine","artifactVersion":"0.1.0.20262105025932","artifactType":"MICROSERVICE","jobType":"route","serviceType":null,"runtimeInfo":{"microservicePort":"5072"},"logLevel":null,"parallelExecutionAllowed":false,"deploymentStrategy":null,"javaInfo":{"javaVersion":"17.0.14","javaVendor":"Azul Systems, Inc.","jvmName":"OpenJDK 64-Bit Server VM"},"engineVersion":"2.13.14","engineRunId":"8ac003fb-a4ee-48b9-be5d-8df9b83823a3","groupId":"actions","artifactId":"jroute_simple_fine","version":"0.1.0.20262105025932","mdc":{"accountID":"dd8030e1-5a8d-49fc-b2ee-e7631426f62f","remoteEngineId":"d30d1901-7415-41bd-8572-efeba82b4323","flowExecutionId":"45936201-22b0-4977-a8a3-0d26823adb5b","flowVersion":"1.2","flowID":"6a0f1dd99a0da028f35f9698","userId":"lguevara","workspaceId":"69b4433d6c268637f0d65324","executionDestination":"REMOTE_ENGINE"},"workspaceName":"ESPACIO_DEV","environmentId":"69b4433d6c268637f0d65323","flowArtifactURL":"mvn:actions/jroute_simple_fine/0.1.0.20262105025932/zip","artifactURL":"mvn:actions/jroute_simple_fine/0.1.0.20262105025932/zip","flowName":"jroute_simple_fine","environmentName":"ENTORNO_DEV","runAsUser":null,"lineageEnabled":false,"countOfAttempts":null,"javaExecDir":"C:/Program Files/Zulu/zulu-17/bin","deploymentPhase":"TERMINATING","jvmArgs":null,"rejectedRows":null,"embeddedParams":false,"remoteEngineName":"RE_LOCAL","planExecutionStepId":null,"compatibilityVersion":"8.0.1","lineagePayloadPath":null},"environmentContextId":"ENTORNO_DEV","executionIdentityInfo":{"taskExecutionId":"45936201-22b0-4977-a8a3-0d26823adb5b","taskName":"jroute_simple_fine","taskId":"6a0f1dd99a0da028f35f9698","taskVersion":"1.2"},"deploymentMetadata":{"taskExecutionId":"45936201-22b0-4977-a8a3-0d26823adb5b","flowId":"6a0f1dd99a0da028f35f9698","artifactId":"jroute_simple_fine","artifactType":"MICROSERVICE","jobType":"route","serviceType":null,"httpPort":5072,"metricPath":"jroute_simple_fine","managementServerBasePath":"/","securityUsername":"","securityPassword":"","standaloneMicroservice":true}}
org.talend.ipaas.rt.dsrunner.common.exception.DSRunnerRecoverableException: Undeployment failed for task execution 45936201-22b0-4977-a8a3-0d26823adb5b
	at org.talend.ipaas.rt.dsrunner.impl.microservice.DeploymentHandler.undeploy(DeploymentHandler.java:73) ~[?:?]
	at org.talend.ipaas.rt.dsrunner.impl.microservice.MicroserviceRunner.stopExecution(MicroserviceRunner.java:136) ~[?:?]
	at org.talend.ipaas.rt.dsrunner.impl.DsRunnerDispatcher.stopExecution(DsRunnerDispatcher.java:87) ~[?:?]
	at Proxyf11b5c4d_3d4b_464c_bc36_064da9f258f8.stopExecution(Unknown Source) ~[?:?]
	at org.talend.ipaas.rt.deployment.agent.impl.EsbTaskDeployerImpl.undeployEsbArtifact(EsbTaskDeployerImpl.java:575) ~[?:?]
	at org.talend.ipaas.rt.deployment.agent.impl.EsbTaskDeployerImpl.finalizeESB(EsbTaskDeployerImpl.java:488) ~[?:?]
	at org.talend.ipaas.rt.deployment.agent.impl.EsbTaskDeployerImpl.lambda$processUndeployEventESB$6(EsbTaskDeployerImpl.java:325) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:840) [?:?]
Caused by: org.apache.commons.io.IOExceptionList: 2 exception(s): [org.apache.commons.io.IOIndexedException: IOException #2: Cannot delete file: C:\RE_LOCAL\data\dsrunner\exec\microservices\45936201-22b0-4977-a8a3-0d26823adb5b\jroute_simple_fine, org.apache.commons.io.IOIndexedException: IOException #4: Cannot delete file: C:\RE_LOCAL\data\dsrunner\exec\microservices\45936201-22b0-4977-a8a3-0d26823adb5b\lib]
	at org.apache.commons.io.IOExceptionList.checkEmpty(IOExceptionList.java:50) ~[?:?]
	at org.apache.commons.io.function.IOStream.forAll(IOStream.java:357) ~[?:?]
	at org.apache.commons.io.function.IOStreams.forAll(IOStreams.java:42) ~[?:?]
	at org.apache.commons.io.function.IOStreams.forAll(IOStreams.java:36) ~[?:?]
	at org.apache.commons.io.function.IOConsumer.forAll(IOConsumer.java:82) ~[?:?]
	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:381) ~[?:?]
	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1242) ~[?:?]
	at org.talend.ipaas.rt.dsrunner.impl.microservice.DeploymentHandler.undeploy(DeploymentHandler.java:67) ~[?:?]
	... 9 more
Caused by: org.apache.commons.io.IOIndexedException: IOException #2: Cannot delete file: C:\RE_LOCAL\data\dsrunner\exec\microservices\45936201-22b0-4977-a8a3-0d26823adb5b\jroute_simple_fine
	at org.apache.commons.io.function.IOStream.lambda$forAll$11(IOStream.java:352) ~[?:?]
	at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992) ~[?:?]
	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) ~[?:?]
	at org.apache.commons.io.function.IOStream.forAll(IOStream.java:343) ~[?:?]
	at org.apache.commons.io.function.IOStreams.forAll(IOStreams.java:42) ~[?:?]
	at org.apache.commons.io.function.IOStreams.forAll(IOStreams.java:36) ~[?:?]
	at org.apache.commons.io.function.IOConsumer.forAll(IOConsumer.java:82) ~[?:?]
	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:381) ~[?:?]
	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1242) ~[?:?]
	at org.talend.ipaas.rt.dsrunner.impl.microservice.DeploymentHandler.undeploy(DeploymentHandler.java:67) ~[?:?]
	... 9 more
Caused by: java.io.IOException: Cannot delete file: C:\RE_LOCAL\data\dsrunner\exec\microservices\45936201-22b0-4977-a8a3-0d26823adb5b\jroute_simple_fine
	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1413) ~[?:?]
	at org.apache.commons.io.FileUtils.lambda$cleanDirectory$0(FileUtils.java:381) ~[?:?]
	at org.apache.commons.io.function.IOStream.lambda$forAll$11(IOStream.java:345) ~[?:?]
	at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992) ~[?:?]
	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) ~[?:?]
	at org.apache.commons.io.function.IOStream.forAll(IOStream.java:343) ~[?:?]
	at org.apache.commons.io.function.IOStreams.forAll(IOStreams.java:42) ~[?:?]
	at org.apache.commons.io.function.IOStreams.forAll(IOStreams.java:36) ~[?:?]
	at org.apache.commons.io.function.IOConsumer.forAll(IOConsumer.java:82) ~[?:?]
	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:381) ~[?:?]
	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1242) ~[?:?]
	at org.talend.ipaas.rt.dsrunner.impl.microservice.DeploymentHandler.undeploy(DeploymentHandler.java:67) ~[?:?]
	... 9 more
Caused by: java.nio.file.FileSystemException: C:\RE_LOCAL\data\dsrunner\exec\microservices\45936201-22b0-4977-a8a3-0d26823adb5b\jroute_simple_fine\error.log: El proceso no tiene acceso al archivo porque estᠳiendo utilizado por otro proceso
	at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92) ~[?:?]
	at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) ~[?:?]
	at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) ~[?:?]
	at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275) ~[?:?]
	at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110) ~[?:?]
	at java.nio.file.Files.deleteIfExists(Files.java:1191) ~[?:?]
	at org.apache.commons.io.file.DeletingPathVisitor.visitFile(DeletingPathVisitor.java:158) ~[?:?]
	at org.apache.commons.io.file.DeletingPathVisitor.visitFile(DeletingPathVisitor.java:37) ~[?:?]
	at java.nio.file.Files.walkFileTree(Files.java:2811) ~[?:?]
	at java.nio.file.Files.walkFileTree(Files.java:2882) ~[?:?]
	at org.apache.commons.io.file.PathUtils.visitFileTree(PathUtils.java:1845) ~[?:?]
	at org.apache.commons.io.file.PathUtils.deleteDirectory(PathUtils.java:597) ~[?:?]
	at org.apache.commons.io.file.PathUtils.delete(PathUtils.java:556) ~[?:?]
	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1406) ~[?:?]
	at org.apache.commons.io.FileUtils.lambda$cleanDirectory$0(FileUtils.java:381) ~[?:?]
	at org.apache.commons.io.function.IOStream.lambda$forAll$11(IOStream.java:345) ~[?:?]
	at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992) ~[?:?]
	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) ~[?:?]
	at org.apache.commons.io.function.IOStream.forAll(IOStream.java:343) ~[?:?]
	at org.apache.commons.io.function.IOStreams.forAll(IOStreams.java:42) ~[?:?]
	at org.apache.commons.io.function.IOStreams.forAll(IOStreams.java:36) ~[?:?]
	at org.apache.commons.io.function.IOConsumer.forAll(IOConsumer.java:82) ~[?:?]
	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:381) ~[?:?]
	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1242) ~[?:?]
	at org.talend.ipaas.rt.dsrunner.impl.microservice.DeploymentHandler.undeploy(DeploymentHandler.java:67) ~[?:?]
	... 9 more

 

Thanks

Labels (3)
1 Reply
Rahul_Kale
Support
Support

Hello lguevara,

Thank you for reaching out to the Qlik community.

You can see a Windows error below in the logs:- error.log: file is being used by another process.


Talend cannot delete the microservice folder during undeploy. This means the microservice process (Java) or another process is still holding the file/lock.

Also, a Health check failed: /health → 401. It means your microservice is still running or misconfigured (auth required), so stop fails.

To deal with this issue, you will need to kill the leftover process. Delete the folder manually and then restart the Remote Engine.

Also, Fix health check (401):-

  • 401 = authentication issue
  • Check:
    • application.properties (security enabled?)
    • management.endpoints.web.exposure.include=*
    • disable auth for /health OR configure credentials in TMC

Below are the Official docs that give you more information about the same:-