Cant find localhost

Need help? Post your questions here.

Moderator: moderators

Cant find localhost

Postby prc56 » Sat Dec 31, 2011 3:55 pm

New to Subsonic and installing for the first time. For Windows, instructions tell me to go to http://localhost but the browser can't connect to it.
Running Vista. Used Mozilla and IE as browsers but both failed to connect to localhost. Looked at Windows Firewall - Subsonic is permitted.
Any ideas? Thanks
prc56
 
Posts: 10
Joined: Sat Dec 31, 2011 3:41 pm

Re: Cant find localhost

Postby BKKKPewsey » Sat Dec 31, 2011 5:57 pm

In the subsonic control panel it gives you the web address to use - just click on that link.
Note localhost only works from the same pc as SS is installed on.
:mrgreen:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Cant find localhost

Postby prc56 » Sat Dec 31, 2011 6:41 pm

Thanks for the reply. All previous attempts to find localhost have been from the SS PC, and now the same effect using the link in the control panel.
prc56
 
Posts: 10
Joined: Sat Dec 31, 2011 3:41 pm

Re: Cant find localhost

Postby BKKKPewsey » Sat Dec 31, 2011 7:01 pm

If the link is not showing a port no then it means you are trying to use port 80 - this can cause problems on Windows machines.
Try using a non-standard port such as 8080.
I assume the control panel is showing no error messages and the icon is green (SS is running)?
:mrgreen:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Cant find localhost

Postby prc56 » Sat Dec 31, 2011 7:29 pm

SS is green. Control Panel shows using port 80. Have tried it on port 8080. Same result.
prc56
 
Posts: 10
Joined: Sat Dec 31, 2011 3:41 pm

Re: Cant find localhost

Postby BKKKPewsey » Sat Dec 31, 2011 8:18 pm

What error message is appearing in the browser?
Have a look in the log file (C:\subsonic\subsonic.log) and see if there are any error messages there.
:mrgreen:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Cant find localhost

Postby prc56 » Sun Jan 01, 2012 1:26 pm

Nothing that makes any sense to me. Here's the last page or so.

Using WAR file: C:\Program Files\Subsonic\subsonic.war
1855 [main] INFO org.mortbay.log - jetty-6.1.x
2055 [main] INFO org.mortbay.log - Extract jar:file:/C:/Program%20Files/Subsonic/subsonic.war!/ to C:\subsonic\jetty\2583\webapp
29988 [main] INFO / - Initializing Spring root WebApplicationContext
29989 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
30012 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@5a67c9: display name [Root WebApplicationContext]; startup date [Sat Dec 31 15:19:40 GMT 2011]; root of context hierarchy
30054 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-service.xml]
30128 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-security.xml]
30164 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-cache.xml]
30186 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@5a67c9]: org.springframework.beans.factory.support.DefaultListableBeanFactory@16c9867
30600 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@16c9867: 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
30837 [main] INFO org.springframework.jdbc.datasource.DriverManagerDataSource - Loaded JDBC driver: org.hsqldb.jdbcDriver
31130 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
31175 [main] INFO org.springframework.jdbc.support.SQLErrorCodesFactory - SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase]
32274 [main] INFO org.springframework.cache.ehcache.EhCacheManagerFactoryBean - Initializing EHCache CacheManager
31-Dec-2011 15:19:43 net.sf.ehcache.CacheManager addShutdownHookIfRequired
INFO: The CacheManager shutdown hook is enabled because net.sf.ehcache.enableShutdownHook is set to true.
31-Dec-2011 15:19:43 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.
31-Dec-2011 15:19:43 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.
33548 [main] INFO org.acegisecurity.intercept.AbstractSecurityInterceptor - Validated configuration attributes
33556 [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]]
33556 [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]]
33556 [main] INFO org.acegisecurity.intercept.AbstractSecurityInterceptor - Validated configuration attributes
33574 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 3585 ms
33624 [main] INFO / - Initializing Spring FrameworkServlet 'subsonic'
33624 [main] INFO org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'subsonic': initialization started
33624 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@1ea0105: display name [WebApplicationContext for namespace 'subsonic-servlet']; startup date [Sat Dec 31 15:19:44 GMT 2011]; parent: org.springframework.web.context.support.XmlWebApplicationContext@5a67c9
33625 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/subsonic-servlet.xml]
33756 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@1ea0105]: org.springframework.beans.factory.support.DefaultListableBeanFactory@ed5d9d
33945 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@ed5d9d: 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@16c9867
34972 [main] INFO org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'subsonic': initialization completed in 1348 ms
35224 [main] INFO org.mortbay.log - Started SelectChannelConnector@0.0.0.0:80
Subsonic running on: http://localhost/
35259 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Looking for RMI registry at port '9412'
36263 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Could not detect RMI registry - creating new one
36413 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Binding service 'SubsonicDeployerService' to RMI registry: RegistryImpl[UnicastServerRef [liveRef: [endpoint:[192.168.1.64:9412](local),objID:[0:0:0, 0]]]]
prc56
 
