Kodi Community Forum
[ATV2] okay to delete out of /addons/packages? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: iOS & tvOS (https://forum.kodi.tv/forumdisplay.php?fid=137)
+---- Thread: [ATV2] okay to delete out of /addons/packages? (/showthread.php?tid=115420)



[ATV2] okay to delete out of /addons/packages? - canadave - 2011-11-25

I'm running out of space on my ATV2...I have a ton of large-iish zip files that seem to be just sitting in /addons/packages. Is it okay to delete those, or does XBMC use those to keep track of addons?


- Cranial - 2011-11-25

canadave Wrote:I'm running out of space on my ATV2...I have a ton of large-iish zip files that seem to be just sitting in /addons/packages. Is it okay to delete those, or does XBMC use those to keep track of addons?

It is okay to delete them. XBMC just checks against the installed version I believe. The zips are left so you can roll back a version. (Correct me if I'm wrong here somebody).


- canadave - 2011-11-25

Thanks. I just deleted them and everything seems to be fine.

If the zips are left there, perhaps there should be some kind of automatic purging that manages that folder. I had 4GB of zip files accumulated in there, and I was totally unaware it existed. At the very least, this should be publicized a lot more--I bet a fair number of user crashes might be due to this. I only discovered it because my Icefilms addon kept crashing midway through a movie and I couldn't understand why. It was because of the lack of space Confused


- Set845 - 2011-11-26

I agree this is a real problem.


- Ned Scott - 2011-11-26

I'll poke the devs about this again. Might make a trak ticket if no one beats me too it (I guess it would be a feature request?).

From what I gathered, it's kind of a temp folder, and no one thought to have XBMC delete the old zips because they were so small. Then later they added Add-on rollback to take advantage of the zips that were already being saved (or rather, that were not being deleted).


- canadave - 2011-11-27

Yes, that would probably be a good idea to poke them on it. The problem is that the ATV2 only has 6GB of space, and if buffering a movie from Icefilms (which is arguably one of the more popular addons), that movie can take up to around 1GB in temp space itself, leaving 5GB. Some other addons require a good deal of user data (such as Cinema Experience, with its trivia slidepacks, movie clip intros/outros, etc, or even Icefilms again with its 220MB metadata container). And of course lots of skins can eat up things too. Over time, this can wind up eating enough space that there's no room for error in terms of the downloaded addon packages.

It seems like another problem in this regard is the fact that the addon zip files downloaded into /addons/packages are put there every time there's a new version of the addon. So if an 80MB skin, for example, goes from version 1.0.4.0 to 1.0.4.1, the entire 80MB is downloaded again, and the 1.0.4.0 version is kept as well. Keep doing that over a few versions, and you can easily see why space quickly runs out Smile


- canadave - 2011-11-27

Come to think of it, it might be a good idea to put something into the XBMC code so that if XBMC is found to be running on an ATV2, the amount of free space is ascertained and stated in the xbmc.log file when XBMC starts. Might be a quick way to troubleshoot some ATV2 crash complaints.


- davilla - 2011-11-27

when xbmc starts up, it checks and runs a preflight script

/private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome/tools/darwin/runtime/preflight

preflight does not exist for iOS, only OSX so you can stick anything you want to happen before xbmc comes up, just name it preflight.