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
Task doesn't run as windows service (Read 847 times)
Kip
YaBB Newbies
*
Offline



Posts: 2
Task doesn't run as windows service
May 7th, 2019 at 4:46pm
 
watchDirectory 4.9.5 running on windows 2012 server. Task to copy files from one local directory to another local directory works fine when run manually with my user account. When run as network service the service starts but the task does not run. Also if I set to run manually and keep running after I logoff, the task still stops when I log off. These are functions only available of Pro version which is what is running
Back to top
 

WDTaskRunManually.jpg (148 KB | 79 )
WDTaskRunManually.jpg
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2362
The Netherlands
Re: Task doesn't run as windows service
Reply #1 - May 8th, 2019 at 9:15am
 
When a task runs as a Windows Service, Windows will typically limit it to "do things" on the local computer. So, copying files from C:\Source to C:\Target will work fine.
If you want the task to have access to network resources, you will need to change the user-account of the Windows Service.

This is explained in this blogpost:
http://blog-en.gdpsoftware.com/2010/04/watchdirectory-tasks-as-windows-service.h...
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
 
Kip
YaBB Newbies
*
Offline



Posts: 2
Re: Task doesn't run as windows service
Reply #2 - May 8th, 2019 at 2:06pm
 
This task, and all of our tasks run on local drives only so the local system account and the other account we tested to start the service should have full rights. Why are there no messages in the history file for the task when started as a service?
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2362
The Netherlands
Re: Task doesn't run as windows service
Reply #3 - May 9th, 2019 at 9:46am
 
Can you enable "debug" for ONE of those tasks? Run it for a while, stop it and create a backup for me to look at. Email it to me - gert@gdpsoftware.com

This is explained in detail here: http://blog-en.gdpsoftware.com/2010/06/send-task-backup-to-support.html
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
 
Page Index Toggle Pages: 1