NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) NextPVR Enhanced Web Admin (NEWA) v
« Previous 1 … 11 12 13 14 15 … 47 Next »
Invalid Credential Packet error

 
  • 0 Vote(s) - 0 Average
Invalid Credential Packet error
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#1
2012-01-23, 08:03 PM
UJB - I've attached a web log file which comes from FirstTeamOPS (forum user) related to a couple of failed attempts to use NDroid to schedule recordings. Have you any idea what would cause the error and exceptions.

Basically the nDroidService receives a record request from the nDroid app which includes username/password. It checks them against those stored in the npvr config.xml and, in this case it's happy that they match. At that point it connects locally to the NEWA schedule web service and attempts to schedule the recording. In the nDroidService logs there's an exception as follows...
Quote:17/01/2012 18:56:11.551 System.Web.Services.Protocols.SoapException: Unauthorized
at N_EWA.classes.AuthExtension.ProcessMessage(SoapMessage message) in d:\NPVR\web\App_Code\Classes\webServiceAuthentication.cs:line 79
at System.Web.Services.Protocols.SoapMessage.RunExtensions(SoapExtension[] extensions, Boolean throwOnException)
at System.Web.Services.Protocols.SoapServerProtocol.CreateServerInstance()
at System.Web.Services.Protocols.WebServiceHandler.Invoke()
at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at uk.co.beetec.csharp.nDroid.NpvrScheduleService.ScheduleService.scheduleRecording(webServiceScheduleSettings schedlSettings) in C:\Documents and Settings\gbpvr\My Documents\Visual Studio 2008\Projects\nDroidService\nDroidLib\Web References\NpvrScheduleService\Reference.cs:line 189
at uk.co.beetec.csharp.nDroid.nDroidServiceHelper.ScheduleNpvrRecording(Int32 oid, Int32 pre_pad, Int32 post_pad, Int32 days_to_keep, String username, String password, String type) in C:\Documents and Settings\gbpvr\My Documents\Visual Studio 2008\Projects\nDroidService\nDroidLib\nDroidServiceHelper.cs:line 500
...and the attached web log shows the associated NEWA error logging.

I've never seen this with nDroid so I'm wondering if this an issue with FirstTeamOPS NEWA setup - any ideas?

Cheers,
Brian
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#2
2012-01-23, 11:03 PM
bgowland Wrote:UJB - I've attached a web log file which comes from FirstTeamOPS (forum user) related to a couple of failed attempts to use NDroid to schedule recordings. Have you any idea what would cause the error and exceptions.

Basically the nDroidService receives a record request from the nDroid app which includes username/password. It checks them against those stored in the npvr config.xml and, in this case it's happy that they match. At that point it connects locally to the NEWA schedule web service and attempts to schedule the recording. In the nDroidService logs there's an exception as follows......and the attached web log shows the associated NEWA error logging.

I've never seen this with nDroid so I'm wondering if this an issue with FirstTeamOPS NEWA setup - any ideas?

Cheers,
Brian

The credential that is being created to interact with the NEWA Recording web service is invalid.......so either the id/password are incorrect, or they are not being encrypted according to the web service standards....

Code:
[INFO][14]    webServiceAuthentication credential found
2012-01-17 18:56:11.454    [INFO][14]    *
2012-01-17 18:56:11.454    [INFO][14]    *
2012-01-17 18:56:11.454    [INFO][14]     ***** Invalid Credential Packet  ****
2012-01-17 18:56:11.454    [INFO][14]    nowTime (Server) = 1/17/2012 6:56:11 PM
2012-01-17 18:56:11.454    [INFO][14]    *
2012-01-17 18:56:11.489    [INFO][14]    Exception: System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
   at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
   at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
   at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
   at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing)
   at System.IO.Stream.Close()
   at N_EWA.classes.EncDec.Decrypt(Byte[] cipherData, Byte[] Key, Byte[] IV) in d:\NPVR\web\App_Code\Classes\webServiceAuthentication.cs:line 579
   at N_EWA.classes.EncDec.Decrypt(String cipherText, String Password, Byte[] Salt, Int32 iterations) in d:\NPVR\web\App_Code\Classes\webServiceAuthentication.cs:line 633
   at N_EWA.classes.EncDec.verifyUser(webServiceAuthentication header) in d:\NPVR\web\App_Code\Classes\webServiceAuthentication.cs:line 181
2012-01-17 18:56:11.489    [INFO][14]    *********************
2012-01-17 18:56:11.489    [INFO][14]    
2012-01-17 18:56:11.489    [INFO][14]    
2012-01-17 18:56:11.489    [INFO][14]    No v
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#3
2012-01-23, 11:47 PM
UncleJohnsBand Wrote:The credential that is being created to interact with the NEWA Recording web service is invalid.......so either the id/password are incorrect, or they are not being encrypted according to the web service standards....
OK, logically that's what the errors suggested to me but I haven't changed the way the nDroidService encrypts the username/password that it passes to the schedule service.

I also do a check against the config.xml plain text username and MD5 hashed password before doing anything else (i.e., before attempting to connect to the web services). If they don't match then the nDroidService returns a 'fail' to the nDroid app without doing anything else.

Odd...
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#4
2012-02-16, 03:12 AM
Just realized I missed responding to this......which made me also realize I never carried forward the wiki info for Web Services which I have now put on my to-do list..... are you using the process defined in the old GBPVR wiki for web services? The credential processing has not changed.....
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#5
2012-02-16, 05:39 AM
No problem with respect to response time.

The process for credentials hasn't changed since the early days of nDroid (nearly a year ago) and I haven't had any similar reports.

I sent a PM to FirstTeamOPS to suggest a test to help narrow the problem - that was on the 25th January but I just checked their profile and the last visit to the forums was 24th January. So obviously, I've had no further feedback and I'm none the wiser.

It works fine for me and as far as I can tell all other users of nDroid.

Cheers,
Brian
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#6
2012-02-16, 10:50 AM
bgowland Wrote:No problem with respect to response time.

The process for credentials hasn't changed since the early days of nDroid (nearly a year ago) and I haven't had any similar reports.

I sent a PM to FirstTeamOPS to suggest a test to help narrow the problem - that was on the 25th January but I just checked their profile and the last visit to the forums was 24th January. So obviously, I've had no further feedback and I'm none the wiser.

It works fine for me and as far as I can tell all other users of nDroid.

Cheers,
Brian

Great....I'll consider it a non-issue unless I hear back....

Cheers
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Error with Web Admin? jksmurf 0 2,423 2019-06-20, 10:34 AM
Last Post: jksmurf
  Server Error in '/' Application smajor 19 17,214 2017-10-27, 12:57 PM
Last Post: mvallevand
  Error when trying to stream from NEWA on PC jksmurf 2 2,887 2017-02-27, 05:12 AM
Last Post: jksmurf
  Server Error in '/' Application [streaming failure] oldman 3 3,145 2017-02-04, 12:48 AM
Last Post: UncleJohnsBand
  Server Error when settign a manual recording in NEWA martinu 2 2,449 2017-01-23, 01:30 AM
Last Post: UncleJohnsBand
  Internal Server Error SilverTiger 5 3,332 2016-07-24, 04:03 PM
Last Post: UncleJohnsBand
  "Record selected" returns error web page ... softfoot 5 3,885 2016-03-26, 01:37 PM
Last Post: UncleJohnsBand
  Server Error in "/" Application ? Lone_Stranger 1 2,461 2016-02-19, 02:10 AM
Last Post: UncleJohnsBand
  Server Error in '/' Application mdenecke 1 2,985 2016-01-13, 03:33 AM
Last Post: UncleJohnsBand
  Server Error when trying to schedule with NEWA in 336? jksmurf 5 3,869 2015-12-12, 12:34 AM
Last Post: jksmurf

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode