WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Could not delete file: Error Code: 5 Access Denied (Read 6456 times)
WatchDirUser
YaBB Newbies
*
Offline



Posts: 8
Could not delete file: Error Code: 5 Access Denied
Jul 14th, 2015 at 6:40pm
 
Greetings!

Watch Directory Version:     4.9.1
Operating System Version:   Windows Server 2012 Standard
Service Account Authority:  Domain Admin

We have a lot of processes that run via Watch Directory, and they vary in the way they are deployed.

When we were running on Windows 2008, one job in particular worked fine, but when we moved Watch Directory to the 2012 server, it stopped working.

Note: If I login as the WatchDir service account, I can delete the same files, no problem, locally and across the network via the share names.

In short the process;

1. monitors a directory on the remote server
2. when a new file is found that is older than 1 minute
3. it dynamically renames\copies the original file to a new location
4. if successfully renamed\copied to new location, it should delete the original file.

The process in question, is able to detect the files, create the new directory structure, and the new files (which are the original file that has been dynamically renamed), and it can also rename the old files in the destination folder, etc.

Here is the debug log entries

2015-07-14 11:09:50.002;FN;\\server\i$\public\I.S\Pick\UPS\username\Data Download\Data Download150714_104235014.csv;;
2015-07-14 11:09:50.003;I;     Existing file \\server\i$\public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-14-15_Data Download150714_104235014.csv renamed to \\server\i$\public\I.S\Pick\UPS\usern;wdopAutoCopy.cpp (549);
2015-07-14 11:09:50.004;I;     .....ame\Data Download\2015 FOLDER\July\07-14-15_Data Download150714_104235014.OLD.csv;wdopAutoCopy.cpp (549);
2015-07-14 11:09:50.005;I;     Copying to \\server\i$\public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-14-15_Data Download150714_104235014.csv;wdopAutoCopy.cpp (620);
2015-07-14 11:09:50.006;D;     8206 / 8206 (100%);wdopAutoCopy.cpp (322);
2015-07-14 11:09:50.007;I;     \\server\i$\public\I.S\Pick\UPS\username\Data Download\Data Download150714_104235014.csv copied to \\server\i$\public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\0;wdopAutoCopy.cpp (395);
2015-07-14 11:09:50.008;I;     .....7-14-15_Data Download150714_104235014.csv;wdopAutoCopy.cpp (395);
2015-07-14 11:09:55.000;W;     Could not delete file: Error Code: 5 Description: Access is denied. ;wdopAutoCopy.cpp (266);
2015-07-14 11:09:55.001;D;     TTC: plugin returned OK;ThreadTaskCaller.cpp (611);

Please advise...

Thank you.
Back to top
 
 
IP Logged
 
WatchDirUser
YaBB Newbies
*
Offline



Posts: 8
Re: Could not delete file: Error Code: 5 Access Denied
Reply #1 - Jul 14th, 2015 at 6:57pm
 
Here is the debug notification email.  Notice the path appears to be broken (though it monitors, and copies\renames using that path just fine).
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2224
The Netherlands
Re: Could not delete file: Error Code: 5 Access Denied
Reply #2 - Jul 15th, 2015 at 7:11am
 
I am not sure what could be happening (if you are sure it used to work)....

Perhaps you can try to check the option "implement as MOVE" and see if that helps?
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Dirk
YaBB Administrator
*****
Offline



Posts: 658
South Germany
Re: Could not delete file: Error Code: 5 Access Denied
Reply #3 - Jul 15th, 2015 at 10:53am
 
HI,

the log says clearly:
Quote:
Could not delete file: Error Code: 5 Description: Access is denied


So maybe the service user has no rights to delete or something is holding the file in an open state (AV-scanner?) in that moment.

You need to find out why there is an access denied for delete. This is something you OS is reporting to WatchDirectory. You can use ProcMon to write a log, maybe you can see what is locking the file:
https://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
Back to top
 

Viele Grüße / Best regards
Dirk - GdP Software

dirk [at] gdpsoftware [dot] com
http://blog-de.gdpsoftware.com
Webseite: http://www.gdpsoftware.com
WWW WWW  
IP Logged
 
WatchDirUser
YaBB Newbies
*
Offline



