mongo-cxx-driver legacy driver integration tests fail

52 views
Skip to first unread message

Deepali Chourasia

unread,
Nov 24, 2015, 1:34:16 AM11/24/15
to mongodb-dev
Hello All,

I am trying to execute tests for mongo-cxx-driver legacy driver but integration tests are failing on my machine. It is a Ubuntu PPC machine.

Somehow it is not able to connect to the mongo-orchestration.Attached here is the complete output log.

I am also facing issues while starting mongo-orchestration:

1.  mongo-orchestration start
Starting Mongo Orchestration on port 8889...
Could not connect to daemon running on localhost:8889 (pid: 2201) within 5 attempts.

Here it is not able to start mongo-orchestration.

2. mongo-orchestration restart
pidfile /root/server.pid does not exist. Daemon not running?
Starting Mongo Orchestration on port 8889...

Here it starts but still the cxx driver gives the error 404.

3. mongo-orchestration --no-fork start
Starting Mongo Orchestration on port 8889...
Bottle v0.12.9 server starting up (using CherryPyServer())...
Listening on http://localhost:8889/
Hit Ctrl-C to quit.


here it is started, but cxx driver tests give error 404.

The output logged on console for mongo-orchestration --no-fork command is:
DEBUG:mongo_orchestration.apps:host_create((), {})
DEBUG:mongo_orchestration.servers:Server.__init__(mongod, {u'journal': True, u'logappend': True, u'ipv6': True}, {}, , , )
CRITICAL:mongo_orchestration.apps:Exception <type 'exceptions.OSError'> [Errno 2] No such file or directory while host_create
CRITICAL:mongo_orchestration.apps:['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/__init__.py", line 62, in wrap\n    return f(*arg, **kwd)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/servers.py", line 83, in host_create\n    result = _host_create(data)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/servers.py", line 52, in _host_create\n    params.get(\'version\', \'\'))\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 437, in create\n    auth_key, login, password, auth_source)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 154, in __init__\n    self.config_path, self.cfg = self.__init_mongod(procParams)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 97, in __init_mongod\n    self.__init_test_commands(cfg)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 71, in __init_test_commands\n    if self.version >= (2, 4):\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 193, in version\n    command, stdout=subprocess.PIPE).communicate()\n', '  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__\n    errread, errwrite)\n', '  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child\n    raise child_exception\n', 'OSError: [Errno 2] No such file or directory\n']
DEBUG:mongo_orchestration.apps:send_result(500, ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/__init__.py", line 62, in wrap\n    return f(*arg, **kwd)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/servers.py", line 83, in host_create\n    result = _host_create(data)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/servers.py", line 52, in _host_create\n    params.get(\'version\', \'\'))\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 437, in create\n    auth_key, login, password, auth_source)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 154, in __init__\n    self.config_path, self.cfg = self.__init_mongod(procParams)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 97, in __init_mongod\n    self.__init_test_commands(cfg)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 71, in __init_test_commands\n    if self.version >= (2, 4):\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 193, in version\n    command, stdout=subprocess.PIPE).communicate()\n', '  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__\n    errread, errwrite)\n', '  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child\n    raise child_exception\n', 'OSError: [Errno 2] No such file or directory\n'])
DEBUG:mongo_orchestration.apps:host_create((), {})
DEBUG:mongo_orchestration.servers:Server.__init__(mongod, {u'journal': True, u'logappend': True, u'ipv6': True}, {}, , , )
CRITICAL:mongo_orchestration.apps:Exception <type 'exceptions.OSError'> [Errno 2] No such file or directory while host_create
CRITICAL:mongo_orchestration.apps:['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/__init__.py", line 62, in wrap\n    return f(*arg, **kwd)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/servers.py", line 83, in host_create\n    result = _host_create(data)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/servers.py", line 52, in _host_create\n    params.get(\'version\', \'\'))\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 437, in create\n    auth_key, login, password, auth_source)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 154, in __init__\n    self.config_path, self.cfg = self.__init_mongod(procParams)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 97, in __init_mongod\n    self.__init_test_commands(cfg)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 71, in __init_test_commands\n    if self.version >= (2, 4):\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 193, in version\n    command, stdout=subprocess.PIPE).communicate()\n', '  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__\n    errread, errwrite)\n', '  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child\n    raise child_exception\n', 'OSError: [Errno 2] No such file or directory\n']
DEBUG:mongo_orchestration.apps:send_result(500, ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/__init__.py", line 62, in wrap\n    return f(*arg, **kwd)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/servers.py", line 83, in host_create\n    result = _host_create(data)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/servers.py", line 52, in _host_create\n    params.get(\'version\', \'\'))\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 437, in create\n    auth_key, login, password, auth_source)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 154, in __init__\n    self.config_path, self.cfg = self.__init_mongod(procParams)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 97, in __init_mongod\n    self.__init_test_commands(cfg)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 71, in __init_test_commands\n    if self.version >= (2, 4):\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 193, in version\n    command, stdout=subprocess.PIPE).communicate()\n', '  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__\n    errread, errwrite)\n', '  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child\n    raise child_exception\n', 'OSError: [Errno 2] No such file or directory\n'])
DEBUG:mongo_orchestration.apps:host_create((), {})
DEBUG:mongo_orchestration.servers:Server.__init__(mongod, {u'journal': True, u'logappend': True, u'ipv6': True}, {}, , , )
CRITICAL:mongo_orchestration.apps:Exception <type 'exceptions.OSError'> [Errno 2] No such file or directory while host_create
CRITICAL:mongo_orchestration.apps:['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/__init__.py", line 62, in wrap\n    return f(*arg, **kwd)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/servers.py", line 83, in host_create\n    result = _host_create(data)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/servers.py", line 52, in _host_create\n    params.get(\'version\', \'\'))\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 437, in create\n    auth_key, login, password, auth_source)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 154, in __init__\n    self.config_path, self.cfg = self.__init_mongod(procParams)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 97, in __init_mongod\n    self.__init_test_commands(cfg)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 71, in __init_test_commands\n    if self.version >= (2, 4):\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 193, in version\n    command, stdout=subprocess.PIPE).communicate()\n', '  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__\n    errread, errwrite)\n', '  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child\n    raise child_exception\n', 'OSError: [Errno 2] No such file or directory\n']
DEBUG:mongo_orchestration.apps:send_result(500, ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/__init__.py", line 62, in wrap\n    return f(*arg, **kwd)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/servers.py", line 83, in host_create\n    result = _host_create(data)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/servers.py", line 52, in _host_create\n    params.get(\'version\', \'\'))\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 437, in create\n    auth_key, login, password, auth_source)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 154, in __init__\n    self.config_path, self.cfg = self.__init_mongod(procParams)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 97, in __init_mongod\n    self.__init_test_commands(cfg)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 71, in __init_test_commands\n    if self.version >= (2, 4):\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 193, in version\n    command, stdout=subprocess.PIPE).communicate()\n', '  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__\n    errread, errwrite)\n', '  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child\n    raise child_exception\n', 'OSError: [Errno 2] No such file or directory\n'])
DEBUG:mongo_orchestration.apps:host_create((), {})
DEBUG:mongo_orchestration.servers:Server.__init__(mongod, {u'journal': True, u'logappend': True, u'ipv6': True}, {}, , , )
CRITICAL:mongo_orchestration.apps:Exception <type 'exceptions.OSError'> [Errno 2] No such file or directory while host_create
CRITICAL:mongo_orchestration.apps:['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/__init__.py", line 62, in wrap\n    return f(*arg, **kwd)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/servers.py", line 83, in host_create\n    result = _host_create(data)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/servers.py", line 52, in _host_create\n    params.get(\'version\', \'\'))\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 437, in create\n    auth_key, login, password, auth_source)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 154, in __init__\n    self.config_path, self.cfg = self.__init_mongod(procParams)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 97, in __init_mongod\n    self.__init_test_commands(cfg)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 71, in __init_test_commands\n    if self.version >= (2, 4):\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 193, in version\n    command, stdout=subprocess.PIPE).communicate()\n', '  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__\n    errread, errwrite)\n', '  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child\n    raise child_exception\n', 'OSError: [Errno 2] No such file or directory\n']
DEBUG:mongo_orchestration.apps:send_result(500, ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/__init__.py", line 62, in wrap\n    return f(*arg, **kwd)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/servers.py", line 83, in host_create\n    result = _host_create(data)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/apps/servers.py", line 52, in _host_create\n    params.get(\'version\', \'\'))\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 437, in create\n    auth_key, login, password, auth_source)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 154, in __init__\n    self.config_path, self.cfg = self.__init_mongod(procParams)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 97, in __init_mongod\n    self.__init_test_commands(cfg)\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 71, in __init_test_commands\n    if self.version >= (2, 4):\n', '  File "/usr/local/lib/python2.7/dist-packages/mongo_orchestration-0.6.dev0-py2.7.egg/mongo_orchestration/servers.py", line 193, in version\n    command, stdout=subprocess.PIPE).communicate()\n', '  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__\n    errread, errwrite)\n', '  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child\n    raise child_exception\n', 'OSError: [Errno 2] No such file or directory\n'])
^Croot@pts00452-vm4:~# mongo-orchestration start
Starting Mongo Orchestration on port 8889...
Could not connect to daemon running on localhost:8889 (pid: 2201) within 5 attempts.

I think something is missing on my machine due to which there is problem in starting mongo-orchestration and consequently the cxx drivers tests are failing. Please advise.

Regards
Deepali

mongo-cxx-driver-integration-errors.txt

Andrew Morrow

unread,
Nov 24, 2015, 11:13:46 AM11/24/15
to mongodb-dev

How did you configure mongo-orchestration? You need to give it a configuration file that describes where runnable copies of the mongod binaries live. So, you would already needed to have built mongo from source, targeting PPC, and have set up those binaries for mongo-orchestration to use.

Alternatively, you might find it easier to just run mongo-orchestration on an x86 machine somewhere else. You can tell the mongo-cxx-driver build system where to talk to a running mongo-orchestration service with the --mongo-orchestration-host and --mongo-orchestration-port build system flags.

In any event, my guess is that mongo orchestration is not properly configured. Have you read the documentation on the mongo-orchestration config file?


Thanks,
Andrew


--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev...@googlegroups.com.
To post to this group, send email to mongo...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-dev.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages