Rocket.Chat Development Setup: yarn dsv Stuck for Over 2 Hours on Windows 11 (WSL 2)

I followed the official guide for setting up Rocket.Chat development on Windows, using Ubuntu WSL 2. However, when I run the yarn dsv command to start the development server, it gets stuck after a certain point and has been running for over 2 hours without completing. I’ve attached a screenshot showing where it gets stuck.

Server Setup Information

  • Version of Rocket.Chat Server: (version you are working with)
  • Operating System: Windows 11
  • Deployment Method: Local development setup (following the Windows local setup guide)
  • Number of Running Instances: 1
  • DB Replicaset Oplog: (information if available)
  • NodeJS Version: v20.18.0
  • MongoDB Version: (version if available)
  • Proxy: N/A
  • Firewalls involved: N/A

Any additional Information

I followed the setup instructions in the official Rocket.Chat Windows 10 setup guide:

  1. I opened the Ubuntu WSL 2 shell and updated the distro.
  2. Installed necessary build tools: sudo apt-get install build-essential python3 make g++.
  3. Installed Node.js and verified the version.
  4. Installed Deno with curl -fsSL https://deno.land/install.sh | sh.
  5. Installed Meteor version 3.x.
  6. Installed Yarn with npm install --global yarn.
  7. Forked and cloned the Rocket.Chat repository from GitHub.
  8. Installed dependencies using yarn.

The setup was completed as per the guide, but when I ran yarn dsv to start the server, it gets stuck and doesn’t progress after a certain point.

Here are the versions I have installed:

  • Node.js: v20.18.0
  • npm: 10.8.2
  • Deno: 1.43.6
  • Meteor: 3.0.4
  • Yarn: 4.5.3

I have attached a screenshot showing the point at which yarn dsv is stuck (for 2+ hours).

You can view the setup guide I followed here: https://developer.rocket.chat/v1/docs/windows-10.

Logs

(Attach any logs, error messages, or other information you feel would be helpful for diagnosis.)

turbo 2.2.3

