Open mindplay-dk opened 10 months ago
Possible answer here?
https://github.com/nodkz/mongodb-memory-server/issues/732#issuecomment-1397744943
oh, I see the problem - it's simply hard coded to a specific version that no longer works. 😅
https://github.com/unjs/mongoz/blob/cd762a7746c29de43516efb2e6f8d416a70bfbcb/src/formula.ts#L1-L21
here's a package that can look up the current URLs for downloads on different platforms:
https://www.npmjs.com/package/mongodb-download-url
what do you think?
looks like that would work :-)
$ npx mongodb-download-url
Need to install the following packages:
mongodb-download-url@1.4.1
Ok to proceed? (y)
https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2204-7.0.0.tgz
yep, looks like that fixed it - could you take a look at this PR please? 🙂
on ubuntu 22.04 libcrypto.so.1.1: You will need install this library. As instance you can install this http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb ( https://gist.github.com/joulgs/c8a85bb462f48ffc2044dd878ecaa786 )
the real cause of the problem is that ubuntu 22 no longer supports this version of the library, but the mongo client is compiled specifically for this version of the library. mongo-org thinks you will switch to another utility mongosh
@blzzua I don't think this package is being maintained - but "the real cause of the problem" is this package installs the wrong binary. It only has a few hard coded binaries to choose from - I already submitted a PR to fix this, but it needs a merge and publish from the author.
Environment
Reproduction
Describe the bug
npx mongoz
appears to always exit immediately with exit code 0.it will print
Starting mongo at port 27017
but then just exits.Additional context
Logs
looks like a missing dependency?
similar issue here:
https://github.com/journeyapps/node-sqlcipher/issues/101
I'm guessing mongo itself is actually exiting with an error status? But somehow the error message/status isn't making it to the console - this seems to happen also with just
npx mongoz
, so probably not related toconcurrently
.I don't know most of the packages you use, so I can't really be of more help here, sorry.