Bonjour,
I want to mongorestore a dump from an azure VM toward a cosmosDB account. I can do it from command line with stg like this :
mongorestore --host <url>:10255 -u <secret> -p <secret> --ssl --sslAllowInvalidCertificates ./dump/ --numInsertionWorkersPerCollection 40 --batchSize 2
but I can't do it within python :
>>> os.execvp('mongorestore',['-h <url>:10255 -u <secret> -p <secret> --ssl --sslAllowInvalidCertificates ./dump/ --numInsertionWorkersPerCollection 40 --batchSize 2'])
2018-12-14T12:31:29.163+0000 Failed: error connecting to db server: no reachable servers
or even in a most modern way, with subprocess, same thing :(