The Great Open Source Debate with Elastic, Gluu and GitHub 🎤 Oct 26

Fail to Start RocketChat Devl Server

I try to start the Rocket Server for development:
meteor npm start
And I keep getting these messages, and then back to the Prompt. Nothing happen.
Anyone can help???

Rocket.Chat@4.1.0-develop start /home/team/Rocket.Chat
meteor

[[[[[ ~/Rocket.Chat ]]]]]

=> Started proxy.
=> Meteor 2.4 is available. Update this project with ‘meteor update’.
=> Started MongoDB.
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https:/github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https:/github.com/browserslist/browserslist#browsers-data-updating

Follow this:

Thank you for your advice. Yes, actually I follow exactly from the Link you shared. But the server failed to be started. And I see the following messages:

Rocket.Chat@4.1.0-develop start /home/team/Rocket.Chat
meteor

[[[[[ ~/Rocket.Chat ]]]]]

=> Started proxy.
=> Meteor 2.4 is available. Update this project with ‘meteor update’.
=> Started MongoDB.
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https:/github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https:/github.com/browserslist/browserslist#browsers-data-updating
[team@exabytes-92643813 Rocket.Chat]$

Go back a few steps.

Please advise what OS you are on.

What hardware are you using? How much RAM? You can barely build it with 8Gb RAM - you really need 12-16Gb

Please list the exact steps you took (look at your history).

I am using a CentOS 7 Server with 8GB RAM. If this is the root cause, then any advice, what and how can I deploy the Development Server so that I can move on with my development work? Will Gitpod be the last resort?

I am using a MacBook, the problem is, MacOS development host is still under development.

Actually, I want to build a Mobile App (Rocket Chat). Any better option?

Your advice is much appreciated.

Thanks.

I retry, ‘meteor npm install’, it is fine. Then when I run ‘meteor npm start’, this time I see different errors:

Error: spawn ENOMEM
at ChildProcess.spawn (internal/child_process.js:408:11)
at spawn (child_process.js:553:9)
at execFile (child_process.js:237:17)
at /home/team/.meteor/packages/meteor-tool/.2.2.0.vi3wzl.eird++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/fs/tools/fs/files.ts:141:7
at new Promise ()
at Object.findGitCommitHash (/home/team/.meteor/packages/meteor-tool/.2.2.0.vi3wzl.eird++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/fs/tools/fs/files.ts:138:10)
at /tools/isobuild/bundler.js:2981:66
at /tools/isobuild/bundler.js:3401:22
at Object.capture (/tools/utils/buildmessage.js:283:5)
at bundle (/tools/isobuild/bundler.js:3214:31)
at /tools/isobuild/bundler.js:3157:32
at Slot.withValue (/home/team/.meteor/packages/meteor-tool/.2.2.0.vi3wzl.eird++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/@wry/context/lib/context.js:73:29)
at Object.withCache (/home/team/.meteor/packages/meteor-tool/.2.2.0.vi3wzl.eird++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/fs/tools/fs/files.ts:1663:39)
at Object.bundle (/tools/isobuild/bundler.js:3157:16)
at /tools/runners/run-app.js:581:24
at Function.run (/home/team/.meteor/packages/meteor-tool/.2.2.0.vi3wzl.eird++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/tool-env/tools/tool-env/profile.ts:289:14)
at bundleApp (/tools/runners/run-app.js:580:34)
at AppRunner._runOnce (/tools/runners/run-app.js:627:35)
at AppRunner._fiber (/tools/runners/run-app.js:948:28)
at /tools/runners/run-app.js:410:12 {
errno: ‘ENOMEM’,
code: ‘ENOMEM’,
syscall: ‘spawn’
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Rocket.Chat@4.1.0-develop start: meteor
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Rocket.Chat@4.1.0-develop start script.

Any idea? Any help is much appreciated.

Thanks.

The process on mac would be similar to linux. Unless you’re using an m1 mac. Because meteor doesn’t support arm architecture yet. But maybe you can use rosetta in that case? I’m not aware of how that’d work.

In the meantime if it is an intel mac - here are the seteps to follow,

  1. Install meteor 2.2 (don’t use npm i meteor -g the newest official method because that’ll not install version 2.2, and 2.2 install with npm doesn’t work, in my experience. So use the old bash script method)
  2. Close the rocketchat repository
  3. Run meteor npm i
  4. Run meteor npm start

The only place you might come into one or two issues would be on the package installation step, basically dependency issues. Since I don’t have a mac or never attempted to start a development server on such, I can’t say what those errors would be. But they should be easy enough to resolve.

If you face any issues in the meantime, about the dependencies for example, feel free to come back here :slight_smile:

Cc: @dudanogueira