Page 12 of 54
Re: SqueezePlay OS for Joggler
Posted: Sat Jul 21, 2012 2:36 pm
by Glenn2
Thanks Guido,
I deleted all those things, I now have the following space:
Code: Select all
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p2 924M 584M 294M 67% /
none 244M 252K 244M 1% /dev
none 247M 0 247M 0% /dev/shm
none 192M 28K 192M 1% /tmp
none 247M 56K 247M 1% /var/run
none 247M 0 247M 0% /var/lock
none 247M 4.0K 247M 1% /lib/init/rw
none 1.0M 0 1.0M 0% /var/tmp
none 8.0M 488K 7.6M 6% /var/log
/dev/mmcblk0p1 42M 11M 32M 26% /boot
/dev/sda1 466G 170G 297G 37% /media/usb0
I still get those same 'disk full' log messages.
If I stop LMS, go into /var/lib/squeezeboxserver/cache and delete all the relevant DB files and restart the sever, it scans OK.
If I then do a further rescan it doesn't work.
So basically, every time I need to add music I need to go to /var/lib/squeezeboxserver/cache and clear out the old stuff.
Re: SqueezePlay OS for Joggler
Posted: Sun Jul 22, 2012 12:21 am
by Glenn2
In desperation, I tried editing
/etc/init.d/logitechmediaserver
CACHEDIR=/var/lib/$NAME/cache
to point to a new 'cache' directory in my external drive
CACHEDIR=/media/usb0/cache
but the server just refuses to start then.
I think it may be an ownership thing, but try as I might I can't change the owner:group to squeezeboxserver:nogroup
But as the internal flash seems to have plenty of room anyway, I really don't think this is the issue.
Looking at the Logitech forums it seems that this sort of problem is really common (i.e., it's just really buggy software).
Re: SqueezePlay OS for Joggler
Posted: Sun Jul 22, 2012 1:18 am
by Glenn2
I tried leaving the CACHEDIR as is and symlinking to the new location but that didn't work either.
Re: SqueezePlay OS for Joggler
Posted: Sun Jul 22, 2012 2:01 am
by guidows
did you tried with a previous version of Squeezebox Server?. If you don't need dnla capbilities, you can check what happen with squeezeboxserver_7.6.2~33593_all.deb
Re: SqueezePlay OS for Joggler
Posted: Sun Jul 22, 2012 11:34 am
by Glenn2
Thanks, I will try that next.
If I am to remove LMS I may as well reflash the OS, and refer to your 'Squeezeplay OS recipes' thread.
I.e., Reflash (using the birdslikewires internal MMC version), install SSH, clean out the stuff we don't need, then install Squeezebox Server using your instructions.
Re: SqueezePlay OS for Joggler
Posted: Sun Jul 22, 2012 5:17 pm
by guidows
yes, you can, but I believe with an apt-get remove --purge logitechmediaplayer is enough to.
Greetings.
Guido
Re: SqueezePlay OS for Joggler
Posted: Mon Jul 23, 2012 9:41 am
by Glenn2
I get exactly the same problem with SBS as I do with LMS.
Code: Select all
[12-07-23 09:26:14.8543] Slim::Schema::Storage::throw_exception (122) Error: DBI Exception: DBD::SQLite::db selectrow_array failed: database or disk is full [for Statement "
It has no problem at all re-scanning if I clear out the cache first.
I may give up soon! Getting the Joggler to be my music server was never meant to be a full-time hobby.

Re: SqueezePlay OS for Joggler
Posted: Mon Jul 23, 2012 4:14 pm
by JimbobVFR400
Just a thought but do you use WiFi at all
For running squeezeserver I've found it a lot easier to simply use a USB stick but plug it in internally in place of the WiFi card. No issues with running out of space that way (I'm using an 8G stick so plenty of space after resizing the partition in GParted
Re: SqueezePlay OS for Joggler
Posted: Mon Jul 23, 2012 5:01 pm
by roobarb!
Glenn2 wrote:I tried leaving the CACHEDIR as is and symlinking to the new location but that didn't work either.
Did you shut down LMS before creating the link? If it's storing the database where it says it is, that really should have worked.
Re: SqueezePlay OS for Joggler
Posted: Mon Jul 23, 2012 5:50 pm
by guidows
JimbobVFR400 wrote:Just a thought but do you use WiFi at all
For running squeezeserver I've found it a lot easier to simply use a USB stick but plug it in internally in place of the WiFi card. No issues with running out of space that way (I'm using an 8G stick so plenty of space after resizing the partition in GParted
Can you boot from the stick?
Re: SqueezePlay OS for Joggler
Posted: Mon Jul 23, 2012 6:14 pm
by Glenn2
JimbobVFR400 wrote:Just a thought but do you use WiFi at all
For running squeezeserver I've found it a lot easier to simply use a USB stick but plug it in internally in place of the WiFi card. No issues with running out of space that way (I'm using an 8G stick so plenty of space after resizing the partition in GParted
Yes I'm using wifi exclusively I'm afraid (although I could plug a wifi client into the ethernet port, I use one on my TV box to get iPlayer on it).
After a successful scan (after cache clearing) I have 33% free on the internal, so I'm still not wholly convinced space is the issue.
It's only 500-odd mostly FLAC albums with single cover.jpg per album (500x500).
Unless it needs to backup these DB files somewhere before creating new ones.
Maybe putting the OS on the 500GB external HDD along with the music is the answer! Although I like the fact that the HDD is spun down when I'm not playing files (i.e., even when listening to internet radio) and may have to keep it spinning for this to be usable.
Re: SqueezePlay OS for Joggler
Posted: Mon Jul 23, 2012 6:22 pm
by Glenn2
roobarb! wrote:Glenn2 wrote:I tried leaving the CACHEDIR as is and symlinking to the new location but that didn't work either.
Did you shut down LMS before creating the link? If it's storing the database where it says it is, that really should have worked.
Yes I did, but adding the new cache directory on the HDD as root is probably the issue, as it's not owned by user 'squeezeboxserver'.
I'm a linux noob (but these problems are great for picking up stuff!) and my attempts to change ownership of the new folder were denied.
Re: SqueezePlay OS for Joggler
Posted: Mon Jul 23, 2012 10:39 pm
by Glenn2
SqueezePlay OS for Joggler
Posted: Mon Jul 23, 2012 10:58 pm
by roobarb!
Interesting. It could be that this is related to temporary space then, rather than total storage space. That would make sense - in that case even moving the database files wouldn't necessarily fix the problem.
As I remember it, /var/tmp has a very limited space setting in /etc/fstab. I've also been a bit cheeky in making /var/tmp a tmpfs mount. Try increasing the space available to /var/tmp in the fstab, or remove that line entirely to pop it back onto the root storage device.
Re: SqueezePlay OS for Joggler
Posted: Mon Jul 23, 2012 11:39 pm
by Glenn2
GIVE THAT MAN A CIGAR!!!!!!!
Removed the line in /etc/fstab, rebooted, scanned perfectly!
Then did a full rescan to make sure.
Phew!
SqueezePlay OS for Joggler
Posted: Tue Jul 24, 2012 12:51 am
by roobarb!
Glenn2 wrote:GIVE THAT MAN A CIGAR!!!!!!!
Removed the line in /etc/fstab, rebooted, scanned perfectly!
Then did a full rescan to make sure.
Phew!
Good stuff! Right, there's a change to be made for the next version.

Re: SqueezePlay OS for Joggler
Posted: Tue Jul 24, 2012 1:16 am
by BuZz
Heh, not the first time i've seen this.. I have /tmp etc on tmpfs on my desktop and had some weird errors before (when something needed more tmp space than was available - i think it was mysql).. took me far too long to realise it was my tmpfs mount. typical, because if i'd made a note to myself, i might have caught it earlier.
glad you got this sorted.
Re: SqueezePlay OS for Joggler
Posted: Tue Jul 24, 2012 3:15 pm
by Glenn2
Just to say thanks to all of you, not just for helping me fix these issues, but for creating the system in the first place. Truly great work!
One little tip, which is handy particularly when playing BBC stations. Once you have LMS, iPlayer, PlayWMA and PlayReal installed, go into the file types settings and disable FLAC streaming for anything other than FLAC files.
There's no point having the server transcode, e.g., WMA to FLAC, and then having Squeezeplay decode the FLAC to the native PCM format (which all digital audio ends up as before the hardware can play it).
All transcoding must decompress to PCM before encoding to the new format, even if it's only one module doing it. There is no decrease in quality as FLAC is lossless, but it all takes CPU cycles.
So for WMA this is LMS (WMA-->PCM, PCM-->FLAC) ---> Squeezeplay (FLAC-->PCM).
But if you have LMS (WMA-->PCM) --> Squeezeplay, the streams start to play instantly rather than after a few seconds and it all feels much more responsive.
If you are feeding other squeezeboxes via wifi, you will be using a bit of extra wifi bandwidth for the stream but it made no difference in my system, and I feed an external Squeezebox Classic as well as the internal Squeezeplay client.
Re: SqueezePlay OS for Joggler
Posted: Wed Jul 25, 2012 4:44 pm
by JimbobVFR400
guidows wrote:JimbobVFR400 wrote:Just a thought but do you use WiFi at all
For running squeezeserver I've found it a lot easier to simply use a USB stick but plug it in internally in place of the WiFi card. No issues with running out of space that way (I'm using an 8G stick so plenty of space after resizing the partition in GParted
Can you boot from the stick?
Indeed I can. Boots straight from the stick. I had to remove the plastiic casing from the stick, which was a simple fingernail job. Not sure what happens if you insert a stick in the side as well, i.e. which stick it will boot from. Not tried that yet.
Re: SqueezePlay OS for Joggler
Posted: Wed Jul 25, 2012 4:58 pm
by roobarb!
Update!
Version 1.07 is now available, running SqueezePlay for Joggler v1.51.
This is mainly a bugfix release, sorting out an issue with rescanning libraries on Logitech Media Server, reducing the number of installed packages (thanks to guidows, who provided some nice information on what extraneous packages could be removed) and shifting apt caches and lists into RAM instead of eating up precious storage.
Changelog copied out below:
v1.07 (25th July 2012)
Kernel 3.2.23jog1, overlay v1.43.
Removed /var/tmp from tmpfs, as this shouldn't be purged on every reboot.
Added /var/cache/apt and /var/lib/apt/lists to tmpfs to save drive space.
Increased default audio output level slightly.
Removed additional unnecessary packages.