Failed to restore RocketChat server with Snaps

Hello,
I am trying to migrate a Rocket.Chat installation to another server.
The two installations are in Ubuntu Servers created with Snaps.
I did the backup but when I restore on the other server the error below is displayed.

Relevant logs:

root@rc-virtual-machine:~# snap run rocketchat-server.restoredb /var/snap/rocketchat-server/common/rocketchat_backup_20221120.0902.tar.gz
*** ATTENTION ***

  • Your current database WILL BE DROPPED prior to the restore!
  • Do you want to continue?
  1. Yes
  2. No
    #? 1
    [] Extracting backup file…
    [
    ] Restoring data…
    [!] Failed to execute mongorestore from /var/snap/rocketchat-server/common/restore/dump/parties!
    [*] Check /var/snap/rocketchat-server/common/restore/restore_20230123.2228.log for details.
    [-] Restore aborted!

***** restore_20230123.2228.log *****

tail -f /var/snap/rocketchat-server/common/restore/restore_20230124.0030.log
2023-01-24T00:49:22.240+0530
2023-01-24T00:49:23.393+0530 [###…] parties.rocketchat_oembed_cache 492MB/3.49GB (13.8%)
2023-01-24T00:49:23.394+0530 [##################…] parties.rocketchat_statistics 354MB/463MB (76.6%)
2023-01-24T00:49:23.394+0530 […] parties.rocketchat_uploads.chunks 763MB/19.0GB (3.9%)
2023-01-24T00:49:23.394+0530 [#…] parties.rocketchat_message 75.5MB/1.23GB (6.0%)
2023-01-24T00:49:23.394+0530
2023-01-24T00:49:24.180+0530 [#…] parties.rocketchat_message 75.5MB/1.23GB (6.0%)
2023-01-24T00:49:24.295+0530 finished restoring parties.rocketchat_message (214000 documents, 0 failures)
2023-01-24T00:49:24.305+0530 Failed: parties.rocketchat_message: error restoring from /var/snap/rocketchat-server/common/restore/dump/parties/rocketchat_message.bson: connection() error occured during connection handshake: dial tcp: i/o timeout
2023-01-24T00:49:24.305+0530 214000 document(s) restored successfully. 0 document(s) failed to restore.

Please help me in this.

Hi!

We strongly suggest you to migrate from SNAP to DOCKER, as you will have a more common environment with our community.

This seems a connection issue with mongo =\

Do you have sufficient space? That might trigger the restore to stop and hang… maybe?