I am trying to create a question type for MongoDB (queries only using mongosh connecting to a static database). When I try to connect, I get the following error:
***Run error*** terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Traceback (most recent call last): File "__tester__.python3", line 40, in <module> output = subprocess.check_output(['mongosh', "commands.js"], File "/usr/lib/python3.10/subprocess.py", line 420, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib/python3.10/subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['mongosh', 'commands.js']' died with <Signals.SIGABRT: 6>. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "__tester__.python3", line 45, in <module> raise Exception("mongodb error: " + str(e)) Exception: mongodb error: Command '['mongosh', 'commands.js']' died with <Signals.SIGABRT: 6>.This might mean I do not have enough memory on my Jobe server (it has 1GByte), but I can run mongosh on the jobe server and connect to the database without any problem.
Any other thoughts?