wyUpdate failureSolved

Hi guys,I have a problem here. Sometimes the update process fails as indicated below. Update gets broken and can be fixed only by performing fresh install. I put some logging into the 2.6.11.3 source files and it looks like a thread sync problem to me. Look for the "frmMain:InstallUpdates DeletingTemp". I guess the temp files are deleted way before the target files are updated on the second listing. Any idea?

Cheers Petr

---------- GOOD ---------------

2011-03-24 12:41:41,157 [5320] INFO Start replace: DevExpress.XtraWizard.v10.1.resources.dll2011-03-24 12:41:41,175 [5320] INFO End replace: DevExpress.XtraWizard.v10.1.resources.dll2011-03-24 12:41:41,175 [5320] INFO End copy: DevExpress.XtraWizard.v10.1.resources.dll2011-03-24 12:41:41,175 [5320] INFO Directories copy: Help2011-03-24 12:41:41,175 [5320] INFO InstalUpdate: UpdateFiles tempDir C:\Users\spiller\wc\6\base\Help2011-03-24 12:41:41,176 [5320] INFO Start copy: TIS.chm2011-03-24 12:41:41,176 [5320] INFO Start backup: TIS.chm2011-03-24 12:41:41,286 [5320] INFO End backup: TIS.chm2011-03-24 12:41:41,286 [5320] INFO Start replace: TIS.chm2011-03-24 12:41:42,874 [5320] INFO End replace: TIS.chm2011-03-24 12:41:42,874 [5320] INFO End copy: TIS.chm2011-03-24 12:41:42,875 [5320] INFO Directories copy: Resources2011-03-24 12:41:42,875 [5320] INFO InstalUpdate: UpdateFiles tempDir C:\Users\spiller\wc\6\base\Resources2011-03-24 12:41:42,875 [5320] INFO Start copy: Tables.resx2011-03-24 12:41:42,875 [5320] INFO Start backup: Tables.resx2011-03-24 12:41:42,876 [5320] INFO End backup: Tables.resx2011-03-24 12:41:42,877 [5320] INFO Start replace: Tables.resx2011-03-24 12:41:42,945 [5320] INFO End replace: Tables.resx2011-03-24 12:41:42,945 [5320] INFO End copy: Tables.resx2011-03-24 12:41:42,945 [5320] INFO DeleteFiles2011-03-24 12:41:42,950 [5656] INFO frmMain:InstallUpdates ModifyReg2011-03-24 12:41:42,950 [5656] INFO wyUpdate.frmMain, Text: wyUpdate2011-03-24 12:41:42,954 [5656] INFO frmMain:InstallUpdates OptimizeExecute2011-03-24 12:41:42,954 [5656] INFO wyUpdate.frmMain, Text: wyUpdate2011-03-24 12:41:42,960 [5656] INFO frmMain:InstallUpdates WriteClientFile2011-03-24 12:41:42,960 [5656] INFO wyUpdate.frmMain, Text: wyUpdate2011-03-24 12:41:43,079 [5656] INFO frmMain:InstallUpdates DeletingTemp2011-03-24 12:41:43,079 [5656] INFO wyUpdate.frmMain, Text: wyUpdate2011-03-24 12:41:43,853 [5656] INFO frmMain:BlockLogOff() False

----------- BAD -----------------

2011-03-23 09:56:06,950 [5756] INFO Start backup: DevExpress.Data.v10.1.dll2011-03-23 09:56:06,953 [2784] INFO frmMain:InstallUpdates DeletingTemp2011-03-23 09:56:06,953 [2784] INFO wyUpdate.frmMain, Text: wyUpdate2011-03-23 09:56:06,964 [5756] INFO End backup: DevExpress.Data.v10.1.dll2011-03-23 09:56:06,964 [5756] INFO Start replace: DevExpress.Data.v10.1.dll2011-03-23 09:56:06,976 [5756] INFO End replace: DevExpress.Data.v10.1.dll2011-03-23 09:56:06,976 [5756] INFO End copy: DevExpress.Data.v10.1.dll2011-03-23 09:56:06,976 [5756] INFO Start copy: DevExpress.Data.v10.1.xml2011-03-23 09:56:06,977 [5756] INFO Start backup: DevExpress.Data.v10.1.xml2011-03-23 09:56:06,983 [5756] INFO End backup: DevExpress.Data.v10.1.xml2011-03-23 09:56:06,983 [5756] INFO Start replace: DevExpress.Data.v10.1.xml2011-03-23 09:56:06,984 [5756] ERROR Error: -2147024894 Marshal.GetHRForException(IOEx)System.IO.FileNotFoundException: File C:\Users\spiller\wc\650\base\DevExpress.Data.v10.1.xml not found.Filename: C:\Users\spiller\wc\650\base\DevExpress.Data.v10.1.xml v System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) v System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite) v System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite) v wyUpdate.InstallUpdate.UpdateFiles(String tempDir, String progDir, String backupFolder, List`1 rollbackList, Int32& totalDone, Int32& totalFiles)2011-03-23 09:56:06,986 [5756] INFO Error throw: (copy finished)2011-03-23 09:56:06,986 [5756] FATAL InstalUpdates: bw_DoWorkUpdateFiles System.IO.FileNotFoundException: File C:\Users\spiller\wc\650\base\DevExpress.Data.v10.1.xml not found.Filename: C:\Users\spiller\wc\650\base\DevExpress.Data.v10.1.xml v System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) v System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite) v System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite) v wyUpdate.InstallUpdate.UpdateFiles(String tempDir, String progDir, String backupFolder, List`1 rollbackList, Int32& totalDone, Int32& totalFiles) v wyUpdate.InstallUpdate.bw_DoWorkUpdateFiles(Object sender, DoWorkEventArgs e)2011-03-23 09:56:07,007 [2784] INFO frmMain:BlockLogOff() False

I can't reproduce this -- can you give me a way to reproduce this (maybe an example project)? Send it support@wyday.com. Also, are you sure you're using 2.6.11.3? Because we fixed the threading problem with that version.

Try using our compiled version of wyUpdate that's included with the latest version of wyBuild. Do you still get this problem?

Yes, I use version.

In your email, I sent a revised program "wyupdate.exe"which creates a log. I can send my application. The update will not be at 5-20 trial.

See previous post. Know you can read the thread [2784] made clear the temporary folder before copying was done in a thread [5756].

Yes, I see the error in the log, but there's not nearly enough information to show what's causing the error and I can't reproduce it. Please send me a project that can reproduce this. Also tell me your system specs (OS, Number of CPU cores, gigs of RAM) so we can try to reproduce it here.

The update will not be at 5-20 trial.

I'm not sure what that means.

Hi guys,I dont know what changes you have done in the latest release, but the fact is the problem is gone. Thank you.

P.

We fixed an edge case where when wyUpdate received multiple "Install the update now" messages from 1 or multiple apps running the AutomaticUpdater then wyUpdate would start the installation multiple times. Now wyUpdate just starts the installation once and ignores all other requests.

Thanks for reporting this problem.