Unable to add port exception

  • 64 Views
  • Last Post 09 February 2021
  • Topic Is Solved
AbhorrentJoel posted this 09 February 2021

OS Name/Version: Ubuntu 20.04.2 LTS

Product Name/Version: AMP (apt version 2.1.0.4 - originally upgraded from 2.1) - NOTE: I am using Docker for instances.

Problem Description: When attempting to add a custom port, I get the following message via the web UI:

Unable to add port exception

The console also returns an exception:

[08:51:03] [APIService:[redacted] Warning] : Returned exception from API call ADSModule/ModifyCustomFirewallRule
[08:51:03] [Core:[redacted] Error] : NullReferenceException
[08:51:03] [Core:[redacted] Error] : [0] (NullReferenceException) : Object reference not set to an instance of an object
[08:51:03] [Core:[redacted] Error] :   at InstanceManagerPlugin.LocalInstanceManager.ModifyCustomFirewallRule (Guid instanceId, Int32 PortNumber, Int32 Range, InstanceManagerPlugin.PortProtocol Protocol, String Description, Boolean Open) 
  at InstanceManagerPlugin.AMPInstanceBase.ModifyCustomFirewallRule (Guid instanceId, Int32 PortNumber, Int32 Range, InstanceManagerPlugin.PortProtocol Protocol, String Description, Boolean Open) 
  at ADSModule.WebMethods.ModifyCustomFirewallRule (Guid instanceId, Int32 PortNumber, Int32 Range, InstanceManagerPlugin.PortProtocol Protocol, String Description, Boolean Open) 
  at GSMyAdmin.WebServer.WebAttributes.InvokeMethod (String MethodName, Newtonsoft.Json.Linq.JObject Data, m.Http.IHttpRequest request, ModuleShared.IWebSession Session, ModuleShared.WebMethodsBase MethodsClass, String RawRequest) 
  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
  • Create instance(s)
  • Attempt to add custom port (I have various numbers above 1024 to no avail)

Actions taken to resolve so far:

  • nocache update, ensuring ampinstmgr is up to date

Order By: Standard | Newest | Votes
Mike posted this 09 February 2021

Do a nocache upgradeall again. One of the updates failed to get uploaded.

AbhorrentJoel posted this 09 February 2021

Can confirm this has resolved this specific issue and will mark as solved.

Close