Posts: 10
Joined: Sat Dec 31, 2011 3:41 pm

Re: Cant find localhost

Postby BKKKPewsey » Sun Jan 01, 2012 5:34 pm

Hmm! that looks like a install log rather than a running log :?
Have you tried stopping and restarting SS via the control panel?
If that doesn't work try re-installing.
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Cant find localhost

Postby ytechie » Sun Jan 01, 2012 9:47 pm

User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York

Re: Cant find localhost

Postby prc56 » Mon Jan 02, 2012 11:55 am

Thanks for making progress. I reinstalled and I was able to connect using http://127.0.0.1.
I now seem to have a port forwarding issue. Automatically configuring router didn't connect so followed instructions at portforward.com. Router seems happy with manual definitions - but I was very specific with portfoard.com instructions and called the application "Name1" (80) and "Name2" (4040). Does this matter.
Then back to subsonic network settings and still portforwarding doesn't work. "Failed to create port forwarding. see log for details." Where do I find the log? Once I have defined the ports in the router do I still click the tick box for automatic port forwarding. Its all a bit imprecise.
prc56
 
Posts: 10
Joined: Sat Dec 31, 2011 3:41 pm

Re: Cant find localhost

Postby BKKKPewsey » Mon Jan 02, 2012 12:29 pm

If you have manually forwarded the ports in the router you can ignore the warning messages in the SS log.
Use http://canyouseeme.org to test if you were successful.
You can untick the automatically configure your router tickbox - this will stop the warning messages.
:mrgreen:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Cant find localhost

Postby prc56 » Mon Jan 02, 2012 2:52 pm

Thanks for bearing with me on this.
canyouseeme.org returned "Success: I can see your service on 86.180.157.82 on port (80) Your ISP is not blocking port 80"

I'm still not able to get successful link to the URL. "prc56.subsonic.org is registered, but could not connect to it. (ConnectTimeoutException)" This is with the automatically configured router tick box both ticked and unticked.
If it helps, Subsonic agent log shows this:
14252206 [pool-1-thread-2] WARN org.springframework.remoting.rmi.RmiProxyFactoryBean - Could not connect to RMI service [rmi://localhost:9412SubsonicDeployerService] - retrying Executing: subsonic-service.exe -start
prc56
 
Posts: 10
Joined: Sat Dec 31, 2011 3:41 pm

Re: Cant find localhost

Postby ytechie » Mon Jan 02, 2012 4:20 pm

The name (Name1 and Name2) doesn't make a difference. It is just for local reference.
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York

Re: Cant find localhost

Postby BKKKPewsey » Mon Jan 02, 2012 5:33 pm

If you have told SS to use port 4040 then that is the port to test.
The instructions on portforward.com are a bit confusing (wrong :( ) in that they say you need to forward port 80 as well - you don't.
SS only needs 1 port (ok 2 if using ssl)
If you have told SS to use port 80 that MAY work but sometimes it will clash with other software on your pc.
Once the canyouseeme test passes on the correct port then go to the settings/network page and hit save.
This will update your subsonic.org address with correct ip and port no.
You should then only need to enter yourname.subsonic.org url into your address bar in the browser
(the port no. is taken care of automatically)
:mrgreen:

Edit: I just checked your SS org address and it was trying to connect on https:
Do not enable ssl at this time (untick box in control panel/settings)
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Cant find localhost

Postby prc56 » Mon Jan 02, 2012 9:40 pm

What do you mean by the SS org address? Where is this option? On the control panel there is the tickbox for Enable https on port...443. Do you mean this? When I untick it I can't connect through any of localhost, localhost4040 or 127.0.0.1 (i.e. my original query)
prc56
 
Posts: 10
Joined: Sat Dec 31, 2011 3:41 pm

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 36 guests