SqueezePlay OS for Joggler

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
Locked
Glenn2
Posts: 37
Joined: Tue May 01, 2012 10:24 pm
Location: West London

Re: SqueezePlay OS for Joggler

Post 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.
Glenn2
Posts: 37
Joined: Tue May 01, 2012 10:24 pm
Location: West London

Re: SqueezePlay OS for Joggler

Post 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).
Glenn2
Posts: 37
Joined: Tue May 01, 2012 10:24 pm
Location: West London

Re: SqueezePlay OS for Joggler

Post by Glenn2 »

I tried leaving the CACHEDIR as is and symlinking to the new location but that didn't work either.
guidows
Posts: 52
Joined: Sat Jun 18, 2011 7:07 am

Re: SqueezePlay OS for Joggler

Post 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
Glenn2
Posts: 37
Joined: Tue May 01, 2012 10:24 pm
Location: West London

Re: SqueezePlay OS for Joggler

Post 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.
guidows
Posts: 52
Joined: Sat Jun 18, 2011 7:07 am

Re: SqueezePlay OS for Joggler

Post by guidows »

yes, you can, but I believe with an apt-get remove --purge logitechmediaplayer is enough to.

Greetings.

Guido
Glenn2
Posts: 37
Joined: Tue May 01, 2012 10:24 pm
Location: West London

Re: SqueezePlay OS for Joggler

Post 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. :cry:
User avatar
JimbobVFR400
Posts: 264
Joined: Fri Jul 20, 2012 8:39 pm

Re: SqueezePlay OS for Joggler

Post 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
User avatar
roobarb!
Posts: 1769
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: SqueezePlay OS for Joggler

Post 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.
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
guidows
Posts: 52
Joined: Sat Jun 18, 2011 7:07 am

Re: SqueezePlay OS for Joggler

Post 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?
Glenn2
Posts: 37
Joined: Tue May 01, 2012 10:24 pm
Location: West London

Re: SqueezePlay OS for Joggler

Post 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.
Glenn2
Posts: 37
Joined: Tue May 01, 2012 10:24 pm
Location: West London

Re: SqueezePlay OS for Joggler

Post 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.
Glenn2
Posts: 37
Joined: Tue May 01, 2012 10:24 pm
Location: West London

Re: SqueezePlay OS for Joggler

Post by Glenn2 »

This thread may have some clues:
http://forum.qnap.com/viewtopic.php?p=231030
User avatar
roobarb!
Posts: 1769
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

SqueezePlay OS for Joggler

Post by roobarb! »

Glenn2 wrote:This thread may have some clues:
http://forum.qnap.com/viewtopic.php?p=231030
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.
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
Glenn2
Posts: 37
Joined: Tue May 01, 2012 10:24 pm
Location: West London

Re: SqueezePlay OS for Joggler

Post 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!
User avatar
roobarb!
Posts: 1769
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

SqueezePlay OS for Joggler

Post 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. :)
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
User avatar
BuZz
Site Admin
Posts: 1462
Joined: Fri Mar 04, 2011 1:15 am

Re: SqueezePlay OS for Joggler

Post 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.
Glenn2
Posts: 37
Joined: Tue May 01, 2012 10:24 pm
Location: West London

Re: SqueezePlay OS for Joggler

Post 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.
User avatar
JimbobVFR400
Posts: 264
Joined: Fri Jul 20, 2012 8:39 pm

Re: SqueezePlay OS for Joggler

Post 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.
User avatar
roobarb!
Posts: 1769
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: SqueezePlay OS for Joggler

Post 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.
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
Locked