Tested on mongodb 2.07 and 2.2.0 with mms-agent use flag. After starting mms-agent: cat /var/log/mongodb/mms-agent.log SyntaxError: invalid syntax File "agent.py", line 124 except Exception, e: ^ Reproducible: Always Steps to Reproduce: 1. /etc/init.d/mms-agent start # /etc/init.d/mms-agent start * Starting mms-agent ... [ ok ] # /etc/init.d/mms-agent stop * Requesting mms-agent to stop ... * start-stop-daemon: no matching processes found # eselect python list Available Python interpreters: [1] python2.7 [2] python3.1 * [3] python3.2
Couldn't find any mentions about not supporting python 3.x upstream (https://mms.10gen.com/help/install.html#requirements), but here's a ticket for adding it: https://jira.mongodb.org/browse/MMS-746 quote from issue: "This is a pretty low priority for us right now given the server side adoption rate of running only python 3. Given the current priorities, this is something that will likely happen in 2013." I'll look into adding python_convert_shebangs (and requiring <py3) to the ebuild.
Looking closer at the issue, it would probably be as easy as: $ sed 's/python/python2/' /etc/init.d/mms-agent ..and adding python2 as explicit depend to mongodb ebuilds: PYTHON_DEPEND="mms-agent? 2"
Thanks guys for both reporting and solving the problem. It's fixed in tree, I revbumped all versions to reflect this change and took the opportunity to update the old ebuilds version of mms-agent.