Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

fail to do backups after creating a new database #12

Open
thib3113 opened this issue Aug 12, 2021 · 2 comments
Open

fail to do backups after creating a new database #12

thib3113 opened this issue Aug 12, 2021 · 2 comments

Comments

@thib3113
Copy link

thib3113 commented Aug 12, 2021

After creating a new database, I tryied to do a backup, and got this error :

Failed: error connecting to db server: server returned error on SASL authentication step: BSON field 'saslContinue.mechanism' is an unknown field.

Coming from the mongodump command ...
So, I've done some tryies :

  • adding extra_opts --authenticationDatabase admin ... but same error
  • trying to rebuild the image (because the image on docker hub seems old) => same error
  • I check url / connection / testing bad password / username to get differents errors ...

So I try to get the mongodump version, and it say :

mongodump version: 
git version: febd112618a4254ff34d0aa2963153235d4101a6
Go version: go1.12.4
  os: linux
  arch: amd64
  compiler: gc

the mongodump seems empty (maybe because self builded) .
But comparing with a normal installation :

mongodump version: 100.5.0
git version: 460c7e26f65c4ce86a0b99c46a559dccaba3a07d
Go version: go1.16.3
   os: linux
   arch: amd64
   compiler: gc

It seems the version is not up to date (by checking the go version) .

So, I try to rebuild your https://github.com/tiredofit/docker-mongo-builder to rebuild this with an updated version ...
But the build failed, because a package snowball-dev is missing (but seems not found on alpine website ... ), and no ideas about how to get it ....

Did you have an idea ?

@tiredofit
Copy link
Owner

I haven't kept this image up to date for a couple years now. Can you try moving over to tiredofit/db-backup instead and see if that gets you backing up properly?

@thib3113
Copy link
Author

Hum, interesting ... I will check

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants