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

    • Introducing Catalyst 3.0: The agent-ready full-stack cloud!

      Hi everyone! Catalyst 3.0 is here, bringing a major shift in how you can build and ship applications on Catalyst. With MCP connectors, agent skills, native agent plugins, a non-interactive CLI, zero egress, and 30+ services unified on one platform, Catalyst
    • [Webinar] Build smarter HR - Payroll Automation

      If your HR and payroll teams are still relying on manual exports, spreadsheet reconciliations, or constant back-and-forth coordination to keep employee data aligned, this session is for you. We’re hosting a live webinar featuring Kyle Ferrara , CTO of
    • [Webinar] How Raptee.HV accelerates its EV platform

      Curious about how EV platforms work behind the scenes? What does it actually take to run an EV platform from onboarding users to managing connected vehicles and deploying updates seamlessly? In this session, Raptee.HV shares how their platform is built
    • [Webinar] Deploy Docker apps with AppSail's custom runtime | Feb. 19

      Hi everyone, Join us on February 19, 2026 at 8–9 PM IST for a live Catalyst webinar demonstrating how to deploy OCI-compliant Docker images with AppSail's custom runtime. You’ll learn how to: Package your apps as Docker containers Deploy via CLI or connect
    • 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 Community