Problems with subsonic and apache

Need help? Post your questions here.

Moderator: moderators

Problems with subsonic and apache

Postby jeffers » Fri Apr 02, 2010 10:54 am

Hi All,

I'm a new subsonic user but fairly experienced when it comes to webservers, linux etc.

Anyway... I have subsonic running on my fedora server on my LAN, everything works fine if I go directly to subsonic (http://host:4040)...BUT if I try to go through my apache instance i get problems.

I am using name-based virtual hosting in apache and have setup a subdomain radio.mydomain.com. Heres the relevant apache config:

Code: Select all
<VirtualHost *:80>
DocumentRoot /var/www/html
ServerName radio.mydomain.com
ProxyRequests Off
ProxyPass / http://192.168.0.2:4040/
ProxyPassReverse / http://192.168.0.2:4040/
</VirtualHost>


If I go to radio.mydomain.com I get all the subsonic pages but I cant play any music, the main frame just goes black when I click 'play'. I've searched the forums and Ive seen other people have had the same problem but I couldnt find a fix for it.

I've enabled firebug and there is an error appearing when the problem is present but it doesnt make much sense to me...

Code: Select all
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIStreamListener.onStartRequest]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: file:///home/me/.mozilla/firefox/nvkzc1u2.default/extensions/firebug@software.joehewitt.com/components/firebug-channel-listener.js :: anonymous :: line 144"  data: no]
file:///home/me/.mozilla/firefox/nvkzc1u2.default/extensions/firebug@software.joehewitt.com/components/firebug-channel-listener.js
Line 144


I also get the below if I run firefox from the command line when the problem exists:

Code: Select all
[0x108d2c8] main libvlc debug: VLC media player - version 1.0.5 Goldeneye - (c) 1996-2010 the VideoLAN team
[0x108d2c8] main libvlc debug: libvlc was configured with ./configure  '--build=x86_64-unknown-linux-gnu' '--host=x86_64-unknown-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--disable-rpath' '--enable-release' '--with-binary-version=1.0.5-2.fc12' '--with-tuning=no' '--enable-switcher' '--enable-lua' '--enable-live555' '--enable-dv' '--enable-opencv' '--enable-pvr' '--enable-gnomevfs' '--enable-cddax' '--enable-wma-fixed' '--enable-shine' '--enable-faad' '--enable-twolame' '--enable-real' '--enable-realrtsp' '--enable-flac' '--enable-tremor' '--enable-speex' '--enable-tarkin' '--enable-theora' '--enable-dirac' '--enable-libass' '--enable-shout' '--enable-xcb' '--enable-svg' '--enable-snapshot' '--enable-svgalib' '--enable-xvmc' '--enable-directfb' '--enable-aa' '--enable-caca' '--enable-jack' '--enable-portaudio' '--enable-pulse' '--enable-ncurses' '--enable-xosd' '--enable-fbosd' '--enable-galaktos' '--enable-lirc' '--without-contrib' '--enable-mozilla' 'build_alias=x86_64-unknown-linux-gnu' 'host_alias=x86_64-unknown-linux-gnu' 'target_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' 'PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/share/pkgconfig'
[0x108d2c8] main libvlc debug: translation test: code is "en_GB"
[0x108d2c8] main libvlc debug: checking plugin modules
[0x108d2c8] main libvlc debug: loading plugins cache file /home/me/.cache/vlc/plugins-04081e.dat
[0x108d2c8] main libvlc debug: recursively browsing `/usr/lib64/vlc'
[0x108d2c8] main libvlc debug: module bank initialized (407 modules)
[0x108d2c8] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[0x108d2c8] main libvlc debug: looking for memcpy module: 3 candidates
[0x108d2c8] main libvlc debug: using memcpy module "memcpymmxext"
[0x119c2b8] main playlist debug: Activated
[0x119c2b8] main playlist debug: rebuilding array of current - root Playlist
[0x119c2b8] main playlist debug: rebuild done - 0 items, index -1
[0x119ab98] main interface debug: looking for interface module: 1 candidate
[0x119ab98] main interface debug: using interface module "hotkeys"
[0x119ab98] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x11a1598] main interface debug: looking for interface module: 1 candidate
[0x119ab98] main interface debug: thread started
[0x11a1598] main interface debug: using interface module "inhibit"
[0x11a1598] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x11a6368] main interface debug: looking for interface module: 1 candidate
[0x11a6368] main interface debug: using interface module "screensaver"
[0x11a6368] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x11a1598] main interface debug: thread started
[0x11a6368] main interface debug: thread started
*** LibVLC Exception not handled: Input is NULL
Set a breakpoint in 'libvlc_exception_not_handled' to debug.
[0x11bfea8] main input debug: Creating an input for 'http://radio.mydomain.com/play.m3u?'
[0x11bfea8] main input debug: thread (input) created at priority 10 (input/input.c:230)
[0x11bfea8] main input debug: thread started
[0x11bfea8] main input debug: using timeshift granularity of 50 MBytes
[0x11bfea8] main input debug: using timeshift path '/tmp'
[0x11bfea8] main input debug: `http://radio.mydomain.com/play.m3u?' gives access `http' demux `' path `radio.mydomain.com/play.m3u?'
[0x11bfea8] main input debug: creating demux: access='http' demux='' path='radio.mydomain.com/play.m3u?'
[0x7f0b700010c8] main demux debug: looking for access_demux module: 0 candidates
[0x7f0b700010c8] main demux debug: no access_demux module matched "http"
[0x11bfea8] main input debug: creating access 'http' path='radio.mydomain.com/play.m3u?'
[0x7f0b70000dc8] main access debug: looking for access module: 2 candidates
[0x7f0b70000dc8] access_http access debug: asking libproxy about url 'http://radio.mydomain.com/play.m3u?'
*** Unable to locate valid config! Falling back to auto-detection...
*** Unable to locate PAC! Falling back to direct...
[0x7f0b70000dc8] access_http access debug: libproxy suggest to use 'direct://'
[0x7f0b70000dc8] access_http access debug: http: server='radio.mydomain.com' port=80 file='/play.m3u?
[0x7f0b70000dc8] main access debug: net: connecting to radio.mydomain.com port 80
[0x7f0b70000dc8] main access debug: connection: Operation now in progress
[0x7f0b70000dc8] main access debug: connection succeeded (socket = 12)
[0x7f0b70000dc8] access_http access debug: protocol 'HTTP' answer code 302
[0x7f0b70000dc8] access_http access debug: Server: Jetty(6.1.x)
[0x7f0b70000dc8] access_http access debug: this frame size=0
[0x7f0b70000dc8] access_http access debug: Accepting Cookie: JSESSIONID=1i4of48f9bysy;Path=/
[0x7f0b70000dc8] access_http access debug: Connection: close
[0x7f0b70000dc8] access_http access debug: Content-Type: audio/x-mpegurl
[0x7f0b70000dc8] access_http access debug: redirection to http://radio.mydomain.com//login.view;jsessionid=1i4of48f9bysy?
[0x7f0b70000dc8] access_http access debug: asking libproxy about url 'http://http://radio.mydomain.com//login.view;jsessionid=1i4of48f9bysy?'
[0x7f0b70000dc8] access_http access debug: libproxy suggest to use 'direct://'
[0x7f0b70000dc8] access_http access debug: http: server='radio.mydomain.com' port=80 file='//login.view;jsessionid=1i4of48f9bysy?
[0x7f0b70000dc8] main access debug: net: connecting to radio.mydomain.com port 80
[0x7f0b70000dc8] main access debug: connection: Operation now in progress
[0x7f0b70000dc8] main access debug: connection succeeded (socket = 12)
[0x7f0b70000dc8] access_http access debug: Sending Cookie JSESSIONID=1i4of48f9bysy
[0x7f0b70000dc8] access_http access debug: protocol 'HTTP' answer code 206
[0x7f0b70000dc8] access_http access debug: Server: Jetty(6.1.x)
[0x7f0b70000dc8] access_http access debug: Content-Type: text/html; charset=utf-8
[0x7f0b70000dc8] access_http access debug: this frame size=2166
[0x7f0b70000dc8] access_http access debug: stream size=2166,pos=0,remaining=2166
[0x7f0b70000dc8] access_http access debug: Connection: close
[0x7f0b70000dc8] main access debug: using access module "access_http"
[0x7f0b700045f8] main stream debug: Using AStream*Stream
[0x7f0b700045f8] main stream debug: pre buffering
[0x7f0b700045f8] main stream debug: received first data after 0 ms
[0x7f0b700045f8] main stream debug: pre-buffering done 1024 bytes in 0s - 58823 kbytes/s
[0x7f0b70004738] main stream debug: looking for stream_filter module: 5 candidates
[0x7f0b70004738] main stream debug: looking for stream_filter module: 1 candidate
[0x7f0b70004738] main stream debug: using stream_filter module "stream_filter_record"
[0x11bfea8] main input debug: creating demux: access='http' demux='' path='radio.mydomain.com//login.view;jsessionid=1i4of48f9bysy?'
[0x7f0b7000c4e8] main demux debug: looking for demux module: 51 candidates
[0x7f0b7000c4e8] avformat demux debug: couldn't guess format
[0x7f0b7000c4e8] lua demux debug: Trying Lua scripts in /home/me/.local/share/vlc/lua/playlist
[0x7f0b7000c4e8] lua demux debug: Trying Lua scripts in /usr/share/vlc/lua/playlist
[0x7f0b7000c4e8] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/anevia_streams.lua
[0x7f0b7000c4e8] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/appletrailers.lua
[0x7f0b7000c4e8] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/break.lua
[0x7f0b7000c4e8] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/dailymotion.lua
[0x7f0b7000c4e8] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/france2.lua
[0x7f0b7000c4e8] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/googlevideo.lua
[0x7f0b7000c4e8] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/joox.lua
[0x7f0b7000c4e8] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/lelombrik.lua
[0x7f0b7000c4e8] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/megavideo.lua
[0x7f0b7000c4e8] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/metacafe.lua
[0x7f0b7000c4e8] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/mpora.lua
[0x7f0b7000c4e8] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/vimeo.lua
[0x7f0b7000c4e8] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/youtube.lua
[0x7f0b7000c4e8] lua demux debug: Trying Lua playlist script /usr/share/vlc/lua/playlist/youtube_homepage.lua
[0x7f0b7000c4e8] ps demux warning: this does not look like an MPEG PS stream, continuing anyway
[0x7f0b7000c4e8] main demux debug: using demux module "ps"
[0x11bfea8] main input debug: `http://radio.mydomain.com/play.m3u?' successfully opened
[0x7f0b7000c4e8] ps demux warning: garbage at input, trying to resync...
[0x11bfea8] main input debug: EOF reached
[0x7f0b7000c4e8] main demux debug: removing module "ps"
[0x7f0b70004738] main stream debug: removing module "stream_filter_record"
[0x7f0b70000dc8] main access debug: removing module "access_http"
[0x7f0b70000dc8] main access debug: waitpipe: object killed
[0x11bfea8] main input debug: thread ended



Does anyone have any suggestions?

Thanks
Jeff
jeffers
 
Posts: 5
Joined: Fri Apr 02, 2010 10:25 am

Postby twelve » Sun Apr 25, 2010 7:11 pm

Hi Jeff,

i am also using Subsinic as a subsomain with the following configuration:
Code: Select all
<VirtualHost *.80>
        ...
        <Location />
                AuthName "Please enter username and password"
                AuthType Digest
                AuthUserFile /etc/apache2/htdigest
                Require valid-user

                Order allow,deny
                Allow from all

                ProxyPass http://127.0.0.1:8080/
                ProxyPassReverse http://127.0.0.1:8080/
                ProxyPassReverseCookieDomain 127.0.0.1 radio.mydomain.com
                ProxyPassReverseCookiePath / /
        </Location>
        ...
</VirtualHost>


It seems as you forgot the cookies.

Robert
twelve
 
Posts: 1
Joined: Sun Apr 25, 2010 7:03 pm

Postby drifter » Mon May 03, 2010 7:59 pm

Thanks twelve, I got some thing similar here http://forum.subsonic.org/forum/viewtop ... 0919#10919

Your answer helped me to pass the login screen after adding the Cookie domain and Cookie path.

Thanks again
drifter
 
Posts: 17
Joined: Tue Apr 13, 2010 6:56 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 17 guests