[Rocket.ChatVer4.7.4] Error with i18n when run Rocket.Chat dev

Description

I set-up Rocket.Chat dev environment on Windows 10. It worked normally on Rocket. ChatVer4.6.4. But on Rocket.ChatVer4.7.4, I got an error at the very first time ran the dev. It seems the server can’t load “en.i18n.json”.

Thank you for checking this issue.

Server Setup Information

  • Version of Rocket.Chat Server: 4.7.4
  • Operating System: Ubuntu 20.04
  • Deployment Method: WSL on Window 10
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • NodeJS Version: 14.16.3
  • MongoDB Version: 4.4.4
  • Proxy:
  • Firewalls involved:

Any additional Information

Hi!

You mean a server for staging/testing, right?

Or are you running it from source, meaning, the develop branch from our git repository?

If you want to develop, the best practice is to fork the repo, and use the tags to make version specific tests.

Let me know more about your intents so I can better help you :slight_smile:

THanks!

@dudanogueira
Thank you for your reply.
My trouble is from compressed release version. It works normally on develop, 4.7.4 branch.

Ok.

For reference, we are talking about this file here
https://github.com/RocketChat/Rocket.Chat/archive/refs/tags/4.7.4.tar.gz

And the error can be tracked to this line:

Can you give us the steps you are doing, also the environment you are?

Are you running it from Windows/WSL or Ubuntu?

1 Like

@gacontuyenchien1 hi, please can you leave the exact steps you followed here? Also do a manual check in apps/meteor/private/i18n/en.i18n.json file.

1 Like

@dudanogueira
Thank all of you for taking your time for me.
I used WSL2 in this case. My steps is all from Windows 10 - Rocket.Chat Developer
It works normally when I checkout 4.7.4 branch from Rocket.Chat
But when I copy all of file except .git to another folder or I download from https://github.com/RocketChat/Rocket.Chat/archive/refs/tags/4.7.4.tar.gz. It all failed like my above representation.

@debdut.chakraborty did you guy try to run dev environment with this? https://github.com/RocketChat/Rocket.Chat/archive/refs/tags/4.7.4.tar.gz
I found that the error version I used didn’t build correctlly. At least, it did not build folder “\apps\meteor.meteor\local\build\programs\server\assets\app\i18n” that contain json i18n json file, it only had i18n file that contain only this line “../packages/rocketchat-i18n/i18n” instead.

Reason:

I extracted file using Windows 10 instead of Ubuntu-20.04.
Specifically, symbolic link file ( virtual folder, ~ shortcut in Window) did’nt work when I extracted file on Windows 10.

Solution:

Do things on Ubuntu-20.04. Dev on Windows10-WSL2-Ubuntu-20.04 later.

1 Like

Oh!

Glad you shared. This was going to be a tricky one.

Thanks!

1 Like