...
Hello, running two computers with Ubuntu and wanted to transfer the databases from one to the other as we are upgrading the system here. The dbpath on both was /lib/var/mongodb, I changed the permissions on the files to allow them to be copied, moved them to a hard drive and copied them onto the new computer in the same directory. I also removed existing files from that directory (not sure if that could be the problem, I backed up most). When I first dropped the files in I chose not to clear out existing files or overwrite duplicate files, mongo ran after but I was unable to see the databases I just added. So then I cleared all local files in /lib/var/mongodb and replaced with the files from the other computer. For some reason the default dbpath changed even though it still calls out the expected in the config file(an annoyance but not the problem here). Running mongodb with the appropriate path resulted in issues, but it suggested the repair option so I ran that but that failed (included below the mongod with dbpath command) Here is a printout from running mongod with the dbpath. computer@rack1:/var/lib/mongodb$ mongod --dbpath /var/lib/mongodb 2020-06-08T22:47:13.901-0400 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none' 2020-06-08T22:47:13.904-0400 I CONTROL [initandlisten] MongoDB starting : pid=12833 port=27017 dbpath=/var/lib/mongodb 64-bit host=rack1 2020-06-08T22:47:13.904-0400 I CONTROL [initandlisten] db version v4.0.4 2020-06-08T22:47:13.904-0400 I CONTROL [initandlisten] git version: f288a3bdf201007f3693c58e140056adf8b04839 2020-06-08T22:47:13.904-0400 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1 11 Sep 2018 2020-06-08T22:47:13.904-0400 I CONTROL [initandlisten] allocator: tcmalloc 2020-06-08T22:47:13.904-0400 I CONTROL [initandlisten] modules: none 2020-06-08T22:47:13.904-0400 I CONTROL [initandlisten] build environment: 2020-06-08T22:47:13.904-0400 I CONTROL [initandlisten] distmod: ubuntu1804 2020-06-08T22:47:13.904-0400 I CONTROL [initandlisten] distarch: x86_64 2020-06-08T22:47:13.904-0400 I CONTROL [initandlisten] target_arch: x86_64 2020-06-08T22:47:13.904-0400 I CONTROL [initandlisten] options: { storage: { dbPath: "/var/lib/mongodb" } } 2020-06-08T22:47:13.905-0400 W STORAGE [initandlisten] Detected unclean shutdown - /var/lib/mongodb/mongod.lock is not empty. 2020-06-08T22:47:13.905-0400 I STORAGE [initandlisten] Detected data files in /var/lib/mongodb created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'. 2020-06-08T22:47:13.905-0400 W STORAGE [initandlisten] Recovering data from the last clean checkpoint. 2020-06-08T22:47:13.905-0400 I STORAGE [initandlisten] 2020-06-08T22:47:13.905-0400 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine 2020-06-08T22:47:13.905-0400 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem 2020-06-08T22:47:13.905-0400 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=31596M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress), 2020-06-08T22:47:14.267-0400 E STORAGE [initandlisten] WiredTiger error (-31802) [1591670834:267316][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 588: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error Raw: [1591670834:267316][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 588: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error 2020-06-08T22:47:14.267-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591670834:267360][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 595: WiredTiger has failed to open its metadata Raw: [1591670834:267360][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 595: WiredTiger has failed to open its metadata 2020-06-08T22:47:14.267-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591670834:267366][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 598: This may be due to the database files being encrypted, being from an older version or due to corruption on disk Raw: [1591670834:267366][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 598: This may be due to the database files being encrypted, being from an older version or due to corruption on disk 2020-06-08T22:47:14.267-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591670834:267372][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 601: You should confirm that you have opened the database with the correct options including all encryption and compression options Raw: [1591670834:267372][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 601: You should confirm that you have opened the database with the correct options including all encryption and compression options 2020-06-08T22:47:14.269-0400 E STORAGE [initandlisten] WiredTiger error (-31802) [1591670834:269748][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 588: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error Raw: [1591670834:269748][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 588: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error 2020-06-08T22:47:14.269-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591670834:269792][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 595: WiredTiger has failed to open its metadata Raw: [1591670834:269792][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 595: WiredTiger has failed to open its metadata 2020-06-08T22:47:14.269-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591670834:269798][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 598: This may be due to the database files being encrypted, being from an older version or due to corruption on disk Raw: [1591670834:269798][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 598: This may be due to the database files being encrypted, being from an older version or due to corruption on disk 2020-06-08T22:47:14.269-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591670834:269803][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 601: You should confirm that you have opened the database with the correct options including all encryption and compression options Raw: [1591670834:269803][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 601: You should confirm that you have opened the database with the correct options including all encryption and compression options 2020-06-08T22:47:14.271-0400 E STORAGE [initandlisten] WiredTiger error (-31802) [1591670834:271815][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 588: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error Raw: [1591670834:271815][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 588: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error 2020-06-08T22:47:14.271-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591670834:271843][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 595: WiredTiger has failed to open its metadata Raw: [1591670834:271843][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 595: WiredTiger has failed to open its metadata 2020-06-08T22:47:14.271-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591670834:271850][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 598: This may be due to the database files being encrypted, being from an older version or due to corruption on disk Raw: [1591670834:271850][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 598: This may be due to the database files being encrypted, being from an older version or due to corruption on disk 2020-06-08T22:47:14.271-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591670834:271856][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 601: You should confirm that you have opened the database with the correct options including all encryption and compression options Raw: [1591670834:271856][12833:0x7fa083523040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 601: You should confirm that you have opened the database with the correct options including all encryption and compression options 2020-06-08T22:47:14.272-0400 W STORAGE [initandlisten] Failed to start up WiredTiger under any compatibility version. 2020-06-08T22:47:14.272-0400 W STORAGE [initandlisten] WiredTiger metadata corruption detected 2020-06-08T22:47:14.272-0400 F STORAGE [initandlisten] Please read the documentation for starting MongoDB with --repair here: http://dochub.mongodb.org/core/repair 2020-06-08T22:47:14.272-0400 F - [initandlisten] Fatal Assertion 50944 at src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 629 2020-06-08T22:47:14.272-0400 F - [initandlisten] ***aborting after fassert() failure Here is the result of repair mongod --dbpath /var/lib/mongodb --repair 2020-06-08T23:09:57.225-0400 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none' 2020-06-08T23:09:57.229-0400 I CONTROL [initandlisten] MongoDB starting : pid=27480 port=27017 dbpath=/var/lib/mongodb 64-bit host=rack1 2020-06-08T23:09:57.229-0400 I CONTROL [initandlisten] db version v4.0.4 2020-06-08T23:09:57.229-0400 I CONTROL [initandlisten] git version: f288a3bdf201007f3693c58e140056adf8b04839 2020-06-08T23:09:57.229-0400 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1 11 Sep 2018 2020-06-08T23:09:57.229-0400 I CONTROL [initandlisten] allocator: tcmalloc 2020-06-08T23:09:57.229-0400 I CONTROL [initandlisten] modules: none 2020-06-08T23:09:57.229-0400 I CONTROL [initandlisten] build environment: 2020-06-08T23:09:57.229-0400 I CONTROL [initandlisten] distmod: ubuntu1804 2020-06-08T23:09:57.229-0400 I CONTROL [initandlisten] distarch: x86_64 2020-06-08T23:09:57.229-0400 I CONTROL [initandlisten] target_arch: x86_64 2020-06-08T23:09:57.229-0400 I CONTROL [initandlisten] options: { repair: true, storage: { dbPath: "/var/lib/mongodb" } } 2020-06-08T23:09:57.229-0400 F STORAGE [initandlisten] Failed to write to file /var/lib/mongodb/_repair_incomplete: Unknown error 2020-06-08T23:09:57.229-0400 F - [initandlisten] Fatal Assertion 50920 at src/mongo/db/storage/storage_repair_observer.cpp 116 2020-06-08T23:09:57.229-0400 F - [initandlisten] ***aborting after fassert() failure After that didn't work I tried sudo sudo mongod --dbpath /var/lib/mongodb --repair 2020-06-08T23:10:41.417-0400 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none' 2020-06-08T23:10:41.421-0400 I CONTROL [initandlisten] MongoDB starting : pid=29001 port=27017 dbpath=/var/lib/mongodb 64-bit host=rack1 2020-06-08T23:10:41.421-0400 I CONTROL [initandlisten] db version v4.0.4 2020-06-08T23:10:41.421-0400 I CONTROL [initandlisten] git version: f288a3bdf201007f3693c58e140056adf8b04839 2020-06-08T23:10:41.421-0400 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1 11 Sep 2018 2020-06-08T23:10:41.421-0400 I CONTROL [initandlisten] allocator: tcmalloc 2020-06-08T23:10:41.421-0400 I CONTROL [initandlisten] modules: none 2020-06-08T23:10:41.421-0400 I CONTROL [initandlisten] build environment: 2020-06-08T23:10:41.421-0400 I CONTROL [initandlisten] distmod: ubuntu1804 2020-06-08T23:10:41.421-0400 I CONTROL [initandlisten] distarch: x86_64 2020-06-08T23:10:41.421-0400 I CONTROL [initandlisten] target_arch: x86_64 2020-06-08T23:10:41.421-0400 I CONTROL [initandlisten] options: { repair: true, storage: { dbPath: "/var/lib/mongodb" } } 2020-06-08T23:10:41.430-0400 I STORAGE [initandlisten] Detected data files in /var/lib/mongodb created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'. 2020-06-08T23:10:41.430-0400 I STORAGE [initandlisten] 2020-06-08T23:10:41.430-0400 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine 2020-06-08T23:10:41.430-0400 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem 2020-06-08T23:10:41.430-0400 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=31596M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress), 2020-06-08T23:10:41.801-0400 E STORAGE [initandlisten] WiredTiger error (-31802) [1591672241:801057][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 588: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error Raw: [1591672241:801057][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 588: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error 2020-06-08T23:10:41.801-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591672241:801089][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 595: WiredTiger has failed to open its metadata Raw: [1591672241:801089][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 595: WiredTiger has failed to open its metadata 2020-06-08T23:10:41.801-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591672241:801095][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 598: This may be due to the database files being encrypted, being from an older version or due to corruption on disk Raw: [1591672241:801095][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 598: This may be due to the database files being encrypted, being from an older version or due to corruption on disk 2020-06-08T23:10:41.801-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591672241:801101][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 601: You should confirm that you have opened the database with the correct options including all encryption and compression options Raw: [1591672241:801101][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 601: You should confirm that you have opened the database with the correct options including all encryption and compression options 2020-06-08T23:10:41.803-0400 E STORAGE [initandlisten] WiredTiger error (-31802) [1591672241:803404][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 588: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error Raw: [1591672241:803404][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 588: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error 2020-06-08T23:10:41.803-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591672241:803433][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 595: WiredTiger has failed to open its metadata Raw: [1591672241:803433][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 595: WiredTiger has failed to open its metadata 2020-06-08T23:10:41.803-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591672241:803442][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 598: This may be due to the database files being encrypted, being from an older version or due to corruption on disk Raw: [1591672241:803442][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 598: This may be due to the database files being encrypted, being from an older version or due to corruption on disk 2020-06-08T23:10:41.803-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591672241:803450][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 601: You should confirm that you have opened the database with the correct options including all encryption and compression options Raw: [1591672241:803450][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 601: You should confirm that you have opened the database with the correct options including all encryption and compression options 2020-06-08T23:10:41.805-0400 E STORAGE [initandlisten] WiredTiger error (-31802) [1591672241:805803][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 588: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error Raw: [1591672241:805803][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 588: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error 2020-06-08T23:10:41.805-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591672241:805834][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 595: WiredTiger has failed to open its metadata Raw: [1591672241:805834][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 595: WiredTiger has failed to open its metadata 2020-06-08T23:10:41.805-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591672241:805843][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 598: This may be due to the database files being encrypted, being from an older version or due to corruption on disk Raw: [1591672241:805843][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 598: This may be due to the database files being encrypted, being from an older version or due to corruption on disk 2020-06-08T23:10:41.805-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591672241:805851][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 601: You should confirm that you have opened the database with the correct options including all encryption and compression options Raw: [1591672241:805851][29001:0x7f3a7db04040], file:WiredTiger.wt, connection: __wt_btree_tree_open, 601: You should confirm that you have opened the database with the correct options including all encryption and compression options 2020-06-08T23:10:41.806-0400 W STORAGE [initandlisten] Failed to start up WiredTiger under any compatibility version. 2020-06-08T23:10:41.806-0400 W STORAGE [initandlisten] WiredTiger metadata corruption detected 2020-06-08T23:10:41.806-0400 W STORAGE [initandlisten] Attempting to salvage WiredTiger metadata 2020-06-08T23:10:41.851-0400 I STORAGE [initandlisten] WiredTiger message [1591672241:851608][29001:0x7f3a7db04040], txn-recover: Main recovery loop: starting at 1735/101888 to 4294967295/2147483647 2020-06-08T23:10:41.852-0400 E STORAGE [initandlisten] WiredTiger error (-31803) [1591672241:852048][29001:0x7f3a7db04040], txn-recover: __wt_log_scan, 2304: __wt_log_scan LSN 1735/101888 larger than biggest log file 2: WT_NOTFOUND: item not found Raw: [1591672241:852048][29001:0x7f3a7db04040], txn-recover: __wt_log_scan, 2304: __wt_log_scan LSN 1735/101888 larger than biggest log file 2: WT_NOTFOUND: item not found 2020-06-08T23:10:41.852-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591672241:852065][29001:0x7f3a7db04040], txn-recover: __wt_log_scan, 2628: WiredTiger is unable to read the recovery log. Raw: [1591672241:852065][29001:0x7f3a7db04040], txn-recover: __wt_log_scan, 2628: WiredTiger is unable to read the recovery log. 2020-06-08T23:10:41.852-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591672241:852075][29001:0x7f3a7db04040], txn-recover: __wt_log_scan, 2631: This may be due to the log files being encrypted, being from an older version or due to corruption on disk Raw: [1591672241:852075][29001:0x7f3a7db04040], txn-recover: __wt_log_scan, 2631: This may be due to the log files being encrypted, being from an older version or due to corruption on disk 2020-06-08T23:10:41.852-0400 E STORAGE [initandlisten] WiredTiger error (0) [1591672241:852085][29001:0x7f3a7db04040], txn-recover: __wt_log_scan, 2634: You should confirm that you have opened the database with the correct options including all encryption and compression options Raw: [1591672241:852085][29001:0x7f3a7db04040], txn-recover: __wt_log_scan, 2634: You should confirm that you have opened the database with the correct options including all encryption and compression options 2020-06-08T23:10:41.852-0400 I STORAGE [initandlisten] WiredTiger message [1591672241:852096][29001:0x7f3a7db04040], txn-recover: Set global recovery timestamp: 5edef46b00000001 2020-06-08T23:10:41.906-0400 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(1591669867, 1) 2020-06-08T23:10:41.906-0400 I STORAGE [initandlisten] Triggering the first stable checkpoint. Initial Data: Timestamp(1591669867, 1) PrevStable: Timestamp(0, 0) CurrStable: Timestamp(1591669867, 1) 2020-06-08T23:10:41.907-0400 I STORAGE [initandlisten] Repairing size cache 2020-06-08T23:10:41.907-0400 E STORAGE [initandlisten] WiredTiger error (-31802) [1591672241:907339][29001:0x7f3a7db04040], file:sizeStorer.wt, WT_SESSION.verify: __posix_file_read, 449: /var/lib/mongodb/sizeStorer.wt: handle-read: pread: failed to read 4096 bytes at offset 32768: WT_ERROR: non-specific WiredTiger error Raw: [1591672241:907339][29001:0x7f3a7db04040], file:sizeStorer.wt, WT_SESSION.verify: __posix_file_read, 449: /var/lib/mongodb/sizeStorer.wt: handle-read: pread: failed to read 4096 bytes at offset 32768: WT_ERROR: non-specific WiredTiger error 2020-06-08T23:10:41.907-0400 I STORAGE [initandlisten] Verify failed on uri table:sizeStorer. Running a salvage operation. 2020-06-08T23:10:41.907-0400 F - [initandlisten] Fatal assertion 28577 DataModifiedByRepair: Salvaged data for table:sizeStorer at src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 555 2020-06-08T23:10:41.907-0400 F - [initandlisten] ***aborting after fassert() failure
JIRAUSER1257066 commented on Fri, 20 Aug 2021 21:02:36 +0000: Hi ian.wilson@berkshiregrey.com, We haven’t heard back from you for some time, so I’m going to close this ticket. If this is still an issue for you, please provide additional information and we will reopen the ticket. Best, Edwin JIRAUSER1257066 commented on Thu, 12 Aug 2021 15:36:31 +0000: Hi ian.wilson@berkshiregrey.com, We still need additional information to diagnose the problem. If this is still an issue for you, would you please let us know if you stopped all writes before you copied the contents to the other computer? Best, Edwin dmitry.agranat commented on Tue, 9 Jun 2020 06:42:20 +0000: Hi ian.wilson@berkshiregrey.com, before you copy files in your step #2, did you stop all writes as explained in our documentation? JIRAUSER1253275 commented on Tue, 9 Jun 2020 04:02:35 +0000: I replaced the files with the original files + the ones I added and I see some existing data in databases but nothing in the databases I was hoping to transfer over. I am ok with losing the data on the newer computer, just want to save the data from the older computer
1. Have mongo set up on two computers, one of which having databases to copy over 2. copy contents of old computer to flash drive modifying permissions if needed 3. delete all files in the dbpath directory (/var/lib/mongodb in this case) 4. Copy over all copied files 5. Reset permissions a. folder is 755 b. files are 600 c. diagnostic.data and journal are 700 6. run mongod