You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
Mongo installed y mongo-prebuilt into any recent circleci/node docker image will fail to start with missing shared objects.
STEPS
run the docker image as a shell
docker run --rm -it --entrypoint /bin/bash --workdir /test circleci/node:12.13
Install mongod-prebuilt
sudo npm install -g mongodb-prebuilt
Run mongod
mongod
EXPECTED
Mongo starts successfully
ACTUAL
Fails to start with this error about unable to load libcrypto.so.1.0.0:
/home/circleci/.mongodb-prebuilt/mongodb-download/aa7220af5e9371f6c91e884d508c10a0/mongodb-linux-x86_64-debian81-4.1.10-425-g3b00dc3/bin/mongod: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
With a little more digging, the installed version of all things libssl seems to be 1.0.2, e.g.
...and here is the linux version info for circleci/node:12.13
circleci@48541f4403be:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.11 (stretch)
Release: 9.11
Codename: stretch
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.
The text was updated successfully, but these errors were encountered:
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.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.The text was updated successfully, but these errors were encountered: