Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
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
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:
export TMPDIR=/mnt/HD_a2/tmp
Offline
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
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
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
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
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