New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !
I have a B2 to host my Squeezesbox database (Squeezeserver 7.5.4.dfsg1-2)
I initially loaded about 8000 flacs and all worked well.
I then ripped the rest of the collection (30000 songs in total). I kicked off the database scan which appeared to complete after about 2 days. Following this I couln't log in to the server nor could the squeezebox see it.
I checked the system log and it showed the scan proess was repeated every 20 minutes and that there were 5 erros due to duplicate items. I removed these albums and that error message disappeared but the scan process continued to cycle. The following is an extract from the system log:
Jun 19 18:39:48 bubba mt-daapd[2437]: Rescanning database
I ssh'd in the B2 and confirmed the squeezeserver process was running (consuming most of the CPU) but seemed to restart every 20 or so mins. The squeezerserver log confirmed that the squeezeserver died every 20 mins and restarted.
Any suggestions? Is there a limit on the no of songs the database can handle or are there some corrupted songs?
I had similar problems when trying to add a large number of songs (> 20,000). Not sure if it's due to a limitation with the B2's hardware or a bug in the software but I think you'll need to a bit of trial and error to see what the song limit is.
In the config of bubba's mt-daapd server (bubba:3689) you may set the scanning interval (in seconds), standard is every 600 seconds (10 min). You might even set it to once daily.
When using SSH the config file is in:
/etc/mt-daapd.conf
Thanks Random and Binkem
I altered the mt-daapd scan rate and it is currently not running.
The log indicates that mysql is still cycling and squeeze server is running on top but doesn't appear on the system log. Latest system log dump appears to be a memory problem:
Jun 23 17:46:34 bubba kernel: lowmem_reserve[]: 0 0 0
Jun 23 17:46:34 bubba kernel: DMA: 825*4kB 5*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 3340kB
Jun 23 17:46:34 bubba kernel: 22353 total pagecache pages
Jun 23 17:46:34 bubba kernel: 0 pages in swap cache
Jun 23 17:46:34 bubba kernel: Swap cache stats: add 0, delete 0, find 0/0
Jun 23 17:46:34 bubba kernel: Free swap = 0kB
Jun 23 17:46:34 bubba kernel: Total swap = 0kB
Jun 23 17:46:34 bubba kernel: 65536 pages RAM
Jun 23 17:46:34 bubba kernel: 1583 pages reserved
Jun 23 17:46:34 bubba kernel: 11630 pages shared
Jun 23 17:46:34 bubba kernel: 58072 pages non-shared
Jun 23 17:46:34 bubba kernel: mysqld: page allocation failure. order:1, mode:0x20
Jun 23 17:46:34 bubba kernel: Call Trace:
Jun 23 17:46:34 bubba kernel: [cf21bae0] [c0008334] 0xc0008334 (unreliable)
Jun 23 17:46:34 bubba kernel: [cf21bb10] [c0063568] 0xc0063568
Jun 23 17:46:34 bubba kernel: [cf21bba0] [c00844c0] 0xc00844c0
Jun 23 17:46:34 bubba kernel: [cf21bc00] [c00848dc] 0xc00848dc
Jun 23 17:46:34 bubba kernel: [cf21bc20] [c02743c8] 0xc02743c8
Jun 23 17:46:34 bubba kernel: [cf21bc40] [c027454c] 0xc027454c
Jun 23 17:46:34 bubba kernel: [cf21bc60] [c02ada94] 0xc02ada94
Jun 23 17:46:34 bubba kernel: [cf21bc70] [c02c4298] 0xc02c4298
Jun 23 17:46:34 bubba kernel: [cf21bc90] [c02c2e34] 0xc02c2e34
Jun 23 17:46:34 bubba kernel: [cf21bcb0] [c02c4120] 0xc02c4120
Jun 23 17:46:34 bubba kernel: [cf21bd00] [c02c25c8] 0xc02c25c8
Jun 23 17:46:34 bubba kernel: [cf21bd30] [c02c2be0] 0xc02c2be0
Jun 23 17:46:34 bubba kernel: [cf21bd60] [c02a4478] 0xc02a4478
Jun 23 17:46:34 bubba kernel: [cf21bd80] [c02a3e58] 0xc02a3e58
Jun 23 17:46:34 bubba kernel: [cf21bdb0] [c0281244] 0xc0281244
Jun 23 17:46:34 bubba kernel: [cf21bde0] [c0201d2c] 0xc0201d2c
Jun 23 17:46:34 bubba kernel: [cf21be30] [c02022ec] 0xc02022ec
Jun 23 17:46:34 bubba kernel: [cf21be80] [c0281cb8] 0xc0281cb8
Jun 23 17:46:34 bubba kernel: [cf21bec0] [c0028628] 0xc0028628
Jun 23 17:46:34 bubba kernel: [cf21bf00] [c0006230] 0xc0006230
Jun 23 17:46:34 bubba kernel: [cf21bf10] [c0028414] 0xc0028414
Jun 23 17:46:34 bubba kernel: [cf21bf20] [c00062d0] 0xc00062d0
Jun 23 17:46:34 bubba kernel: [cf21bf40] [c0011c3c] 0xc0011c3c
Jun 23 17:46:34 bubba kernel: --- Exception: 501 at 0x1037fc48
Jun 23 17:46:34 bubba kernel: LR = 0x1037faf8
Jun 23 17:46:34 bubba kernel: Mem-Info:
Jun 23 17:46:34 bubba kernel: DMA per-cpu:
Jun 23 17:46:34 bubba kernel: CPU 0: hi: 90, btch: 15 usd: 83
Jun 23 17:46:34 bubba kernel: active_anon:14785 inactive_anon:21095 isolated_anon:0
Jun 23 17:46:34 bubba kernel: active_file:15741 inactive_file:6506 isolated_file:0
Jun 23 17:46:34 bubba kernel: unevictable:0 dirty:0 writeback:0 unstable:0
Jun 23 17:46:34 bubba kernel: free:835 slab_reclaimable:2780 slab_unreclaimable:1241
Jun 23 17:46:34 bubba kernel: mapped:2218 shmem:106 pagetables:346 bounce:0
Jun 23 17:46:34 bubba kernel: DMA free:3340kB min:2036kB low:2544kB high:3052kB active_anon:59140kB inactive_anon:84380kB active_file:62964kB inactive_file:26024kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:260096kB mlocked:0kB dirty:0kB writeback:0kB mapped:8872kB shmem:424kB slab_reclaimable:11120kB slab_unreclaimable:4964kB kernel_stack:696kB pagetables:1384kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
This repeats about 6 times every 15 minutes or so.
I get the feeling that the best way forward might be to nuke the system and start again with fewer songs to begin with. I have seen a few posts on purging squeezeserver and reinstalling it. Will this deal with the mysql issues as well?
Hm actually it does not look like is it the same memory problem. If I read the log correctly it seems you do not have any swap at all on the machine. What does
I reinstalled my bubba system on a new HDD and I've got the same swap settings.
Can anyone point out how to create and activate a swap partition on the Bubba?
Here is my output. The interesting thing here is the Linux Swap which have the id 8e
~# sfdisk -l
Disk /dev/sda: 121601 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 0+ 1216 1217- 9775521 83 Linux
/dev/sda2 1217 121456 120240 965827800 8e Linux LVM
/dev/sda3 121457 121600 144 1156680 82 Linux swap / Solaris
/dev/sda4 0 - 0 0 0 Empty
Disk /dev/dm-0: 0 cylinders, 0 heads, 0 sectors/track
sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/dm-0: unrecognized partition table type
No partitions found
That should definitely be reported to Excito since that is no good.
You could create your own swap partition with either
fdisk,cfdisk,sfdisk or parted, I would probably use parted since this is the most advanced of them. But this is only easy to do if you actually have unused space on the hard drive. If you do not have that you need to first shrink one of the current partitions and then it gets more complicated. parted should most likely be able to handle that to but it is a little more risky.
I have installed the B2 on a new HDD since my old one kind of stopped working after dropping it on the floor from my window frame .
It might depend upon the size of the HDD sinze the script needs to adapt the partitions to the size of the HDD.
I unfortunately do not now any easy way to unpack the installer to look at the installs script more than actually booting the bubba in rescue mode. It would be nice if you could do that on an other computer too try to understand what might be wrong or if you just want to modify it yourself.