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

Failed: error writing data for collection `XYZ` to disk: error reading collection: read tcp x.x.x.x:44914->y.y.y.y:27017: read: connection reset by peer

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.0.8
    • Component/s: mongodump
    • Labels:
      None
    • Environment:
      kubernetis

      when i run mongodump it fail serror writing data for collection `XYZ` to disk

      in same time i see the log  on mongo

      I NETWORK  [conn5286] Error sending response to client: HostUnreachable: Connection reset by peer. Ending connection from X.X.X.X:44926 (connection id: 5286)

       its my script 

       

      rm -f /backup/data/*.gz
      
      mongodump --host=mongo --db=trainer_bot --out=/backup/data/ --gzip --username=HHH --password=***
      mongodump --host=mongo --db=trainer_image --out=/backup/data/ --gzip --username=GGG--password=***
      mongodump --host=mongo --db=trainer_book --out=/backup/data/ --gzip --username=EEE --password=***
      mongodump --host=mongo --db=trainer_expo --out=/backup/data/ --gzip --username=JJJ --password=***
      mongodump --host=mongo --db=trainer_placement --out=/backup/data/ --gzip --username=CCC-password=***
      

       

      PLS help me

            Assignee:
            Unassigned Unassigned
            Reporter:
            arenabraham@gmail.com Aren Abrahamyan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: