Also, on the database i can find these entries, so probably a constraint is not being considered on the upload tools phase.
{ "_id": "1.23.3--armhf", "version": "1.23.3--armhf", "size": NumberLong(11059752), "sha256": "b0cc9a4f0e0a4efd40785105552e535ae7cbed1bfd66fe9cb33d4894fe1eed4f", "path": "tools/1.23.3--armhf-b0cc9a4f0e0a4efd40785105552e535ae7cbed1bfd66fe9cb33d4894fe1eed4f", "txn-revno": NumberLong(2), "txn-queue": [ "5556376d56027769f40241bf_2ed3b636" ] }{ "_id": "1.23.3-precise-i386", "version": "1.23.3-precise-i386", "size": NumberLong(11196031), "sha256": "bb959442b4d5eccea01a84307d3d4f2115ebee2ef8bfc29d7d3188615b530104", "path": "tools/1.23.3-precise-i386-bb959442b4d5eccea01a84307d3d4f2115ebee2ef8bfc29d7d3188615b530104", "txn-revno": NumberLong(2), "txn-queue": [ "555637d756027769f4024268_86c84d66" ] }{ "_id": "1.23.3--i386", "version": "1.23.3--i386", "size": NumberLong(11196031), "sha256": "bb959442b4d5eccea01a84307d3d4f2115ebee2ef8bfc29d7d3188615b530104", "path": "tools/1.23.3--i386-bb959442b4d5eccea01a84307d3d4f2115ebee2ef8bfc29d7d3188615b530104", "txn-revno": NumberLong(2), "txn-queue": [ "555637d856027769f402426d_1122fe3c" ] }{ "_id": "1.23.3-trusty-amd64", "version": "1.23.3-trusty-amd64", "size": NumberLong(11566458), "sha256": "007c62a742c974c3f082964f37b04c28d46345e4816a926c31f8bdef53000552", "path": "tools/1.23.3-trusty-amd64-007c62a742c974c3f082964f37b04c28d46345e4816a926c31f8bdef53000552", "txn-revno": NumberLong(2), "txn-queue": [ "5556383f56027769f4024311_c070c0eb" ] }{ "_id": "1.23.3--amd64", "path": "tools/1.23.3--amd64-ca9452252708abc4538c09741ba00e7eaece36cf90d0afb53933a535fe2e3ef0", "sha256": "ca9452252708abc4538c09741ba00e7eaece36cf90d0afb53933a535fe2e3ef0", "size": NumberLong(11566328), "txn-queue": [
], "txn-revno": NumberLong(2), "version": "1.23.3--amd64" }
As a workaround I removed this entries manually by running:
juju:PRIMARY> db.toolsmetadata.remove({'_id': {$regex: /1\.23\.3\-\-\.*/i}})
This solved the issue, then i re-ran the sync-tools
Also, on the database i can find these entries, so probably a constraint is not being considered on the upload
tools phase.
{ 11059752) , fd40785105552e5 35ae7cbed1bfd66 fe9cb33d4894fe1 eed4f", 1.23.3- -armhf- b0cc9a4f0e0a4ef d40785105552e53 5ae7cbed1bfd66f e9cb33d4894fe1e ed4f",
"5556376d56027 769f40241bf_ 2ed3b636" precise- i386", precise- i386", 11196031) , cea01a84307d3d4 f2115ebee2ef8bf c29d7d3188615b5 30104", 1.23.3- precise- i386-bb959442b4 d5eccea01a84307 d3d4f2115ebee2e f8bfc29d7d31886 15b530104" ,
"555637d756027 769f4024268_ 86c84d66" 11196031) , cea01a84307d3d4 f2115ebee2ef8bf c29d7d3188615b5 30104", 1.23.3- -i386-bb959442b 4d5eccea01a8430 7d3d4f2115ebee2 ef8bfc29d7d3188 615b530104" ,
"555637d856027 769f402426d_ 1122fe3c" trusty- amd64", trusty- amd64", 11566458) , c3f082964f37b04 c28d46345e4816a 926c31f8bdef530 00552", 1.23.3- trusty- amd64-007c62a74 2c974c3f082964f 37b04c28d46345e 4816a926c31f8bd ef53000552" ,
"5556383f56027 769f4024311_ c070c0eb" 1.23.3- -amd64- ca9452252708abc 4538c09741ba00e 7eaece36cf90d0a fb53933a535fe2e 3ef0", c4538c09741ba00 e7eaece36cf90d0 afb53933a535fe2 e3ef0", 11566328) ,
"_id": "1.23.3--armhf",
"version": "1.23.3--armhf",
"size": NumberLong(
"sha256": "b0cc9a4f0e0a4e
"path": "tools/
"txn-revno": NumberLong(2),
"txn-queue": [
]
}{
"_id": "1.23.3-
"version": "1.23.3-
"size": NumberLong(
"sha256": "bb959442b4d5ec
"path": "tools/
"txn-revno": NumberLong(2),
"txn-queue": [
]
}{
"_id": "1.23.3--i386",
"version": "1.23.3--i386",
"size": NumberLong(
"sha256": "bb959442b4d5ec
"path": "tools/
"txn-revno": NumberLong(2),
"txn-queue": [
]
}{
"_id": "1.23.3-
"version": "1.23.3-
"size": NumberLong(
"sha256": "007c62a742c974
"path": "tools/
"txn-revno": NumberLong(2),
"txn-queue": [
]
}{
"_id": "1.23.3--amd64",
"path": "tools/
"sha256": "ca9452252708ab
"size": NumberLong(
"txn-queue": [
],
"txn-revno": NumberLong(2),
"version": "1.23.3--amd64"
}
As a workaround I removed this entries manually by running:
juju:PRIMARY> db.toolsmetadat a.remove( {'_id': {$regex: /1\.23\ .3\-\-\ .*/i}})
This solved the issue, then i re-ran the sync-tools