Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Rocket.Chat update to new version (Example: Rocket.Chat server 0.28.0 update to 0.44.0

Open sophornsna opened this issue 10 years ago • 9 comments

Hi developer,

I am very wonder with update Rocket.Chat to new version. I am using the Rocket.Chat old version by git and I want to update it to new version. I run the meteor to startup Rocket.Chat server.

Thanks,

sophornsna avatar Oct 26 '16 08:10 sophornsna

@sophornsna are you using the mongo database built into meteor or an external database?

geekgonecrazy avatar Oct 26 '16 17:10 geekgonecrazy

I am using the mongo database built into meteor.

sophornsna avatar Oct 27 '16 07:10 sophornsna

Any guide or advice we give will be away from using meteor to run in production.

My advice would be to export your database from the meteor mongo, and install rocket.chat using a recommended method.

To do this first make sure meteor is running. Then run: mongodump -h 127.0.0.1 --port 3001 -d meteor

It'll dump the database in a folder called dump.

Then install mongodb on your system. Please see the mongo section in one of our guides: https://rocket.chat/docs/installation/manual-installation/ubuntu/

Once Mongo is installed restore the data using: mongorestore -d meteor dump/meteor if you want to use a different database, you'd take this as your opportunity to change the database name. Replacing -d meteor with your desired database name.

Then follow the remainder of the guide on setting up Rocket.Chat.

geekgonecrazy avatar Oct 27 '16 19:10 geekgonecrazy

mongodump -h 127.0.0.1 --port 3001 -d meteo

After run this command it create a directory /dump/meteor , but it get blank. Any idea to transfer my old data on ( meteor mongo ) to restore to my Production RocketChat (Mongo external database)?

sophornsna avatar Oct 28 '16 09:10 sophornsna

if you run: meteor mongo does it connect?

geekgonecrazy avatar Oct 28 '16 14:10 geekgonecrazy

When I run meteor mongo it is connect.

sophornsna avatar Oct 31 '16 03:10 sophornsna

@sophornsna try it with out the -d meteor

Like:

mongodump -h 127.0.0.1 --port 3001

See what that gives you

geekgonecrazy avatar Oct 31 '16 18:10 geekgonecrazy

Thank you so much for your support. Now I can backup database from meteor and I can restore it in my production Rocketchat server. Now I use command node main.js instead command meteor to start up rocketchat.

sophornsna avatar Nov 03 '16 04:11 sophornsna

@sophornsna great!

geekgonecrazy avatar Nov 03 '16 04:11 geekgonecrazy