Search code examples
mongodbcloud-foundrymongodumpswisscomdev

mongodump failed connecting to monogdb after version downgrade


Since I use mongodb-clients 2.6.10 the mongodump doesn't work anymore. With the previous version 3.4.7 everything worked fine. It is a dedicated mongodb database as a service in the CF AppCloud where nothing has been changed. Unfortunately, it is not possible to use version 3.4.7 again. Does anyone have an idea why it doesn't work anymore?

vcap@host:~$ mongodump -u XXX -p XXX -d XXX --authenticationDatabase XXX -h kubernetes-service-node.service.consul:XXX,kubernetes-service-node.service.consul:XXX,kubernetes-service-node.service.consul:XXX    

Result: https://jsfiddle.net/yz1kp68p/


Solution

  • I successfully installed mongo-tools from the Ubuntu artful repository to have a mongodump version that supports SCRAM-SHA-1 authentication mechanism. The dumper app now works without problems. Installing mongodb-clients out of the artful repository did not work in my case, but mongo-tools did it.