Run out of space on /private/var (/dev/disk0s1s2)
#1
Hello there,

today i was flabbergasted that xbmc on my atv2 didn't work anymore.

I had glitches while scrolling throw the menus, ich couldn't watch anything on icefilms. So i tried to install the newest nightly. The wget command aborted with an error (no more free disc space). So i tried to figure out which disc run out of space

ssh and then df -h

I saw /private/var (/dev/disk0s1s2) was 100% in use.

I googled which folder could be the offender. At first i found something about iTunes Rentals. So i deleted everything in the folder /private/var/mobile/Library/Caches/AppleTV/Video/LocalAndRental (see http://forum.xbmc.org/archive/index.php/t-111726.html for more details).

That didn't help much. This saved me 200 MB of disk space.

So i ended up tinkering with this article http://www.codecoffee.com/tipsforlinux/articles/22.html. I inspected every folder below /private/var/mobile/Library/Preferences/XBMC.

The offender was found very quickly:
/private/var/mobile/Library/Preferences/XBMC/addons/packages

I think all new available packages for addons will be downloaded to this folder, but they are never deleted.

I removed everything form that folder and i got 5,2 GB of free disc space.
rm /private/var/mobile/Library/Preferences/XBMC/addons/packages/*

I don't know if this is a bug, or a feature (rollback).

But just i case you got a similar problem, this was my solution.

greetz

regnets
Reply
#2
Seen a few posts about this and yes, it's for the rollback feature. It's become part of my usual maintenance for my ATV boxes now to clear these out. Hopefully a configurable option in the future.
Reply
#3
I strongly believe this should be something that can be turned off, but no one said anything when I suggested it to the devs :\

I just cleared out about 5GB in my packages folder on my laptop the other day, too.
Reply
#4
Ned Scott Wrote:I strongly believe this should be something that can be turned off, but no one said anything when I suggested it to the devs :\

I just cleared out about 5GB in my packages folder on my laptop the other day, too.

As this makes a lot of sense, let's open a ticket on trac and see what happens....
Reply
#5
http://trac.xbmc.org/ticket/12260
Reply
#6
Yup, I'm also having this issue so I'm keeping an eye on this thread and the ticket for further developments. Hopefully this feature can be turned off instead of having to periodically remove the files from the atv2.
Reply
#7
Added the dirs to the FAQ so at least if anyone checks there they'll know the common spots to check for wasted space.

http://wiki.xbmc.org/index.php?title=XBM...ns.2Ffixes
Reply
#8
Learned more about what's going on with this last night. There's a permanent fix that has been in the works that won't make it in time for Eden (a sort of automatic pruning of the packages for all platforms), but it sounds like Spiff has something that will hold the ATV2 over for Eden.
Reply
#9
Oh great, i didn't think, that this could be such a big thing.

Let me know if you need any more information or debug log. I could provide it, it's just a little big after weeks without any reboot.
Reply

Logout Mark Read Team Forum Stats Members Help
Run out of space on /private/var (/dev/disk0s1s2)0