Subsonic 4.8 on Ubuntu 12.04 LTS [Problem]

Need help? Post your questions here.

Moderator: moderators

Subsonic 4.8 on Ubuntu 12.04 LTS [Problem]

Postby deejay2302 » Fri Apr 19, 2013 7:04 pm

Hi Guys. A have problem with Subsonic. I have installed Subsonic on a Ubuntu 12.04 LTS Root Server. The problem is,.. i can not connect to my Subsonic. I using the standalone version of Subsonic. Java 7 is installed.
.
I have follow Settings:

subsonic.sh
SUBSONIC_HOME=/var/subsonic
SUBSONIC_HOST=0.0.0.0
SUBSONIC_PORT=8080
SUBSONIC_HTTPS_PORT=0
SUBSONIC_CONTEXT_PATH=/
SUBSONIC_MAX_MEMORY=500
SUBSONIC_PIDFILE=/
SUBSONIC_DEFAULT_MUSIC_FOLDER=/var/music
SUBSONIC_DEFAULT_PODCAST_FOLDER=/var/music/Podcast
SUBSONIC_DEFAULT_PLAYLIST_FOLDER=/var/playlists

Subsonic is installed on:
/var/subsonic/standalone


The Log say:
Code: Select all
16 [main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@174cc1f: display name [org.springframework.context.support.ClassPathXmlApplicationContext@174cc1f]; startup date [Fri Apr 19 18:53:00 UTC 2013]; root of context hierarchy
117 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [applicationContext-deployer.xml]
[GC 4416K->226K(15872K), 0.0043320 secs]
[GC 4642K->527K(15872K), 0.0053480 secs]
878 [main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@174cc1f]: org.springframework.beans.factory.support.DefaultListableBeanFactory@13f3045
890 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@13f3045: defining beans [service,org.springframework.remoting.rmi.RmiServiceExporter#0]; root of factory hierarchy
980 [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/standalone/jetty/3434
Using WAR file: /var/subsonic/standalone/subsonic.war
1083 [main] INFO org.mortbay.log - jetty-6.1.x
[GC 4943K->436K(15872K), 0.0062230 secs]
[GC 4835K->825K(15872K), 0.0714690 secs]
[GC 5228K->829K(15872K), 0.0016860 secs]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/var/subsonic/standalone/subsonic-booter-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/var/subsonic/standalone/jetty/3434/webapp/WEB-INF/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
[GC 5245K->978K(15872K), 0.0024310 secs]
[GC 5394K->1136K(15872K), 0.0021540 secs]
1807 [main] INFO / - Initializing Spring root WebApplicationContext
1807 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
1887 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@18bf072: display name [Root WebApplicationContext]; startup date [Fri Apr 19 18:53:02 UTC 2013]; root of context hierarchy
1974 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-service.xml]
[GC 5552K->1435K(15872K), 0.0037920 secs]
2104 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-security.xml]
2187 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-cache.xml]
2271 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@18bf072]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1d7fbfb
[GC 5851K->1225K(15872K), 0.0031080 secs]
2396 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1d7fbfb: defining beans [playerDao,mediaFileDao,artistDao,albumDao,playlistDao,internetRadioDao,musicFileInfoDao,musicFolderDao,userDao,transcodingDao,podcastDao,avatarDao,shareDao,bookmarkDao,daoHelper,mediaFileService,securityService,settingsService,mediaScannerService,searchService,networkService,playerService,playlistService,versionService,statusService,musicInfoService,musicIndexService,audioScrobblerService,transcodingService,shareService,podcastService,adService,jukeboxService,metaDataParserFactory,ajaxMultiService,ajaxNowPlayingService,ajaxPlayQueueService,ajaxPlaylistService,ajaxLyricsService,ajaxCoverArtService,ajaxStarService,ajaxTagService,ajaxTransferService,ajaxChatService,filterChainProxy,httpSessionContextIntegrationFilter,logoutFilter,authenticationProcessingFilter,basicProcessingFilter,restRequestParameterProcessingFilter,basicProcessingFilterEntryPoint,securityContextHolderAwareRequestFilter,rememberMeProcessingFilter,anonymousProcessingFilter,exceptionTranslationFilter,basicExceptionTranslationFilter,filterInvocationInterceptor,accessDecisionManager,rememberMeServices,authenticationManager,daoAuthenticationProvider,userCacheWrapper,ldapAuthenticationProvider,bindAuthenticator,userDetailsServiceBasedAuthoritiesPopulator,ajaxServiceInterceptor,ajaxTagServiceSecure,ajaxTransferServiceSecure,cacheFactory,userCache,mediaFileMemoryCache,musicFileMemoryCache]; root of factory hierarchy
2494 [main] INFO org.springframework.jdbc.datasource.DriverManagerDataSource - Loaded JDBC driver: org.hsqldb.jdbcDriver
[GC 5635K->1305K(15872K), 0.0044570 secs]
[GC 5721K->2428K(15872K), 0.0053190 secs]
2785 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
2867 [main] INFO org.springframework.jdbc.support.SQLErrorCodesFactory - SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase]
[GC 6844K->3797K(15872K), 0.0054950 secs]
[GC 8213K->4136K(15872K), 0.0036110 secs]
[GC 8552K->4775K(15872K), 0.0058620 secs]
[GC 9191K->5015K(15872K), 0.0061610 secs]


I have test it with the Server-Domain and with Server-IP and Standard-Config 0.0.0.0. Nothing does work.

Normal,.. with my old server i connect over my domain to Subsonic: http://www.myadress.de:8080
What i do wrong?
21.681 Artists
58.141 Albums
674.091 Songs
5072,14 GB (~ 49.341 Hours)
User avatar
deejay2302
 
Posts: 165
Joined: Tue Oct 06, 2009 5:36 pm
Location: Germany

Re: Subsonic 4.8 on Ubuntu 12.04 LTS [Problem]

Postby gurutech » Fri Apr 19, 2013 10:57 pm

0.0.0.0 is not a valid IP address. If you are testing from the computer you installed it on, set it for 127.0.0.1 or better yet, the computer's actual IP address (ie. 192.168.x.x or 10.x.x.x)

And the default port should be 4040 - not sure if you were looking to customize that or not.

Also, check to make sure whatever port you have it set for is allowed through the firewall.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Subsonic 4.8 on Ubuntu 12.04 LTS [Problem]

Postby deejay2302 » Sat Apr 20, 2013 2:39 am

gurutech wrote:0.0.0.0 is not a valid IP address. If you are testing from the computer you installed it on, set it for 127.0.0.1 or better yet, the computer's actual IP address (ie. 192.168.x.x or 10.x.x.x)

And the default port should be 4040 - not sure if you were looking to customize that or not.

Also, check to make sure whatever port you have it set for is allowed through the firewall.


I have test it with 127.0.0.1 and My Server IP. Normal works Subsonic with port 8080. i have changed my Firewall Settings to open port 8080 on UDP and TCP for incoming. I must do it outgoing too?
21.681 Artists
58.141 Albums
674.091 Songs
5072,14 GB (~ 49.341 Hours)
User avatar
deejay2302
 
Posts: 165
Joined: Tue Oct 06, 2009 5:36 pm
Location: Germany

Re: Subsonic 4.8 on Ubuntu 12.04 LTS [Problem]

Postby deejay2302 » Sat Apr 20, 2013 2:54 am

Next test. Fail.

Test with:

SUBSONIC_HOME=/var/subsonic/standalone
SUBSONIC_HOST=127.0.0.1
SUBSONIC_PORT=4040
SUBSONIC_HTTPS_PORT=0
SUBSONIC_CONTEXT_PATH=/
SUBSONIC_MAX_MEMORY=500
SUBSONIC_PIDFILE=
SUBSONIC_DEFAULT_MUSIC_FOLDER=/var/music
SUBSONIC_DEFAULT_PODCAST_FOLDER=/var/music/Podcast
SUBSONIC_DEFAULT_PLAYLIST_FOLDER=/var/playlists

Firewall Rules set to 4040 for incoming and outgoing. Same problem. :cry:

PS: Its a ROOT Server. Not a Homeserver! I can not set IP to 192.....^^ I testing with Server IP Adresse and with the normal Network IP for Computers (127.0.0.1).

Thats my Firewall Settings for Incoming and Outgoing;
Image
21.681 Artists
58.141 Albums
674.091 Songs
5072,14 GB (~ 49.341 Hours)
User avatar
deejay2302
 
Posts: 165
Joined: Tue Oct 06, 2009 5:36 pm
Location: Germany

Re: Subsonic 4.8 on Ubuntu 12.04 LTS [Problem]

Postby gurutech » Sat Apr 20, 2013 4:58 am

Check to make sure the Subsonic service is started:

Code: Select all
dmesg | subsonic


Also check to make sure you don't have Java 6 installed also (I had an issue with 6 and 7 installed at the same time - had to uninstall ALL java versions, then download and install 7.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Subsonic 4.8 on Ubuntu 12.04 LTS [Problem]

Postby deejay2302 » Sun Apr 21, 2013 6:31 pm

I have take a look per ps aux. Service is running. Is not the same?
21.681 Artists
58.141 Albums
674.091 Songs
5072,14 GB (~ 49.341 Hours)
User avatar
deejay2302
 
Posts: 165
Joined: Tue Oct 06, 2009 5:36 pm
Location: Germany

Re: Subsonic 4.8 on Ubuntu 12.04 LTS [Problem]

Postby studog » Mon Apr 29, 2013 9:17 am

Leaving the ip address as 0.0.0.0 should auto bind subsonic to any IP addresses the server has but you can always set it to the server ip address it self (ie. 192.168.1.200) to be on the safe side.

If you are running IPTables then you should have a line that looks like this in your rules file.
Code: Select all
-A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT


You can check your firewall rules by becoming root and typing
Code: Select all
iptables -L


You should get a output that looks similar to this
Code: Select all
root:~# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:8080
LOG        all  --  anywhere             anywhere             limit: avg 5/min burst 5 LOG level debug prefix "iptables denied: "
DROP       all  --  anywhere             anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
root:~#


You want to make sure you have this line in the output
Code: Select all
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:8080


If the line is missing. You may find these basic instruction helpful.
https://help.ubuntu.com/community/IptablesHowTo

Hope this helps,
Cheers!
studog
 
Posts: 5
Joined: Mon Apr 29, 2013 7:51 am


Return to Help

Who is online

Users browsing this forum: No registered users and 2 guests