wrong types

Need help? Post your questions here.

Moderator: moderators

Postby Gummiklokke » Tue Feb 01, 2011 12:39 pm

After restart:

[/share/MD0_DATA/.qpkg/Tomcat/tomcat/webapps] # ls -al
drwxr-xr-x 7 tomcat tomcat 4096 Feb 1 13:27 ./
drwxrwxrwx 9 admin administ 4096 Jan 29 15:57 ../
drwxr-xr-x 3 tomcat tomcat 4096 Oct 21 2009 ROOT/
drwxr-xr-x 10 tomcat tomcat 4096 Oct 21 2009 docs/
drwxr-xr-x 5 tomcat tomcat 4096 Oct 21 2009 examples/
drwxr-xr-x 5 tomcat tomcat 4096 Oct 21 2009 host-manager/
drwxr-xr-x 5 tomcat tomcat 4096 Oct 21 2009 manager/
-rw-r--r-- 1 tomcat tomcat 18850769 Jan 31 12:38 subsonic.war.bak

No subsonic
Gummiklokke
 
Posts: 15
Joined: Mon Sep 03, 2007 8:08 pm

Postby stozher » Tue Feb 01, 2011 12:40 pm

Just for education purposes I explain how-to work process:

Download SS war installation. Extract to desktop. Rename subsonic.war to subsonic.war.zip and extract. Place content of archive in folder with same name as war file. Result:

subsonic/
    ad/
    falsh/
    ...

This is a virtual "subsonic" folder structure that Tomcat placed in "webapp" but in your QNAP virtual folder duplicate real folder.
Last edited by stozher on Tue Feb 01, 2011 12:45 pm, edited 1 time in total.
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby stozher » Tue Feb 01, 2011 12:41 pm

OK! Revert "subsonic.war.bak" to "subsonic.war". Rename folder "subsonic" to "subsonic.bak"...
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby Gummiklokke » Tue Feb 01, 2011 12:55 pm

I extracted the .war and placed the subsonic folder in webapps (and removed the .war)

[/share/MD0_DATA/.qpkg/Tomcat/tomcat/webapps] # ls -al
drwxr-xr-x 8 tomcat tomcat 4096 Feb 1 13:49 ./
drwxrwxrwx 9 admin administ 4096 Jan 29 15:57 ../
drwxr-xr-x 3 tomcat tomcat 4096 Oct 21 2009 ROOT/
drwxr-xr-x 10 tomcat tomcat 4096 Oct 21 2009 docs/
drwxr-xr-x 5 tomcat tomcat 4096 Oct 21 2009 examples/
drwxr-xr-x 5 tomcat tomcat 4096 Oct 21 2009 host-manager/
drwxr-xr-x 5 tomcat tomcat 4096 Oct 21 2009 manager/
drwxr-xr-x 10 tomcat tomcat 4096 Feb 1 13:49 subsonic/

Restarted tomcat: FAIL - Application at context path /subsonic could not be started..

If i delete ANYTHING and remove the create link in the tomcat.sh it will work - but only until next restart.. but i HAVE to remove the Create link to get things to work even if i undeploy and all i tomcat manager - seem that it cant undestand the link for some reason.. or i dont know..
Gummiklokke
 
Posts: 15
Joined: Mon Sep 03, 2007 8:08 pm

Postby stozher » Tue Feb 01, 2011 12:59 pm

Download folder "subsonic.bak" and remove from QNAP... Also remove link creation from "tomcat.sh".

PP: If you like extracted version (not war) at QNAP:

webapp/
    ad/
    flash/
    ...

Only content of "subsonic.war" place in "webapp" folder (no "subsonic.war" and no "subsonic" folder).
Last edited by stozher on Tue Feb 01, 2011 1:08 pm, edited 1 time in total.
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby Gummiklokke » Tue Feb 01, 2011 1:08 pm

The problem is if i dont have the create link in tomcat.sh - the after restart all my settings are gone and i have to start all over..
Gummiklokke
 
Posts: 15
Joined: Mon Sep 03, 2007 8:08 pm

Postby stozher » Tue Feb 01, 2011 1:16 pm

Your settings is at "/var/subsonic/db" folder and "/var/subsonic/subsonic.properties". If you delete this folder and file you need to setup SS from zero. Backup this folder and file from time to time...

PP: "On Linux, Subsonic keeps its files in /var/subsonic. Depending on your configuration, Tomcat may not be permitted to create this directory, in which case you have to create it manually: mkdir /var/subsonic; chown tomcat:tomcat /var/subsonic"
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby stozher » Tue Feb 01, 2011 1:33 pm

After you create folder "/var/subsonic" copy settings from "/share/MD0_DATA/subsonic" ("db" folder and "subsonic.properties") to "/var/subsonic" and all will be restored.
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby Gummiklokke » Wed Feb 02, 2011 9:59 pm

THANKS stozher!!!!!

u solved ALL my probs with Qnap and Subsonic

Thanks to: (in tomcat.sh)
------------------------
QPKG_NAME=Tomcat
PUBLIC_SHARE=`/sbin/getcfg SHARE_DEF defPublic -d Public -f /etc/config/def_share.info`

export LANG="en_US.utf8"
export LANGUAGE="en_US.utf8"
export LC_CTYPE="en_US.utf8"
----------------------------------
I have now Danish types (øæå) i my box.

Thanks to: (in tomcat.sh)
----------------------.......
### Create Subsonic link in /var
cd /var
ln -s /share/MD0_DATA/subsonic /var/subsonic
### End of Subconic link creation
------------------------------

and

chown -R tomcat: /share/MD0_DATA/subsonic /var/subsonic

I can now reboot my box without loosing my settings..

AND last but not least..

Quote:
1) Install LAME. I installed the ipkg qpkg then

# ipkg install lame

I did this since there is no qpkg for lame or other encoders.

This installed the LAME libraries into /opt/lib

2) Map the LAME installation to the HDA_DATA location:
# ln -s /opt/bin/lame /share/HDA_DATA/subsonic/transcode/lame

I then restarted tomcat:

#/etc/init.d/tomcat.sh restart
-- end


THX u rock
Gummiklokke
 
Posts: 15
Joined: Mon Sep 03, 2007 8:08 pm

Re: wrong types

Postby redranger » Mon Nov 04, 2013 11:06 pm

Hmmm maybe a wild shot...but hopefully someone answers this.

I'm struggling to get Subsonic to read DK letters æøå and other special letters as well '´ and the like. I have the following question going already: viewtopic.php?f=2&t=4437 - but thought I would try adding the UTF-8 config to tomcat.sh, unfortunately I didn't change a thing.

Gummiklokkker (or someone else, any suggestions now that it do not solve my problem?)

Thank you very much.
Thank you for your help.
Regards!
/Redranger
redranger
 
Posts: 30
Joined: Thu Aug 19, 2010 7:04 pm
Location: Denmark

Re: wrong types

Postby thechez » Tue Jan 06, 2015 9:12 pm

I managed to get Subsonic installed on the Apache server. I can't access my drives where my media is stored. Do I need to change permissions somehow? Has anyone written something to keep Subsonic running in case of a restart?
thechez
 
Posts: 11
Joined: Sun Dec 28, 2014 2:43 am

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 11 guests