Cant get SubSonic to work

Need help? Post your questions here.

Moderator: moderators

Cant get SubSonic to work

Postby Kocrachon » Fri Oct 25, 2013 10:41 pm

So I am trying to run a subsonic server off of an Amazon EC2 instance, running Amazon Linux (basically fedora with their own repositories) I have also tried using Ubuntu.

I made sure java 1.6 sdk was installed as it mentions, I have made sure the proper ports are forwarded and available. I even checked with every port open and still no response. I also noticed it did not create a config file in /etc/default/subsonic, I had to make it myself.

Here are some of my logs.

subsonic.log
Code: Select all
[2013-10-25 22:30:23,449] INFO DaoHelper - Checking database schema.
[2013-10-25 22:30:24,998] INFO DaoHelper - Done checking database schema.
[2013-10-25 22:30:25,829] INFO SearchService - Automatic index creation scheduled to run every 1 day(s), starting at Sat Oct 26 03:00:00 UTC 2013
[2013-10-25 22:30:26,223] INFO PodcastService - Automatic Podcast update scheduled to run every 24 hour(s), starting at Fri Oct 25 22:35:26 UTC 2013
[2013-10-25 22:30:32,063] WARN NetworkService - No UPnP router found.


subsonic_sh.log
Code: Select all
112 [main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@355d56d5: display name [org.springframework.context.support.ClassPathXmlApplicationContext@355d56d5]; startup date [Fri Oct 25 22:30:17 UTC 2013]; root of context hierarchy
289 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [applicationContext-deployer.xml]
[GC 7168K->382K(25728K), 0.0071740 secs]
1449 [main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@355d56d5]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1055e55f
1489 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1055e55f: defining beans [service,org.springframework.remoting.rmi.RmiServiceExporter#0]; root of factory hierarchy
1539 [main] INFO org.mortbay.log - Logging to org.slf4j.impl.SimpleLogger(org.mortbay.log) via org.mortbay.log.Slf4jLog
Using WAR file: /usr/share/subsonic/subsonic.war
Extracting webapp to /var/subsonic/jetty/2585
Using WAR file: /usr/share/subsonic/subsonic.war
1602 [main] INFO org.mortbay.log - jetty-6.1.x
[GC 7550K->637K(25728K), 0.0312600 secs]
[GC 7801K->903K(25728K), 0.0047380 secs]
[GC 8071K->888K(25728K), 0.0284140 secs]
3571 [main] INFO / - Initializing Spring root WebApplicationContext
3571 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
3651 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@195ed659: display name [Root WebApplicationContext]; startup date [Fri Oct 25 22:30:21 UTC 2013]; root of context hierarchy
3809 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-service.xml]
4435 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-security.xml]
[GC 8056K->1405K(25728K), 0.0055620 secs]
4850 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-cache.xml]
5056 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@195ed659]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6c3c9c31
5389 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6c3c9c31: defining beans [playerDao,internetRadioDao,musicFileInfoDao,musicFolderDao,userDao,transcodingDao,podcastDao,avatarDao,shareDao,daoHelper,musicFileService,securityService,settingsService,searchService,luceneSearchService,networkService,playerService,playlistService,versionService,statusService,musicInfoService,musicIndexService,audioScrobblerService,transcodingService,shareService,podcastService,adService,jukeboxService,metaDataParserFactory,ajaxMultiService,ajaxNowPlayingService,ajaxPlaylistService,ajaxLyricsService,ajaxCoverArtService,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,cacheManager,userCache,musicFileCache,childDirCache,coverArtCache,musicFolderCache,chatCache]; root of factory hierarchy
5525 [main] INFO org.springframework.jdbc.datasource.DriverManagerDataSource - Loaded JDBC driver: org.hsqldb.jdbcDriver
[GC 8573K->1165K(25728K), 0.0059310 secs]
[GC 8333K->3738K(25728K), 0.0498310 secs]
[GC 10906K->4143K(25728K), 0.0060680 secs]
7323 [main] INFO org.springframework.cache.ehcache.EhCacheManagerFactoryBean - Initializing EHCache CacheManager
Oct 25, 2013 10:30:25 PM net.sf.ehcache.CacheManager addShutdownHookIfRequired
INFO: The CacheManager shutdown hook is enabled because net.sf.ehcache.enableShutdownHook is set to true.
Oct 25, 2013 10:30:25 PM net.sf.ehcache.Cache initialise
WARNING: 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.
Oct 25, 2013 10:30:25 PM net.sf.ehcache.Cache initialise
WARNING: 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.
[GC 11311K->4682K(25728K), 0.0342790 secs]
[GC 11850K->5826K(25728K), 0.0095890 secs]
9796 [main] INFO org.acegisecurity.intercept.AbstractSecurityInterceptor - Validated configuration attributes
9855 [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]]
9855 [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.lang.String,java.lang.String)] with attributes [[ROLE_COVERART]]
9856 [main] INFO org.acegisecurity.intercept.AbstractSecurityInterceptor - Validated configuration attributes
9930 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 6359 ms
10172 [main] INFO / - Initializing Spring FrameworkServlet 'subsonic'
10172 [main] INFO org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'subsonic': initialization started
10173 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@50b2fb1e: display name [WebApplicationContext for namespace 'subsonic-servlet']; startup date [Fri Oct 25 22:30:28 UTC 2013]; parent: org.springframework.web.context.support.XmlWebApplicationContext@195ed659
10174 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/subsonic-servlet.xml]
[GC 12994K->6312K(25728K), 0.0364530 secs]
10773 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@50b2fb1e]: org.springframework.beans.factory.support.DefaultListableBeanFactory@823d278
11262 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@823d278: defining beans [leftController,rightController,statusController,mainController,topController,helpController,moreController,uploadController,lyricsController,allmusicController,podcastController,podcastReceiverController,podcastReceiverAdminController,setMusicFileInfoController,shareManagementController,setRatingController,randomPlaylistController,loadPlaylistController,savePlaylistController,changeCoverArtController,nowPlayingController,searchController,settingsController,playerSettingsController,shareSettingsController,musicFolderSettingsController,networkSettingsController,transcodingSettingsController,internetRadioSettingsController,podcastSettingsController,searchSettingsController,generalSettingsController,advancedSettingsController,personalSettingsController,avatarUploadController,userSettingsController,passwordSettingsController,homeController,editTagsController,playlistController,xspfPlaylistController,coverArtController,avatarController,proxyController,statusChartController,userChartController,m3uController,streamController,videoPlayerController,externalPlayerController,downloadController,donateController,multiController,wapController,restController,dbController,savePlaylistValidator,donateValidator,userSettingsValidator,passwordSettingsValidator,urlMapping,messageSource,themeSource,localeResolver,themeResolver,viewResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@6c3c9c31
[GC 13480K->6603K(25728K), 0.0050990 secs]
[GC 13771K->7122K(25728K), 0.0772790 secs]
[GC 14290K->7673K(25728K), 0.0053060 secs]
15169 [main] INFO org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'subsonic': initialization completed in 4997 ms
15212 [main] INFO org.mortbay.log - Started SelectChannelConnector@0.0.0.0:4040
Subsonic running on: http://localhost:4040/
15554 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Looking for RMI registry at port '9412'
15599 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Could not detect RMI registry - creating new one
15784 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Binding service 'SubsonicDeployerService' to RMI registry: RegistryImpl[UnicastServerRef [liveRef: [endpoint:[172.31.35.56:9412](local),objID:[0:0:0, 0]]]]
[Full GC 13231K->8036K(25728K), 0.2416330 secs]




If I restart the service, this is what I get

Code: Select all
Stopping subsonic ...                                      [  OK  ]
Starting subsonic ...
Started Subsonic [PID 25067, /var/subsonic/subsonic_sh.log]
Kocrachon
 
Posts: 7
Joined: Wed Oct 23, 2013 11:30 pm

Re: Cant get SubSonic to work

Postby gurutech » Fri Oct 25, 2013 11:11 pm

Looks like it should be working.

Try going to the IP address of the machine, with a :4040 at the end.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Cant get SubSonic to work

Postby Kocrachon » Fri Oct 25, 2013 11:18 pm

I have tried that with a machine on the same network. I cant check from the device itself because it has no gui, doing it all through SSH.
Kocrachon
 
Posts: 7
Joined: Wed Oct 23, 2013 11:30 pm

Re: Cant get SubSonic to work

Postby Kocrachon » Fri Oct 25, 2013 11:31 pm

when I perform a netcat

nc -v 172.31.35.56 4040
nc: connect to 172.31.35.56 port 4040 (tcp) failed: Connection refused

But if I do port 80 it works (but I am hosting a website on it so it should)
Kocrachon
 
Posts: 7
Joined: Wed Oct 23, 2013 11:30 pm

Re: Cant get SubSonic to work

Postby gurutech » Sat Oct 26, 2013 8:57 pm

Have you opened port 4040 on the firewall of the computer it's running on?
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Cant get SubSonic to work

Postby Kocrachon » Mon Oct 28, 2013 4:56 am

Yes, and it gets even weirder...

I just setup my own physical server and installed it onto the latest release of debian. I install it via ssh. When I pull up the Debian GUI, and try to connect to it via iceweasel, I still get nothing. So its like the service is running but the "website" portion doesn't work. I tried localhost:4040 and got nothing.
Kocrachon
 
Posts: 7
Joined: Wed Oct 23, 2013 11:30 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 27 guests