-
-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to run on Debian Buster (CURL_OPENSSL_3 not found) #204
Comments
Please try |
Hi @nodkz, Thanks for the hard work and response. Here is the result:
Looks like sudo apt install libcurl3
[sudo] password for grant:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcurl3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libcurl4
E: Package 'libcurl3' has no installation candidate The No solution yet. Working on it. |
No MongoDB on Buster yet. Follow the progress and vote here: https://jira.mongodb.org/browse/SERVER-37768 |
Sorry to dump this in your lap @nodkz but I am rolling back my VM to the snapshot I took prior to the upgrade. I imagine we need to wait until there is a release of MongoDB on Buster before this will be rectified. I'll keep an eye on this issue. Thanks again for you hard work. This is a great project. |
Update: https://jira.mongodb.org/browse/SERVER-37768 Issue is status is Resolution is |
Tested this just now. It is still an issue:
|
* fix: add debian buster downloads closes #204 * fix: linting problem with prettier Couldn't lint on my machine, sorry. * fix: failing test * fix: add test for debian buster download * fix: lint problem
Hi @nodkz There is still an issue but maybe not with this package. I just upgraded my dev VM to Debian 10 and tried it again with no luck. The Looking at the MongoDB downloads for Linux it looks like there is no debian10-4.0.3 download yet. |
@grantcarthew thanks for reporting! Not all MongoDB binaries will be rebuilt under debian10. And for now, we should create a better mechanism for version controlling. Eg. if mongo below v4.2.0 then use debian9 as max version, if upper 4.2.0 then Debian 10 is available. For now, we have just 4 builds debian10: Anyway, right now I have no bandwidth to resolve this issue myself. Sorry. Pull Request welcome ;) |
I did notice it, unfortunately. You do have a 4.0.3 version hardcoded as 'latest' version. I understand that this is because the true 'latest' version is also a problem. A better solution would be in case of a download problem to fetch a list of valid versions from mongodb.org by os and architecture and present it to the user (as part of the error message) I might give it a shot. |
@grantcarthew I don't know for you, but for me this is a major problem. Since debian 10 is now officially the 'stable' release and not having something like {
"binary": {
"version": "latest"
}
} @nodkz this is obviously not a trivial fix. But the '4.0.3' hard-coded version trick might come back biting your hand. It would be preferable to leave my patch in (since Debian 10 is the stable version) and let it fail with a meaningful message such as: |
Life saver! Thanks @msanguineti I've got it working now. For anyone else looking for a temporary fix, I used my {
"config": {
"mongodbMemoryServer": {
"version": "latest"
}
},
"devDependencies": {
"mongodb-memory-server": "5.2.7"
}
} |
As as a side note I burned way more time with this issue than necessary due to the lack of an error being thrown on a failed call to await the result of getConnectionString(). If this is trivial - with gratitude and respect - is there reasoning around not just throwing an error which could be caught and logged? I am having a hard time imagining a scenario where I would want MongoDB Memory Server to silently swallow a complete failure to start up. |
Hey @scottpatrickwright, check this out: 2ba4ae5 I think that covers what you are talking about. |
@grantcarthew thanks for the reply. It looks like it. I am assuming then that instanceFailed() triggers throwing an error rather than just logging to the console? This is so that it can either be handled or if it is unhandled it will surface the precise issue in an error that bubbles up and brings down the process. FWIW my situation would be an example of the issue around not throwing the error. All my tests break and it's not clear why. I manage to pin point the issue by only running a small subset of tests that still produced the error - then more or less line by line logging to find out where the flow broke down. Even then it wasn't clear as I wasn't aware of the debug=true option (my fault of course) so my code just sat there awaiting a promise until my tests timed out and I still had very little to work with in terms of diagnosing the actual issue. |
Also from what I can see from a quick skim this method instanceFailed() does not actually throw an error. Although this line appears to: |
the problem is that the structure currently dosnt allow such logging
and the current structure dosnt allow it because there is no checking if the version is even valid (because it is just the string assembler) and no os-specific code is "allowed" in there so like @nodkz said, it would require version-string generation (and probably download) to be rewritten |
because this issue gone off-topic, i will close it PS: current fix is to overwrite the version to be used (default: 4.0.3, change it to: 4.2) |
I got the same problem of (CURL_OPENSSL_3 not found) on my linux machine. But i managed a workaround by trying to install a different version of the debian by choosing a different debian distribution on the mongodb download page. I hope this one gonna help somebody! |
Debian Buster, the latest release of Debian GNU/Linux was released on 4th of July 2019.
I upgraded my developer virtual machine to Buster and the
mongodb-memory-server
hangs.To test it out I ran this script:
When running this script the console output displays:
After a few seconds the console prompt returns with no error output.
Am I missing something here?
The text was updated successfully, but these errors were encountered: