Comment 8 for bug 1459033

Revision history for this message
Tim Kuhlman (timkuhlman) wrote :

I encountered this error on a machine running 1.22.8 while trying to run 'juju sync-tools' and fixed in a similar way

juju:PRIMARY> db.toolsmetadata.find({'_id': {$regex: /1\.24\.7\-\-\.*/i}})
{ "_id" : "1.24.7--amd64", "version" : "1.24.7--amd64", "size" : NumberLong(16431961), "sha256" : "e4c51217fc1d4793b58edc0cd3eca4d5d716e2c44ba91f4a880e44faff2b04c8", "path" : "tools/1.24.7--amd64-e4c51217fc1d4793b58edc0cd3eca4d5d716e2c44ba91f4a880e44faff2b04c8", "txn-revno" : NumberLong(2), "txn-queue" : [ "566076e2662068282c000114_72542e1a" ] }
juju:PRIMARY> db.toolsmetadata.remove({'_id': {$regex: /1\.24\.7\-\-\.*/i}})
juju:PRIMARY> db.toolsmetadata.find({'_id': {$regex: /1\.24\.7\-\-\.*/i}})