[ATV2] okay to delete out of /addons/packages?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
canadave Offline
Fan
Posts: 711
Joined: Jul 2011
Reputation: 16
Location: Nova Scotia, Canada
Post: #1
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?

- ATV2 4.4.4 (iOS 5.0.1) build 9A406a, running Gotham (latest revision)
- 2011 Macbook Pro, running OSX Mavericks
- Skin: reFocus
- Connecting to MySQL database on Synology DS411+ NAS via NFS.
find quote
Cranial Offline
Fan
Posts: 740
Joined: Aug 2008
Reputation: 3
Location: Sydney, Australia
Post: #2
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).

If I have helped you in any way, please forgive me, it was entirely accidental.
find quote
canadave Offline
Fan
Posts: 711
Joined: Jul 2011
Reputation: 16
Location: Nova Scotia, Canada
Post: #3
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 Frown

- ATV2 4.4.4 (iOS 5.0.1) build 9A406a, running Gotham (latest revision)
- 2011 Macbook Pro, running OSX Mavericks
- Skin: reFocus
- Connecting to MySQL database on Synology DS411+ NAS via NFS.
find quote
Set845 Offline
Member
Posts: 80
Joined: Jun 2011
Reputation: 0
Post: #4
I agree this is a real problem.
find quote
Ned Scott Offline
Team-Kodi Wiki Guy
Posts: 21,941
Joined: Jan 2011
Reputation: 291
Location: Arizona, USA
Post: #5
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).
find quote
canadave Offline
Fan
Posts: 711
Joined: Jul 2011
Reputation: 16
Location: Nova Scotia, Canada
Post: #6
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

- ATV2 4.4.4 (iOS 5.0.1) build 9A406a, running Gotham (latest revision)
- 2011 Macbook Pro, running OSX Mavericks
- Skin: reFocus
- Connecting to MySQL database on Synology DS411+ NAS via NFS.
find quote
canadave Offline
Fan
Posts: 711
Joined: Jul 2011
Reputation: 16
Location: Nova Scotia, Canada
Post: #7
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.

- ATV2 4.4.4 (iOS 5.0.1) build 9A406a, running Gotham (latest revision)
- 2011 Macbook Pro, running OSX Mavericks
- Skin: reFocus
- Connecting to MySQL database on Synology DS411+ NAS via NFS.
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,508
Joined: Feb 2008
Reputation: 64
Post: #8
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.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote