AMP icon indicating copy to clipboard operation
AMP copied to clipboard

Ports Duplicated on Instance Creation

Open IceOfWraith opened this issue 1 year ago • 1 comments

Operating System

Ubuntu 24.04

AMP Version and Build Date

2.6

AMP Release Stream

Mainline

I confirm that

  • [X] I have searched for an existing bug report for this issue.
  • [X] I am using the latest available version of AMP.
  • [X] my operating system is up-to-date.

Intended Action

N/A

Expected Behaviour

N/A

Actual Behaviour

N/A

Reproduction

There needs to be a lock put in so multiple instances getting created at once doesn't use the same ports.

IceOfWraith avatar Oct 28 '24 06:10 IceOfWraith

So looks like the basic problem is that new instances aren't added to the manifest until they're downloaded+configured etc which takes some time. So indeed two instances created at the same moment may try and use the same port numbers.

We can either use a semaphore or similar to prevent two instances from being created at the same time, or an actual proper queue of instance operations to perform.

PhonicUK avatar Dec 16 '24 15:12 PhonicUK

Fixed in the next release.

IceOfWraith avatar Aug 04 '25 14:08 IceOfWraith