Getting error while on catalyst serve

Getting error while on catalyst serve

Team, Getting below error while running catalyst serve command on my local machine, even though the mentioned ports are free. Kindly assist on this!

Env: Linux

Stack: React, Nodejs

Command:
 catalyst serve --debug advancedio:userActions:3005 --http 3006

Error log:

[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] :
[error] [2024-12-11T07:25:52.504Z] : REF: https://www.zoho.com/catalyst/help/cli-serve.html#Options
[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
[debug] [2024-12-11T07:25:52.545Z] : >>>> HTTP REQUEST : POST https://api.catalyst.zoho.in/baas/v1/cli/logs
<request body omitted>


 

    • Topic Participants

    • admin

    • Announcements

    • Important Announcements in Support for Catalyst Features

      Hello Catalyst Users, This announcement is to bring to your notice some of the recent updates in our support for various Catalyst components, to ensure that your existing Catalyst applications function properly. You can continue to build robust applications
    • Introducing Catalyst 2.0, the simplest cloud-based pro-code development platform.

      Dear Catalyst Community, We are beyond thrilled to present you Catalyst 2.0—the new-age, pro-code development platform that redefines the way you build, deploy, and scale apps. Catalyst 2.0 is not a mere upgrade, but a significant leap into the future
    • Set budgets to optionally disable your Catalyst production environment

      Hello all,    We are pleased to inform you that you can now configure the automatic disabling of a project's production environment upon reaching a specified budget's threshold. Budget alerts in Catalyst facilitate setting usage limits in amounts or Catalyst
    • #CatalystServerless Hackathon 2022

      We are pleased to announce #CatalystServerless Hackathon with prizes worth $5000 up for grabs. Create a working prototype aimed to solve a critical business issue using Catalyst and stand a chance to win exciting prizes. The Hackathon will happen in 3
    • Share your interest to participate in the #CatalystServerless Blogathon

      Hi, we are working on announcing the next edition of the #CatalystServerless Blogathon. Please fill up this form to stay posted on all updates related to the Blogathon. https://zfrmz.com/JN9ChxPU9JQpPgB1vRp8

      Catalyst Community