Page 1 of 1

Subsonic + Debian Squeeze

PostPosted: Mon Jan 11, 2010 9:49 pm
by Raphael
Hi,

I have little problem with Subsonic. When subsonic.sh was launched, i had a blank page in my browser. I have tried to scan open ports and the 80 was closed ! I have follow these steps :

1 - DL Subsonic :

Code: Select all
wget http://prdownloads.sourceforge.net/subsonic/subsonic-3.8-standalone.tar.gz


2 - Install Java :

Code: Select all
apt-get install sun-java6-jre


3 - Create Subsonic directory :

Code: Select all
mkdir -p /var/subsonic/standalone


4 - Untar archive in desired folder :

Code: Select all
tar -C /var/subsonic/standalone -zvxf subsonic-3.8-standalone.tar.gz


5 - Change listen port 8080 to 80 :

Code: Select all
nano /var/subsonic/standalone/subsonic.sh


6 - Launch sh script :

Code: Select all
/var/subsonic/standalone/subsonic.sh


This text appear :

Code: Select all
Started Subsonic [PID 4250, /var/subsonic/subsonic_sh.log]


But when i use my browser to open Subsonic at : http://192.168.1.1/, i have no response.

It's very strange and subsonic run like a charm :

Code: Select all
4250  1.0  4.5 415136 94460 pts/0    Sl   22:25   0:11 java -Xmx64m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=80 -Dsubsonic.contextPath=/ -Dsubsonic.defaultMusicFolder=/var/music -Dsubsonic.defaultPodcastFolder=/var/music/Podcast


Do you have any ideas ? I'm feed it up with it :(

PS : I have tried with port 8080, I have the same problem.

PostPosted: Tue Jan 12, 2010 3:46 pm
by p2ranger
I'm guessing you have subsonic running on the same computer you are trying to access it from. Have you tried just typing localhost into your browser?

PostPosted: Tue Jan 12, 2010 7:30 pm
by Raphael
Subsonic runs on my server and i just want to access it with server ip's.

Server IP : 192.168.1.1
My computer : 192.168.1.103

:idea:

PostPosted: Tue Jan 12, 2010 8:00 pm
by p2ranger
Just making sure you have added the port number to the URL you are putting in your browser as well as a subdirectory if it is installed in one:

http://192.168.1.1:8080/subsonic

Although you seem to have yours running on port 80, then you shouldn't have to add a port number as 80 is default.

PostPosted: Tue Jan 12, 2010 8:25 pm
by Raphael
Subsonic.sh var :

Code: Select all
SUBSONIC_HOME=/var/subsonic
SUBSONIC_HOST=0.0.0.0
SUBSONIC_PORT=80
SUBSONIC_CONTEXT_PATH=/
SUBSONIC_MAX_MEMORY=64
SUBSONIC_PIDFILE=
SUBSONIC_DEFAULT_MUSIC_FOLDER=/var/music
SUBSONIC_DEFAULT_PODCAST_FOLDER=/var/music/Podcast
SUBSONIC_DEFAULT_PLAYLIST_FOLDER=/var/playlists


I just want to launch Subsonic on port 80 (remember : whatever chosen port, i have the same problem :idea: )

I launch :

Code: Select all
/var/subsonic/standalone/subsonic.sh


and get :

Code: Select all
Started Subsonic [PID 2292, /var/subsonic/subsonic_sh.log]


Now, ps -aux | grep java shows that :

Code: Select all
root      2259  1.7  2.8 228916 58328 pts/0    Sl   21:11   0:11 java -Xmx64m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=80 -Dsubsonic.contextPath=/ -Dsubsonic.defaultMusicFolder=/var/music -Dsubsonic.defaultPodcastFolder=/var/music/Podcast -Dsubsonic.defaultPlaylistFolder=/var/playlists -jar subsonic-booter-jar-with-dependencies.jar


Now, i go to my server ip's in Firefox and I get "Connexion failed"

PS :

Subsonic log :

