mongo-sync icon indicating copy to clipboard operation
mongo-sync copied to clipboard

error on SASL authentication step: Authentication failed

Open cedricve opened this issue 6 years ago • 2 comments

Great tool however I'm receiving an error while trying to copy a remote database to a local database (which has credentials).

 ./mongo-sync pull

Server returned error on SASL authentication step: Authentication failed.

Is there a way to specify the --authenticationDatabase

Mongo-Sync Configurations

 local:
      db: 'x'
      host:
      port: x
     access:
          username: 'x'
          password: 'x'

 remote:
       db: 'x'
      host:
     url: 'x'
     port: x

 tunnel:
       on: false
       access:
       username: 'root'
       port: 22

cedricve avatar Oct 01 '18 07:10 cedricve

Hey @cedricve!

There was a PR for this, but in the interest of keeping things simple, I decided to not merge. But now I see that multiple people are requesting this.

Can you try out this fork and report back? If everything works as expected for you, I can merge this in to master.

sheharyarn avatar Oct 03 '18 03:10 sheharyarn

I had the same problem and it worked with your fork. I would recommend merging it. Thanks for the tool 👍

easydrops avatar Feb 27 '19 12:02 easydrops