Team, Getting below error while running catalyst serve command on my local machine, even though the mentioned ports are free. Kindly assist on this!
[debug] [2024-12-11T07:25:17.273Z] : unknown eol undefined hence skipping check
[debug] [2024-12-11T07:25:17.274Z] : unknown eol undefined hence skipping check
[debug] [2024-12-11T07:25:17.278Z] : unknown eol undefined hence skipping check
[debug] [2024-12-11T07:25:51.330Z] : Error serving the resources: CatalystError: No ports from '4000' to 4020 is free to use as a http port.
at CatalystError.getErrorInstance (/usr/local/lib/node_modules/zcatalyst-cli/lib/error.js:43:20)
at PortResolver.<anonymous> (/usr/local/lib/node_modules/zcatalyst-cli/lib/port-resolver.js:105:46)
at Generator.throw (<anonymous>)
at rejected (/usr/local/lib/node_modules/zcatalyst-cli/lib/port-resolver.js:6:65)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 500,
exit: 1,
original: Error: No open ports found in between 4000 and 4020
at /usr/local/lib/node_modules/zcatalyst-cli/node_modules/portfinder/lib/portfinder.js:206:25
at /usr/local/lib/node_modules/zcatalyst-cli/node_modules/async/dist/async.js:473:16
at replenish (/usr/local/lib/node_modules/zcatalyst-cli/node_modules/async/dist/async.js:1009:25)
at iterateeCallback (/usr/local/lib/node_modules/zcatalyst-cli/node_modules/async/dist/async.js:998:17)
at /usr/local/lib/node_modules/zcatalyst-cli/node_modules/async/dist/async.js:972:16
at /usr/local/lib/node_modules/zcatalyst-cli/node_modules/portfinder/lib/portfinder.js:163:16
at Server.onListen (/usr/local/lib/node_modules/zcatalyst-cli/node_modules/portfinder/lib/portfinder.js:43:5)
at Object.onceWrapper (node:events:631:28)
at Server.emit (node:events:517:28)
at emitListeningNT (node:net:1845:10),
context: undefined,
errorId: 'PORT-RESOLVER-2',
arg: [
'\x1B[1m4000\x1B[22m',
'\x1B[1m4020\x1B[22m',
'\x1B[1m--http\x1B[22m'
],
skipHelp: false,
fileName: '/usr/local/lib/node_modules/zcatalyst-cli/lib/port-resolver'
}
[info] [2024-12-11T07:25:52.498Z] :
[error] [2024-12-11T07:25:52.501Z] : ✖ Error: No ports in the range 4000 to 4020 is free.
[debug] [2024-12-11T07:25:52.502Z] : Error Stack: CatalystError: lsof -i :4000-4020
at CatalystError.getErrorInstance (/usr/local/lib/node_modules/zcatalyst-cli/lib/error.js:43:20)
at PortResolver.<anonymous> (/usr/local/lib/node_modules/zcatalyst-cli/lib/port-resolver.js:105:46)
at Generator.throw (<anonymous>)
at rejected (/usr/local/lib/node_modules/zcatalyst-cli/lib/port-resolver.js:6:65)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[debug] [2024-12-11T07:25:52.502Z] : Original Error: Error: No open ports found in between 4000 and 4020
at /usr/local/lib/node_modules/zcatalyst-cli/node_modules/portfinder/lib/portfinder.js:206:25
at /usr/local/lib/node_modules/zcatalyst-cli/node_modules/async/dist/async.js:473:16
at replenish (/usr/local/lib/node_modules/zcatalyst-cli/node_modules/async/dist/async.js:1009:25)
at iterateeCallback (/usr/local/lib/node_modules/zcatalyst-cli/node_modules/async/dist/async.js:998:17)
at /usr/local/lib/node_modules/zcatalyst-cli/node_modules/async/dist/async.js:972:16
at /usr/local/lib/node_modules/zcatalyst-cli/node_modules/portfinder/lib/portfinder.js:163:16
at Server.onListen (/usr/local/lib/node_modules/zcatalyst-cli/node_modules/portfinder/lib/portfinder.js:43:5)
at Object.onceWrapper (node:events:631:28)
at Server.emit (node:events:517:28)
at emitListeningNT (node:net:1845:10)
[debug] [2024-12-11T07:25:52.502Z] : Error Status: 500
[info] [2024-12-11T07:25:52.503Z] :
[error] [2024-12-11T07:25:52.504Z] : Please specify a port out of the above range with the --http option.
[info] [2024-12-11T07:25:52.504Z] :
[debug] [2024-12-11T07:25:52.507Z] : EXEC ENDED with event: Error (User), message: No ports from '4000' to 4020 is free to use as a http port.
[debug] [2024-12-11T07:25:52.507Z] : TOTAL DURATION OF COMMAND EXEC : 37240
<request body omitted>