NooBaa endpoint failure because of reserved ports

When multiple forks are used, the system opens a port for each fork starting from the 6002 port and increments port by 1 for each fork.

Description
For example, if ENDPOINT_FORKS=2 (default), the 6002 and 6003 ports are reserved for S3 health monitoring.
Error
Do not configure the HTTP or HTTPS service to use the 6002 or 6003 ports. If you use these reserved ports, the NooBaa endpoint to enter a failed state.
Workaround
Change the port in to an available port by calculating the FORK count. NooBaa endpoints recover after you add a free port.