Error by deleting a file on a Windows share #520
Replies: 9 comments 4 replies
-
My guess would be the following. Does the user doing the reload have access to the UNC file share? If reloading the app/script from a QMC task, the file deletion will be done in the name of the user running the Qlik Sense services, i.e. the Sense service account. Does this user have access to the file share? But for reload tasks started from the QMC I've seen this problem happen when the service account didn't have appropriate permissions on the target folders/files. |
Beta Was this translation helpful? Give feedback.
-
Hello Göran, Both the system user and the reload user have access to the UNC file share I am testing. My last test shows if I have a share on the same server where the Qlik Sense Engine is installed on, then it works. But if I have a share on another server, than I get the error I posted above. Is there any restriction known, if the share is not located on the same server? BR, |
Beta Was this translation helpful? Give feedback.
-
Not any restrictions that I am aware of, no. I have had very similar issues in the past, but in those cases it always turned out to be permissions related. If things still fail... Not sure. |
Beta Was this translation helpful? Give feedback.
-
Some other thoughts Have you white-listed the folder in the Butler config file? All directories from which files should be deleted must be whitelisted, as a security precaution. The config file section is If the directory has not been whitelisted you should see an error in the Butler console logs (or its log files, if enabled). Silly maybe, but still: |
Beta Was this translation helpful? Give feedback.
-
@rumen-vasilev |
Beta Was this translation helpful? Give feedback.
-
I have a new version of Butler brewing, ETA a day or two.
Should fix your problem.
…On Sun, 7 Aug 2022, 13:54 Rumen Vasilev, ***@***.***> wrote:
Hi,
I am running Butler 8.3.3 on a Windows Server 2019 using the standalone
butler.exe.
—
Reply to this email directly, view it on GitHub
<#520 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH3JDX275YB6IYQJYWA6QDVX6PYRANCNFSM55SDNKAQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Butler 8.4.0 is now available from the release page.
The Butler doc site has also been updated: |
Beta Was this translation helpful? Give feedback.
-
Here's a sample run to show that a file on a remote SMB file share can be deleted using a UNC path.
In the first example forward slashes ("/") were used: But you use backslash ("") too if you prefer: Butler console log shows now warnings or errors: |
Beta Was this translation helpful? Give feedback.
-
Hello Göran, It works! The main problem was, that Butler was running all the time as a Windows service (Created via NSSM tool). I just switched from local system account to the Qlik Sense system account and than the file deletion has worked also via the windows service. With both version 8.3.3 and 8.4. Unfortunately, it didn't occur to me earlier that the problem could be in the service. Thank you so much supporting me. BR, |
Beta Was this translation helpful? Give feedback.
-
Hello guys,
I am trying to delete a file with the "filedelete" microservice. Using an absolute path on the windows C directory works fine. But trying to delete a file on a Windows share (UNC path) or on a mapped drive doesn't work. I am getting the following error.
I used this manual to set up the API Calls.
Thanks for your support!
BR,
Rumen
Beta Was this translation helpful? Give feedback.
All reactions