Skip to content

Commit 2ba4ae5

Browse files
committed
fix: add fail message when mongod cannot find CURL_OPENSSL_3
1 parent f748788 commit 2ba4ae5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/mongodb-memory-server-core/src/util/MongoInstance.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ export default class MongoInstance {
217217
this.instanceFailed('Mongod permission denied');
218218
} else if (/Data directory .*? not found/i.test(log)) {
219219
this.instanceFailed('Data directory not found');
220+
} else if (/CURL_OPENSSL_3.*not found/i.test(log)) {
221+
this.instanceFailed(
222+
'libcurl3 is not available on your system. Mongod requires it and cannot be started without it. You should manually install libcurl3 or try to use older Mongodb version eg. 3.6.12'
223+
);
220224
} else if (/shutting down with code/i.test(log)) {
221225
// if mongod started succesfully then no error on shutdown!
222226
if (!this.isInstanceReady) {

0 commit comments

Comments
 (0)