Comment 5 for bug 1459033

Revision history for this message
Jorge Niedbalski (niedbalski) wrote :

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