Failed to login to remote instance (ArgumentOutOfRangeException) - Unknown Reason (null) null [SOLVED]

OS Name/Version: Linux - Debian GNU/Linux 12 on x86_64

Product Name/Version: AMP ‘Callisto’ v2.5.1.8 (Mainline)

Problem Description:

I can no longer click on “Manage” on my instances. I only get the message “Failed to login to remote instance. Unknown Reason (null) null”. When looking in the logs I can see an “ArgumentOutOfRangeException” after authentication.

I also created a new instance and was able to access it once. But immediately afterwards I got the same error here too.

[11:54:04] [Core Activity/6]      : Authentication attempt for user admin from 127.0.0.1
[11:54:04] [Core Activity/8]      : Authentication success
[11:54:04] [Core Warning/8]       : Returned exception from API call Core/Login
[11:54:04] [Core Error/8]         : ArgumentOutOfRangeException
[11:54:04] [Core Error/8]         : [0] (ArgumentOutOfRangeException) : The added or subtracted value results in an un-representable DateTime.
Parameter name: value
[11:54:04] [Core Error/8]         :   at DateTime.AddTicks (Int64 value) 
  at DateTime.Add (Double value, Int32 scale) 
  at DateTime.AddMinutes (Double value) 
  at GSMyAdmin.WebServer.WebSession..ctor (Net.IPAddress Source, Int32 SessionTimeout, String SessionType, Int32 ScrollbackMinutes, String CreateReason, m.Http.IHttpRequest Origin) 
  at GSMyAdmin.WebServer.APIService.CreateSession (String Username, Net.IPAddress Source, String UserAgent, Nullable`1[T] ExistingSessionID, String CreateReason, Net.IPAddress alternateSource, m.Http.IHttpRequest OriginRequest) 
  at GSMyAdmin.Authentication.RemoteAMPAuth.Authenticate (m.Http.IHttpRequest Request, String Username, String Password, String Token, Boolean TokenRequested) 
  at GSMyAdmin.WebServer.WebMethods.Login (m.Http.IHttpRequest request, String username, String password, String token, Boolean rememberMe) 
  at GSMyAdmin.WebServer.WebAttributes.InvokeMethod (String MethodName, Newtonsoft.Json.Linq.JObject Data, m.Http.IHttpRequest request, ModuleShared.IWebSession Session, ModuleShared.WebMethodsBase MethodsClass, String RawRequest, Net.IPAddress RealIP) 
  at GSMyAdmin.WebServer.APIService.InvokeAPI (m.Http.IHttpRequest request, ModuleShared.IWebSession Session, Newtonsoft.Json.Linq.JObject Data, String RequestModule, String RequestMethod, String RawRequest) 

Steps to reproduce:

  • Install AMP via getamp.sh
  • Configure AMP via web interface
  • Create new instance
  • Access instance once successfully
  • Manage instance fails (Unkown Reason)

Actions taken to resolve so far:

  • Tried to access the instance directly via right-click
  • Login with another user on AMP
  • Checked the configuration in AMPConfig.conf
  • Restarted the instance, restarted AMP, and rebooted the whole server
  • Upgraded the installed version of AMP
  • Created a new instance (same error)

Update:
I solved the problem. The “Core.Monitoring.ConsoleScrollback” option of the instance was set to a too high value causing an ArgumentOutOfRangeException due to an unrepresentable DateTime.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.