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

    • Catalyst backs Vite.js!

      Hi everyone, We're happy to support the open-source ecosystem that powers modern web development! If you’re building apps with Vite, Catalyst Slate is your go-to platform to deploy blazing-fast frontend apps with ease, scalability, and zero infrastructure
    • Catalyst QuickML 2025 Year In Review

      Hello everyone 👋 It’s been an exciting year for Catalyst QuickML. In 2025, as the Catalyst platform continued to expand its capabilities, QuickML focused on strengthening reliability, developer control, and operational readiness across the AI lifecycle.
    • Introducing GenAI Features in Catalyst QuickML

      Hi everyone, Building machine learning models can often feel slow and complex, especially when teams wait for perfect certainty before testing their ideas. But in reality, faster progress comes from early experimentation—trying out models quickly, learning
    • Announcing Deprecation of Catalyst File Store, Event Listeners, and Cron

      We would like to announce that the following Catalyst features are now in their deprecation phase and will reach End Of Life (EOL) on 30 April, 2026- Catalyst File Store Catalyst Event Listeners Catalyst Cron New users who sign up for Catalyst from today
    • React Nexus 2025 Recap: Catalyst Slate in Action!

      Hey Catalyst Community! We recently attended the React Nexus 2025 conference, an exciting gathering for frontend enthusiasts and React developers. Our team had an incredible time presenting and conducting a hands-on workshop on Catalyst Slate, our streamlined

      Catalyst Community