Code: Select all
4 [main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@750159: display name [org.springframework.context.support.ClassPathXmlApplicationContext@750159]; st$
147 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [applicationContext-deployer.xml]
891 [main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@750159]: org.springframework.beans.factory.support.DefaultListableBeanFa$
916 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@156b6b9: defining beans [service,org.springframework.remoting.rmi.RmiServi$
971 [main] INFO org.mortbay.log - Logging to org.slf4j.impl.SimpleLogger(org.mortbay.log) via org.mortbay.log.Slf4jLog
Using WAR file: /var/subsonic/standalone/subsonic.war
Extracting webapp to /var/subsonic/jetty/1130
Using WAR file: /var/subsonic/standalone/subsonic.war
1043 [main] INFO org.mortbay.log - jetty-6.1.x
33077 [main] INFO / - Initializing Spring root WebApplicationContext
33078 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
33130 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@1dc0e7a: display name [Root WebApplicationContext]; startup date [Tue Jan 12 21:37:03 CET 2010]; root$
33211 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-service.xml]
33591 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-security.xml]
33704 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-cache.xml]
33824 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@1dc0e7a]: org.springframework.beans.factory.support.DefaultListableBeanFac$
34014 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@17b0998: defining beans [playerDao,internetRadioDao,musicFileInfoDao,mus$
34190 [main] INFO org.springframework.jdbc.datasource.DriverManagerDataSource - Loaded JDBC driver: org.hsqldb.jdbcDriver
35298 [main] INFO org.springframework.cache.ehcache.EhCacheManagerFactoryBean - Initializing EHCache CacheManager
12 janv. 2010 21:37:06 net.sf.ehcache.CacheManager addShutdownHookIfRequired
INFO: The CacheManager shutdown hook is enabled because net.sf.ehcache.enableShutdownHook is set to true.
12 janv. 2010 21:37:06 net.sf.ehcache.Cache initialise
ATTENTION: Cache: chatCache has a maxElementsInMemory of 0. It is strongly recommended to have a maximumSize of at least 1. Performance is halved by not using a MemoryStore.
12 janv. 2010 21:37:06 net.sf.ehcache.Cache initialise
ATTENTION: Cache: musicFolderCache has a maxElementsInMemory of 0. It is strongly recommended to have a maximumSize of at least 1. Performance is halved by not using a MemoryStore.
35776 [main] INFO org.acegisecurity.intercept.AbstractSecurityInterceptor - Validated configuration attributes
35791 [main] INFO org.acegisecurity.intercept.method.MethodDefinitionMap - Adding secure method [public net.sourceforge.subsonic.ajax.UploadInfo net.sourceforge.subsonic.ajax.TransferService.getUploadInfo()] with attributes [[ROLE_UPLOAD]]
35792 [main] INFO org.acegisecurity.intercept.method.MethodDefinitionMap - Adding secure method [public java.lang.String net.sourceforge.subsonic.ajax.TagService.setTags(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.la$
35792 [main] INFO org.acegisecurity.intercept.AbstractSecurityInterceptor - Validated configuration attributes
35846 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 2768 ms
35928 [main] INFO / - Initializing Spring FrameworkServlet 'subsonic'
35928 [main] INFO org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'subsonic': initialization started
35929 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@1e1ec86: display name [WebApplicationContext for namespace 'subsonic-servlet']; startup date [Tue Jan$
35930 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/subsonic-servlet.xml]
36283 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@1e1ec86]: org.springframework.beans.factory.support.DefaultListableBeanFac$
36498 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1706eb7: defining beans [leftController,rightController,statusController$
37608 [main] INFO org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'subsonic': initialization completed in 1680 ms
37656 [main] INFO org.mortbay.log - Started SelectChannelConnector@0.0.0.0:8080
Subsonic running on http://localhost:8080/
37736 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Looking for RMI registry at port '9412'
37757 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Could not detect RMI registry - creating new one

PostPosted: Sat Mar 06, 2010 5:20 pm
by PRAEst76
I'm having this same issue. Runs fine on my Ubuntu Karmic Desktop machine, but not on the my Debian box I want to be able to run it on.