Open beatthat opened 4 years ago
Have you found a workaround for this? I'm having the same issue in Circle CI, and also Gitpod.
I ran it passing the debug env flag. This is what I got in the console
mongodb-prebuilt bin path: /workspace/poster-house-api/src/node_modules/mongodb-prebuilt/dist/3.2.0/bin/ +5s
/workspace/poster-house-api/src/node_modules/mongodb-prebuilt/dist/3.2.0/bin/
mongodb-prebuilt spawn /workspace/poster-house-api/src/node_modules/mongodb-prebuilt/dist/3.2.0/bin/mongod --storageEngine ephemeralForTest --bind_ip 127.0.0.1 --port 8000 --dbpath /workspace/poster-house-api/src/node_modules/mongo-in-memory/.data-11qe4ts +2ms
mongodb-prebuilt child process exited with code 127
Have you found a workaround for this? I'm having the same issue in Circle CI, and also Gitpod.
Yes, in our case, the underlying fix was to switch from mongo-prebuilt
to mongodb-memory-server, which works and is more actively maintained.
We were using mongo-prebuilt
only indirectly through use of mongo-unit, so I reported the issue there and then PR'ed this fix, which has since been merged and released.
Mongo installed y
mongo-prebuilt
into any recentcircleci/node
docker image will fail to start with missing shared objects.STEPS
EXPECTED
Mongo starts successfully
ACTUAL
Fails to start with this error about unable to load
libcrypto.so.1.0.0
:With a little more digging, the installed version of all things
libssl
seems to be1.0.2
, e.g....and here is the linux version info for
circleci/node:12.13
For context, what I'm trying to do is run tests using mongo-unit, which in turn seems to be starting a local mongo instance using
mongod-prebuilt
. My tests work on my mac laptop, but fail to run at all on circleci, and with digging it seems like this is the cause.