Posts: 8
Re: Could not delete file: Error Code: 5 Access Denied
Reply #4 - Jul 15th, 2015 at 8:59pm
 
As I stated above...

The service account is a domain admin.

Before submitting the request for assistance on this forum, I confirmed that the permissions on all of the directories in the path, and the files in question show 'full control' for the service account.

I also logged into a remote machine via RDP, as the WatchDirectory service account to test the permissions.  I can access the same share on the remote server, browse to the specified directory, and I can delete the files in question, without a problem.

Note:  The same watch directory process creates & modifies files and directories in the same directory tree, via the inherited permissions from the folder where the problematic files reside.

Using ProcessExplorer (also from Microsoft) on the remote server where the share is, I have confirmed that there are no open file handles on the files in question, nor are there any processes that reference the file names\folders.

Using Procman, I generated the following log.  Please take a look at it below.  Note: I am only including the entries for a single file that was processed, due to space constraints on the forum. 

Also... I saw the 'Access Denied' in my first request, and in the logs below, but I don't see any reason for it.  Particularly when the permissions appear to be correct, as shown in the same log.

Maybe you can see the problem in the more arcane areas of the log.

Back to top
 
 
IP Logged
 
WatchDirUser
YaBB Newbies
*
Offline



Posts: 8
Re: Could not delete file: Error Code: 5 Access Denied
Reply #5 - Jul 15th, 2015 at 9:00pm
 
12:34:52.3018726 PM      wdRun.exe      5660      FASTIO_NETWORK_QUERY_OPEN      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      FAST IO DISALLOWED      
12:34:52.3023741 PM      wdRun.exe      5660      IRP_MJ_CREATE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
12:34:52.3024565 PM      wdRun.exe      5660      FASTIO_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      FAST IO DISALLOWED      Type: QueryBasicInformationFile
12:34:52.3024746 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryBasicInformationFile, CreationTime: 7/14/2015 10:43:58 AM, LastAccessTime: 7/14/2015 10:43:58 AM, LastWriteTime: 7/13/2015 9:00:46 AM, ChangeTime: 7/14/2015 10:19:17 AM, FileAttributes: ANCI
12:34:52.3024941 PM      wdRun.exe      5660      IRP_MJ_CLEANUP      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      
12:34:52.3025245 PM      wdRun.exe      5660      IRP_MJ_CLOSE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      
12:34:52.3031226 PM      wdRun.exe      5660      FASTIO_NETWORK_QUERY_OPEN      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      FAST IO DISALLOWED      
12:34:52.3036478 PM      wdRun.exe      5660      IRP_MJ_CREATE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
12:34:52.3037200 PM      wdRun.exe      5660      FASTIO_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      FAST IO DISALLOWED      Type: QueryBasicInformationFile
12:34:52.3037334 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryBasicInformationFile, CreationTime: 7/14/2015 10:43:58 AM, LastAccessTime: 7/14/2015 10:43:58 AM, LastWriteTime: 7/13/2015 9:00:46 AM, ChangeTime: 7/14/2015 10:19:17 AM, FileAttributes: ANCI
12:34:52.3037519 PM      wdRun.exe      5660      IRP_MJ_CLEANUP      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      
12:34:52.3037766 PM      wdRun.exe      5660      IRP_MJ_CLOSE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      
12:34:52.3052592 PM      wdRun.exe      5660      FASTIO_NETWORK_QUERY_OPEN      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      FAST IO DISALLOWED      
12:34:52.3057831 PM      wdRun.exe      5660      IRP_MJ_CREATE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
12:34:52.3058572 PM      wdRun.exe      5660      FASTIO_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      FAST IO DISALLOWED      Type: QueryNetworkOpenInformationFile
12:34:52.3058713 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryNetworkOpenInformationFile, CreationTime: 7/14/2015 10:43:58 AM, LastAccessTime: 7/14/2015 10:43:58 AM, LastWriteTime: 7/13/2015 9:00:46 AM, ChangeTime: 7/14/2015 10:19:17 AM, AllocationSize: 24576, EndOfFile: 24051, FileAttributes: ANCI
12:34:52.3058891 PM      wdRun.exe      5660      IRP_MJ_CLEANUP      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      
12:34:52.3059139 PM      wdRun.exe      5660      IRP_MJ_CLOSE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      
12:34:52.3116529 PM      wdRun.exe      5660      FASTIO_NETWORK_QUERY_OPEN      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      FAST IO DISALLOWED      
12:34:52.3122755 PM      wdRun.exe      5660      IRP_MJ_CREATE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
12:34:52.3123761 PM      wdRun.exe      5660      FASTIO_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      FAST IO DISALLOWED      Type: QueryNetworkOpenInformationFile
12:34:52.3123891 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Type: QueryNetworkOpenInformationFile, CreationTime: 7/15/2015 12:29:52 PM, LastAccessTime: 7/15/2015 12:29:52 PM, LastWriteTime: 7/13/2015 9:00:46 AM, ChangeTime: 7/15/2015 12:30:07 PM, AllocationSize: 24576, EndOfFile: 24051, FileAttributes: ANCI
12:34:52.3124078 PM      wdRun.exe      5660      IRP_MJ_CLEANUP      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      
12:34:52.3124344 PM      wdRun.exe      5660      IRP_MJ_CLOSE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      
12:34:52.3129775 PM      wdRun.exe      5660      FASTIO_NETWORK_QUERY_OPEN      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      FAST IO DISALLOWED      
12:34:52.3134774 PM      wdRun.exe      5660      IRP_MJ_CREATE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
12:34:52.3135511 PM      wdRun.exe      5660      FASTIO_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      FAST IO DISALLOWED      Type: QueryBasicInformationFile
12:34:52.3135644 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Type: QueryBasicInformationFile, CreationTime: 7/15/2015 12:29:52 PM, LastAccessTime: 7/15/2015 12:29:52 PM, LastWriteTime: 7/13/2015 9:00:46 AM, ChangeTime: 7/15/2015 12:30:07 PM, FileAttributes: ANCI
12:34:52.3135822 PM      wdRun.exe      5660      IRP_MJ_CLEANUP      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      
Back to top
 
 
IP Logged
 
WatchDirUser
YaBB Newbies
*
Offline



Posts: 8
Re: Could not delete file: Error Code: 5 Access Denied
Reply #6 - Jul 15th, 2015 at 9:02pm
 
12:34:52.3136071 PM      wdRun.exe      5660      IRP_MJ_CLOSE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      
12:34:52.3141676 PM      wdRun.exe      5660      IRP_MJ_CREATE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Desired Access: Read Attributes, Delete, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
12:34:52.3148584 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Type: QueryAttributeTagFile, Attributes: ANCI, ReparseTag: 0x0
12:34:52.3148841 PM      wdRun.exe      5660      FASTIO_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      FAST IO DISALLOWED      Type: QueryBasicInformationFile
12:34:52.3148973 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Type: QueryBasicInformationFile, CreationTime: 7/15/2015 12:29:52 PM, LastAccessTime: 7/15/2015 12:29:52 PM, LastWriteTime: 7/13/2015 9:00:46 AM, ChangeTime: 7/15/2015 12:30:07 PM, FileAttributes: ANCI
12:34:52.3159188 PM      wdRun.exe      5660      IRP_MJ_CREATE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July      SUCCESS      Desired Access: Write Data/Add File, Synchronize, Disposition: Open, Options: , Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Superseded
12:34:52.3165070 PM      wdRun.exe      5660      IRP_MJ_SET_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Type: SetRenameInformationFile, ReplaceIfExists: True, FileName: \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.OLD.csv
12:34:52.3206917 PM      wdRun.exe      5660      IRP_MJ_CLEANUP      \\server\i$\public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.OLD.csv      SUCCESS      
12:34:52.3207184 PM      wdRun.exe      5660      IRP_MJ_CLOSE      \\server\i$\public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.OLD.csv      SUCCESS      
12:34:52.3213979 PM      wdRun.exe      5660      IRP_MJ_CLEANUP      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      
12:34:52.3214251 PM      wdRun.exe      5660      IRP_MJ_CLOSE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      
12:34:52.3249516 PM      wdRun.exe      5660      FASTIO_NETWORK_QUERY_OPEN      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July      FAST IO DISALLOWED      
12:34:52.3259400 PM      wdRun.exe      5660      IRP_MJ_CREATE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July      SUCCESS      Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
12:34:52.3260016 PM      wdRun.exe      5660      FASTIO_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July      FAST IO DISALLOWED      Type: QueryBasicInformationFile
12:34:52.3260150 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July      SUCCESS      Type: QueryBasicInformationFile, CreationTime: 7/14/2015 10:43:57 AM, LastAccessTime: 7/15/2015 12:34:52 PM, LastWriteTime: 7/15/2015 12:34:52 PM, ChangeTime: 7/15/2015 12:34:52 PM, FileAttributes: DNCI
12:34:52.3260377 PM      wdRun.exe      5660      IRP_MJ_CLEANUP      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July      SUCCESS      
12:34:52.3260643 PM      wdRun.exe      5660      IRP_MJ_CLOSE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July      SUCCESS      
12:34:52.3266271 PM      wdRun.exe      5660      FASTIO_NETWORK_QUERY_OPEN      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      FAST IO DISALLOWED      
12:34:52.3272009 PM      wdRun.exe      5660      IRP_MJ_CREATE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
12:34:52.3272711 PM      wdRun.exe      5660      FASTIO_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      FAST IO DISALLOWED      Type: QueryNetworkOpenInformationFile
12:34:52.3272852 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryNetworkOpenInformationFile, CreationTime: 7/14/2015 10:43:58 AM, LastAccessTime: 7/14/2015 10:43:58 AM, LastWriteTime: 7/13/2015 9:00:46 AM, ChangeTime: 7/14/2015 10:19:17 AM, AllocationSize: 24576, EndOfFile: 24051, FileAttributes: ANCI
12:34:52.3273026 PM      wdRun.exe      5660      IRP_MJ_CLEANUP      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      
12:34:52.3273278 PM      wdRun.exe      5660      IRP_MJ_CLOSE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      
12:34:52.3284730 PM      wdRun.exe      5660      FASTIO_NETWORK_QUERY_OPEN      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July      FAST IO DISALLOWED      
12:34:52.3296306 PM      wdRun.exe      5660      IRP_MJ_CREATE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July      SUCCESS      Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
12:34:52.3296947 PM      wdRun.exe      5660      FASTIO_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July      FAST IO DISALLOWED      Type: QueryBasicInformationFile
12:34:52.3297100 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July      SUCCESS      Type: QueryBasicInformationFile, CreationTime: 7/14/2015 10:43:57 AM, LastAccessTime: 7/15/2015 12:34:52 PM, LastWriteTime: 7/15/2015 12:34:52 PM, ChangeTime: 7/15/2015 12:34:52 PM, FileAttributes: DNCI
12:34:52.3297274 PM      wdRun.exe      5660      IRP_MJ_CLEANUP      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July      SUCCESS      
12:34:52.3297522 PM      wdRun.exe      5660      IRP_MJ_CLOSE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July      SUCCESS      
Back to top
 
 
IP Logged
 
