Using 5.1.2 client (at least that’s what help about shows) and trying to execute a workflow from command line I get an error stating:
ERROR main BatchExecutor Unsupported workflow version: Unable to load workflow, it was created with a future version of KNIME (5.2.1.v202401291517). You are running 5.2.0.v202311301336.
ERROR main BatchExecutor Unsupported workflow version: Unable to load workflow, it was created with a future version of KNIME (5.2.1.v202401291517). You are running 5.2.0.v202311301336.
ERROR KNIME-ConfigurationArea-Checker ConfigurationAreaChecker Can’t check integrity of configuration area (“C:\Program Files\KNIME51x\configuration”): The process cannot access the file because another process has locked a portion of the file
java.io.IOException: The process cannot access the file because another process has locked a portion of the file
at java.base/sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at java.base/sun.nio.ch.FileDispatcherImpl.write(Unknown Source)
at java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)
at java.base/sun.nio.ch.IOUtil.write(Unknown Source)
at java.base/sun.nio.ch.IOUtil.write(Unknown Source)
at java.base/sun.nio.ch.FileChannelImpl.write(Unknown Source)
at org.knime.core.internal.ConfigurationAreaChecker.lambda$0(ConfigurationAreaChecker.java:135)
at java.base/java.lang.Thread.run(Unknown Source)
ERROR KNIME-ConfigurationArea-Checker ConfigurationAreaChecker Can’t check integrity of configuration area (“C:\Program Files\KNIME51x\configuration”): The process cannot access the file because another process has locked a portion of the file
java.io.IOException: The process cannot access the file because another process has locked a portion of the file
at java.base/sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at java.base/sun.nio.ch.FileDispatcherImpl.write(Unknown Source)
at java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)
at java.base/sun.nio.ch.IOUtil.write(Unknown Source)
at java.base/sun.nio.ch.IOUtil.write(Unknown Source)
at java.base/sun.nio.ch.FileChannelImpl.write(Unknown Source)
at org.knime.core.internal.ConfigurationAreaChecker.lambda$0(ConfigurationAreaChecker.java:135)
at java.base/java.lang.Thread.run(Unknown Source)
it seems the workflow you are trying to execute is, from the viewpoint of the Batch Executor, from the future:
I.e. you need to use the version of the Batch Executor which is at least as new as the version that created the workflow.
From the log statement your Batch Executor has version 5.2.0, but your workflow was created with 5.2.1.
Can you try with an up to date Batch Executor version? (coincidentally, version 5.2.3 was just released).
As for the second ERROR:
ERROR KNIME-ConfigurationArea-Checker ConfigurationAreaChecker Can’t check integrity of configuration area (“C:\Program Files\KNIME51x\configuration”): The process cannot access the file because another process has locked a portion of the file
Can it be that Analytics Platform is still open while you are trying to execute the workflow with the Batch Executor and both (AP and the Batch Executor) share the same workspace (as indicated by the path)? I would suggest to use a different workspace for the batch executor or close AP while executing the workflow with the batch executor.
@hotzm Thanks for your insight! I will rerun and try to make sure everything is closed. Might you have insight where I download the 5.2.3 Batch Executor? Is it part of the KNIME download?
The batch executor is part of every KNIME installation. For example, you can download one of the archives (if on Windows) and unzip them without disturbing your “main” installation.
Then you just invoke the batch executor the same as you previously did from the command line, pointing to a fresh workspace location, and using the knime.exe in the extracted archive.
On macOS it is part of the app bundle you get from the DMG file.
You can actually switch whether to run the GUI application or the batch executor by passing the respective -application parameter: