Testing subsonic on Qnap NAS

Need help? Post your questions here.

Moderator: moderators

Postby sindre_mehus » Mon May 18, 2009 8:58 am

Strange. What do you get with only "df -k" ?
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby L4ngley » Mon May 18, 2009 9:45 am

This
[/] # df -k
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/ram0 126931 112999 13932 89% /
tmpfs 32768 108 32660 0% /tmp
/dev/sda4 317392 106376 211016 34% /mnt/ext
/dev/md9 521684 40136 481548 8% /mnt/HDA_ROOT
/dev/md0 5763950000 1480317040 4283632960 26% /share/MD0_DATA
tmpfs 32768 0 32768 0% /.eaccelerator.tmp
[/] #
L4ngley
 
Posts: 27
Joined: Mon Feb 09, 2009 5:18 pm

Postby sindre_mehus » Mon May 18, 2009 10:37 am

Ok, so from what I understand /var/subsonic is located on the /dev/ram0 partition which only has 14MB available.

Better install Subsonic on one of the huge partitions. In Subsonic 3.6 you have to modify the subsonic.sh script to do that. Change SUBSONIC_HOME to /share/MD0_DATA/subsonic or something like that.
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby L4ngley » Mon May 18, 2009 6:00 pm

Linux for dummies,
Thanx for the tip, b ut where exaclty do i find this file?
Its not in the war, its not in the we aplication and there is no file called subsonic.sh under var either.

Gues i need to reinstall? With this parameter changed? But where is it :roll:
L4ngley
 
Posts: 27
Joined: Mon Feb 09, 2009 5:18 pm

Postby sindre_mehus » Mon May 18, 2009 7:08 pm

Sorry, my fault! I forgot that you're using the war version of Subsonic (rather than the standalone version).

Hm, maybe the easiest solution would be to create a symlink:

Code: Select all
ln -s /var/subsonic /share/MD0_DATA/subsonic


Before you do that, please stop Subsonic and remove /var/subsonic, and create /share/MD0_DATA/subsonic:

Code: Select all
rm -rf /var/subsonic
mkdir /share/MD0_DATA/subsonic


Hope this works!
Sindre
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby L4ngley » Mon May 18, 2009 7:44 pm

A quick question, just so i know what i am doing.
"/var/subsonic" is some kind of temp storage used by subsonic?

I wonder since you dont mention to copy
/var/subsonic -> /share/MD0_DATA/subsonic

Cheers.
L4ngley
 
Posts: 27
Joined: Mon Feb 09, 2009 5:18 pm

Postby sindre_mehus » Tue May 19, 2009 6:23 am

/var/subsonic is the persistent storage used by Subsonic. So you're quite right that the correct way whould be to copy it 8)
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby L4ngley » Tue May 19, 2009 7:13 am

Thanx

Its up and running on the symbolic link, wil post back here if I get any more issues.

L4ngley
L4ngley
 
Posts: 27
Joined: Mon Feb 09, 2009 5:18 pm

Postby L4ngley » Tue May 19, 2009 6:30 pm

Hi again

Norwegain letters?

Hi have some folders with norwegian letters, like
"Tømmermenn"

When running subsonic on win2k3 server they showd up both in search and the indexlist to the left.

When it is now running on the NAS / Apache-Tomcat, they dont show up.
The same goes for "Ølguttene"

I hav even added "Æ Ø Å" in the index string.
Regardless "Tømmermenn" should show up under T.

But "Ølguttene" does not show either.

Guess it has somting to do with tomcat or the NAS-OS setup?

EDIT:Running Subsonic without Tømmermenn is not an option 8), they kick ass :)

EDIT2: Changing Tømmermenn to Tommermenn and refreshing the web page displayed the Tommermenn in the left index.

If this is the only way i guess i have some work ahead.

L4ngley
L4ngley
 
Posts: 27
Joined: Mon Feb 09, 2009 5:18 pm

Postby mf-ch » Thu May 28, 2009 12:08 pm

Hi!

I've got the same problem with /dev/ram0

I've followed the steps to create the symbolic link. But the problem is still there.
Everything works fine Until I add a new folder and then launch the indexing. I can see the /dev/ram0 file growing and growing up to 100% then subsonic crashes...
mf-ch
 
Posts: 1
Joined: Thu May 28, 2009 12:00 pm

Postby L4ngley » Thu May 28, 2009 5:39 pm

I dont have problem with subsonic craching. It have been running fine for 10 days now.

I was not able to create the symbolic link with the comand, for some reason. I made it with WinSCP.

All of my ram0 -> ram5 files in the dev foler is 0B

I have added lots of folders no problem, indexing has also run.
L4ngley
 
Posts: 27
Joined: Mon Feb 09, 2009 5:18 pm

About Running Subsonic on a Qnap TS-509 Pro

Postby arwenshade » Mon Sep 14, 2009 11:20 am

What happens when you restart your NAS server?

I have just installed my new QNAP NAS and was hoping i could run subsonic directly from the NAS server. I have installed .qpkg packages and subsonic according to this guide: http://forum.subsonic.org/forum/viewtopic.php?t=1851

Everything seemed to be running perfectly, but after i restarted my NAS server all the config i made within subsonic is missing! (music folders, transcoder settings, themes etc..) I also recieve an error message just like the on that "L4ngley" posted earlier..
So it seems i have more or less the same problems as mr "L4ngley" about running subsonic on my NAS.

I will try to move the subsonic folders to a disc with more space and create symlinks as specified here, but can any of you please confirm if this problem has been resolved?
arwenshade
 
Posts: 3
Joined: Mon Sep 14, 2009 10:56 am

Postby aTommyC » Mon Sep 14, 2009 8:28 pm

You probably have to mount the "configuration store" of the QNAP Appliance. Have a look here.

This is for a TS-509.

# Mount the config file system:

mount /dev/sdx6 /tmp/config

# Create the autorun.sh script that will ensure that the persistent subsonic configuration is made available through symlinks. The autorun.sh will be run at every reboot:

cat > /tmp/config/autorun.sh <<__EOF
#!/bin/sh

rm -Rf /var/subsonic
ln -s /mnt/HDA_ROOT/subsonic /var/subsonic
ln -s /var/subsonic/transcode/lib/libfaad.so.0 /usr/lib/libfaad.so.0
ln -s /var/subsonic/transcode/lib/libfaad.so.0.0.0 /usr/lib/libfaad.so.0.0.0
ln -s /var/subsonic/transcode/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /var/subsonic/transcode/lib/libmp3lame.so.0.0.0 /usr/lib/libmp3lame.so.0.0.0
__EOF

Now, you need to download flac, lame and faad to be able to play basic mp3, flac and apple formats. Furthermore you can add other decoders if you like. I've chosen to download packages for i386 Fedora Core (rpm format) for lame and faad. Flac is available from sourceforge as tgz.

The rpms were converted to tgz within an Ubuntu installation with the alien command (alien -t {name of rpm file}, then copied to the QNAP appliance.

The tgz files were extracted to the /tmp folder.

The executables (flac, faad and lame) were copied directly to /var/subsonic/transcode, and the libraries were copied to the /lib subfolder of transcode. Further I've symlinked them in the autorun.sh script.

Now, before rebooting the QNAS, you need to copy the folder /var/subsonic to /mnt/HDA_ROOT/subsonic /var/subsonic. Also, chmod -R 777 the folder on /mnt/HDA_ROOT/subsonic to ensure that Subsonic has write/execute permissions. If you are paranoid, and security aware, you'll figure out how to harden this, but to make things work, 777 is fine.

This description is based on reconstruction of a recent config, and may be missing a few elements. If anyone second this, please post correct info in the forum to help others. :)
aTommyC
 
Posts: 21
Joined: Sun Aug 09, 2009 10:30 pm

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 4 guests