WatchDirUser
YaBB Newbies
*
Offline



Posts: 8
Re: Could not delete file: Error Code: 5 Access Denied
Reply #7 - Jul 15th, 2015 at 9:02pm
 
12:34:52.3303721 PM      wdRun.exe      5660      IRP_MJ_CREATE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Desired Access: Generic Read, Disposition: Open, Options: Sequential Access, Non-Directory File, Open Reparse Point, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened
12:34:52.3386334 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryAttributeTagFile, Attributes: ANCI, ReparseTag: 0x0
12:34:52.3386869 PM      wdRun.exe      5660      IRP_MJ_QUERY_VOLUME_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryDeviceInformationVolume, DeviceType: Disk, Characteristics: Remote
12:34:52.3387054 PM      wdRun.exe      5660      IRP_MJ_FILE_SYSTEM_CONTROL      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Control: IOCTL_LMR_DISABLE_LOCAL_BUFFERING
12:34:52.3387301 PM      wdRun.exe      5660      FASTIO_ACQUIRE_FOR_CC_FLUSH      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      
12:34:52.3387514 PM      wdRun.exe      5660      FASTIO_RELEASE_FOR_CC_FLUSH      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      
12:34:52.3387885 PM      wdRun.exe      5660      IRP_MJ_FILE_SYSTEM_CONTROL      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Control: FSCTL_LMR_GET_HINT_SIZE
12:34:52.3389912 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryStandardInformationFile, AllocationSize: 24,576, EndOfFile: 24,051, NumberOfLinks: 1, DeletePending: False, Directory: False
12:34:52.3390084 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryBasicInformationFile, CreationTime: 7/14/2015 10:43:58 AM, LastAccessTime: 7/14/2015 10:43:58 AM, LastWriteTime: 7/13/2015 9:00:46 AM, ChangeTime: 7/14/2015 10:19:17 AM, FileAttributes: ANCI
12:34:52.3390248 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryStreamInformationFile, 1: ::$DATA
12:34:52.3390450 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryBasicInformationFile, CreationTime: 7/14/2015 10:43:58 AM, LastAccessTime: 7/14/2015 10:43:58 AM, LastWriteTime: 7/13/2015 9:00:46 AM, ChangeTime: 7/14/2015 10:19:17 AM, FileAttributes: ANCI
12:34:52.3390629 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryEaInformationFile, EaSize: 0
12:34:52.3399438 PM      wdRun.exe      5660      IRP_MJ_CREATE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Desired Access: Generic Read/Write, Delete, Write DAC, Disposition: OverwriteIf, Options: Sequential Access, Non-Directory File, Attributes: ANCI, ShareMode: None, AllocationSize: 24,051, OpenResult: Created
12:34:52.3407081 PM      wdRun.exe      5660      IRP_MJ_QUERY_VOLUME_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Type: QueryDeviceInformationVolume, DeviceType: Disk, Characteristics: Remote
12:34:52.3407266 PM      wdRun.exe      5660      IRP_MJ_FILE_SYSTEM_CONTROL      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Control: IOCTL_LMR_DISABLE_LOCAL_BUFFERING
12:34:52.3407459 PM      wdRun.exe      5660      IRP_MJ_QUERY_VOLUME_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Type: QueryAttributeInformationVolume, FileSystemAttributes: Case Preserved, Case Sensitive, Unicode, ACLs, Compression, Named Streams, EFS, Object IDs, Reparse Points, Sparse Files, Quotas, 0xc00000, MaximumComponentNameLength: 255, FileSystemName: NTFS
12:34:52.3409150 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Type: QueryBasicInformationFile, CreationTime: 7/15/2015 12:34:52 PM, LastAccessTime: 7/15/2015 12:34:52 PM, LastWriteTime: 7/15/2015 12:34:52 PM, ChangeTime: 7/15/2015 12:34:52 PM, FileAttributes: ANCI
12:34:52.3409333 PM      wdRun.exe      5660      IRP_MJ_QUERY_VOLUME_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryAttributeInformationVolume, FileSystemAttributes: Case Preserved, Case Sensitive, Unicode, ACLs, Compression, Named Streams, EFS, Object IDs, Reparse Points, Sparse Files, Quotas, 0xc00000, MaximumComponentNameLength: 255, FileSystemName: NTFS
12:34:52.3409560 PM      wdRun.exe      5660      IRP_MN_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryRemoteProtocolInformation
12:34:52.3409738 PM      wdRun.exe      5660      IRP_MJ_QUERY_SECURITY      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Information: 0x20
12:34:52.3409986 PM      wdRun.exe      5660      IRP_MJ_QUERY_VOLUME_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryDeviceInformationVolume, DeviceType: Disk, Characteristics: Remote
12:34:52.3410141 PM      wdRun.exe      5660      IRP_MJ_QUERY_VOLUME_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Type: QueryDeviceInformationVolume, DeviceType: Disk, Characteristics: Remote
12:34:52.3410292 PM      wdRun.exe      5660      IRP_MJ_DEVICE_CONTROL      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      FAST IO DISALLOWED      Control: 0x140410 (Device:0x14 Function:260 Method: 0)
12:34:52.3410396 PM      wdRun.exe      5660      IRP_MJ_DEVICE_CONTROL      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      BUFFER OVERFLOW      Control: 0x140410 (Device:0x14 Function:260 Method: 0)
12:34:52.3410567 PM      wdRun.exe      5660      IRP_MJ_DEVICE_CONTROL      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      FAST IO DISALLOWED      Control: 0x140410 (Device:0x14 Function:260 Method: 0)
12:34:52.3410766 PM      wdRun.exe      5660      IRP_MJ_DEVICE_CONTROL      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      BUFFER OVERFLOW      Control: 0x140410 (Device:0x14 Function:260 Method: 0)
Back to top
 
 
IP Logged
 
