Unable to login to ADS01 (Unknown Reason (null))

OS Name/Version: Ubuntu 24.04.1 LTS

Product Name/Version:
2.6.0.0 (Phobos), built 25/10/2024 00:51
Stream: Development / Development - built by CUBECODERS/buildbot on CCL-DEV

Problem Description:

[18:23:12] [System Warning/9]     : Returned exception from API call Core/Login
[18:23:12] [Core Error/9]         : NullReferenceException
[18:23:12] [Core Error/9]         : [0] (NullReferenceException) : Object reference not set to an instance of an object.
[18:23:12] [Core Error/9]         :    at GSMyAdmin.Authentication.InternalAuth.<>c__DisplayClass62_0.<AddAuthAttempt>b__0(AuthenticationRequest r)
   at Linq.Enumerable.Count[TSource](IEnumerable`1 source, Func`2 predicate)
   at GSMyAdmin.Authentication.InternalAuth.AddAuthAttempt(IPAddress remoteAddress)
   at GSMyAdmin.Authentication.InternalAuth.Authenticate(HttpRequest Request, String Username, String Password, String Token, Boolean TokenRequested)
   at GSMyAdmin.WebServer.WebMethods.Login(HttpRequest request, String username, String password, String token, Boolean rememberMe)
   at GSMyAdmin.WebServer.WebAttributes.InvokeMethod(String MethodName, JObject Data, HttpContext context, IWebSession Session, WebMethodsBase MethodsClass, IPAddress RealIP)
   at GSMyAdmin.WebServer.ApiService.InvokeAPI(HttpContext context, IWebSession Session, JObject Data, String RequestModule, String RequestMethod)

Steps to reproduce:

  • Step 1 - getamp update
  • Step 2 - Reboot the system
  • Step 3 - Tried the login, not working anymore

Actions taken to resolve so far:
Tried the following commands

  • ampinstmgr resetlogin ADS01
  • ampinstmgr switch ADS01 development

Nothing works to login to GUI anymore.
Maybe someone knows a solution how I would be able to connect again.

You should not be on the development stream at the moment.
Run ampinstmgr switchall mainline true, ampinstmgr upgrade ADS01
Then clear your browser cache

This is what I tried at the beginning but doesn’t help.
I’ve switched back to mainline, did the upgrade and cleared my browser cache and the error message at the UI is the same.

On cli I see the following error:

[22:35:45] [System Warning/14]    : Returned exception from API call Core/Login
[22:35:45] [Core Error/14]        : NullReferenceException
[22:35:45] [Core Error/14]        : [0] (NullReferenceException) : Object reference not set to an instance of an object.
[22:35:45] [Core Error/14]        :    at GSMyAdmin.Authentication.InternalAuth.<>c__DisplayClass62_0.<AddAuthAttempt>b__0(AuthenticationRequest r)
   at Linq.Enumerable.Count[TSource](IEnumerable`1 source, Func`2 predicate)
   at GSMyAdmin.Authentication.InternalAuth.AddAuthAttempt(IPAddress remoteAddress)
   at GSMyAdmin.Authentication.InternalAuth.Authenticate(HttpRequest Request, String Username, String Password, String Token, Boolean TokenRequested)
   at GSMyAdmin.WebServer.WebMethods.Login(HttpRequest request, String username, String password, String token, Boolean rememberMe)
   at GSMyAdmin.WebServer.WebAttributes.InvokeMethod(String MethodName, JObject Data, HttpContext context, IWebSession Session, WebMethodsBase MethodsClass, IPAddress RealIP)
   at GSMyAdmin.WebServer.ApiService.InvokeAPI(HttpContext context, IWebSession Session, JObject Data, String RequestModule, String RequestMethod)
[22:35:58] [System Warning/15]    : Returned exception from API call Core/Login
[22:35:58] [Core Error/15]        : NullReferenceException
[22:35:58] [Core Error/15]        : [0] (NullReferenceException) : Object reference not set to an instance of an object.
[22:35:58] [Core Error/15]        :    at GSMyAdmin.Authentication.InternalAuth.<>c__DisplayClass62_0.<AddAuthAttempt>b__0(AuthenticationRequest r)
   at Linq.Enumerable.Count[TSource](IEnumerable`1 source, Func`2 predicate)
   at GSMyAdmin.Authentication.InternalAuth.AddAuthAttempt(IPAddress remoteAddress)
   at GSMyAdmin.Authentication.InternalAuth.Authenticate(HttpRequest Request, String Username, String Password, String Token, Boolean TokenRequested)
   at GSMyAdmin.WebServer.WebMethods.Login(HttpRequest request, String username, String password, String token, Boolean rememberMe)
   at GSMyAdmin.WebServer.WebAttributes.InvokeMethod(String MethodName, JObject Data, HttpContext context, IWebSession Session, WebMethodsBase MethodsClass, IPAddress RealIP)
   at GSMyAdmin.WebServer.ApiService.InvokeAPI(HttpContext context, IWebSession Session, JObject Data, String RequestModule, String RequestMethod)
[22:36:52] [System Warning/15]    : Returned exception from API call Core/Login
[22:36:52] [Core Error/15]        : NullReferenceException
[22:36:52] [Core Error/15]        : [0] (NullReferenceException) : Object reference not set to an instance of an object.
[22:36:52] [Core Error/15]        :    at GSMyAdmin.Authentication.InternalAuth.<>c__DisplayClass62_0.<AddAuthAttempt>b__0(AuthenticationRequest r)
   at Linq.Enumerable.Count[TSource](IEnumerable`1 source, Func`2 predicate)
   at GSMyAdmin.Authentication.InternalAuth.AddAuthAttempt(IPAddress remoteAddress)
   at GSMyAdmin.Authentication.InternalAuth.Authenticate(HttpRequest Request, String Username, String Password, String Token, Boolean TokenRequested)
   at GSMyAdmin.WebServer.WebMethods.Login(HttpRequest request, String username, String password, String token, Boolean rememberMe)
   at GSMyAdmin.WebServer.WebAttributes.InvokeMethod(String MethodName, JObject Data, HttpContext context, IWebSession Session, WebMethodsBase MethodsClass, IPAddress RealIP)
   at GSMyAdmin.WebServer.ApiService.InvokeAPI(HttpContext context, IWebSession Session, JObject Data, String RequestModule, String RequestMethod)

Are you using a reverse proxy? Or a different authentication provider?

Usually I use a haproxy from opnsense. I tried also the public of ADS01 directly and both doesn’t work

I am also receiving this error using a reverse proxy

Be sure that you’ve configured your reverse proxy properly, specifically this command:
ampinstmgr reconfigure ADS01 +Core.Webserver.UsingReverseProxy True
(seen this fix the error for someone else)

https://discourse.cubecoders.com/t/setting-up-secure-http-https-with-amp/2305#h-2-reverse-proxy-on-windows-5

Confirmed that Webserver.UsingReverseProxy=True

That was part of the instructions for setting up a reverse proxy with AMP and IIS.

Setting up ASD Instance, there are few settings you need to change in the AMPConfig.conf
change from Webserver.UsingReverseProxy=False to Webserver.UsingReverseProxy=True which enables AMP to be able to work on Reverse Proxy without issues and last but definitely not least Webserver.ReverseProxyHost=127.0.0.1 to Webserver.ReverseProxyHost=amp.example.com (amp.example.com is your domain)

However, whenever I attempt to set Webserver.ReverseProxyHost=0.0.0.0 to my subdomain, it always reverts to 0.0.0.0

Maybe this is part of the issue?

You need to change those settings with the ampinstmgr command, or while the ADS is stopped, otherwise the settings will be overwritten

confirming that ADS is stopped when I make these changes - it overwrites it either way upon starting the service back to 0.0.0.0

EDIT:
Interesting… When I set the config to Webserver.UsingReverseProxy=False it fixes the NULL login issue. I’ll take it :man_shrugging:

Was a bit more work but I did a clean reinstallation of the server with version 2.6 and imported all gameserver.
After all the reimport processes the reverse proxy was still able to use the login and worked without problems.

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