bin/up / Quick start guide fails due to incorrect MONGO_VERSION parsing
Steps to Reproduce
- Follow the Quick start guide
- Run
bin/up
Expected Behaviour
Overleaf should start up
Observed Behaviour
$ bin/up
--------------------- ERROR -----------------------
Invalid MONGO_VERSION: MONGO_VERSION=6.0
MONGO_VERSION must start with the actual major version of mongo, followed by a dot.
Example: MONGO_IMAGE=my.dockerhub.com/custom-mongo
MONGO_VERSION=6.0-custom
--------------------- ERROR -----------------------
Context
Fatal error
Technical Info
- Operating System and version (desktop or mobile): macOS 14.2.1 23C71 arm64
- Shell: zsh
Analysis
Likely same origin as #282
I met the same question, it seems match a wrong value in this code:
I met the same problem.
I met the same, read_configuration() seams to bring issue. Work-around to be able to launch, is to hardcode mango version :
in lib/shared_function.sh
function read_mongo_version() {
local mongo_image=mongo
local mongo_version=6.0
anybody know how solve this problem
I encountered the same problem. It's cause is like what @kenjiding said. I think it is due to the difference between the builtin sed of macOS and GNU sed. A fix is to install GNU sed (like from homebrew) and modify the script to use gsed instead of sed