Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-3124

Failed: error writing data for collection `db.collection` to disk: error reading collection: (HostUnreachable) Connection closed by peer

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker - P1
    • Resolution: Cannot Reproduce
    • 4.2.6
    • No versions
    • mongodump
    • CentOS Linux release 7.5.1804
    • v4.2

    Description

      Hi Team,

      I used the following commands to back up the database. At first, there was no problem, but after running for a period of time, the following error was reported. In my environment, the error is inevitable. I don't know what the problem is. Please give me some advice.

       

      command:

      mongodump -h 127.0.0.1 --port 27017 --authenticationDatabase admin -u ****** -p ****** --authenticationMechanism=SCRAM-SHA-256 -d db -c collection  -q '{"source": ["114"]}' -o /data/url

       

      running log:

      2022-06-02T11:19:44.147+0800    writing db.collection to 
      2022-06-02T11:19:47.055+0800    db.collection  208608
      2022-06-02T11:19:50.055+0800    db.collection  520588
      2022-06-02T11:19:53.054+0800    db.collection  794746
      2022-06-02T11:19:56.055+0800    db.collection  1034757
      2022-06-02T11:19:59.055+0800    db.collection  1137961
      2022-06-02T11:20:02.055+0800    db.collection  1487408
      2022-06-02T11:20:05.054+0800    db.collection  2306484
      2022-06-02T11:20:08.054+0800    db.collection  3119119
      2022-06-02T11:20:11.054+0800    db.collection  3900015
      2022-06-02T11:20:14.054+0800    db.collection  4673507
      2022-06-02T11:20:17.055+0800    db.collection  5473592
      2022-06-02T11:20:20.054+0800    db.collection  6361692
      2022-06-02T11:20:23.054+0800    db.collection  7211967
      2022-06-02T11:20:26.054+0800    db.collection  7697252
      2022-06-02T11:20:29.055+0800    db.collection  8307767
      2022-06-02T11:20:32.055+0800    db.collection  8545058
      2022-06-02T11:20:35.055+0800    db.collection  8545058
      2022-06-02T11:20:38.055+0800    db.collection  8893996
      2022-06-02T11:20:41.055+0800    db.collection  8893996
      2022-06-02T11:20:44.055+0800    db.collection  9000037
      2022-06-02T11:20:47.055+0800    db.collection  9000037
      2022-06-02T11:20:50.054+0800    db.collection  9000037
      2022-06-02T11:20:53.055+0800    db.collection  9000037
      2022-06-02T11:20:56.054+0800    db.collection  9115915
      2022-06-02T11:20:59.055+0800    db.collection  9115915
      2022-06-02T11:21:02.054+0800    db.collection  9115915
      2022-06-02T11:21:05.055+0800    db.collection  9234635
      2022-06-02T11:21:08.055+0800    db.collection  9234635
      2022-06-02T11:21:11.055+0800    db.collection  9234635
      2022-06-02T11:21:14.055+0800    db.collection  9234635
      2022-06-02T11:21:17.054+0800    db.collection  9234635
      2022-06-02T11:21:20.054+0800    db.collection  9344065
      2022-06-02T11:21:23.055+0800    db.collection  9344065
      2022-06-02T11:21:26.055+0800    db.collection  9344065
      2022-06-02T11:21:29.055+0800    db.collection  9558109
      2022-06-02T11:21:32.054+0800    db.collection  9558109
      2022-06-02T11:21:35.055+0800    db.collection  9558109
      2022-06-02T11:21:38.055+0800    db.collection  9773186
      2022-06-02T11:21:41.055+0800    db.collection  9773186
      2022-06-02T11:21:44.055+0800    db.collection  9773186
      2022-06-02T11:21:47.055+0800    db.collection  9894066
      2022-06-02T11:21:50.055+0800    db.collection  9894066
      2022-06-02T11:21:53.055+0800    db.collection  10364768
      2022-06-02T11:21:56.055+0800    db.collection  10732434
      2022-06-02T11:21:59.055+0800    db.collection  10856546
      2022-06-02T11:22:02.054+0800    db.collection  10981063
      2022-06-02T11:22:05.054+0800    db.collection  11676001
      2022-06-02T11:22:08.055+0800    db.collection  11897591
      2022-06-02T11:22:11.055+0800    db.collection  12354165
      2022-06-02T11:22:14.055+0800    db.collection  12476807
      2022-06-02T11:22:17.055+0800    db.collection  12845357
      2022-06-02T11:22:20.055+0800    db.collection  13077608
      2022-06-02T11:22:23.054+0800    db.collection  13444828
      2022-06-02T11:22:26.055+0800    db.collection  13691978
      2022-06-02T11:22:29.055+0800    db.collection  13940138
      2022-06-02T11:22:32.054+0800    db.collection  14187345
      2022-06-02T11:22:35.055+0800    db.collection  14803793
      2022-06-02T11:22:38.055+0800    db.collection  15168134
      2022-06-02T11:22:41.054+0800    db.collection  15884052
      2022-06-02T11:22:44.054+0800    db.collection  16488958
      2022-06-02T11:22:47.055+0800    db.collection  16851534
      2022-06-02T11:22:50.054+0800    db.collection  17169849
      2022-06-02T11:22:53.055+0800    db.collection  17430543
      2022-06-02T11:22:56.054+0800    db.collection  17779548
      2022-06-02T11:22:59.054+0800    db.collection  18050788
      2022-06-02T11:23:02.054+0800    db.collection  18495942
      2022-06-02T11:23:05.055+0800    db.collection  18726924
      2022-06-02T11:23:08.055+0800    db.collection  18963699
      2022-06-02T11:23:11.055+0800    db.collection  19331410
      2022-06-02T11:23:14.054+0800    db.collection  19577859
      2022-06-02T11:23:17.055+0800    db.collection  19945040
      2022-06-02T11:23:20.054+0800    db.collection  20543606
      2022-06-02T11:23:23.054+0800    db.collection  21116997
      2022-06-02T11:23:26.055+0800    db.collection  21374691
      2022-06-02T11:23:29.055+0800    db.collection  21612027
      2022-06-02T11:23:32.054+0800    db.collection  22339794
      2022-06-02T11:23:35.055+0800    db.collection  22690937
      2022-06-02T11:23:38.055+0800    db.collection  23544974
      2022-06-02T11:23:41.054+0800    db.collection  24035416
      2022-06-02T11:23:44.055+0800    db.collection  24522003
      2022-06-02T11:23:47.055+0800    db.collection  24643742
      2022-06-02T11:23:50.055+0800    db.collection  25006738
      2022-06-02T11:23:53.055+0800    db.collection  25376655
      2022-06-02T11:23:56.054+0800    db.collection  25742995
      2022-06-02T11:23:59.055+0800    db.collection  25867431
      2022-06-02T11:24:02.055+0800    db.collection  26114082
      2022-06-02T11:24:05.055+0800    db.collection  26360296
      2022-06-02T11:24:08.055+0800    db.collection  26485231
      2022-06-02T11:24:11.054+0800    db.collection  27097158
      2022-06-02T11:24:14.055+0800    db.collection  27477221
      2022-06-02T11:24:17.055+0800    db.collection  27597947
      2022-06-02T11:24:20.055+0800    db.collection  27720230
      2022-06-02T11:24:23.054+0800    db.collection  28046129
      2022-06-02T11:24:26.055+0800    db.collection  28203084
      2022-06-02T11:24:29.054+0800    db.collection  28203084
      2022-06-02T11:24:32.055+0800    db.collection  28692184
      2022-06-02T11:24:35.055+0800    db.collection  28812617
      2022-06-02T11:24:38.055+0800    db.collection  28812617
      2022-06-02T11:24:41.054+0800    db.collection  29050228
      2022-06-02T11:24:44.054+0800    db.collection  29050228
      2022-06-02T11:24:47.055+0800    db.collection  29391742
      2022-06-02T11:24:50.055+0800    db.collection  29512463
      2022-06-02T11:24:53.054+0800    db.collection  29632355
      2022-06-02T11:24:56.055+0800    db.collection  29632355
      2022-06-02T11:24:59.055+0800    db.collection  29752394
      2022-06-02T11:25:02.055+0800    db.collection  30238391
      2022-06-02T11:25:05.054+0800    db.collection  30358705
      2022-06-02T11:25:08.054+0800    db.collection  30389220
      2022-06-02T11:25:11.054+0800    db.collection  30725388
      2022-06-02T11:25:14.054+0800    db.collection  31219634
      2022-06-02T11:25:17.055+0800    db.collection  31591266
      2022-06-02T11:25:20.055+0800    db.collection  31829884
      2022-06-02T11:25:23.055+0800    db.collection  31952933
      2022-06-02T11:25:26.055+0800    db.collection  32075993
      2022-06-02T11:25:29.055+0800    db.collection  32445108
      2022-06-02T11:25:32.055+0800    db.collection  32810749
      2022-06-02T11:25:35.054+0800    db.collection  33006982
      2022-06-02T11:25:38.055+0800    db.collection  33056352
      2022-06-02T11:25:41.055+0800    db.collection  33299461
      2022-06-02T11:25:44.054+0800    db.collection  33299461
      2022-06-02T11:25:47.055+0800    db.collection  33299461
      2022-06-02T11:25:50.055+0800    db.collection  33422709
      2022-06-02T11:25:53.055+0800    db.collection  33668592
      2022-06-02T11:25:56.054+0800    db.collection  34076233
      2022-06-02T11:25:59.055+0800    db.collection  34154127
      2022-06-02T11:26:02.055+0800    db.collection  34276914
      2022-06-02T11:26:05.054+0800    db.collection  34645013
      2022-06-02T11:26:08.054+0800    db.collection  34767994
      2022-06-02T11:26:11.055+0800    db.collection  34891083
      2022-06-02T11:26:14.055+0800    db.collection  35013895
      2022-06-02T11:26:17.055+0800    db.collection  35013895
      2022-06-02T11:26:20.055+0800    db.collection  35133462
      2022-06-02T11:26:23.055+0800    db.collection  35252589
      2022-06-02T11:26:26.054+0800    db.collection  35488315
      2022-06-02T11:26:29.055+0800    db.collection  35498062
      2022-06-02T11:26:32.054+0800    db.collection  35498062
      2022-06-02T11:26:35.054+0800    db.collection  35618241
      2022-06-02T11:26:38.055+0800    db.collection  35740917
      2022-06-02T11:26:41.054+0800    db.collection  35861226
      2022-06-02T11:26:44.055+0800    db.collection  35861226
      2022-06-02T11:26:47.054+0800    db.collection  35983571
      2022-06-02T11:26:50.055+0800    db.collection  36106499
      2022-06-02T11:26:53.055+0800    db.collection  36106499
      2022-06-02T11:26:56.055+0800    db.collection  36227207
      2022-06-02T11:26:59.055+0800    db.collection  36347083
      2022-06-02T11:27:02.054+0800    db.collection  36347083
      2022-06-02T11:27:05.054+0800    db.collection  36469333
      2022-06-02T11:27:08.055+0800    db.collection  36469333
      2022-06-02T11:27:11.054+0800    db.collection  36592403
      2022-06-02T11:27:14.054+0800    db.collection  36713618
      2022-06-02T11:27:17.054+0800    db.collection  36956061
      2022-06-02T11:27:20.055+0800    db.collection  36956061
      2022-06-02T11:27:23.055+0800    db.collection  36956061
      2022-06-02T11:27:26.054+0800    db.collection  37077927
      2022-06-02T11:27:29.055+0800    db.collection  37199515
      2022-06-02T11:27:32.055+0800    db.collection  37199515
      2022-06-02T11:27:35.054+0800    db.collection  37443363
      2022-06-02T11:27:38.054+0800    db.collection  37443363
      2022-06-02T11:27:41.054+0800    db.collection  37562411
      2022-06-02T11:27:44.054+0800    db.collection  37800065
      2022-06-02T11:27:47.055+0800    db.collection  37800065
      2022-06-02T11:27:50.055+0800    db.collection  37917275
      2022-06-02T11:27:53.054+0800    db.collection  37917275
      2022-06-02T11:27:56.055+0800    db.collection  37917275
      2022-06-02T11:27:59.054+0800    db.collection  37917275
      2022-06-02T11:28:02.054+0800    db.collection  38160880
      2022-06-02T11:28:05.055+0800    db.collection  38280873
      2022-06-02T11:28:08.055+0800    db.collection  38280873
      2022-06-02T11:28:11.055+0800    db.collection  38280873
      2022-06-02T11:28:14.054+0800    db.collection  38317003
      2022-06-02T11:28:17.055+0800    db.collection  38404175
      2022-06-02T11:28:20.054+0800    db.collection  38410905
      2022-06-02T11:28:23.055+0800    db.collection  38649783
      2022-06-02T11:28:26.055+0800    db.collection  38769774
      2022-06-02T11:28:32.339+0800    db.collection  38769774
      2022-06-02T11:28:32.340+0800    db.collection  38769774
      2022-06-02T11:28:33.450+0800    db.collection  38769774
      2022-06-02T11:28:33.452+0800    Failed: error writing data for collection `db.collection` to disk: error reading collection: (HostUnreachable) Connection closed by peer

      Attachments

        Activity

          People

            tim.fogarty@mongodb.com Tim Fogarty
            tianlongmodaoshi@gmail.com 磊 孙
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: