Replit bootloop on 23.05 with MongoDB

Problem description:
23.05 features 5 updated mongodb packages… but none of them run on Replit. The old 3.6 which was in 22.11 is gone. Modern drivers require 4.2+. This means that in 22.11, mongosh is incompatible with the mongodb package.


Screenshot 2023-09-26 15.34.23

Expected behavior:
Mongod should run like it did in 22.11

Actual behavior:
bootloop, Replit never starts. Gets stuck in the “Loading Nix environment” stage

Steps to reproduce:
install any of the 23.05 mongodb packages

Bug appears at this link:
https://replit.com/@fossprime/mongodb-regression-2305#.replit

Possibly related:

1 Like

Hey @fossprime!

I have been looking into this issue and think I was able to reproduce. You are stuck in the “Loading Nix environment” stage?

2 Likes

Yes, I tried all the packages starting with mongodb- … they all cause the replit to get stuck at Loading Nix environment

Thanks for the context. We have noted that the issue is due to the MongoDB package not being supported in the Nix store anymore. We will build the package next time we release the snapshot of our Nix cache disk, which will fix the issue. I will update you once we do so!

2 Likes

It’s still crashing… it happens with all of the mongodb versions. They are listed with -6_0 suffixes in the package name. Also themongodb package was not removed… it is listed as an alias to -6_0

https://search.nixos.org/packages?channel=23.05&from=0&size=50&sort=relevance&type=packages&query=mongodb

We haven’t released a new snapshot of our Nix disk, so the issue hasn’t been resolved yet. I will make sure to update you once we release the new version of our Nix disk.

1 Like

Hey @fossprime!

I have asked the team for an update on this. I can still reproduce the issue so it looks like the fix we made didn’t work. I will follow up once we know more!

1 Like

Hey all!

We ran into a few blockers with releasing the new snapshot of our disk. We are still working on resolving these so we can move forward with the disk update!

1 Like

Hey all!

I am excited to update that we have fixed the mongodb Nix package for Replit. If you need to use pkgs.mongodb within your replit.nix file, please make sure that your Nix channel is set to stable-23_05 in the .replit file.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.