You are not logged in.
Pages: 1
I am trying to stream music from my Rasberry Pi with Subsonic, but after a day of frustration I can't figure out how! I installed libcups and jre7-openjdk-headless, then I packaged this https://aur.archlinux.org/packages/subsonic/ and also installed it with pacman. I used chmod +x on subsonic.sh then ran it. I can't connect to it at localhost:4040.
subsonic.sh The only thing I changed in here is the https port, the default is 0.
#!/bin/sh
###################################################################################
# Shell script for starting Subsonic. See http://subsonic.org.
#
# Author: Sindre Mehus
###################################################################################
SUBSONIC_HOME=/var/subsonic
SUBSONIC_HOST=0.0.0.0
SUBSONIC_PORT=4040
SUBSONIC_HTTPS_PORT=8443
SUBSONIC_CONTEXT_PATH=/
SUBSONIC_MAX_MEMORY=150
SUBSONIC_PIDFILE=
SUBSONIC_DEFAULT_MUSIC_FOLDER=/var/music
SUBSONIC_DEFAULT_PODCAST_FOLDER=/var/music/Podcast
SUBSONIC_DEFAULT_PLAYLIST_FOLDER=/var/playlists
quiet=0
usage() {
echo "Usage: subsonic.sh [options]"
echo " --help This small usage guide."
echo " --home=DIR The directory where Subsonic will create files."
echo " Make sure it is writable. Default: /var/subsonic"
echo " --host=HOST The host name or IP address on which to bind Subsonic."
echo " Only relevant if you have multiple network interfaces and want"
echo " to make Subsonic available on only one of them. The default value"
echo " will bind Subsonic to all available network interfaces. Default: 0.0.0.0"
echo " --port=PORT The port on which Subsonic will listen for"
echo " incoming HTTP traffic. Default: 4040"
echo " --https-port=PORT The port on which Subsonic will listen for"
echo " incoming HTTPS traffic. Default: 0 (disabled)"
echo " --context-path=PATH The context path, i.e., the last part of the Subsonic"
echo " URL. Typically '/' or '/subsonic'. Default '/'"
echo " --max-memory=MB The memory limit (max Java heap size) in megabytes."
echo " Default: 100"
echo " --pidfile=PIDFILE Write PID to this file. Default not created."
echo " --quiet Don't print anything to standard out. Default false."
echo " --default-music-folder=DIR Configure Subsonic to use this folder for music. This option "
echo " only has effect the first time Subsonic is started. Default '/var/music'"
echo " --default-podcast-folder=DIR Configure Subsonic to use this folder for Podcasts. This option "
echo " only has effect the first time Subsonic is started. Default '/var/music/Podcast'"
echo " --default-playlist-folder=DIR Configure Subsonic to use this folder for playlists. This option "
echo " only has effect the first time Subsonic is started. Default '/var/playlists'"
exit 1
}
# Parse arguments.
while [ $# -ge 1 ]; do
case $1 in
--help)
usage
;;
--home=?*)
SUBSONIC_HOME=${1#--home=}
;;
--host=?*)
SUBSONIC_HOST=${1#--host=}
;;
--port=?*)
SUBSONIC_PORT=${1#--port=}
;;
--https-port=?*)
SUBSONIC_HTTPS_PORT=${1#--https-port=}
;;
--context-path=?*)
SUBSONIC_CONTEXT_PATH=${1#--context-path=}
;;
--max-memory=?*)
SUBSONIC_MAX_MEMORY=${1#--max-memory=}
;;
--pidfile=?*)
SUBSONIC_PIDFILE=${1#--pidfile=}
;;
--quiet)
quiet=1
;;
--default-music-folder=?*)
SUBSONIC_DEFAULT_MUSIC_FOLDER=${1#--default-music-folder=}
;;
--default-podcast-folder=?*)
SUBSONIC_DEFAULT_PODCAST_FOLDER=${1#--default-podcast-folder=}
;;
--default-playlist-folder=?*)
SUBSONIC_DEFAULT_PLAYLIST_FOLDER=${1#--default-playlist-folder=}
;;
*)
usage
;;
esac
shift
done
# Use JAVA_HOME if set, otherwise assume java is in the path.
JAVA=java
if [ -e "${JAVA_HOME}" ]
then
JAVA=${JAVA_HOME}/bin/java
fi
# Create Subsonic home directory.
mkdir -p ${SUBSONIC_HOME}
LOG=${SUBSONIC_HOME}/subsonic_sh.log
rm -f ${LOG}
cd $(dirname $0)
if [ -L $0 ] && ([ -e /bin/readlink ] || [ -e /usr/bin/readlink ]); then
cd $(dirname $(readlink $0))
fi
${JAVA} -Xmx${SUBSONIC_MAX_MEMORY}m \
-Dsubsonic.home=${SUBSONIC_HOME} \
-Dsubsonic.host=${SUBSONIC_HOST} \
-Dsubsonic.port=${SUBSONIC_PORT} \
-Dsubsonic.httpsPort=${SUBSONIC_HTTPS_PORT} \
-Dsubsonic.contextPath=${SUBSONIC_CONTEXT_PATH} \
-Dsubsonic.defaultMusicFolder=${SUBSONIC_DEFAULT_MUSIC_FOLDER} \
-Dsubsonic.defaultPodcastFolder=${SUBSONIC_DEFAULT_PODCAST_FOLDER} \
-Dsubsonic.defaultPlaylistFolder=${SUBSONIC_DEFAULT_PLAYLIST_FOLDER} \
-Djava.awt.headless=true \
-verbose:gc \
-jar subsonic-booter-jar-with-dependencies.jar > ${LOG} 2>&1 &
# Write pid to pidfile if it is defined.
if [ $SUBSONIC_PIDFILE ]; then
echo $! > ${SUBSONIC_PIDFILE}
fi
if [ $quiet = 0 ]; then
echo Started Subsonic [PID $!, ${LOG}]
fisubsonic_sh.log
899 [main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@172fbca: display name [org.springframework.context.support.ClassPathXmlApplicationContext@172fbca]; startup date [Wed Dec 31 17:01:49 MST 1969]; root of context hierarchy
[GC 2175K->783K(7296K), 0.0553560 secs]
2315 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [applicationContext-deployer.xml]
[GC 2948K->1361K(7296K), 0.0721350 secs]
[GC 3537K->1946K(7296K), 0.0470940 secs]
[GC 4121K->2549K(7296K), 0.0308400 secs]
[GC 4722K->3320K(7296K), 0.0450480 secs]
11489 [main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@172fbca]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1b9a77c
11864 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1b9a77c: defining beans [service,org.springframework.remoting.rmi.RmiServiceExporter#0]; root of factory hierarchy
13077 [main] INFO org.mortbay.log - Logging to org.slf4j.impl.SimpleLogger(org.mortbay.log) via org.mortbay.log.Slf4jLog
[GC 5496K->3895K(7296K), 0.0809600 secs]
Using WAR file: /var/subsonic/subsonic.war
Extracting webapp to /var/subsonic/jetty/3819
Using WAR file: /var/subsonic/subsonic.war
15574 [main] INFO org.mortbay.log - jetty-6.1.x
[GC 6071K->4500K(7296K), 0.0748450 secs]
[GC 6671K->4913K(7296K), 0.0654610 secs]
[GC 7071K->4921K(7296K), 0.0317070 secs]
[GC 7088K->4928K(7296K), 0.0038030 secs]
[GC 7104K->5114K(7296K), 0.0076080 secs]
[Full GC 5114K->3656K(7296K), 0.5204980 secs]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/var/subsonic/subsonic-booter-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/var/subsonic/jetty/3819/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 6216K->4054K(8912K), 0.0595420 secs]
[GC 6614K->3943K(8912K), 0.0247050 secs]
[GC 6503K->3946K(8912K), 0.0193930 secs]
[GC 6506K->3945K(8912K), 0.0069700 secs]
[GC 6501K->4204K(8912K), 0.0267660 secs]
68350 [main] INFO / - Initializing Spring root WebApplicationContext
68352 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
[GC 6764K->4630K(8912K), 0.0248870 secs]
69412 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@d0d485: display name [Root WebApplicationContext]; startup date [Wed Dec 31 17:02:58 MST 1969]; root of context hierarchy
[GC 7189K->4960K(8912K), 0.0238990 secs]
71022 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-service.xml]
[GC 7520K->5197K(8912K), 0.0246630 secs]
75266 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-security.xml]
78430 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-cache.xml]
[GC 7757K->5413K(8912K), 0.0278410 secs]
80453 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@d0d485]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1bdc97a
[GC 7973K->5418K(8912K), 0.0185560 secs]
[GC 7978K->5622K(8912K), 0.0177870 secs]
83695 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1bdc97a: 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,folderBasedContentDirectory,upnpService,metaDataParserFactory,ajaxMultiService,ajaxNowPlayingService,ajaxPlayQueueService,ajaxPlaylistService,ajaxLyricsService,ajaxCoverArtService,ajaxStarService,ajaxTagService,ajaxTransferService,ajaxChatService,localeResolver,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]; root of factory hierarchy
84994 [main] INFO org.springframework.jdbc.datasource.DriverManagerDataSource - Loaded JDBC driver: org.hsqldb.jdbcDriver
[GC 8182K->5777K(8912K), 0.0302830 secs]
[GC 8337K->6814K(9424K), 0.0381370 secs]
[Full GC 6814K->3451K(9424K), 0.3745810 secs]
[GC 6011K->4094K(8912K), 0.0265830 secs]
[GC 6653K->5460K(8912K), 0.0399160 secs]
[GC 8019K->5749K(8912K), 0.0239640 secs]
[GC 8308K->5880K(8912K), 0.0176260 secs]
[Full GC 6680K->4856K(8912K), 0.4194520 secs]
[GC 8166K->5014K(11808K), 0.0117620 secs]
[GC 8339K->5019K(11808K), 0.0084180 secs]
[GC 8347K->5381K(11808K), 0.0267840 secs]
[GC 8709K->5561K(11808K), 0.0325140 secs]
[GC 8889K->5893K(11808K), 0.0433180 secs]
[GC 9219K->6345K(11808K), 0.0414640 secs]
[GC 9672K->6633K(11808K), 0.0414780 secs]
[GC 9961K->7005K(11808K), 0.0457250 secs]
[GC 10333K->7030K(11808K), 0.0356700 secs]
[GC 10357K->7408K(11808K), 0.0371870 secs]
[GC 10736K->7648K(11808K), 0.0972560 secs]
[GC 10976K->8169K(11808K), 0.1213180 secs]
[Full GC 9641K->6236K(11808K), 1.6295670 secs]
[GC 10459K->6504K(15132K), 0.0456300 secs]
[GC 10728K->6557K(15132K), 0.0423650 secs]
[GC 10781K->7151K(15132K), 0.1065030 secs]
[GC 11375K->7766K(15132K), 0.1094470 secs]
[GC 11990K->8298K(15132K), 0.1128580 secs]
183061 [main] INFO org.acegisecurity.intercept.AbstractSecurityInterceptor - Validated configuration attributes
184812 [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]]
184818 [main] INFO org.acegisecurity.intercept.method.MethodDefinitionMap - Adding secure method [public java.lang.String net.sourceforge.subsonic.ajax.TagService.setTags(int,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)] with attributes [[ROLE_COVERART]]
184856 [main] INFO org.acegisecurity.intercept.AbstractSecurityInterceptor - Validated configuration attributes
[GC 12522K->8715K(15132K), 0.1016530 secs]
188602 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 120248 ms
189824 [main] INFO / - Initializing Spring FrameworkServlet 'subsonic'
189826 [main] INFO org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'subsonic': initialization started
[GC 12938K->9045K(15132K), 0.0442800 secs]
189901 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@e1da1: display name [WebApplicationContext for namespace 'subsonic-servlet']; startup date [Wed Dec 31 17:04:58 MST 1969]; parent: org.springframework.web.context.support.XmlWebApplicationContext@d0d485
189957 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/subsonic-servlet.xml]
195287 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@e1da1]: org.springframework.beans.factory.support.DefaultListableBeanFactory@2d2c31
[GC 13269K->9095K(15132K), 0.0389300 secs]
198039 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2d2c31: defining beans [leftController,rightController,statusController,mainController,playlistController,importPlaylistController,topController,helpController,moreController,uploadController,lyricsController,allmusicController,podcastController,podcastReceiverController,podcastReceiverAdminController,setMusicFileInfoController,shareManagementController,setRatingController,randomPlayQueueController,changeCoverArtController,nowPlayingController,starredController,searchController,settingsController,playerSettingsController,dlnaSettingsController,shareSettingsController,musicFolderSettingsController,networkSettingsController,transcodingSettingsController,internetRadioSettingsController,podcastSettingsController,generalSettingsController,advancedSettingsController,personalSettingsController,avatarUploadController,userSettingsController,passwordSettingsController,homeController,editTagsController,playQueueController,coverArtController,avatarController,proxyController,statusChartController,userChartController,m3uController,streamController,hlsController,videoPlayerController,externalPlayerController,downloadController,premiumController,multiController,wapController,restController,dbController,premiumValidator,userSettingsValidator,passwordSettingsValidator,urlMapping,messageSource,themeSource,themeResolver,viewResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1bdc97a
[GC 13319K->9035K(15132K), 0.0285190 secs]
[GC 13259K->9147K(15132K), 0.0978480 secs]
[GC 13371K->9191K(15132K), 0.0250440 secs]
[GC 13415K->9326K(15132K), 0.0319030 secs]
[GC 13550K->9379K(15132K), 0.0322950 secs]
[GC 13603K->9486K(15132K), 0.0322270 secs]
[GC 13710K->9584K(15132K), 0.0334400 secs]
[GC 13808K->9669K(15132K), 0.0324440 secs]
[GC 13893K->9781K(15132K), 0.0354770 secs]
[GC 14005K->9883K(15132K), 0.0334530 secs]
[GC 14107K->10136K(15132K), 0.0394060 secs]
[GC 14360K->10144K(15132K), 0.0384800 secs]
239888 [main] INFO org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'subsonic': initialization completed in 50059 ms
240140 [main] INFO org.mortbay.log - Started SelectChannelConnector@0.0.0.0:4040
[GC 14355K->10582K(15132K), 0.0516340 secs]
241589 [main] INFO org.mortbay.log - Started SslSocketConnector@0.0.0.0:8443
Subsonic running on: http://localhost:4040/
and: https://localhost:8443/
242895 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Looking for RMI registry at port '9412'
243150 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Could not detect RMI registry - creating new one
244188 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Binding service 'SubsonicDeployerService' to RMI registry: RegistryImpl[UnicastServerRef [liveRef: [endpoint:[127.0.0.2:9412](local),objID:[0:0:0, 0]]]]
Last edited by JrodManU (2014-03-24 12:10:16)
Offline
See https://wiki.archlinux.org/index.php/Subsonic , maybe there's something you missed / mis-configured.
Offline
I'm going to try Madsonic (Fork of Subsonic) and see if I can get that working.
Offline
Pages: 1