This is in response to the following traceback:
[root@sfu-scmprocess-1 ~]# allurapaste script /var/local/config/production.ini -- ../scripts/refresh-all-repos.py --clean 2>&1 | tee -a /tmp/refresh-all-repos-output ; echo "refresh-all-repos.py is complete" | mail -s "refresh-all-repos.py is complete" ceverest@geek.net
Traceback (most recent call last):
File "/var/local/env-allura/bin/paster", line 8, in <module>
load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
File "/var/local/env-allura/lib/python2.6/site-packages/paste/script/command.py",
line 84, in run
invoke(command, command_name, options, args[1:])
File "/var/local/env-allura/lib/python2.6/site-packages/paste/script/command.py",
line 123, in invoke
exit_code = runner.run(args)
File "/var/local/env-allura/lib/python2.6/site-packages/paste/script/command.py",
line 218, in run
result = self.command()
File "/var/local/allura/Allura/allura/command/script.py", line 19, in command
exec fp in ns
File "../scripts/refresh-all-repos.py", line 59, in <module>
main()
File "../scripts/refresh-all-repos.py", line 33, in main
for p in M.Project.query.find(q_project):
File "/var/local/env-allura/lib/python2.6/site-packages/ming/orm/ormsession.py",
line 210, in next
doc = self.ming_cursor.next()
File "/var/local/env-allura/lib/python2.6/site-packages/ming/base.py",
line 361, in next
doc = self.cursor.next()
File "/var/local/env-allura/lib/python2.6/site-packages/pymongo/cursor.py",
line 601, in next
if len(self.__data) or self._refresh():
File "/var/local/env-allura/lib/python2.6/site-packages/pymongo/cursor.py",
line 577, in _refresh
limit, self.__id))
File "/var/local/env-allura/lib/python2.6/site-packages/pymongo/cursor.py",
line 533, in __send_message
self.__tz_aware)
File "/var/local/env-allura/lib/python2.6/site-packages/pymongo/helpers.py",
line 94, in _unpack_response
cursor_id)
pymongo.errors.OperationFailure: cursor id '939083855863521852' not valid at server