DocumentDB 4.0 mongodump error checking for AtlasProxy: Unknown admin command atlasVersion

1

Starting from 2023-03-01 the mongodump command fails to exec on documentDB 4.0 instances. Before this date the mongodump command was working just fine.

Error trace:

Failed: error checking for AtlasProxy: Unknown admin command atlasVersion

I've used mongodb-org-tools=4.4.15 and mongodb-org-tools=5.0.15 to run the mongodump with the same result.

Command:

mongodump --ssl \
        --host="$DB_HOST:$DB_PORT" \
        --db="$DB_DATABASE" \
        --username="$DB_USERNAME" \
        --password="$DB_PASSWORD" \
        --archive=./production-mongodump.gz \
        --numParallelCollections=4 \
        --authenticationDatabase="$DB_AUTHENTICATION_DATABASE" \
        --authenticationMechanism=SCRAM-SHA-1 \
        --sslCAFile=./rds-combined-ca-bundle.pem \
        --gzip

Any ideas of what this can be?

puchito
posta un anno fa2853 visualizzazioni
2 Risposte
4
Risposta accettata

We were having same issue (with mongodump) since 2023-03-01; and it seems to be an issue with the latess update of mongodb-database-tools. In the latest version (100.7.0-1) we were facing this issue, so we have to downgrade to previous version and everything is working again:

yum downgrade mongodb-database-tools-100.6.1-1

I don't know if this issue is docDB related, or mongo tools related; but for now I think the only option we have is to downgrade this mongo tools.

con risposta un anno fa
  • Thanks for your answer, I would assume is a change in DocumentDB rather than mongo tools because I've been using the same mongo tools version for a long time. Anyways, I downgraded from mongodb-org-tools=4.4.15 to mongodb-org-tools=4.0.28 following your suggestion and works again.

    For reference, this is how I install the tools in my runners:

    wget -qO - https://www.mongodb.org/static/pgp/server-4.0.asc | apt-key add -
    
    echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.0.list
    
    apt-get update && apt-get install -y mongodb-org-tools=4.0.28
    
  • Great, this helped, mongodump is working again!

  • This saved me as well, though I'm using Database Tools and not "org tools". I took my package info from MongoDB Database tools. The main page doesn't give you an option to download old versions, but you can just sub out the version number, e.g.:

    wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu1604-x86_64-100.6.1.deb
    
    sudo apt uninstall mongodb-database-tools
    sudo apt install ./mongodb-database-tools-ubuntu1604-x86_64-100.6.1.deb
  • I was using the official MongoDB docker image and also had to downgrade to mongo:6.0.2.

0

I'm actually having the same issue.

I'm migrating from Atlas to DocumentDB and I'm getting the same error "Unknown admin command atlasVersion" when I use mongorestore command.

con risposta un anno fa
  • Some versions of mongodb-database-tools/mongodb-org-tools stopped working (I would assume by an DocumentDB update). Simply downgrade the version of mongodb-database-tools/mongodb-org-tools you are using. Check the accepted answer for the working versions.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande