Can't start web interface on arch linux

Need help? Post your questions here.

Moderator: moderators

Can't start web interface on arch linux

Postby hellomynameisphil » Sat Jul 16, 2011 6:57 pm

Hi all,

I had Subsonic running nicely on Debian, but I have now switched my server OS to Arch. I installed the package in the AUR (https://aur.archlinux.org/packages.php?ID=35954), which is based on the standalone version of subsonic, but I have not been able to connect to the web interface once the server is started.

The variables in subsonic.sh look like this:

Code: Select all
SUBSONIC_HOME=/var/subsonic
SUBSONIC_HOST=127.0.0.1SUBSONIC_PORT=4040
SUBSONIC_HTTPS_PORT=4041
SUBSONIC_CONTEXT_PATH=/
SUBSONIC_MAX_MEMORY=100
SUBSONIC_PIDFILE=/var/subsonic/subsonic.pid
SUBSONIC_DEFAULT_MUSIC_FOLDER=/var/subsonic/music
SUBSONIC_DEFAULT_PODCAST_FOLDER=/var/subsonic/podcasts SUBSONIC_DEFAULT_PLAYLIST_FOLDER=/var/subsonic/playlists


I have what I believe are suitable permissions on all of the needed folders:

Code: Select all
drwxr-xr-x 2 root root     4096 Jul 16 11:49 db
-rw-r--r-- 1 root root     3003 Jul 15 19:49 Getting Started.html
drwxr-xr-x 3 root root     4096 Jul 15 20:43 jetty
-rw-r--r-- 1 root root    35819 Jul 15 19:49 LICENSE.TXT
drwxr-xr-x 2 root root     4096 Jul 15 21:19 music
drwxr-xr-x 2 root root     4096 Jul 16 11:38 playlists
drwxr-xr-x 2 root root     4096 Jul 16 11:38 podcasts
-rw-r--r-- 1 root root      540 Jul 15 19:49 README.TXT
-rw-r--r-- 1 root root   846961 Jul 15 20:45 subsonic13.index
-rw-r--r-- 1 root root 10805794 Jul 15 19:49 subsonic-booter-jar-with-dependencies.jar
-rw-r--r-- 1 root root      688 Jul 16 11:54 subsonic.log
-rw-r--r-- 1 root root        5 Jul 16 11:48 subsonic.pid
-rw-r--r-- 1 root root       98 Jul 16 11:49 subsonic.properties
-rwxr-xr-x 1 root root     5067 Jul 16 11:40 subsonic.sh
-rw-r--r-- 1 root root     9403 Jul 16 11:49 subsonic_sh.log
-rw-r--r-- 1 root root 18871786 Jul 15 19:49 subsonic.war
drwxr-xr-x 2 root root     4096 Jul 15 20:44 transcode


When I run the subsonic.sh script, I get this:

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


'ps aux' confirms it is running:

Code: Select all
root      3231 22.4  2.6 237256 54236 pts/4    Sl   11:48   0:15 java -Xmx100m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=127.0.0.1 -Dsubsonic.port=4040 -Dsubsonic.httpsPort=4041 -Dsubsonic.contextPath=/ -Dsubsonic.defaultMusicFolder=/var/subsonic/music -Dsubsonic.defaultPodcastFolder=/var/subsonic/podcasts -Dsubsonic.defaultPlaylistFolder=/var/subsonic/playlists -Djava.awt.headless=true -jar subsonic-booter-jar-with-dependencies.jar


But 'lsof -i' shows no ports are actually open for subsonic and when I try to go to the server on port 4040 in a browser, it won't load the page. I can't access the web interface either on the server itself or on my laptop. I have also tried the secure port with no joy.

What am I missing?
hellomynameisphil
 
Posts: 3
Joined: Sat Jul 16, 2011 6:26 pm

Postby hellomynameisphil » Mon Jul 18, 2011 12:22 am

No reply so far, and I realize I didn't post much log output.

/var/subsonic_sh.log:

Code: Select all
130 [main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@f0eed6: display name [org.springframework.context.support.ClassPathXmlApplicationContext@f0eed6]; startup date [Sun Jul 17 17:12:10 PDT 2011]; root of context hierarchy
428 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [applicationContext-deployer.xml]
2224 [main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@f0eed6]: org.springframework.beans.factory.support.DefaultListableBeanFactory@145f0e3
2285 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@145f0e3: defining beans [service,org.springframework.remoting.rmi.RmiServiceExporter#0]; root of factory hierarchy
2422 [main] INFO org.mortbay.log - Logging to org.slf4j.impl.SimpleLogger(org.mortbay.log) via org.mortbay.log.Slf4jLog
Using WAR file: /var/subsonic/subsonic.war
Extracting webapp to /var/subsonic/jetty/2169
Using WAR file: /var/subsonic/subsonic.war
2696 [main] INFO org.mortbay.log - jetty-6.1.x
4727 [main] INFO / - Initializing Spring root WebApplicationContext
4728 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
4990 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@1989b5: display name [Root WebApplicationContext]; startup date [Sun Jul 17 17:12:15 PDT 2011]; root of context hierarchy
5299 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-service.xml]
5661 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-security.xml]
5906 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-cache.xml]
6086 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@1989b5]: org.springframework.beans.factory.support.DefaultListableBeanFactory@94257f
6524 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@94257f: defining beans [playerDao,internetRadioDao,musicFileInfoDao,musicFolderDao,userDao,transcodingDao,podcastDao,avatarDao,daoHelper,musicFileService,securityService,settingsService,searchService,luceneSearchService,networkService,playerService,playlistService,versionService,statusService,musicInfoService,musicIndexService,audioScrobblerService,transcodingService,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
6751 [main] INFO org.springframework.jdbc.datasource.DriverManagerDataSource - Loaded JDBC driver: org.hsqldb.jdbcDriver
8886 [main] INFO org.springframework.cache.ehcache.EhCacheManagerFactoryBean - Initializing EHCache CacheManager
17-Jul-2011 5:12:19 PM net.sf.ehcache.CacheManager addShutdownHookIfRequired
INFO: The CacheManager shutdown hook is enabled because net.sf.ehcache.enableShutdownHook is set to true.
17-Jul-2011 5:12:19 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.
17-Jul-2011 5:12:19 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.
11968 [main] INFO org.acegisecurity.intercept.AbstractSecurityInterceptor - Validated configuration attributes
12020 [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]]
12020 [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]]
12021 [main] INFO org.acegisecurity.intercept.AbstractSecurityInterceptor - Validated configuration attributes
12200 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 7472 ms
12472 [main] INFO / - Initializing Spring FrameworkServlet 'subsonic'
12472 [main] INFO org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'subsonic': initialization started
12475 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@16a4a67: display name [WebApplicationContext for namespace 'subsonic-servlet']; startup date [Sun Jul 17 17:12:23 PDT 2011]; parent: org.springframework.web.context.support.XmlWebApplicationContext@1989b5
12476 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/subsonic-servlet.xml]
12932 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@16a4a67]: org.springframework.beans.factory.support.DefaultListableBeanFactory@4ac866
13525 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4ac866: defining beans [leftController,rightController,statusController,mainController,topController,helpController,moreController,uploadController,lyricsController,allmusicController,podcastController,podcastReceiverController,podcastReceiverAdminController,setMusicFileInfoController,setRatingController,randomPlaylistController,loadPlaylistController,savePlaylistController,changeCoverArtController,nowPlayingController,searchController,settingsController,playerSettingsController,musicFolderSettingsController,networkSettingsController,transcodingSettingsController,internetRadioSettingsController,podcastSettingsController,searchSettingsController,generalSettingsController,advancedSettingsController,personalSettingsController,avatarUploadController,userSettingsController,passwordSettingsController,homeController,editTagsController,playlistController,xspfPlaylistController,coverArtController,avatarController,proxyController,statusChartController,userChartController,m3uController,streamController,videoPlayerController,downloadController,donateController,multiController,wapController,restController,dbController,savePlaylistValidator,donateValidator,userSettingsValidator,passwordSettingsValidator,urlMapping,messageSource,themeSource,localeResolver,themeResolver,viewResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@94257f
15632 [main] INFO org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'subsonic': initialization completed in 3160 ms
15679 [main] INFO org.mortbay.log - Started SelectChannelConnector@127.0.0.1:4040
16614 [main] INFO org.mortbay.log - Started SslSocketConnector@127.0.0.1:4041
Subsonic running on: http://127.0.0.1:4040/
                and: https://127.0.0.1:4041/
16814 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Looking for RMI registry at port '9412'
16858 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Could not detect RMI registry - creating new one
17023 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Binding service 'SubsonicDeployerService' to RMI registry: RegistryImpl[UnicastServerRef [liveRef: [endpoint:[192.168.1.100:9412](local),objID:[0:0:0, 0]]]]


/var/subsonic.log:

Code: Select all
[2011-07-17 17:12:17,504] INFO DaoHelper - Checking database schema.
[2011-07-17 17:12:19,213] INFO DaoHelper - Done checking database schema.
[2011-07-17 17:12:20,222] INFO SearchService - Automatic index creation scheduled to run every 1 day(s), starting at Mon Jul 18 03:00:00 PDT 2011
[2011-07-17 17:12:20,712] INFO PodcastService - Automatic Podcast update scheduled to run every 24 hour(s), starting at Sun Jul 17 17:17:20 PDT 2011
[2011-07-17 17:12:24,164] INFO NetworkService - Deleted port mapping for port 80
[2011-07-17 17:17:20,706] INFO PodcastService - Starting scheduled Podcast refresh.
[2011-07-17 17:17:20,709] INFO PodcastService - Completed scheduled Podcast refresh.


I don't see anything that looks like an error message in this. Are the warnings the key to my problem?
hellomynameisphil
 
Posts: 3
Joined: Sat Jul 16, 2011 6:26 pm

Postby hellomynameisphil » Thu Jul 21, 2011 5:02 pm

What would help people be able to suggestion solutions to my issue? Am I missing information?
hellomynameisphil
 
Posts: 3
Joined: Sat Jul 16, 2011 6:26 pm

Postby Aethies » Thu Jul 21, 2011 9:11 pm

I am not familiar with that distro, but I am sure your /var/subsonic folder needs to be owned by subsonic.

Try chown -R subsonic:subsonic /var/subsonic
or where ever you have that installed at.

Then stop and re-start subsonic and try it again.

Hope this helps...
Aethies

Ubuntu Server 12.04
===================
3,281 artists
9,432 albums
113,608 songs
2636.09 GB (10,769 hours)
===================
User avatar
Aethies
 
Posts: 197
Joined: Fri Oct 24, 2008 4:33 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 11 guests