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

    • [Webinar] A hands-on guide to Catalyst Stratus

      Have you used Catalyst Stratus yet? It’s an object storage service that makes it easy to handle large files — whether they're coming from your Catalyst app or other Zoho apps. We’re hosting a live coding session where you’ll build a working prototype
    • Catalyst Video Tutorials!

      Hello everyone! We’ve been brewing something exciting behind the scenes, and we’re thrilled to finally share it with you- Catalyst video tutorials are here! We recognized that videos are the predominant medium for learning and discovery these days, so
    • [Webinar] Catalyst Cloud Browser in Action: PDF & Web Rendering Solutions for Regulated Industries

      Hi everyone, Have you ever struggled with rigid PDF tools or clunky rendering logic in BFSI or healthcare apps? Do your clients struggle to deliver compliant, dynamic, and automated documents — and most are still stuck with brittle, server-heavy PDF generation?
    • Announcing Catalyst Developer Bootcamps in India - Zoho Community

      Hey everyone! We're excited to announce a set of developer bootcamps dedicated to Catalyst! These bootcamps are aimed to empower developers to build, scale, and deploy applications with speed and precision, using Catalyst. Whether you're a newcomer or
    • [Webinar] Upgrade Retail Experiences with Serverless & AI

      Ever wondered if you could build lightning-fast, intelligent retail solutions and experiences without touching infrastructure? Join our upcoming live session to explore how you can combine the agility of serverless with the power of large language models

      Catalyst Community