Kodi Community Forum
[WINDOWS] Automatic Update Client for XBMC - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: [WINDOWS] Automatic Update Client for XBMC (/showthread.php?tid=48517)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37


- kay.one - 2009-04-13

xexe Wrote:A userdata snapshot/backup feature is a very good idea.

only issue is that userdata can get very big but thats probably all the more reason to backup

hmm, i wouldn't mind this!


- xexe - 2009-04-13

done with a windows rsync port and some cleverness it could actually be quite feasible to keep a backup of userdata per update.

last time i checked my userdata folder was about 1.2GB so thats something to keep in mind


- kricker - 2009-04-13

xexe Wrote:done with a windows rsync port and some cleverness it could actually be quite feasible to keep a backup of userdata per update.

last time i checked my userdata folder was about 1.2GB so thats something to keep in mind
I'm not sure a complete userdata folder is something this tool should bother itself with. Rather just a backup of files that were replaced, seems to be more appropriate. Then a quick rollback can be done if necessary.


- kay.one - 2009-04-13

xexe Wrote:last time i checked my userdata folder was about 1.2GB so thats something to keep in mind

Shocked


- CrashX - 2009-04-13

Any chance this will update plugins as well ...


- xexe - 2009-04-13

kricker Wrote:I'm not sure a complete userdata folder is something this tool should bother itself with. Rather just a backup of files that were replaced, seems to be more appropriate. Then a quick rollback can be done if necessary.

I sort of agree and disagree.

In a perfect world userdata and SVN version would be completely unrelated. So in that respect I agree.

However it is not beyond the realm of possibility that an SVN could introduce a corruption in userdata. In that scenario where users are using this tool to blindly update to bleeding edge SVN versions I would propose that a means to completely roll back would be extremely useful, perhaps even vital.


- kricker - 2009-04-13

xexe Wrote:I sort of agree and disagree.

In a perfect world userdata and SVN version would be completely unrelated. So in that respect I agree.

However it is not beyond the realm of possibility that an SVN could introduce a corruption in userdata. In that scenario where users are using this tool to blindly update to bleeding edge SVN versions I would propose that a means to completely roll back would be extremely useful, perhaps even vital.
How would an SVN update effect userdata? No userdata content should be replaced during an update. I think you run more of a chance that disk corruption ruins your userdata contents. Also, like you said, a userdata folder can grow quite large due to the databases and cached images. If anything, it should be a select set of files backed up not everything. If someone really wants a full backup they could use other more robust backup tools for that.


- midgetspy - 2009-04-13

kricker Wrote:How would an SVN update effect userdata? No userdata content should be replaced during an update. I think you run more of a chance that disk corruption ruins your userdata contents. Also, like you said, a userdata folder can grow quite large due to the databases and cached images. If anything, it should be a select set of files backed up not everything. If someone really wants a full backup they could use other more robust backup tools for that.

I think he means that an SVN revision could have a bug that ruins your userdata in some way through XBMC (corrupts library or something), not that it would overwrite it.


- xexe - 2009-04-14

midgetspy Wrote:I think he means that an SVN revision could have a bug that ruins your userdata in some way through XBMC (corrupts library or something), not that it would overwrite it.

Yes sorry that is exactly what I meant. I cant remember the exact build number but there has been at least one instance of this in the past.

I am prepared to bet that a very small percentage of users backup there userdata. Many rely on 3rd party tools like Media Info Plus to amongst other things act like a backup (aka rebuilding the dbase on corruption is very quick).

If such things mattered I believe there is a market for this feature albeit many users havent thought it through as to why they need it.

But in a scenario where a user has a corrupt dbase/userdata they could just use the updater to roll back and start again to work out where the problem occured.

Besides all that it would considerably de-risk using the SVN


- kay.one - 2009-04-14

alright guys, I still need some help with the documentation of the app, anyone willing to give me a hand please send me your Google user id and i'll add you to the project!


- kricker - 2009-04-16

I just noticed the self close, nice touch Wink


- kay.one - 2009-04-16

kricker Wrote:I just noticed the self close, nice touch Wink

Are you talking about autoclose when you run the app with /update

that has been there since the beginning!!!!Huh


- kricker - 2009-04-16

kay.one Wrote:Are you talking about autoclose when you run the app with /update

that has been there since the beginning!!!!Huh
Yup. I figured it's been there a while. I've just always closed it so fast afterward, I never noticed.


- febox-pootz - 2009-04-16

Hi man, i'm testing this app since you sended me a beta version... And i think i've founded a problem:

My Update is running every day at 5am. But, if my laptop is off, the task runs when i'm back online. Then, thats happening:

http://img21.imageshack.us/img21/5707/xbmcupdate.jpg

Here's the log:

Quote:2009-04-16 11:48:41.3180-XbmcUpdate.Runtime.Program.Main|Info|XBMCUpdate v0.6.0.0 Starting up.
2009-04-16 11:48:42.4620-XbmcUpdate.Runtime.Program.IsAnotherInstanceRunning|Info|Checking for another instance of XBMCUpdate
2009-04-16 11:48:42.4620-XbmcUpdate.Runtime.Program.IsAnotherInstanceRunning|Info|Instances of XBMCUpdate Detected: 1
2009-04-16 11:48:43.7190-XbmcUpdate.Managers.UpdateManager..ctor|Info|Creating Temporary folder at: C:\Tools\XBMC\Update\temp\
2009-04-16 11:49:02.7030-XbmcUpdate.Managers.XbmcManager.GerVersion|Info|Rev:19418, Installation Date:12/04/2009 19:35:23, Supplier:
2009-04-16 11:49:02.7260-XbmcUpdate.Managers.XbmcManager.GerVersion|Info|Rev:19418, Installation Date:12/04/2009 19:35:23, Supplier:
2009-04-16 11:49:05.5280-XbmcUpdate.Runtime.UpdateGui.StartUpdate|Info|Initiating Update.
2009-04-16 11:49:05.9890-XbmcUpdate.Managers.XbmcManager.GerVersion|Info|Rev:19418, Installation Date:12/04/2009 19:35:23, Supplier:
2009-04-16 11:49:06.3780-XbmcUpdate.Managers.ReleaseManager.GetPage|Trace|Attempting to connect to 'http://danielpatton.com/user-accounts/XBMC-updates/'
2009-04-16 11:49:11.1550-XbmcUpdate.Managers.ReleaseManager.GetPage|Trace|Successfully downloaded build list
2009-04-16 11:49:11.1550-XbmcUpdate.Managers.ReleaseManager.GetBuildList|Info|Trying to parse out the builds list from HTML string.
2009-04-16 11:49:11.5290-XbmcUpdate.Managers.ReleaseManager.GetBuildList|Info|Total of 32 builds were found. Latest:19493
2009-04-16 11:49:11.5290-XbmcUpdate.Managers.UpdateManager.CheckUpdate|Info|Latest available build:19493. Currently installed:19418
2009-04-16 11:49:11.5510-XbmcUpdate.Managers.UpdateManager.GetBuild|Info|Downloading build 19493 from the server.
2009-04-16 11:53:41.5440-XbmcUpdate.Tools.DownloadManager.StartDownload|Info|Download completed successfully
2009-04-16 11:53:46.9140-XbmcUpdate.Runtime.UpdateGui.ShutDown|Info|Shutdown timer has been initiated. Due in 5 second(s)
2009-04-16 11:53:48.2820-XbmcUpdate.Managers.UpdateManager.ExctractBuild|Info|Extracting Build 19493 to C:\Tools\XBMC\Update\temp\\XBMC-19493\\xbmc\
2009-04-16 11:53:54.8020-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:00.8980-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:01.9000-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:02.9140-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:03.9280-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:04.9430-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:05.9560-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:06.9700-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:07.9840-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:08.9990-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:10.0120-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:29.8630-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:30.3080-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:31.3200-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:32.3340-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:33.3490-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:34.3620-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:35.3750-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:36.3900-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:37.4470-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:38.4180-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:39.4330-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:40.4460-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:41.4590-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:42.4730-XbmcUpdate.Runtime.UpdateGui.ShutdownTimer_Tick|Info|Shutdown timer is closing the application.
2009-04-16 11:54:46.2180-XbmcUpdate.Managers.UpdateManager.ExctractBuild|Fatal|An error has occurred while extracting build System.Threading.ThreadAbortException: Thread was being aborted.
at Microsoft.Win32.Win32Native.GetFileType(SafeFileHandle handle)
at Microsoft.Win32.Win32Native.SafeCreateFile(String lpFileName, Int32 dwDesiredAccess, FileShare dwShareMode, SECURITY_ATTRIBUTES securityAttrs, FileMode dwCreationDisposition, Int32 dwFlagsAndAttributes, IntPtr hTemplateFile)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractFileEntry(ZipEntry entry, String targetName)
at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractEntry(ZipEntry entry)
at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractZip(String zipFileName, String targetDirectory, Overwrite overwrite, ConfirmOverwriteDelegate confirmDelegate, String fileFilter, String directoryFilter, Boolean restoreDateTime)
at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractZip(String zipFileName, String targetDirectory, String fileFilter)
at XbmcUpdate.Managers.UpdateManager.ExctractBuild() in D:\OpenSource\xbmcupdate\trunk\XBMCUpdate\UpdateEngine\UpdateManager.cs:line 162
2009-04-16 11:54:50.3390-XbmcUpdate.Runtime.UpdateGui.ShutDown|Info|Shutdown timer has been initiated. Due in 5 second(s)
2009-04-16 11:54:50.6720-XbmcUpdate.Managers.UpdateManager.ApplyUpdate|Fatal|An error has occurred during update System.Threading.ThreadAbortException: Thread was being aborted.
at XbmcUpdate.Managers.UpdateManager.ExctractBuild() in D:\OpenSource\xbmcupdate\trunk\XBMCUpdate\UpdateEngine\UpdateManager.cs:line 177
at XbmcUpdate.Managers.UpdateManager.ApplyUpdate() in D:\OpenSource\xbmcupdate\trunk\XBMCUpdate\UpdateEngine\UpdateManager.cs:line 187
2009-04-16 11:54:50.6720-XbmcUpdate.Runtime.UpdateGui.ShutDown|Info|Shutdown timer has been initiated. Due in 5 second(s)

If my laptop is turned on at 5 am, or in a manual update, everything goes ok.


- kay.one - 2009-04-16

febox-pootz Wrote:Hi man, i'm testing this app since you sended me a beta version... And i think i've founded a problem:

My Update is running every day at 5am. But, if my laptop is off, the task runs when i'm back online. Then, thats happening:

http://img21.imageshack.us/img21/5707/xbmcupdate.jpg

Here's the log:



If my laptop is turned on at 5 am, or in a manual update, everything goes ok.

That issue has been fixed. Download the latest version