#8038 Support mongo 3.x

v1.4.0
closed
General
Heith Seewald
2016-01-25
2015-12-15
No

paster ensure_index and paster setup-app (which calls the ensure index code) fail with this exception. I think pretty much everything else should work since pymongo/Ming were upgraded to more recent versions in [bae38a]

16:11:11,573 INFO  [allura.command] Updating indexes for main DB
Traceback (most recent call last):
  File "/allura-data/virtualenv/bin/paster", line 9, in <module>
    load_entry_point('PasteScript==1.7.4.2', 'console_scripts', 'paster')()
  File "/allura-data/virtualenv/local/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
    invoke(command, command_name, options, args[1:])
  File "/allura-data/virtualenv/local/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
    exit_code = runner.run(args)
  File "/allura-data/virtualenv/local/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
    result = self.command()
  File "/allura/Allura/allura/command/show_models.py", line 238, in command
    self._update_indexes(db[name], indexes)
  File "/allura/Allura/allura/command/show_models.py", line 260, in _update_indexes
    for iname, fields in collection.index_information().iteritems():
  File "/allura-data/virtualenv/local/lib/python2.7/site-packages/pymongo/collection.py", line 1278, in index_information
    read_preference=ReadPreference.PRIMARY)
  File "/allura-data/virtualenv/local/lib/python2.7/site-packages/pymongo/database.py", line 345, in _command
    msg, allowable_errors)
  File "/allura-data/virtualenv/local/lib/python2.7/site-packages/pymongo/helpers.py", line 182, in _check_command_response
    raise OperationFailure(msg % errmsg, code, response)
pymongo.errors.OperationFailure: command SON([('listIndexes', u'repo_ci'), ('cursor', {})]) on namespace allura.$cmd failed: no collection

Discussion

  • Dave Brondsema

    Dave Brondsema - 2016-01-11
    • labels: mongo --> mongo, sf-current
     
  • Dave Brondsema

    Dave Brondsema - 2016-01-11
    • status: open --> in-progress
    • assigned_to: Dave Brondsema
     
  • Dave Brondsema

    Dave Brondsema - 2016-01-12
    • labels: mongo, sf-current --> mongo, sf-current, sf-2
    • status: in-progress --> review
     
  • Dave Brondsema

    Dave Brondsema - 2016-01-12

    db/8038

     
  • Heith Seewald

    Heith Seewald - 2016-01-18
    • Reviewer: Heith Seewald
     
  • Heith Seewald

    Heith Seewald - 2016-01-18
    • status: review --> closed
     
  • Heith Seewald

    Heith Seewald - 2016-01-18

    Nice fix.

     
  • Dave Brondsema

    Dave Brondsema - 2016-01-25
    • labels: mongo, sf-current, sf-2 --> mongo, sf-2
     
  • Dave Brondsema

    Dave Brondsema - 2016-04-11
    • Milestone: unreleased --> v1.4.0
     

Log in to post a comment.