WatchDirUser
YaBB Newbies
*
Offline



Posts: 8
Re: Could not delete file: Error Code: 5 Access Denied
Reply #8 - Jul 15th, 2015 at 9:03pm
 
12:34:52.3410921 PM      wdRun.exe      5660      IRP_MJ_DEVICE_CONTROL      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      FAST IO DISALLOWED      Control: 0x140410 (Device:0x14 Function:260 Method: 0)
12:34:52.3411019 PM      wdRun.exe      5660      IRP_MJ_DEVICE_CONTROL      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Control: 0x140410 (Device:0x14 Function:260 Method: 0)
12:34:52.3411142 PM      wdRun.exe      5660      IRP_MJ_DEVICE_CONTROL      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      FAST IO DISALLOWED      Control: 0x140410 (Device:0x14 Function:260 Method: 0)
12:34:52.3411233 PM      wdRun.exe      5660      IRP_MJ_DEVICE_CONTROL      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Control: 0x140410 (Device:0x14 Function:260 Method: 0)
12:34:52.3411357 PM      wdRun.exe      5660      IRP_MJ_DEVICE_CONTROL      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      FAST IO DISALLOWED      Control: 0x140414 (Device:0x14 Function:261 Method: 0)
12:34:52.3411448 PM      wdRun.exe      5660      IRP_MJ_DEVICE_CONTROL      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Control: 0x140414 (Device:0x14 Function:261 Method: 0)
12:34:52.3413696 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Type: QueryBasicInformationFile, CreationTime: 7/15/2015 12:34:52 PM, LastAccessTime: 7/15/2015 12:34:52 PM, LastWriteTime: 7/15/2015 12:34:52 PM, ChangeTime: 7/15/2015 12:34:52 PM, FileAttributes: ANCI
12:34:52.3413917 PM      wdRun.exe      5660      IRP_MJ_SET_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Type: SetEndOfFileInformationFile, EndOfFile: 24,051
12:34:52.3415952 PM      wdRun.exe      5660      IRP_MJ_QUERY_VOLUME_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryDeviceInformationVolume, DeviceType: Disk, Characteristics: Remote
12:34:52.3416168 PM      wdRun.exe      5660      IRP_MJ_QUERY_VOLUME_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Type: QueryDeviceInformationVolume, DeviceType: Disk, Characteristics: Remote
12:34:52.3416315 PM      wdRun.exe      5660      IRP_MN_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryRemoteProtocolInformation
12:34:52.3416458 PM      wdRun.exe      5660      IRP_MN_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Type: QueryRemoteProtocolInformation
12:34:52.3416753 PM      wdRun.exe      5660      IRP_MJ_DEVICE_CONTROL      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      FAST IO DISALLOWED      Control: 0x144418 (Device:0x14 Function:262 Method: 0)
12:34:52.3416878 PM      wdRun.exe      5660      IRP_MJ_DEVICE_CONTROL      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Control: 0x144418 (Device:0x14 Function:262 Method: 0)
12:34:52.3428904 PM      wdRun.exe      5660      IRP_MJ_SET_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      Type: SetBasicInformationFile, CreationTime: 0, LastAccessTime: 0, LastWriteTime: 7/13/2015 9:00:46 AM, ChangeTime: 7/14/2015 10:19:17 AM, FileAttributes: n/a
12:34:52.3430734 PM      wdRun.exe      5660      IRP_MJ_CLEANUP      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      
12:34:52.3430957 PM      wdRun.exe      5660      IRP_MJ_CLOSE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\2015 FOLDER\July\07-15-15_Data Download150713_090046014.csv      SUCCESS      
12:34:52.3431130 PM      wdRun.exe      5660      IRP_MJ_CLEANUP      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      
12:34:52.3431303 PM      wdRun.exe      5660      IRP_MJ_CLOSE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      
12:34:52.3446802 PM      wdRun.exe      5660      FASTIO_NETWORK_QUERY_OPEN      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      FAST IO DISALLOWED      
12:34:52.3451522 PM      wdRun.exe      5660      IRP_MJ_CREATE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
12:34:52.3452136 PM      wdRun.exe      5660      FASTIO_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      FAST IO DISALLOWED      Type: QueryBasicInformationFile
12:34:52.3452260 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryBasicInformationFile, CreationTime: 7/14/2015 10:43:58 AM, LastAccessTime: 7/14/2015 10:43:58 AM, LastWriteTime: 7/13/2015 9:00:46 AM, ChangeTime: 7/14/2015 10:19:17 AM, FileAttributes: ANCI
12:34:52.3452434 PM      wdRun.exe      5660      IRP_MJ_CLEANUP      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      
12:34:52.3452649 PM      wdRun.exe      5660      IRP_MJ_CLOSE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      
12:34:52.3457690 PM      wdRun.exe      5660      IRP_MJ_CREATE      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Desired Access: Read Attributes, Delete, Disposition: Open, Options: Non-Directory File, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
12:34:52.3462200 PM      wdRun.exe      5660      IRP_MJ_QUERY_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      SUCCESS      Type: QueryAttributeTagFile, Attributes: ANCI, ReparseTag: 0x0
12:34:52.3462388 PM      wdRun.exe      5660      IRP_MJ_SET_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      ACCESS DENIED      Type: SetDispositionInformationFile, Delete: True
Back to top
 
 
IP Logged
 
WatchDirUser
YaBB Newbies
*
Offline



Posts: 8
Re: Could not delete file: Error Code: 5 Access Denied
Reply #9 - Jul 15th, 2015 at 9:06pm
 
For what it's worth, I have also excluded the UPS directory from the AV scanning engine.

Thank you.
Back to top
 
 
IP Logged
 
Dirk
YaBB Administrator
*****
Offline



Posts: 658
South Germany
Re: Could not delete file: Error Code: 5 Access Denied
Reply #10 - Jul 15th, 2015 at 9:43pm
 
Just for the records:
A domain admin has not automatically rights to do everything on a folder.

But as you wrote, most likely something locks the file.
Feel free to send the nativ ProcMon logs to support@gdpsoftware.com, its nearly impossible to check the lines you posted here.
Back to top
 

Viele Grüße / Best regards
Dirk - GdP Software

dirk [at] gdpsoftware [dot] com
http://blog-de.gdpsoftware.com
Webseite: http://www.gdpsoftware.com
WWW WWW  
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2224
The Netherlands
Re: Could not delete file: Error Code: 5 Access Denied
Reply #11 - Jul 16th, 2015 at 10:42am
 
From what I see it all works fine except the delete (the very last line in your logs):
Quote:
12:34:52.3462388 PM      wdRun.exe      5660      IRP_MJ_SET_INFORMATION      \\server\i$\Public\I.S\Pick\UPS\username\Data Download\Data Download150713_090046014.csv      ACCESS DENIED      Type: SetDispositionInformationFile, Delete: True


The SetDispositionInformationFile requests the file to be deleted when its closed and the servers does not allow it.

Are you running this task as a service? Can you run it "as a normal program" and see if it works that way? If that's the case, I am quite sure its a permission issue for the user you setup on the Windows Service.
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Dirk
YaBB Administrator
*****
Offline



Posts: 658
South Germany
Re: Could not delete file: Error Code: 5 Access Denied
Reply #12 - Jul 16th, 2015 at 11:01am
 
If it runs as normal user but not as service, please run gpedit.msc -> Windows Settings ->security Settings -> local policies -> user rights and check if the service user has the rights:
- logon as batch
- logon as service

Back to top
 

Viele Grüße / Best regards
Dirk - GdP Software

dirk [at] gdpsoftware [dot] com
http://blog-de.gdpsoftware.com
Webseite: http://www.gdpsoftware.com
WWW WWW  
IP Logged
 
Page Index Toggle Pages: 1