• Packages in scope: @rocket.chat/account-utils, @rocket.chat/agenda, @rocket.chat/api-client, @rocket.chat/apps, @rocket.chat/apps-engine, @rocket.chat/base64, @rocket.chat/cas-validate, @rocket.chat/core-services, @rocket.chat/core-typings, @rocket.chat/cron, @rocket.chat/ddp-client, @rocket.chat/eslint-config, @rocket.chat/favicon, @rocket.chat/freeswitch, @rocket.chat/fuselage-ui-kit, @rocket.chat/gazzodown, @rocket.chat/i18n, @rocket.chat/instance-status, @rocket.chat/jest-presets, @rocket.chat/jwt, @rocket.chat/license, @rocket.chat/livechat, @rocket.chat/log-format, @rocket.chat/logger, @rocket.chat/message-parser, @rocket.chat/meteor, @rocket.chat/mock-providers, @rocket.chat/model-typings, @rocket.chat/models, @rocket.chat/network-broker, @rocket.chat/omnichannel-services, @rocket.chat/password-policies, @rocket.chat/patch-injection, @rocket.chat/pdf-worker, @rocket.chat/peggy-loader, @rocket.chat/poplib, @rocket.chat/presence, @rocket.chat/random, @rocket.chat/rest-typings, @rocket.chat/server-cloud-communication, @rocket.chat/server-fetch, @rocket.chat/sha256, @rocket.chat/tools, @rocket.chat/tracing, @rocket.chat/ui-avatar, @rocket.chat/ui-client, @rocket.chat/ui-composer, @rocket.chat/ui-contexts, @rocket.chat/ui-kit, @rocket.chat/ui-theming, @rocket.chat/ui-video-conf, @rocket.chat/ui-voip, @rocket.chat/web-ui-registration
• Running dsv in 53 packages
• Remote caching disabled
@rocket.chat/server-fetch:build: cache hit, replaying logs dd0e6d9e0c0b850c
@rocket.chat/tracing:build: cache hit, replaying logs ec87d04cc2bb7ccd
@rocket.chat/account-utils:build: cache hit, replaying logs 46de57d88337e0b0
@rocket.chat/account-utils:build:
@rocket.chat/server-fetch:build:
@rocket.chat/tracing:build:
@rocket.chat/log-format:build: cache hit, replaying logs 449aa146c7d37ac7
@rocket.chat/cas-validate:build: cache hit, replaying logs 0e2dbf9d2f3c7d3d
@rocket.chat/favicon:build: cache hit, replaying logs 2ba7bee6451519c3
@rocket.chat/cas-validate:build:
@rocket.chat/log-format:build:
@rocket.chat/favicon:build:
@rocket.chat/logger:build: cache hit, replaying logs 957fa476e55ecb90
@rocket.chat/logger:build:
@rocket.chat/agenda:build: cache hit, replaying logs 60257069389fe125
@rocket.chat/agenda:build:
@rocket.chat/peggy-loader:build: cache hit, replaying logs ce8529dcaf3be2f8
@rocket.chat/peggy-loader:build:
@rocket.chat/jest-presets:build: cache hit, replaying logs 6390c0b7844a5ef5
@rocket.chat/jest-presets:build:
@rocket.chat/password-policies:build: cache hit, replaying logs 8c66d4cdc0745d32
@rocket.chat/ui-composer:build: cache hit, replaying logs e12d1b61046f194b
@rocket.chat/ui-composer:build:
@rocket.chat/password-policies:build:
@rocket.chat/jwt:build: cache hit, replaying logs f9e18114c8958be0
@rocket.chat/base64:build: cache hit, replaying logs e7f83473f885f1ef
@rocket.chat/jwt:build:
@rocket.chat/base64:build:
@rocket.chat/sha256:build: cache hit, replaying logs 0b1d53dd7777602d
@rocket.chat/sha256:build:
@rocket.chat/patch-injection:build: cache hit, replaying logs b2337c9f1683993a
@rocket.chat/patch-injection:build:
@rocket.chat/random:build: cache hit, replaying logs 7f5544be4911c932
@rocket.chat/random:build:
@rocket.chat/tools:build: cache hit, replaying logs 91dc7551ed3b2a90
@rocket.chat/message-parser:build: cache hit, replaying logs d0781a2dab200173
@rocket.chat/tools:build:
@rocket.chat/message-parser:build:
@rocket.chat/message-parser:build: asset messageParser.development.js 588 KiB [emitted] (name: main)
@rocket.chat/message-parser:build: runtime modules 937 bytes 4 modules
@rocket.chat/message-parser:build: modules by path …/…/node_modules/ 168 KiB
@rocket.chat/message-parser:build: modules by path …/…/node_modules/tldts-core/dist/es6/ 20.6 KiB
@rocket.chat/message-parser:build: modules by path …/…/node_modules/tldts-core/dist/es6/src/*.js 18.2 KiB 8 modules
@rocket.chat/message-parser:build: + 2 modules
@rocket.chat/message-parser:build: modules by path …/…/node_modules/tldts/dist/es6/ 147 KiB
@rocket.chat/message-parser:build: …/…/node_modules/tldts/dist/es6/index.js 1.47 KiB [built] [code generated]
@rocket.chat/message-parser:build: …/…/node_modules/tldts/dist/es6/src/suffix-trie.js 2.31 KiB [built] [code generated]
@rocket.chat/message-parser:build: …/…/node_modules/tldts/dist/es6/src/data/trie.js 144 KiB [built] [code generated]
@rocket.chat/message-parser:build: modules by path ./src/ 352 KiB
@rocket.chat/message-parser:build: ./src/index.ts 257 bytes [built] [code generated]
@rocket.chat/message-parser:build: ./src/grammar.pegjs 344 KiB [built] [code generated]
@rocket.chat/message-parser:build: ./src/definitions.ts 11 bytes [built] [code generated]
@rocket.chat/message-parser:build: ./src/guards.ts 176 bytes [built] [code generated]
@rocket.chat/message-parser:build: ./src/utils.ts 6.77 KiB [built] [code generated]
@rocket.chat/message-parser:build: webpack 5.96.1 compiled successfully in 235239 ms
@rocket.chat/message-parser:build:
@rocket.chat/message-parser:build: asset messageParser.production.js 205 KiB [emitted] [minimized] (name: main)
@rocket.chat/message-parser:build: orphan modules 168 KiB [orphan] 15 modules
@rocket.chat/message-parser:build: runtime modules 670 bytes 3 modules
@rocket.chat/message-parser:build: cacheable modules 520 KiB
@rocket.chat/message-parser:build: ./src/index.ts + 1 modules 433 bytes [built] [code generated]
@rocket.chat/message-parser:build: ./src/grammar.pegjs 344 KiB [built] [code generated]
@rocket.chat/message-parser:build: ./src/utils.ts + 13 modules 175 KiB [built] [code generated]
@rocket.chat/message-parser:build: webpack 5.96.1 compiled successfully in 239778 ms
@rocket.chat/message-parser:build:
@rocket.chat/message-parser:build: asset messageParser.mjs 205 KiB [emitted] [javascript module] [minimized] (name: main)
@rocket.chat/message-parser:build: orphan modules 168 KiB [orphan] 15 modules
@rocket.chat/message-parser:build: runtime modules 670 bytes 3 modules
@rocket.chat/message-parser:build: cacheable modules 520 KiB
@rocket.chat/message-parser:build: ./src/index.ts + 1 modules 433 bytes [built] [code generated]
@rocket.chat/message-parser:build: ./src/grammar.pegjs 344 KiB [built] [code generated]
@rocket.chat/message-parser:build: ./src/utils.ts + 13 modules 175 KiB [built] [code generated]
@rocket.chat/message-parser:build: webpack 5.96.1 compiled successfully in 239747 ms
@rocket.chat/message-parser:build:
@rocket.chat/message-parser:build: assets by path *.map 7.58 KiB
@rocket.chat/message-parser:build: asset definitions.d.ts.map 4.77 KiB [emitted]
@rocket.chat/message-parser:build: asset utils.d.ts.map 1.99 KiB [emitted]
@rocket.chat/message-parser:build: asset index.d.ts.map 583 bytes [emitted]
@rocket.chat/message-parser:build: asset guards.d.ts.map 253 bytes [emitted]
@rocket.chat/message-parser:build: assets by path *.ts 7.95 KiB
@rocket.chat/message-parser:build: asset definitions.d.ts 3.88 KiB [emitted]
@rocket.chat/message-parser:build: asset utils.d.ts 3.39 KiB [emitted]
@rocket.chat/message-parser:build: asset index.d.ts 506 bytes [emitted]
@rocket.chat/message-parser:build: asset guards.d.ts 185 bytes [emitted]
@rocket.chat/message-parser:build: asset messageParser.umd.js 206 KiB [emitted] [minimized] (name: main)
@rocket.chat/message-parser:build: orphan modules 168 KiB [orphan] 15 modules
@rocket.chat/message-parser:build: runtime modules 670 bytes 3 modules
@rocket.chat/message-parser:build: cacheable modules 520 KiB
@rocket.chat/message-parser:build: ./src/index.ts + 1 modules 433 bytes [built] [code generated]
@rocket.chat/message-parser:build: ./src/grammar.pegjs 344 KiB [built] [code generated]
@rocket.chat/message-parser:build: ./src/utils.ts + 13 modules 175 KiB [built] [code generated]
@rocket.chat/message-parser:build: webpack 5.96.1 compiled successfully in 239729 ms
@rocket.chat/i18n:build: cache hit, replaying logs 5f68c19a860b44e8
@rocket.chat/i18n:build:
@rocket.chat/ui-kit:build: cache hit, replaying logs cbf477e0f89df1f6
@rocket.chat/ui-kit:build:
@rocket.chat/ui-kit:build: [+] ts-patch installed!
@rocket.chat/ui-kit:build: ----------------------------------------
@rocket.chat/ui-kit:build: Typia Setup Wizard
@rocket.chat/ui-kit:build: ----------------------------------------
@rocket.chat/ui-kit:build: Since TypeScript v5.3 update, “tsc” no more parses JSDoc comments.
@rocket.chat/ui-kit:build:
@rocket.chat/ui-kit:build: Therefore, “typia” revives the JSDoc parsing feature by patching “tsc”.
@rocket.chat/ui-kit:build:
@rocket.chat/ui-kit:build: This is a temporary feature of “typia”, and it would be removed when “ts-patch” being updated.
@rocket.chat/apps-engine:build: cache hit, replaying logs f37a0f448583d1bd
@rocket.chat/apps-engine:build:

@rocket.chat/core-typings:build: cache hit, replaying logs 48752cfee1b117ba
@rocket.chat/core-typings:build:
@rocket.chat/freeswitch:build: cache hit, replaying logs a98b6fcd3d9f7578
@rocket.chat/freeswitch:build:
@rocket.chat/license:build: cache hit, replaying logs a8f1b8711ca4c5c9
@rocket.chat/license:build:
@rocket.chat/pdf-worker:build: cache hit, replaying logs 229be1813d423dd8
@rocket.chat/pdf-worker:build:
@rocket.chat/model-typings:build: cache hit, replaying logs ab58cfde75598ff2
@rocket.chat/model-typings:build:
@rocket.chat/models:build: cache hit, replaying logs 1ecb25a216366209
@rocket.chat/models:build:
@rocket.chat/instance-status:build: cache hit, replaying logs 051439fe81721bdc
@rocket.chat/instance-status:build:
@rocket.chat/cron:build: cache hit, replaying logs b82e5362740dd138
@rocket.chat/cron:build:
@rocket.chat/apps:build: cache hit, replaying logs b3851228736eb5fc
@rocket.chat/apps:build:
@rocket.chat/rest-typings:build: cache hit, replaying logs ea6ec0bd7af9e029
@rocket.chat/rest-typings:build:
@rocket.chat/api-client:build: cache hit, replaying logs 406c6d57044ef0b4
@rocket.chat/api-client:build:
@rocket.chat/ddp-client:build: cache hit, replaying logs 1faaffb5eaa0dd42
@rocket.chat/ddp-client:build:
@rocket.chat/core-services:build: cache hit, replaying logs d154530a4ffa8867
@rocket.chat/core-services:build:
@rocket.chat/presence:build: cache hit, replaying logs 078803373a184e8b
@rocket.chat/network-broker:build: cache hit, replaying logs 9a98973e05a7e07d
@rocket.chat/presence:build:
@rocket.chat/network-broker:build:
@rocket.chat/omnichannel-services:build: cache hit, replaying logs 244a35708df64b76
@rocket.chat/omnichannel-services:build:
@rocket.chat/ui-contexts:build: cache hit, replaying logs b68a0e1f0f9f52f2
@rocket.chat/ui-contexts:build:
@rocket.chat/mock-providers:build: cache hit, replaying logs 710d09394b7395af
@rocket.chat/ui-theming:build: cache hit, replaying logs 5c4aeef16aebfd3d
@rocket.chat/mock-providers:build:
@rocket.chat/ui-theming:build:
@rocket.chat/ui-avatar:build: cache hit, replaying logs d9c9ef8191e35b54
@rocket.chat/ui-avatar:build:
@rocket.chat/ui-video-conf:build: cache hit, replaying logs bb0c3350797139a8
@rocket.chat/ui-video-conf:build:
@rocket.chat/ui-client:build: cache hit, replaying logs 8b19a271a1aa0331
@rocket.chat/ui-client:build:
@rocket.chat/web-ui-registration:build: cache hit, replaying logs 0fdfccfea70c7f6d
@rocket.chat/web-ui-registration:build:
@rocket.chat/gazzodown:build: cache hit, replaying logs 792a936e2ba738e9
@rocket.chat/gazzodown:build:
@rocket.chat/ui-voip:build: cache hit, replaying logs 5bd2ad065bdbd59a
@rocket.chat/ui-voip:build:
@rocket.chat/fuselage-ui-kit:build: cache hit, replaying logs 259c1b07ad3e5d3d
@rocket.chat/fuselage-ui-kit:build:
@rocket.chat/livechat:build: cache hit, replaying logs 6bb8877075f9d467
@rocket.chat/livechat:build:
@rocket.chat/livechat:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
@rocket.chat/livechat:build: This can impact web performance.
@rocket.chat/livechat:build: Assets:
@rocket.chat/livechat:build: 44110.chunk.ff918.js (1.02 MiB)
@rocket.chat/livechat:build: 3889.chunk.9d994.js (648 KiB)
@rocket.chat/livechat:build: 9263.chunk.4e3ef.js (260 KiB)
@rocket.chat/livechat:build: 48624.chunk.d50b6.js (310 KiB)
@rocket.chat/livechat:build: 37003.chunk.4fc59.js (1.22 MiB)
@rocket.chat/livechat:build: 93012.chunk.fffa9.js (982 KiB)
@rocket.chat/livechat:build:
@rocket.chat/livechat:build: webpack compiled with 1 warning
@rocket.chat/livechat:build:
@rocket.chat/livechat:build: webpack compiled successfully
@rocket.chat/meteor:dsv: cache bypass, force executing 974bc8fe7a7d2784
@rocket.chat/meteor:dsv:

@rocket.chat/meteor:dsv: > @rocket.chat/meteor@7.2.0-develop dev
@rocket.chat/meteor:dsv: > NODE_OPTIONS=“–trace-warnings” meteor --exclude-archs “web.browser.legacy, web.cordova”
@rocket.chat/meteor:dsv:
@rocket.chat/meteor:dsv: [[[[[ /mnt/d/opensource/rocket.chat/apps/meteor ]]]]]
@rocket.chat/meteor:dsv:
@rocket.chat/meteor:dsv: => Started proxy.
@rocket.chat/meteor:dsv: => Started MongoDB.

It’s not get stuck it just not complete yet you have to wait for some time as mentioned in Docs it will take 10-15 min to run server completely at first.

After waiting for almost 3 hours I cancel the command with ctrl + c. I think it’s not working
My sytem has sufficient ram :16 Gb
And sufficient free storage about 200 Gb SSD

The docs for W10 are not quite right.

Read the ubuntu/linux ones. You need deno.

Read all this, including the links.

yeah i use the suggested deno version while doing the setup but it still stucks for long hours after which i lose my patience

If you want to be a developer you are going to have go and grab yourself a huge bag of patience. You will need a lot if you want a career in software.

Most importantly is triaging an issue.

Quite simply it should not 3 hours to complete - more like 10-20 minutes depending on your hardware.

As lots of people have managed to do this there are only two scenarios here.

  1. Your hardware/basic OS environment isn’t correct
  2. You have got the instructions wrong

I think it is likely you are at 2.

So I just sparked up my box, and did the following from scratch:

git clone https://github.com/RocketChat/Rocket.Chat.git
cd Rocket.Chat
sudo deno upgrade --version 1.43.6 (I had deno previously installed)
curl https://install.meteor.com/?release=3.0.4 | sh
nvm install 20.18.0
npm install --global yarn
yarn 
yarn dsv

Yarn took a couple of minutes, yarn dsv took between 5 and 10.

Job done.

I have been continuously trying for the past 4 days with 5 unsuccessful attempts, investing 15-20 hours of effort. I hope it will work this time!

Additionally, I found a log file at D:\Rocket.Chat\.turbo\daemon, and I see the following common log every time I execute the yarn dsv command:

2024-12-16T12:50:19.880391Z  WARN turborepo_filewatch: failed to wait for initial filesystem cookie: filewatching failed to start: waiting for cookie timed out: deadline has elapsed

It’s what happens when you do the same thing wrong everytime.

You will learn to stop, think, and reassess before wasting lots of your time. Everyone does it.

I have said it is either 1. or 2. above.

Clearly you have not told us everything because we know it works easily.

I literally tested it earlier and it took minutes. I know there are lots who run it on WSL.

(Personally) Your biggest hurdle is your OS. I haven’t touched Windoze in over 15 years. I’d never recommend it for development - it’s why they crowbarred Linux into Windows.

Using Linux for this is much easier.

I know you are convinced you have done it correctly and it must be a problem with Rocket, but I can assure the issue is with your setup, somehow.

Something you have not told us, or something you skipped, or didn’t think mattered.

Go back, clear it all out, and start afresh.
Follow the steps, write down in your own notes EXACTLY what you do and what happens, and show us.

Post long logs elsewhere eg pastebin.

@reetp i don’t know what i am doing wrong again and again
yesterday i do everything from beginning but it has no effect
i am sharing the screenshot for timestamps and full logs in gdrive link
as they are excedding the msg limit so i copy them in text file and save in gdrive



Bro I also faced the same issue and got to know that I was cloning the repo in a Windows drive based directory basically the C drive instead I had to do it in the ubuntu/root directory to reach where you have to just run (cd ~) in wsl 2 terminal

post that use yarn and yarn dsv and process will be completed in bare 10 mins

before doing this It was taking 3 4 hrs and not starting as well

priyanshu@LAPTOP-OVV3993F:~$ cd ~
priyanshu@LAPTOP-OVV3993F:~$ pwd
/home/priyanshu
priyanshu@LAPTOP-OVV3993F:~$

is i have to clone the rocket chat here to avoid the issue’s

Yes. If you clone you should get a rocket.chat dir.

cd in there and start.

(All the perils of using Windows for development)

true i guess this will be the last time I will use windows

thinking of dual booting soon

I would… :rofl:

Takes a bit of time to get used to it, and you need to find a distro you are comfortable with, but so much easier for a lot of dev.