Author |
Message |
Kevin Donohue
Joined: 18 Mar 2004 Posts: 28
|
|
FTP Sync not updating or deleting files on target |
|
I am using 24x7 Automation Suite v3.4. I have an FTP Sync job that syncs a remote dir with a local one via FTP. Files are added fine and directories are created fine. However: It does not delete or update folders. It does not delete files. It sometimes updates files. I can not consistantly reproduce this. Here is my script: SyncFTPDir( "Local", "ftp.site.com", "login", "pass", "C:\\source directory", "//target directory", true, true, false, true )
|
|
Tue Aug 17, 2004 4:03 pm |
|
 |
Kevin Donohue
Joined: 18 Mar 2004 Posts: 28
|
|
Re: FTP Sync not updating or deleting files on tar |
|
: I am using 24x7 Automation Suite v3.4. : I have an FTP Sync job that syncs a remote : dir with a local one via FTP. : Files are added fine and directories are created fine. : However: It does not delete or update folders. : It does not delete files. : It sometimes updates files. I can not consistantly reproduce this. : Here is my script: SyncFTPDir( "Local", "ftp.site.com", : "login", "pass", "C:\\source directory", : "//target directory", true, true, false, true ) It seems to work when it's running as a program, but will not work runing as a service
|
|
Tue Aug 17, 2004 5:11 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
Re: FTP Sync not updating or deleting files on tar |
|
This is because the service account does not have permissions to delete these files. For more details see sync.log file. : It seems to work when it's running as a program, but will not work runing as : a service
|
|
Tue Aug 17, 2004 5:18 pm |
|
 |
Kevin Donohue
Joined: 18 Mar 2004 Posts: 28
|
|
Re: FTP Sync not updating or deleting files on tar |
|
: This is because the service account does not have permissions to delete these : files. For more details see sync.log file. I was able to login via ws_ftp and had permissions to do it with a particular account. I run 24x7 service as that account.
|
|
Tue Aug 17, 2004 6:18 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
Re: FTP Sync not updating or deleting files on tar |
|
What does it say about not-deleted files in sync.log? : I was able to login via ws_ftp and had permissions to do it with a particular : account. : I run 24x7 service as that account.
|
|
Tue Aug 17, 2004 6:57 pm |
|
 |
Kevin Donohue
Joined: 18 Mar 2004 Posts: 28
|
|
Re: FTP Sync not updating or deleting files on tar |
|
: What does it say about not-deleted files in sync.log? I have started using it in application mode (not as a service) It seems to be having trouble with certain files/folders. There are currently 2 folders that 24x7 will not update. I must delete the folders on the target server before syncing. If I do not, it puts out the error: Error creating subdirectory ""//subdir/subdir". FTP Error. Could not create new directory "subdir". The server returned an extended error: 550 subdir: Cannot create a file when that file already exists. Subdir is an actual directory. It seems to be trying to recreate the folder when it already exists. I use this to publish to a website several times an hour. I must delete the live folders before I can fire off the 24x7 process.
|
|
Thu Aug 19, 2004 9:34 am |
|
 |
Kevin Donohue
Joined: 18 Mar 2004 Posts: 28
|
|
Re: FTP Sync not updating or deleting files on tar |
|
I have made sure that I have full permissions on the whole site on both source and target servers. We use a time server so time stamps are not an issue. In app mode, I am using the debug window so I can see the errors. : I have started using it in application mode (not as a service) : It seems to be having trouble with certain files/folders. : There are currently 2 folders that 24x7 will not update. : I must delete the folders on the target server before syncing. : If I do not, it puts out the error: Error creating subdirectory : ""//subdir/subdir". FTP Error. Could not create new : directory "subdir". : The server returned an extended error: 550 subdir: Cannot create a file when : that file already exists. : Subdir is an actual directory. It seems to be trying to recreate the folder : when it already exists. : I use this to publish to a website several times an hour. I must delete the : live folders before I can fire off the 24x7 process.
|
|
Thu Aug 19, 2004 10:11 am |
|
 |
Kevin Donohue
Joined: 18 Mar 2004 Posts: 28
|
|
Re: FTP Sync not updating or deleting files on tar |
|
The list of folders seem to be growing. It has started erroring on 3 more folder. These have had no changes to them at all. It did not have a problem with them before. : I have made sure that I have full permissions on the whole site on both : source and target servers. We use a time server so time stamps are not an : issue. In app mode, I am using the debug window so I can see the errors.
|
|
Thu Aug 19, 2004 1:52 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
Re: FTP Sync not updating or deleting files on tar |
|
It must be something witth the cashing. When running as a service it doesn't see these directories. Either local caching or proxy caching could be causing that. Try the following: Login to the computer as the user who is running the service 1. In the Control Panel click Internet Options icon 2. Click the Setting button for the Temporary Files 3. Set "Refresh on every visit to the page" option. In the registry the SyncValue for the current user should be 3 Hkey_Current_User\software\Microsoft\windows\CurrentVersion\InternetSettings Copy settings from Hkey_Current_User\software\Microsoft\windows\CurrentVersion\InternetSettings to Hkey_Users\.DEFAULT\software\Microsoft\windows\CurrentVersion\InternetSettings Hope this helps. : I have made sure that I have full permissions on the whole site on both : source and target servers. We use a time server so time stamps are not an : issue. In app mode, I am using the debug window so I can see the errors.
|
|
Thu Aug 19, 2004 1:52 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
Re: FTP Sync not updating or deleting files on tar |
|
Please check the previous message : The list of folders seem to be growing. It has started erroring on 3 more : folder. These have had no changes to them at all. It did not have a : problem with them before.
|
|
Thu Aug 19, 2004 3:45 pm |
|
 |
Kevin Donohue
Joined: 18 Mar 2004 Posts: 28
|
|
Re: FTP Sync not updating or deleting files on tar |
|
: Please check the previous message That seems to be working. Thanks for the prompt replies. I was able to make the adjustments to the internet settings and exported the mentioned portion of the registry. I then did a find/replace: Hkey_Current_User\ with Hkey_Users\.DEFAULT\ And merged it into the registry. So far, no problems. I'm back to using it as a service as well. Thnaks again.
|
|
Thu Aug 19, 2004 4:29 pm |
|
 |
|