Jump to content

Internal server error 500


kps

Recommended Posts

Using nextpvr with MB on same machine (NUC).  I have a HD Homerun prime on my network that the NextPVR has been serving guide and programs.  After the install of 3.0.5557 I receive an unavailable (the remote server returned an error (500) Internal Server Error) when looking at status of Live TV in MB.  Obviously the tuners are now not seen and the program guide is no longer seen.

 

On the NUC I can open NextPVR and view the guide and all channels through their interface so the data is getting from HDHR to Next PVR.

 

Any insights?

 

BTW, my Kodi clients (running on firetv boxes) are seeing the channels from NextPVR and can play live tv.  It just seems to be MB.  I am assuming I should revert to latest stable release?

Edited by kps
Link to comment
Share on other sites

What do you seen in the nextpvr logging?

What do you get if you browse to http://localhost:8866/public/Util/NPVR/Client/Instantiate ?

 

nextpvr is attached

 

when I browse to address I get the following:

Unexpected end of file while parsing Name has occurred. Line 97, position 33.
 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
 
Exception Details: System.Xml.XmlException: Unexpected end of file while parsing Name has occurred. Line 97, position 33.
 
Source Error: 
 
 
Line 788:
Line 789: if (File.Exists(GetWebConfigFileName()))
Line 790: configWeb.Load(GetWebConfigFileName());
Line 791:
Line 792: globalSettings = new HybridDictionary();
 
Source File: c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs    Line: 790 
 
Stack Trace: 
 
 
[XmlException: Unexpected end of file while parsing Name has occurred. Line 97, position 33.]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) +69
   System.Xml.XmlTextReaderImpl.Throw(String res, String arg) +117
   System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos) +519
   System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag) +45
   System.Xml.XmlTextReaderImpl.ParseEndElement() +164
   System.Xml.XmlTextReaderImpl.ParseElementContent() +441
   System.Xml.XmlTextReaderImpl.Read() +50
   System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) +854
   System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +55
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +277
   System.Xml.XmlDocument.Load(XmlReader reader) +108
   System.Xml.XmlDocument.Load(String filename) +124
   N_EWA.classes.Settings.LoadFromFile(Boolean reload) in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:790
   N_EWA.classes.Settings.GetSetting(Object moduleObject, String settingName) in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:734
   N_EWA.classes.Settings.Load() in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:165
   N_EWA.classes.Settings..ctor() in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:157
   N_EWA.Global..cctor() in c:\Users\Public\NPVR\web\App_Code\Global.cs:77
 
[TypeInitializationException: The type initializer for 'N_EWA.Global' threw an exception.]
   N_EWA.Global..ctor() in c:\Users\Public\NPVR\web\App_Code\Global.cs:70
   ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0a635572\38fd2de4\App_global.asax.9bkp3ye4.0.cs:0
 
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +113
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +232
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +83
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1138
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +124
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +18
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +44
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +254
   System.Web.HttpApplicationFactory.FireApplicationOnStart(HttpContext context) +35
   System.Web.HttpApplicationFactory.EnsureAppStartCalled(HttpContext context) +195
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +83
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +520
Link to comment
Share on other sites

I attached the log.

 

i ran the address but I do not have a util in my directory structure for nextpvr.

 

it is users\public\NPVR then there are a host of subdirs.

 

this is when going to address you specified:

 

Unexpected end of file while parsing Name has occurred. Line 97, position 33.
 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
 
Exception Details: System.Xml.XmlException: Unexpected end of file while parsing Name has occurred. Line 97, position 33.
 
Source Error: 
 
 
Line 788:
Line 789: if (File.Exists(GetWebConfigFileName()))
Line 790: configWeb.Load(GetWebConfigFileName());
Line 791:
Line 792: globalSettings = new HybridDictionary();
 
Source File: c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs    Line: 790 
 
Stack Trace: 
 
 
[XmlException: Unexpected end of file while parsing Name has occurred. Line 97, position 33.]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) +69
   System.Xml.XmlTextReaderImpl.Throw(String res, String arg) +117
   System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos) +519
   System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag) +45
   System.Xml.XmlTextReaderImpl.ParseEndElement() +164
   System.Xml.XmlTextReaderImpl.ParseElementContent() +441
   System.Xml.XmlTextReaderImpl.Read() +50
   System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) +854
   System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +55
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +277
   System.Xml.XmlDocument.Load(XmlReader reader) +108
   System.Xml.XmlDocument.Load(String filename) +124
   N_EWA.classes.Settings.LoadFromFile(Boolean reload) in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:790
   N_EWA.classes.Settings.GetSetting(Object moduleObject, String settingName) in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:734
   N_EWA.classes.Settings.Load() in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:165
   N_EWA.classes.Settings..ctor() in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:157
   N_EWA.Global..cctor() in c:\Users\Public\NPVR\web\App_Code\Global.cs:77
 
[TypeInitializationException: The type initializer for 'N_EWA.Global' threw an exception.]
   N_EWA.Global..ctor() in c:\Users\Public\NPVR\web\App_Code\Global.cs:70
   ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0a635572\38fd2de4\App_global.asax.9bkp3ye4.0.cs:0
 
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +113
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +232
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +83
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1138
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +124
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +18
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +44
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +254
   System.Web.HttpApplicationFactory.FireApplicationOnStart(HttpContext context) +35
   System.Web.HttpApplicationFactory.EnsureAppStartCalled(HttpContext context) +195
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +83
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +520

NPVR.log

Edited by kps
Link to comment
Share on other sites

I've got the same problem...also accessing via api.mediabrowser.tv wont allow me to play Live TV or Recordings, only via <ipaddress>:8096/web will allow it...it seems that the EPG is unable to be accessed and in Dashboard under the EPG setting for refresh it says: "Last result: (failed)"

 

I've tried restarting NextPVR and Emby, no avail....was working perfectly up until the latest update, NextPVR hasn't been changed in months....NextPVR is working perfectly with XBMC/Kodi Live TV.....

 

I get this in the error log from Emby:

 

Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

 

Going to http://localhost:8866/public/Util/NPVR/Client/Instantiate gives me:

{"clientKeys":{"sid":"3caa7279929c4ace8a35ee91b4acae4d","salt":"b7078ac4-aeeb-4d46-aa03-5298fd9a2bfd"}}

 

Hope that helps?

 

-SM

Edited by Scot
Link to comment
Share on other sites

Hi Sven

 

I've attached the latest log (just restarted the server, gives the GUID error) and the log before this which was running for many hours whereby I am sure the error pops up a number of times....so the two main issues I am getting is the one reported above about the EPG and the fact that I can no longer get programs to play unless I access the server via the IP address (locally) and app.mediabrowser.tv no longer works for the playing of the Recorded or Live TV (all other aspects work including playing of TV shows and Movies in those sections outside of the Live TV area...indeed in the Live TV area I am about to look at the guide etc. without issue.

 

Thanks for taking a look.

 

-SM

server-63562838400.txt

server-63562804719.txt

Link to comment
Share on other sites

I just installed the latest DEV version: Version 3.0.5561.41235

 

EPG error seems to have gone away....however if I access app.mediabrowser.tv instead of <server-ip>:8096 no Recorded TV or Live TV programs will play...also I have noticed that when I go in to "Suggested" using the <server-ip>:8096 all the programs in rendered with fanart in "Upcoming Programs" and a few in "What's on".....when I go in via app.mediabrowser.tv virtually no fanart is rendered.

 

I used to be able to play TV from outside of of my LAN accessing via app.mediabrowsers.tv and all transcoding etc. worked nicely.

 

I've attached my latest serverlog.

 

-SM

 

 

server-63562924800.txt

server-63562912210.txt

Link to comment
Share on other sites

Sven

Do you have some other problems with the app.mediabrowser.tv? Could it be a problem with translation between internal & external network??

Link to comment
Share on other sites

Was working, upgraded to latest BETA and now DEV and isn't working....I can connect to app.mediabrowser.tv from outside (and inside) of my LAN....I can stream TV Shows and Movies however Live TV from outside of my network wont work connecting via app.mediabrowser.tv

 

Sorry, does that make sense?

 

-SM

Link to comment
Share on other sites

Sven

I see your comment "Was working" so it worked before? Do you know the version?

It's only with the web client you can't see anything? Or also with some other clients?

Link to comment
Share on other sites

The latest stable was working, the latest beta before the recent update was working, none of the DEV versions have reenabled it.

 

Just so you known the EPG issue is fixed, it's when connecting in or out of the network using app.mediabrowser.tv streaming Live TV won't start, using a VPN and using the server IP works... Obviously since it was working all port forwards are working, also. TV and Movies section work via app.mediabrowser.tv (in and out of the LAN).

 

-SM

Link to comment
Share on other sites

is there a location where we can download .5556? that was the last version that worked for me. i want to revert back to see if it gets corrected.

Link to comment
Share on other sites

New issue with Version 3.0.5566.35664, see attached screenshot, when stopping a Live TV stream it doesn't stop the tuners (I'm using HDHomeRun's)....

 

-SM

 

post-1126-0-83623800-1427715535_thumb.jpg

Link to comment
Share on other sites

Sven,

Do you recommend a full reinstall?  Currently my HDHR Prime is on my network as well as my NUC which houses NextPVR and Emby.  NextPVR shows all three tuners in the HDHR and handles the EPG with help from Schedules DIrect.  I can view all live tv and recorded tv from NextPVR interface.

 

Emby is pointed to my video and tv directories (for recordings) that NextPVR uses and replays fine on win and android (using app).

 

Kodi through my amazon firetv boxes can play livetv through NextPVR as well as recordings from same.

 

The TV that emby is connected to can NOT see epg from NextPVR or play any live TV as no channels show up.  This was all working just fine before .5556 update.

 

So I believe I have two options: 1. Reinstall everything with the version prior to .5556 or 2. Do a fresh install with latest stable and see if the corruption issue is gone.  I would have to also re-install NextPVR I believe.

 

Your thoughts? 

Link to comment
Share on other sites

Sven

A reinstall for NextPvr yes...

We can't access the api...

 

So try first the reinstall for NextPvr.

Edited by Sven
Link to comment
Share on other sites

A reinstall for NextPvr yes...

We can't access the api...

 

So try first the reinstall for NextPvr.

 

Just update to the latest DEV release, fixes the issue of the missing tuners....I noticed an update on the NextPVR channel also..

 

-SM

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...