{"action":"created","issue":{"url":"https://api.github.com/repos/Anaconda-Server/docs.anaconda.org/issues/122","labels_url":"https://api.github.com/repos/Anaconda-Server/docs.anaconda.org/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/Anaconda-Server/docs.anaconda.org/issues/122/comments","events_url":"https://api.github.com/repos/Anaconda-Server/docs.anaconda.org/issues/122/events","html_url":"https://github.com/Anaconda-Server/docs.anaconda.org/issues/122","id":108730459,"number":122,"title":"'Invalid dist_id' errors when uploading packages to binstar","user":{"login":"jchodera","id":3656088,"avatar_url":"https://avatars.githubusercontent.com/u/3656088?v=3","gravatar_id":"","url":"https://api.github.com/users/jchodera","html_url":"https://github.com/jchodera","followers_url":"https://api.github.com/users/jchodera/followers","following_url":"https://api.github.com/users/jchodera/following{/other_user}","gists_url":"https://api.github.com/users/jchodera/gists{/gist_id}","starred_url":"https://api.github.com/users/jchodera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchodera/subscriptions","organizations_url":"https://api.github.com/users/jchodera/orgs","repos_url":"https://api.github.com/users/jchodera/repos","events_url":"https://api.github.com/users/jchodera/events{/privacy}","received_events_url":"https://api.github.com/users/jchodera/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Anaconda-Server/docs.anaconda.org/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-28T19:32:25Z","updated_at":"2016-01-22T15:12:15Z","closed_at":null,"body":"We're seeing sporadic `Invalid dist_id` errors when attempting to upload packages to binstar:\r\n```\r\nTEST END: openmm-dev-7.0.0.dev0-py27_0\r\n# If you want to upload this package to anaconda.org later, type:\r\n#\r\n# $ anaconda upload /Users/jenkins-slave/workspace/conda-openmm-dev-osx-2/miniconda/conda-bld/osx-64/openmm-dev-7.0.0.dev0-py27_0.tar.bz2\r\n#\r\n# To have conda build upload to anaconda.org automatically, use\r\n# $ conda config --set anaconda_upload yes\r\n\r\n+ binstar --quiet -t **** upload --force -u omnia miniconda/conda-bld/osx-64/openmm-dev-7.0.0.dev0-py27_0.tar.bz2\r\nUsing binstar api site https://api.anaconda.org\r\n[warning] Distribution osx-64/openmm-dev-7.0.0.dev0-py27_0.tar.bz2 already exists ... removing \r\n[BinstarError] Invalid dist_id \r\nTraceback (most recent call last):\r\n  File \"/Users/jenkins-slave/workspace/conda-openmm-dev-osx-2/miniconda/bin/binstar\", line 6, in <module>\r\n    sys.exit(main())\r\n  File \"/Users/jenkins-slave/workspace/conda-openmm-dev-osx-2/miniconda/lib/python2.7/site-packages/binstar_client/scripts/cli.py\", line 94, in main\r\n    description=__doc__, version=version)\r\n  File \"/Users/jenkins-slave/workspace/conda-openmm-dev-osx-2/miniconda/lib/python2.7/site-packages/binstar_client/scripts/cli.py\", line 76, in binstar_main\r\n    return args.main(args)\r\n  File \"/Users/jenkins-slave/workspace/conda-openmm-dev-osx-2/miniconda/lib/python2.7/site-packages/binstar_client/commands/upload.py\", line 204, in main\r\n    callback=upload_print_callback(args))\r\n  File \"/Users/jenkins-slave/workspace/conda-openmm-dev-osx-2/miniconda/lib/python2.7/site-packages/binstar_client/__init__.py\", line 434, in upload\r\n    self._check_response(res)\r\n  File \"/Users/jenkins-slave/workspace/conda-openmm-dev-osx-2/miniconda/lib/python2.7/site-packages/binstar_client/__init__.py\", line 159, in _check_response\r\n    raise ErrCls(msg, res.status_code)\r\nBinstarError: (u'Invalid dist_id', 400)\r\n```\r\nThese also have the undesirable effect of first deleting the remote package on binstar before attempting to upload, which leaves us without working packages on binstar.\r\nAny ideas what might be causing this, or how to fix it?"},"comment":{"url":"https://api.github.com/repos/Anaconda-Server/docs.anaconda.org/issues/comments/173946082","html_url":"https://github.com/Anaconda-Server/docs.anaconda.org/issues/122#issuecomment-173946082","issue_url":"https://api.github.com/repos/Anaconda-Server/docs.anaconda.org/issues/122","id":173946082,"user":{"login":"jchodera","id":3656088,"avatar_url":"https://avatars.githubusercontent.com/u/3656088?v=3","gravatar_id":"","url":"https://api.github.com/users/jchodera","html_url":"https://github.com/jchodera","followers_url":"https://api.github.com/users/jchodera/followers","following_url":"https://api.github.com/users/jchodera/following{/other_user}","gists_url":"https://api.github.com/users/jchodera/gists{/gist_id}","starred_url":"https://api.github.com/users/jchodera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchodera/subscriptions","organizations_url":"https://api.github.com/users/jchodera/orgs","repos_url":"https://api.github.com/users/jchodera/repos","events_url":"https://api.github.com/users/jchodera/events{/privacy}","received_events_url":"https://api.github.com/users/jchodera/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T15:12:15Z","updated_at":"2016-01-22T15:12:15Z","body":"We're not getting some new variants of this error when trying to upload from `travis-ci`:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/anaconda/lib/python3.5/site-packages/binstar_client/commands/upload.py\", line 206, in main\r\n    callback=upload_print_callback(args))\r\n  File \"/anaconda/lib/python3.5/site-packages/binstar_client/__init__.py\", line 448, in upload\r\n    self._check_response(res)\r\n  File \"/anaconda/lib/python3.5/site-packages/binstar_client/__init__.py\", line 164, in _check_response\r\n    raise ErrCls(msg, res.status_code)\r\nbinstar_client.errors.BinstarError: (\"Invalid dist_id ObjectId('56a2456286ba914de33be032'), expected ObjectId('569fe16e122cf362bc41c9c8')\", 400)\r\n```\r\nAny progress on even identifying what might be wrong or a potential workaround? "}}