toolkit icon indicating copy to clipboard operation
toolkit copied to clipboard

bin/up / Quick start guide fails due to incorrect MONGO_VERSION parsing

Open maxbeer99 opened this issue 1 year ago • 5 comments

Steps to Reproduce

  1. Follow the Quick start guide
  2. 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

maxbeer99 avatar Aug 30 '24 12:08 maxbeer99

I met the same question, it seems match a wrong value in this code: image

kenjiding avatar Aug 30 '24 16:08 kenjiding

I met the same problem.

Stevetich avatar Sep 18 '24 07:09 Stevetich

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

valentinkauf avatar Sep 19 '24 09:09 valentinkauf

anybody know how solve this problem

devin-ldz avatar Apr 13 '25 08:04 devin-ldz

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

seajupiter avatar May 26 '25 13:05 seajupiter