Description
While I’m trying to migrate my rocketchat server from my local computer to a dedicated server i need to export all data, but i’m have some problems. Using this Tutorial I’m receive this error message:
mongodump -h 127.0.0.1 --port 3001 -d meteor -o .
2020-04-23T14:19:54.619-0300 writing meteor.rocketchat_permissions to 2020-04-23T14:19:54.619-0300 writing meteor.rocketchat_cron_history to 2020-04-23T14:19:54.620-0300 writing meteor.rocketchat_message to 2020-04-23T14:19:54.620-0300 writing meteor.rocketchat_settings to 2020-04-23T14:19:54.644-0300 Failed: error writing data for collection
meteor.rocketchat_permissionsto disk: error reading collection: Failed to parse: { find: "rocketchat_permissions", skip: 0, snapshot: true, $readPreference: { mode: "secondaryPreferred" }, $db: "meteor" }. Unrecognized field 'snapshot'.
What I’m missing?
After this the folder meteore is generated and I have many json
and bson
files. I made a scp for my new server and try to run:
mongorestore --db meteor
Any warning non errors, but after restart machine, I’m still have the Setup Wizard page.
My rocketchat.service is:
`
[Unit]
Description=The Rocket.Chat server
After=network.target remote-fs.target nss-lookup.target nginx.target mongod.target
[Service]
ExecStart=/usr/local/bin/node /opt/Rocket.Chat/main.js
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rocketchat
User=rocketchat
Environment=MONGO_URL=mongodb://localhost:27017/rocketchat?replicaSet=rs01 MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01 ROOT_URL=http://inobramchat:3000/ PORT=3000
[Install]
WantedBy=multi-user.target
`
If I change rocketchat for meteore the server doesn’t start, db not found.
Can anyone help me?
Server Setup Information
- Version of Rocket.Chat Server: 3.2.0-develop
- Operating System: Ubuntu 19.10
- Deployment Method: npm/meteore
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version: 12.16.1
- MongoDB Version: 4.0.6