-
-
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
Add Support for NixOS #782
Comments
could you try some versions from the following link and report back which versions work? (like ubuntu / debian or rhel versions) https://www.mongodb.com/download-center/community/releases/archive |
Hey @hasezoey, sorry for the late reply, this one worked for me: MONGOMS_DOWNLOAD_URL=https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2204-6.0.9.tgz |
thanks for the reply, i am a little unsure if ubuntu package compatability is with just this version, or multiple versions (across major mongodb versions), so for now i think i will only add at most a documentation entry noting that ubuntu packages may work (linking to this thread) @danielpza are you still using the same nixos version? if not, could you post a updated detection output? PS: for anyone coming across this issue in the future, since 8.15.0 a |
These ones I've tested so far:
|
Yeah, I'm stilling using the same version (23.11) detection output
|
just to confirm and the
if i remember correctly, exit code |
yup, exactly. I couldn't find the builds for debian10 and ubuntu 18.04 for mongodb 7, I think they are not supported
I'm using the |
More logs with
full logs
|
well, i have not run this is message yet, though it seems like it is non-fatal?
your issue is that by default mms (8.x and below) is using storage engine |
@hasezoey after manually installing |
For reference, this is an extract of my home manager config: programs.bash.bashrcExtra = ''
export PATH="$VOLTA_HOME/bin:$PATH"
export LD_LIBRARY_PATH="${
lib.makeLibraryPath (with pkgs; [
stdenv.cc.cc
openssl
openssl_1_1 # https://discourse.nixos.org/t/how-to-fix-library-is-missing-or-cannot-be-opened-libcrypto-so-1-1/30730, https://github.com/nodkz/mongodb-memory-server/issues/782
lzlib # related https://github.com/NixOS/nix/issues/1550
libGL
libuuid
curlFull
])
}:$LD_LIBRARY_PATH"
export MONGOMS_DISTRO="ubuntu2204"
'';
nixpkgs.config.permittedInsecurePackages = [ "openssl-1.1.1w" ]; |
@danielpza could you maybe re-test mongodb 7.0.0 with either |
@hasezoey I haven't been able to try it again with your suggestion. Just passing by to leave a configuration that works for me: {
inputs = {
nixpkgs = { url = "github:NixOS/nixpkgs/nixpkgs-unstable"; };
flake-utils = { url = "github:numtide/flake-utils"; };
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config.permittedInsecurePackages = [ "openssl-1.1.1w" ];
};
lib = nixpkgs.lib;
in {
devShell = pkgs.mkShell {
MONGOMS_DISTRO = "ubuntu-22.04";
NIX_LD_LIBRARY_PATH = lib.makeLibraryPath
(with pkgs; [ stdenv.cc.cc openssl_1_1 curlFull ]);
NIX_LD =
builtins.readFile "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
};
});
} |
Versions
Detection
Current Error
Extra
The text was updated successfully, but these errors were encountered: