Configuration with Application Deployment - updatefirewall failing when adding coustom Port to Instance

System Information

Field Value
Operating System Linux - Debian GNU/Linux 12 on x86_64
Product AMP ‘Phobos’ v2.6.0.6 (Mainline)
Virtualization QEMU_KVM
Application Application Deployment
Module ADSModule
Running in Container No
Current State Indeterminate

Problem Description

Issue

After adding a Custom Port for any instance and updating the firewall with `ampinstmgr updatefirewall’ the following error message is thrown:

[Info/1] AMP Instance Manager v2.6.0.6 built 20/11/2024 20:58
[Info/1] Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
[Info/1] Using UFW firewall.
[Error/1] IM was unable to execute the requested command.
[Error/1] TargetInvocationException
[Error/1] [0] (TargetInvocationException) : Exception has been thrown by the target of an invocation.
[Error/1]    at InstanceManagerCLI.Core.ExecuteCommand(List`1 Params, Dictionary`2 Args)
[Error/1] ArgumentNullException
[Error/1] [1] (ArgumentNullException) : Value cannot be null. (Parameter 'address')
[Error/1]    at ArgumentNullException.Throw(String paramName)
   at Net.IPAddress.IsLoopback(IPAddress address)
   at InstanceManagerCLI.Core.<>c.<SyncFirewall>b__79_4(PortUsage p)
   at Linq.Enumerable.WhereEnumerableIterator`1.ToList()
   at InstanceManagerCLI.Core.SyncFirewall(Boolean DryRun, IEnumerable`1 userInstances, IFirewallManager firewall)
   at InstanceManagerCLI.Core.UpdateFirewall(String SourceUser, Boolean DryRun, Boolean forceUPnPSync)

Reproduction Steps

  • Create Any Instance
  • In the Instance settings add a Custom Port
  • run ampinstmgr updatefirewall as root

Known issue fixed in the next update as far as I’m aware.
You should be fine adding the ports manually for the time being

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