I have a simple workflow to list all the files and then delete the files from them.
When I execute the workflow locally( knime mac version ) it is successful but on my server(knime windowns version) it is not able to delete the files.
My workflow
Here is the error from kime.log file.
2020-11-13 11:34:15,413 : ERROR : KNIME-Worker-17-Delete Files 0:3 : : Node : Delete Files : 0:3 : Execute failed: File file://amznfsxkffhogvx.corp.ppbplc.com/share/Sportsbook/Executed_Workflow_Check/SB-00-File_Clean_Up could not be deleted
java.lang.Exception: File file://amznfsxkffhogvx.corp.ppbplc.com/share/Sportsbook/Executed_Workflow_Check/SB-00-File_Clean_Up could not be deleted
at org.knime.base.filehandling.deletefiles.DeleteFilesNodeModel.execute(DeleteFilesNodeModel.java:149)
at org.knime.core.node.NodeModel.executeModel(NodeModel.java:571)
at org.knime.core.node.Node.invokeFullyNodeModelExecute(Node.java:1236)
at org.knime.core.node.Node.execute(Node.java:1016)
at org.knime.core.node.workflow.NativeNodeContainer.performExecuteNode(NativeNodeContainer.java:557)
at org.knime.core.node.exec.LocalNodeExecutionJob.mainExecute(LocalNodeExecutionJob.java:95)
at org.knime.core.node.workflow.NodeExecutionJob.internalRun(NodeExecutionJob.java:201)
at org.knime.core.node.workflow.NodeExecutionJob.run(NodeExecutionJob.java:117)
at org.knime.core.util.ThreadUtils$RunnableWithContextImpl.runWithContext(ThreadUtils.java:334)
at org.knime.core.util.ThreadUtils$RunnableWithContext.run(ThreadUtils.java:210)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.knime.core.util.ThreadPool$MyFuture.run(ThreadPool.java:123)
at org.knime.core.util.ThreadPool$Worker.run(ThreadPool.java:246)
Can you please help me to understand what could be the issue ?
does List Files looks same folder both from Mac and from Windows? When you say Server you mean KNIME Server or you mean server as another (stronger) machine where you run KNIME Analytics Platform?
Yes the list files node looks for the same folder from Mac as well as from windows.
I mean server as another (stronger) machine where KNIME Analytics Platform is installed ?
Also I am bit confused because list files node is executed successfully, that means I can read the files without any issue but I cannot delete the files. Do you think this might be because, I might not have delete permission ? But again I can delete from my local machine.
I see. As you said this is probably related to permissions although log file doesn’t specifically indicates it. Maybe if you increase log verbosity there will be more info. (File --> Preferences --> KNIME)
Hi @ipazin
I did some changes in mapping path in List Files node.
Instead of using the shared drive full name I changes to use its alias.
I really don’t know what difference it made internally but It worked as expected.