DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-07-03 11:34:26

Thiam
Member
Registered: 2007-06-18
Posts: 43

SqueezeCenter fun_plug 7.3.3

I'm using the new SqueezeCenter fun_plug 7.3.3 for a week now.
I just want to note I encountered a problem with the scanner.
The scanner builds temporary mysql files in /tmp.
In my setup, /tmp does not have enough space for these temporary files. I guess since /tmp is part of the root, it is backed by the DNS's RAM by default? rootfs only has 1.8 MB available.
My music collection contains 10k mp3 files +  some flac and wav files.
I solved the problem by mounting /tmp to a 1GB partition on my 4GB USB stick.
The USB module loads on boot in my setup, and I added these two lines to fun_plug.local:

mount /dev/sdc3 /tmp
chmod 1777 /tmp

Another workaround would be to mount /tmp to a directory on /sda4 or /sdb4 I guess.

Offline

 

#2 2009-07-03 11:45:41

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: SqueezeCenter fun_plug 7.3.3

The firmware stores a number of files in /tmp, too. I don't think it's a good idea to mount over them.
Can you try if setting TMPDIR solves the problem, too? Just add the following to /ffp/start/slimserver.sh near the top:

Code:

export TMPDIR=/mnt/HD_a2/tmp

Offline

 

#3 2009-07-08 11:48:14

Thiam
Member
Registered: 2007-06-18
Posts: 43

Re: SqueezeCenter fun_plug 7.3.3

fonz wrote:

Can you try if setting TMPDIR solves the problem, too?

Setting TMPDIR does not solve the problem:

I tried both ways
Adding it to slimserver.sh, restarting slimserver and starting a scan from the WebGUI. That failed when starting the artwork scan.
DBD::mysql::st execute failed: Got error -1 from storage engine at /mnt/HD_a2/ffp/lib/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 771.

Exporting TMPDIR from the command line and running a cleanup scan from the command line ( /ffp/bin/perl /mnt/HD_a2/ffp/lib/squeezecenter/scanner.pl --logconfig=/ffp/etc/squeezecenter/log.conf --prefsdir=/ffp/etc/squeezecenter --priority=0 --progress --cleanup /mnt/HD_a2/write$/audio ) results in the usual error:
DBD::mysql::st execute failed: Error writing file '/tmp/MYmzYbR9' (Errcode: 28) at /mnt/HD_a2/ffp/lib/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 771.

Offline

 

#4 2009-07-08 12:31:21

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: SqueezeCenter fun_plug 7.3.3

And this didn't happen with 7.3.2 and earlier?

Offline

 

#5 2009-07-08 22:53:34

Thiam
Member
Registered: 2007-06-18
Posts: 43

Re: SqueezeCenter fun_plug 7.3.3

fonz wrote:

And this didn't happen with 7.3.2 and earlier?

No, it didn't. My collection didn't grow with hunderds or thousands either. Just a dozen tracks were added after upgrading to 7.3.3. Maybe I just crossed a threshold, but that would be a very odd coincidence.

Offline

 

#6 2010-05-04 18:07:26

Thiam
Member
Registered: 2007-06-18
Posts: 43

Re: SqueezeCenter fun_plug 7.3.3

I solved this the right way by adding the following line in /ffp/etc/my.cnf :

tmpdir = /mnt/USB/squeezeboxserver


/mnt/USB is mounted to /dev/sdc2, a 1GB partition on my USB stick
You may enter any path to a directory that has plenty of disk space, eg. /mnt/HD_a4
I inserted the line under the   datadir = /ffp/var/mysql   line.

By the time my collection crossed the 12000 tracks mark, I also had to change the following setting in my.cnf :

sort_buffer_size = 128K

The original value is 64K, but clearly 64K is not enough for everyone.
I simply doubled it, but changing to 96K should work to for a while.
I don't know if it scales linear. Works for all 7.3.x and 7.4.x releases. Not tested on 7.5.

Last edited by Thiam (2010-05-04 18:08:43)

Offline

 

#7 2010-05-05 09:56:34

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: SqueezeCenter fun_plug 7.3.3

Thiam wrote:

I solved this the right way by adding the following line in /ffp/etc/my.cnf :

tmpdir = /mnt/USB/squeezeboxserver

Would you share your complete my.cnf? I added tmpdir to my config, yesterday, but mysqld told me it's an unknown option.

Offline

 

#8 2010-05-05 11:04:05

Thiam
Member
Registered: 2007-06-18
Posts: 43

Re: SqueezeCenter fun_plug 7.3.3

Attached is /ffp/etc/my.cnf from my SqueezeCenter fun-plug 7.4.1


Attachments:
Attachment Icon my.cnf, Size: 696 bytes, Downloads: 231

Offline

 

#9 2010-05-06 19:48:09

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: SqueezeCenter fun_plug 7.3.3

Thanks. I've added tmpdir, and the larger sort buffer. Seems to work fine here with 7.5.0:  http://www.inreto.de/dns323/squeezecent … lug/7.5.0/

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB