PDA

View Full Version : Sorry, an error occurred while processing your request.



agerdin
2012-12-07, 08:05 PM
Reven, I have installed the Webconsole and I get the first login screen (http://192.168.0.100:8877/Setup) working. However, after entering username, email and password I am only getting a "Sorry, an error occurred while processing your request." message.

Im not sure what logs to attach so please advise.

Thanks,

\\AGerdin

reven
2012-12-07, 08:34 PM
couple of things to try.

check log files, there's a directory called "Logging" of the website dir, usually (C:\Program Files (x86)\Reven\NextPVR Web Console\Logging)

check event viewer, it *may* write an error there.

how is that message shown exactly? a popup? a yellow screen of death? a notification popup in the top right corner? just the response from the server visible in the network trace?

reven
2012-12-07, 10:26 PM
also do you mind posting the info you used on the setup screen? you can provide a different password, but if you used any special characters could you list those as well? want to see if i can reproduce this.

agerdin
2012-12-07, 11:25 PM
couple of things to try.
check log files, there's a directory called "Logging" of the website dir, usually (C:\Program Files (x86)\Reven\NextPVR Web Console\Logging)

Log looks ok to me

================================================== ==========
NextPVR Version: 2.5.9.0
NextPVR Web Console Version: 0.1.0.33022
NextPVR Web Console Database Version: 115
================================================== ==========

2012-12-07 00:03:26.810 [3]: Deleting old log files
2012-12-07 01:03:26.811 [19]: Deleting old log files
2012-12-07 02:03:26.815 [13]: Deleting old log files
2012-12-07 03:03:26.818 [11]: Deleting old log files
2012-12-07 04:03:26.823 [7]: Deleting old log files
2012-12-07 05:03:26.829 [16]: Deleting old log files
2012-12-07 06:03:26.830 [16]: Deleting old log files
2012-12-07 07:03:26.836 [18]: Deleting old log files
2012-12-07 08:03:26.830 [13]: Deleting old log files
2012-12-07 09:03:26.843 [16]: Deleting old log files
2012-12-07 10:03:26.844 [3]: Deleting old log files
2012-12-07 11:03:26.852 [18]: Deleting old log files
2012-12-07 12:03:26.853 [23]: Deleting old log files
2012-12-07 13:03:26.857 [21]: Deleting old log files
2012-12-07 14:03:26.861 [19]: Deleting old log files
2012-12-07 15:03:26.868 [18]: Deleting old log files
2012-12-07 16:03:26.872 [13]: Deleting old log files
2012-12-07 17:03:26.874 [11]: Deleting old log files
2012-12-07 18:03:26.875 [13]: Deleting old log files
2012-12-07 19:03:26.882 [7]: Deleting old log files
2012-12-07 20:03:26.885 [17]: Deleting old log files
2012-12-07 21:03:26.888 [11]: Deleting old log files
2012-12-07 21:05:42.292 [16]: Application stopped.





check event viewer, it *may* write an error there.


Which event viewer, Windows, Webserver?



how is that message shown exactly? a popup? a yellow screen of death? a notification popup in the top right corner? just the response from the server visible in the network trace?

No popup, just an white empty webpage with the message in the top left corner.



also do you mind posting the info you used on the setup screen? you can provide a different password, but if you used any special characters could you list those as well? want to see if i can reproduce this.


Tried many different things

User: agerdin
Email: anders_gerdin@domain.com
Pass: 123456
Pass: 123456

reven
2012-12-08, 04:14 AM
Ok white empty page with single line sounds like a webserver issue with ultidev. Let me do some googling and see what I find

reven
2012-12-09, 03:26 AM
can you open your C:\program files\reven\nextpvr web console\web.config file in notepad or another text editor and then comment out the custom error lines

eg change


...

<authentication mode="Forms">
<forms loginUrl="~/Login" timeout="2880"/>
</authentication>
<customErrors mode="On">
<error statusCode="510" redirect="/Setup" />
</customErrors>
<pages>
<namespaces>
...


to



...

<authentication mode="Forms">
<forms loginUrl="~/Login" timeout="2880"/>
</authentication>
<!--
<customErrors mode="On">
<error statusCode="510" redirect="/Setup" />
</customErrors>
-->
<pages>
<namespaces>
...

notice the new <!-- and --> surrounding the customerrors element. might be this is hiding the real error.

reven
2012-12-09, 03:33 AM
also is this the live code or the alpha using the installer?

agerdin
2012-12-09, 09:33 AM
Reven,

Now I can see what the problem is. For archiving purposes I have 2 recording drives setup. One local disk and one on a Server. It seems that WebConsole cannot handle the Server recording drive.



Server Error in '/' Application.

Failed to create recording directory: \\GERDIN-SERVER\Recorded TV\00Recordings

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.Exception: Failed to create recording directory: \\GERDIN-SERVER\Recorded TV\00Recordings

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[Exception: Failed to create recording directory: \\GERDIN-SERVER\Recorded TV\00Recordings]
NextPvrWebConsole.Models.NextPvrConfigHelper.set_E xtraRecordingDirectories(KeyValuePair`2[] value) +251
NextPvrWebConsole.Models.Configuration.Save() +1015
NextPvrWebConsole.Models.RecordingDirectory.Save() +160
NextPvrWebConsole.Controllers.SetupController.Inde x(SetupModel Model) +300
lambda_method(Closure , ControllerBase , Object[] ) +108
System.Web.Mvc.ActionMethodDispatcher.Execute(Cont rollerBase controller, Object[] parameters) +17
System.Web.Mvc.ReflectedActionDescriptor.Execute(C ontrollerContext controllerContext, IDictionary`2 parameters) +188
System.Web.Mvc.ControllerActionInvoker.InvokeActio nMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
System.Web.Mvc.Async.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41() +28
System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
System.Web.Mvc.Async.AsyncControllerActionInvoker. EndInvokeActionMethod(IAsyncResult asyncResult) +29
System.Web.Mvc.Async.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33() +59
System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +240
System.Web.Mvc.Async.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult) +12
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
System.Web.Mvc.Async.AsyncControllerActionInvoker. EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +31
System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +23
System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +128
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
System.Web.Mvc.Async.AsyncControllerActionInvoker. EndInvokeAction(IAsyncResult asyncResult) +26
System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +14
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
System.Web.Mvc.Controller.EndExecuteCore(IAsyncRes ult asyncResult) +41
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +28
System.Web.Mvc.Controller.System.Web.Mvc.Async.IAs yncController.EndExecute(IAsyncResult asyncResult) +10
System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +28
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsync Result asyncResult) +30
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHan dler.EndProcessRequest(IAsyncResult result) +9
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +278
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +163

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.547

\\Agerdin

reven
2012-12-09, 06:15 PM
yeah I havent yet adding support for network drives, work around for now is to just map the network drive.

ill make a ticket in github and try sort it out for the next alpha.

glad you found the issue.

reven
2012-12-09, 07:42 PM
https://github.com/revenz/NextPvrWebConsole/issues/62

agerdin
2012-12-10, 07:10 AM
yeah I havent yet adding support for network drives, work around for now is to just map the network drive.

ill make a ticket in github and try sort it out for the next alpha.

glad you found the issue.

Thanks Reven,

Will probably not go with the workaround since everything now is working. WIll test again when the new alpha is out.

\Anders

saitoh183
2013-02-23, 09:10 AM
Installed the Alpha 1 with the installer and got the same error:


Server Error in '/' Application.
--------------------------------------------------------------------------------

Failed to create recording directory: \\SRV-SAITOH\Recorded TV
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.Exception: Failed to create recording directory: \\SRV-SAITOH\Recorded TV

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[Exception: Failed to create recording directory: \\SRV-SAITOH\Recorded TV]
NextPvrWebConsole.Models.NextPvrConfigHelper.set_E xtraRecordingDirectories(KeyValuePair`2[] value) +251
NextPvrWebConsole.Models.Configuration.Save() +1015
NextPvrWebConsole.Models.RecordingDirectory.Save() +160
NextPvrWebConsole.Controllers.SetupController.Inde x(SetupModel Model) +300
lambda_method(Closure , ControllerBase , Object[] ) +108
System.Web.Mvc.ActionMethodDispatcher.Execute(Cont rollerBase controller, Object[] parameters) +17
System.Web.Mvc.ReflectedActionDescriptor.Execute(C ontrollerContext controllerContext, IDictionary`2 parameters) +188
System.Web.Mvc.ControllerActionInvoker.InvokeActio nMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
System.Web.Mvc.Async.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41() +28
System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
System.Web.Mvc.Async.AsyncControllerActionInvoker. EndInvokeActionMethod(IAsyncResult asyncResult) +29
System.Web.Mvc.Async.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33() +59
System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +240
System.Web.Mvc.Async.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult) +12
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
System.Web.Mvc.Async.AsyncControllerActionInvoker. EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +31
System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +23
System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +128
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
System.Web.Mvc.Async.AsyncControllerActionInvoker. EndInvokeAction(IAsyncResult asyncResult) +26
System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +14
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
System.Web.Mvc.Controller.EndExecuteCore(IAsyncRes ult asyncResult) +41
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +28
System.Web.Mvc.Controller.System.Web.Mvc.Async.IAs yncController.EndExecute(IAsyncResult asyncResult) +10
System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +28
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsync Result asyncResult) +30
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHan dler.EndProcessRequest(IAsyncResult result) +9
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +278
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +163




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

I tried to map the drive and add the map to NPVR:
config.xml (V = network path)

<RecordingDirectory>E:\</RecordingDirectory>
<ExtraRecordingDirectories>Archive~V:\~</ExtraRecordingDirectories>

Since my recordings were mapped to \\SRV-SAITOH\Recorded TV originally, i exported my recording list changed all the paths to that contained \\SRV-SAITOH\Recorded TV to V:\. Then i moved all my recordings out of \\SRV-SAITOH\Recorded TV so that NPVR registers them as gone, restarted NPVR service...recordings were now gone. Moved recordings back to \\SRV-SAITOH\Recorded TV but imported my recording file that points to V:\ and restarted service again...still no dice.

reven
2013-02-23, 08:51 PM
i was folllowing up until this part


Moved recordings back to \\SRV-SAITOH\Recorded TV but imported my recording file that points to V:\ and restarted service again...still no dice.

sounds like you're going back to a network share, which doesnt work with alpha 1.

saitoh183
2013-02-23, 10:03 PM
i was folllowing up until this part



sounds like you're going back to a network share, which doesnt work with alpha 1.

what i meant is that i moved them back to that location which is now a mapped drive V:\ or if you prefer i logged on to my server and moved them back to Recorded TV and mapped V:\ to \\SRV-SAITOH\Recorded TV :)

***Edit***
Alright so after much fuss, wont be able to use this until UNC path are supported cuz NPVR doesnt like mapped drives


2013-02-24 02:23:29.509 [DEBUG][20] ArchiveRecording(1296:Les Parent, Archive1)
2013-02-24 02:23:29.552 [DEBUG][18] Source File: E:\Les Parent\Les Parent_20130218_19302000.ts
2013-02-24 02:23:29.552 [ERROR][18] Unexpected error archiving file: System.IO.DirectoryNotFoundException: Could not find a part of the path 'V:\Les Parent'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)