GithubHelp home page GithubHelp logo

Comments (3)

andreas-schliebitz avatar andreas-schliebitz commented on September 25, 2024

The MongoDB server has version 4.4.29, but Overleaf requires at least version 5.0

Like myself, you first have to update to MongoDB Version 5.0.

After doing so, I then had to force mongod to:

  1. Bind to IPv6 localhost using mongod --ipv6
  2. Enable support for transactions using a single node replica set by also adding --replSet rs0.

I also made sure to explicitly set the hostname for my MongoDB container (in my case overleaf_mongodb). Finally I had to initiate the replica set by running:

docker compose exec -it overleaf_mongodb /bin/bash -c 'echo "rs.initiate()" | mongosh'

If you don't set the hostname the rs.initiate() will create a replica set using the container ID, which will change, if the container is removed and restarted.

from overleaf.

andreas-schliebitz avatar andreas-schliebitz commented on September 25, 2024

Just noticed that you cannot run MongoDB 5.0.

I'll leave my comment as the error may be quite frequent for users migrating to Overleaf Version 5.

from overleaf.

lizhi10 avatar lizhi10 commented on September 25, 2024

Just noticed that you cannot run MongoDB 5.0.

I'll leave my comment as the error may be quite frequent for users migrating to Overleaf Version 5.

Thank you for you quick answer. Your comment lets me consider runing Overleaf 4.2 instead of trying to deploy Overleaf 5. However, I think it is better to run Overleaf on some low-energy-comsuption devices such as Rasberry Pi so that one can TeX any time, any device with a very low environmental burden.

from overleaf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.