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 !

Can't Access Squeezeserver

Got problems with your B2 or B3? Share and get helped!
Bultee
Posts: 6
Joined: 19 Jun 2011, 03:13

Can't Access Squeezeserver

Post by Bultee »

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

      Jun 19 18:40:02 bubba /USR/SBIN/CRON[21154]: (root) CMD (test -x /usr/bin/php && /usr/bin/php /usr/share/horde3/scripts/alarms.php)
      Jun 19 18:40:02 bubba /USR/SBIN/CRON[21155]: (root) CMD (test -x /usr/lib/web-admin/notify-dispatcher.pl && /usr/lib/web-admin/notify-dispatcher.pl)
      Jun 19 18:45:02 bubba /USR/SBIN/CRON[21162]: (root) CMD (test -x /usr/lib/web-admin/notify-dispatcher.pl && /usr/lib/web-admin/notify-dispatcher.pl)
      Jun 19 18:45:02 bubba /USR/SBIN/CRON[21163]: (root) CMD (test -x /usr/bin/php && /usr/bin/php /usr/share/horde3/scripts/alarms.php)
      Jun 19 18:50:01 bubba /USR/SBIN/CRON[21170]: (root) CMD (test -x /usr/lib/web-admin/notify-dispatcher.pl && /usr/lib/web-admin/notify-dispatcher.pl)
      Jun 19 18:50:01 bubba /USR/SBIN/CRON[21169]: (root) CMD (test -x /usr/bin/php && /usr/bin/php /usr/share/horde3/scripts/alarms.php)
      Jun 19 18:51:02 bubba mt-daapd[2437]: Starting playlist scan
      Jun 19 18:53:16 bubba mt-daapd[2437]: Updating playlists
      Jun 19 18:54:12 bubba mt-daapd[2437]: Scanned 30113 songs (was 30113) in 864 seconds
      Jun 19 18:55:02 bubba /USR/SBIN/CRON[21202]: (root) CMD (test -x /usr/bin/php && /usr/bin/php /usr/share/horde3/scripts/alarms.php)
      Jun 19 18:55:02 bubba /USR/SBIN/CRON[21201]: (root) CMD (test -x /usr/lib/web-admin/notify-dispatcher.pl && /usr/lib/web-admin/notify-dispatcher.pl)
      Jun 19 19:00:02 bubba /USR/SBIN/CRON[21212]: (root) CMD (test -x /usr/bin/php && /usr/bin/php /usr/share/horde3/scripts/alarms.php)
      Jun 19 19:00:02 bubba /USR/SBIN/CRON[21213]: (root) CMD (test -x /usr/lib/web-admin/notify-dispatcher.pl && /usr/lib/web-admin/notify-dispatcher.pl)


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?

Thanks
RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: Can't Access Squeezeserver

Post by RandomUsername »

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.
Binkem
Posts: 388
Joined: 10 Jul 2008, 02:26

Re: Can't Access Squeezeserver

Post by Binkem »

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

Martijn
Bultee
Posts: 6
Joined: 19 Jun 2011, 03:13

Re: Can't Access Squeezeserver

Post by Bultee »

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?

Geoff
ryz
Posts: 183
Joined: 12 Feb 2009, 06:03

Re: Can't Access Squeezeserver

Post by ryz »

The memory thing is a known problem and has been discussed quite a bit in this forums. Se this post http://forum.excito.net/viewtopic.php?f ... 27&start=0
ryz
Posts: 183
Joined: 12 Feb 2009, 06:03

Re: Can't Access Squeezeserver

Post by ryz »

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

Code: Select all

free -m
give
Bultee
Posts: 6
Joined: 19 Jun 2011, 03:13

Re: Can't Access Squeezeserver

Post by Bultee »

ryz

No swap (just as it came out of the box)

total used free shared buffers
Mem: 249 227 22 0 2
-/+ buffers/cache: 179 0
Swap: 0 0 0

Thanks
Geoff
Binkem
Posts: 388
Joined: 10 Jul 2008, 02:26

Re: Can't Access Squeezeserver

Post by Binkem »

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?
ryz
Posts: 183
Joined: 12 Feb 2009, 06:03

Re: Can't Access Squeezeserver

Post by ryz »

Well first of all it would be good to check if you do have an swap partition with one of the following commands

Code: Select all

fdisk -l
sfdisk -l
parted /dev/sda
Depending on which commands is installed default.

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
Binkem
Posts: 388
Joined: 10 Jul 2008, 02:26

Re: Can't Access Squeezeserver

Post by Binkem »

I checked but there's no swap partition on my Bubba|two. Must be an error in the install process.
ryz
Posts: 183
Joined: 12 Feb 2009, 06:03

Re: Can't Access Squeezeserver

Post by ryz »

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.
Binkem
Posts: 388
Joined: 10 Jul 2008, 02:26

Re: Can't Access Squeezeserver

Post by Binkem »

I mailed the Excito crew and asked them to post repair instructions on the forum.
RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: Can't Access Squeezeserver

Post by RandomUsername »

That's a weird bug. I haven't reinstalled my B2 for a long while but I did it a few times shortly after getting it and it has a swap partition.
Binkem
Posts: 388
Joined: 10 Jul 2008, 02:26

Re: Can't Access Squeezeserver

Post by Binkem »

I reinstalled on a new HDD, that may make the difference
ryz
Posts: 183
Joined: 12 Feb 2009, 06:03

Re: Can't Access Squeezeserver

Post by ryz »

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.
Post Reply