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
Service Suddenly stops (Read 8955 times)
kvnlnt
YaBB Newbies
*
Offline



Posts: 3
Service Suddenly stops
Mar 4th, 2010 at 12:02am
 
I have one copy of Watch Directory Pro installed on a Windows 2008 server. I have 3 tasks monitoring the same directory. Each task does the following:

1) Runs as a service and FTPS syncs the directory to a remote server
2) Runs as a service and FTPS syncs the directory to another remote server
3) Runs as a manual startup service and syncs the directory on a local network

All three run (well almost, I gave up on getting the third to run as a window's service, it runs for a second then stops and gives me access denied errors). I start the third manually and all 3 are running...but as soon as I update the watched directory, all three directories are updated, then task #2 simply stops.

The Windows Application Log States:
60000: SSL protocol error
and
Plugin returned errorcode -1. Error message=60000: SSL protocol error watchDirectory will abort
and
Plugin returned errorcode -1. Error message=60000: SSL protocol error watchDirectory will abort
and
Faulting application name: wdRun.exe, version: 4.5.9.469, time stamp: 0x4b57f74a
Faulting module name: wdopautoftp.dll, version: 4.6.0.0, time stamp: 0x4b57f753
Exception code: 0xc0000005
Fault offset: 0x0002da01
Faulting process id: 0x1414
Faulting application start time: 0x01cabb216821fc11
Faulting application path: C:\Program Files (x86)\watchDirectory\wdRun.exe
Faulting module path: C:\Program Files (x86)\watchDirectory\plugins\wdopautoftp.dll
Report Id: 437cee57-2715-11df-8daf-001c23ca8f8d

If I just turn off task #3, this never happens. Is there a limit as to how many tasks can watch a single directory? And why can't I get the third task to run as a window's service when the first two run just fine?

Any help would be much appreciated!
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: Service Suddenly stops
Reply #1 - Mar 4th, 2010 at 10:48am
 
Hi,

No there is not a real limit to the number of task monitoring the same directory. I guess the issue may be that they all try to read the same file at once which is causing conflicts. To prevent those conflicts, you could run them as SUBtasks (see http://www.watchdirectory.net/wdhelp/plugins/wdopMultiPlugin.html ) - you can import your current tasks to run as subtasks.

But before you do that, I guess it is better to find out what the issue is with your task #2 (ssl protocol error). Please make sure your settings for this task have
* "write debug" enabled ( http://www.watchdirectory.net/wdhelp/help/wdnewconfigpage6.html )
* "write FTP conversation to history" enabled ( http://www.watchdirectory.net/wdhelp/plugins/wdopAutoFtp.html - not documented there, I just notice)

The "write FTP conversation" option will write all FTP commands sent by WatchDirectory and all responses from your FTP server to the history database. That may give you a clue why this is failing. See http://watchdirftp.blogspot.com/2008/05/how-task-history-works.html for a short tutorial about Task History.

The "crash" (instead of proper shutdown) of the task should be fixed if you install the current beta:
http://www.watchdirectory.net/cgi-bin/yabb2/YaBB.pl?num=1267526810
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
 
kvnlnt
YaBB Newbies
*
Offline



Posts: 3
Re: Service Suddenly stops
Reply #2 - Mar 4th, 2010 at 5:35pm
 
Thanks Gert. I created a subtask to run the first two FTPS tasks. This seemed to resolve the apparent conflict with the 3rd task. However, I noticed that the FTPS subtasks don't fire a delete event...Why is that?
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: Service Suddenly stops
Reply #3 - Mar 5th, 2010 at 8:43am
 
Perhaps the original error was caused by some kind of connection limit of your FTP server?

The "SubTask" plugin currently only supports the 2 most popular events: FileNew and FileChange. The idea is to support more (maybe all) events in a future release.

Gert
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
 
kvnlnt
YaBB Newbies
*
Offline



Posts: 3
Re: Service Suddenly stops
Reply #4 - Mar 5th, 2010 at 7:11pm
 
...hard to say. My first post was my first pass at setting things up. Since then, I've ran into a number of other issues. Mainly the fact that Watch Directory only works in polling mode as a manual started service for my non FTP based tasks!?!? My setup looks like this now

  • Watch corporate website folder on master server, run two subtasks (fast mode):
    • FTPS copy to public server A
    • FTPS copy to public server B
  • Watch corporate website folder on master server, copy to backup master server on same network (poll mode)
  • Watch internal website B folder on master server, copy to backup master server on same network (poll mode)
  • Watch internal website C folder on master server, copy to backup master server on same network (poll mode)
  • Watch internal website D folder on master server, copy to backup master server on same network (poll mode)
  • Watch internal website E folder on master server, copy to backup master server on same network (poll mode)


Why does fast mode only work on the first task? Also, I set the poll's to 5-10 seconds yet there is anywhere between a 1 to 3 minute lag between updates...is this normal? I couldn't find anything on your forum here..
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: Service Suddenly stops
Reply #5 - Mar 7th, 2010 at 8:10am
 
Quote:
Why does fast mode only work on the first task?


"Fast" needs Operating System support (all involved must be Windows) and the task must run as a user with enough privileges ("Backup Operator" or "Administrator").
I believe the special kind of connection that "Fast" uses is counted by the hosting computer (that has the drive being monitored) as an incoming connection and counted as a client by Windows's License manager.

Quote:
Also, I set the poll's to 5-10 seconds yet there is anywhere between a 1 to 3 minute lag between updates...is this normal?

Depends on the size of the monitored directory (how many files, sub-directories etc) and network speed.
If the scan of the directory takes 10 seconds any poll-interval less than 10 seconds will have no effect.

Gert
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