I am getting below error in my workflow node of List Files/Folder "Direct Access to Local File system is not allowed on Knime server " It works fine when I execute it from the knime studio on the knime server instance , but when the workflow is scheduled , it gives me this error .
I have set the configuration in default.epf and executor.epf “/instance/org.knime.filehandling.core/allow_local_fs_access_on_server=true”, as per the documentation Local file system access by KNIME workflows
I restarted the knime server , but still the same occurs. When fetched the preferences from the profile , I find my added config related local file system access .
Pls help what are additional to be done to make the local file access work . Version of Knime used is 4.5.2
I can’t show you what exactly I do because of security.
But this is the bones of it:
I have a KNIME user account for accessing certain files, folders and drives around my network (like you will have your own user account with set permissions).
I have created a component, and within that component I have a Credentials Configuration node. This holds the credentials for the KNIME user. Also, I have an SMB Connector which the Credentials Configuration node connects too via flow variable. In here I set up the domains and Share/Namespace. The output of this component is a File System connector type.
If I want to access a file or folder outside of the KNIME server I (for example) get a List FilesFolders node, right click and add File system connection port. Then attach your component to it. When you configure the List FilesFolders node the Read from drop down list will be re populated.
Hello @FrankColumbo ,
Actually , I do not want to access files external to Knime server , In fact I want to access files which are on the same instance into which the KNime server is present . I have followed the Knime documentation for it as mentioned in the link “/instance/org.knime.filehandling.core/allow_local_fs_access_on_server=true” , as per the documentation Local file system access by KNIME workflows, but it does not work , irrespective of these changes.
Did you restart the executor? In your first post you mentioned you restarted the server which is not necessary when changing customization profiles. But you have to restart the executor because these profiles control settings in the executor and they cannot be applied during runtime.
Hi @nivedita_dixit Thanks for clarifying. You mentioned “It works fine when I execute it from the knime studio on the knime server instance, but when the workflow is scheduled , it gives me this error” - are you perhaps using a distributed KNIME Executor setup, do you have multiple Executors?
On which machine is the file you are trying to access located? Is an Executor installed there?
Hi @Dora_Oravecz , Below are responses to your queries. It is not distributed Knime executor setup and Knime server , the file is located on the same instance where Knime server , knime executor and knime studio are installed . Knime exector are installed on the same VM instance , including the KNime studio .
are you perhaps using a distributed KNIME Executor setup, do you have multiple Executors?
No , not using distributed knime executor setup. have only 1 knime executor
On which machine is the file you are trying to access located?
the file is located on the same instance where Knime server , knime executor and knime studio are installed
Is an Executor installed there?
Yes, Knime server , knime executor and knime studio are installed on the same instance and files are also present on the same instance
Hi @nivedita_dixit This might be a matter of a subtle change in one of your configurations (e.g. extra invisible characters, spelling, wrong preferences file location, duplicate configurations in knime.ini and service definition). Would you mind sharing the following files with us over at firstname.lastname@example.org?
the executor.epf file ( /knime-server/workflow-repository/config/client-profiles/executor/executor.epf)
the Executor service definition file
(if the Executor is on Linux, the knime-executor.service - can be checked with the command #sudo systemctl edit knime-executor.service
if it’s on Windows, the install-executor-as-a-service.bat file in /knime-server/knime-executor/)
the combined-preferences.epf file ( /knime-workspace or executor-workspace/.metadata/.plugins/org.knime.product/combined-preferences.epf) - this would also need to contain the executor preferences
Check if the above files are at the expected location or in a different path.
It might be a redundant action, but you could also try restarting your Executor one more time to see if anything changes.