Mongodb-memory-server: Doesn't work on Fedora 32

Created on 29 Apr 2020  路  11Comments  路  Source: nodkz/mongodb-memory-server

Versions

  • NodeJS: 12.16.2
  • mongodb-memory-server-*: 6.5.2
  • mongodb: N/A
  • mongoose: 5.4.16
  • system:

package: mongodb-memory-server
possible are:
mongo-memory-server
mongo-memory-server-core
mongo-memory-server-global
-->

What is the Problem?

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.

Code Example

N/A

Do you know why it happenes?

no

bug

Most helpful comment

@dylanwulf support for fedora 34+ is now added in 7.0.0-beta.39

All 11 comments

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+

Was this page helpful?
0 / 5 - 0 ratings