package: mongodb-memory-server
possible are:
mongo-memory-server
mongo-memory-server-core
mongo-memory-server-global
-->
The server apparently times out when running unit tests with jest. Everything works fine on Fedora 31, Centos 7/8, Ubuntu, etc...
Timeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout.Error: Timeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout.
N/A
no
please provide debug logs https://github.com/nodkz/mongodb-memory-server#enable-debug-mode
MongoMS:MongoMemoryServer Called MongoMemoryServer.ensureInstance() method: +0ms
MongoMS:MongoMemoryServer - no running instance, call `start()` command +0ms
MongoMS:MongoMemoryServer Called MongoMemoryServer.start() method +0ms
MongoMS:MongoMemoryServer Starting MongoDB instance with following options: {"port":27017,"dbName":"emissive","ip":"127.0.0.1","storageEngine":"ephemeralForTest","dbPath":"/tmp/mongo-mem-95366GjddYjj4lNW","tmpDir":{"name":"/tmp/mongo-mem-95366GjddYjj4lNW"},"uri":"mongodb://127.0.0.1:27017/emissive?"} +3ms
MongoMS:MongoBinary MongoBinary options: {"downloadDir":"/home/jcadam/novetta/emissive-user-service/node_modules/.cache/mongodb-memory-server/mongodb-binaries","platform":"linux","arch":"x64","version":"4.0.14"} +0ms
MongoMS:MongoBinary MongoBinary: Mongod binary path: /home/jcadam/novetta/emissive-user-service/node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.0.14/mongod +2ms
MongoMS:MongoInstance Mongo[27017]: Called MongoInstance._launchKiller(parent: 9536, child: 9549): +0ms
MongoMS:MongoBinary MongoBinary: Download lock removed +10ms
MongoMS:MongoInstance Mongo[27017]: STDERR: /home/jcadam/novetta/emissive-user-service/node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.0.14/mongod: error while loading shared libraries: libcrypto.so.10: cannot open shared object file: No such file or directory
MongoMS:MongoInstance +4ms
MongoMS:MongoInstance Mongo[27017]: CLOSE: 127 +0ms
MongoMS:MongoInstance Mongo[27017]: [MongoKiller]: exit - [0,null] +2s
Ok, installing package compat-openssl10 fixes it!
Debug log was the hint I needed, thanks.
Can confirm the above works, thanks @rhinoman :)
I don't want to spam here, but I can also confirm this works. Thank you @rhinoman !
closing because not an direct issue with this package
The package compat-openssl10 is no longer available in the fedora 34 repos, but I was able to make it work by setting the download url to https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel80-4.0.19.tgz (you can replace 4.0.19 with your desired version)
@dylanwulf thanks for reporting, next time please open another issue - do you maybe know if this is from fedora 34 onward, or already from fedora 33?
@dylanwulf support for fedora 34+ is now added in 7.0.0-beta.39
@hasezoey Thank you! The compat-openssl10 package exists in fedora 33 but does not exist in fedora 34.
I suspect that the rhel80 binary could work on fedora 32+ and eliminate the need for compat-openssl10 completely, but unfortunately I do not have time to verify this suspicion.
compat-openssl10 "Retired due to security issues and general obsolescence"
@dylanwulf thanks for the information, for now rhel80 is used for fedora 34+
Most helpful comment
@dylanwulf support for fedora 34+ is now added in
7.0.0-beta.39