Smoofus 0 Posted October 18, 2014 Share Posted October 18, 2014 I run MediaBrowser behind an Apache reverse proxy and everything works like a charm with the exception of trailers. The trailers play fine but I get an "Object reference not set to an instance of an object." message on screen every 20 seconds which is super annoying... I've done my due diligence and have searched the forums and the all mighty Google to no avail so if anyone has any insight/suggestions it would be much appreciated. Server Version: 3.0.5395.0 Here is error I see in the server log: 2014-10-18 17:06:50.4851 Debug - HttpServer: HTTP Response 500 to 192.168.1.75. Response time: 0 ms. Url: http://mediabrowser.mydomain.com:8096/mediabrowser/Sessions/Playing/Progress 2014-10-18 17:07:00.0791 Debug - App: Disposing stream resources 2014-10-18 17:07:00.0791 Info - App: FFMpeg exited with code 0 2014-10-18 17:07:10.4844 Debug - HttpServer: HTTP POST http://mediabrowser.mydomain.com:8096/mediabrowser/Sessions/Playing/Progress Ip: 192.168.5.110:44939. Headers: Host=mediabrowser.mydomain.com:8096,Accept=*/*,X-MediaBrowser-Token=ba4fe3084396424eba124f3c1cffc48e,User-Agent=Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36,Authorization=MediaBrowser Client="Dashboard", Device="Chrome 38.0.2125.104", DeviceId="15427f612f40e30f00a98415193d1240a37f97b5", Version="3.0.5395.0", UserId="04bb66ae437c89046493166ac570d09f",Origin=http://mediabrowser.mydomain.com:8096,Content-Type=application/json,DNT=1,Accept-Encoding=gzip,deflate,Accept-Language=en-US,en;q=0.8,X-Forwarded-For=192.168.1.75,X-Forwarded-Host=mediabrowser.mydomain.com:8096,X-Forwarded-Server=mediabrowser.mydomain.com,Connection=Keep-Alive,Content-Length=556 2014-10-18 17:07:10.4844 Error - DtoUtils: ServiceBase<TRequest>::Service Exception Object reference not set to an instance of an object. System.NullReferenceException at MediaBrowser.Server.Implementations.Session.SessionManager.UpdateNowPlayingItem(SessionInfo session, PlaybackProgressInfo info, BaseItem libraryItem) at MediaBrowser.Server.Implementations.Session.SessionManager.<OnPlaybackProgress>d__37.MoveNext() 2014-10-18 17:07:10.4844 Error - HttpServer: Error processing request for /mediabrowser/Sessions/Playing/Progress Object reference not set to an instance of an object. ServiceStack.HttpError No Stack Trace Available Full log from a play through of a trailer is attached. Here is the Apache proxy VirtualHost config: <VirtualHost *:8096> ServerName mediabrowser.mydomain.com ServerAdmin webmaster@localhost DocumentRoot /var/www/mediabrowser proxyPreserveHost On ProxyRequests Off ProxyPass /mediabrowser http://192.168.1.40:8096/mediabrowser ProxyPassReverse /mediabrowser http://192.168.1.40:8096/mediabrowser RewriteEngine On RewriteCond %{REQUEST_URI} ^/$ RewriteRule (.*) /mediabrowser/ [R=301] ########################################## # Mod-Security Rule Bypass # ########################################## <LocationMatch "/mediabrowser"> <IfModule security2_module> SecRuleRemoveById 981319 #modsecurity_crs_41_sql_injection_attacks.conf SecRuleRemoveById 960032 #modsecurity_crs_30_http_policy.conf SecRuleRemoveById 981143 #modsecurity_crs_43_csrf_protection.conf SecRuleRemoveById 900046 #modsecurity_crs_55_application_defects.conf SecRuleRemoveById 981401 #modsecurity_crs_55_application_defects.conf SecRuleRemoveById 981407 #modsecurity_crs_55_application_defects.conf </IfModule> </LocationMatch> </VirtualHost> Thanks in advance and do not hesitate to let me know if I can provide additional info. server-63549226985.txt Link to comment Share on other sites More sharing options...
Luke 37116 Posted October 18, 2014 Share Posted October 18, 2014 don't know. maybe the request body is being lost. unfortunately without an equivalent test setup we'll have to rely on you to dig a little deeper Link to comment Share on other sites More sharing options...
Smoofus 0 Posted October 19, 2014 Author Share Posted October 19, 2014 Thanks for the quick response! I figured it wouldn't be an easy answer so I'll keep digging. If there is anyone out there with a similar setup, e.g. utilizing an apache reverse proxy, and you are not experiencing this issue would you mind sharing your virtualhost config? Figure it's worth a shot. Thanks! Link to comment Share on other sites More sharing options...
pir8radio 1292 Posted February 20, 2015 Share Posted February 20, 2015 did anyone ever find an resolution to this? i have the same issue only with trailers, when i enter a correct username and wrong password on the manual logon page, and in the user account settings when i try to change a users password. I get "Object reference not set to an instance of an object." I am using IIS as a reverse proxy. Link to comment Share on other sites More sharing options...
robert_foster 0 Posted March 1, 2015 Share Posted March 1, 2015 (edited) I have the same issue, using nginx as a reverse proxy. It crashed my media browser instance and I had to restart the server. Edited March 1, 2015 by robert_foster Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now