From 22d42cea45e63b55e26c8d53b3139b038323a62c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Fri, 17 Sep 2021 16:49:29 +0200 Subject: [PATCH] fix: Revert "Remove MONGOID_AUTH_MECH setting from forum Dockerfile." This reverts commit 750bdca04d4eee88fa7a72343390033f666fa5da. The MONGOID_AUTH_MECH environment variable is actually necessary and required by the ruby gem. Thus, we should not remove it, but keep it to its default value. See: https://github.com/overhangio/tutor/pull/493#issuecomment-921758422 https://discuss.overhang.io/t/edx-forum-mongodb-authentication/927/18 --- CHANGELOG.md | 2 ++ tutor/templates/build/forum/Dockerfile | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25ecc53..7490cfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ Note: Breaking changes between versions are indicated by "💥". ## Unreleased +- [Bugfix] Fix forum starting issue: "NoMethodError: undefined method `encode' for nil:NilClass". + ## v12.1.0 (2021-09-17) - [Improvement] Make it easier to run edx-platform unit tests. diff --git a/tutor/templates/build/forum/Dockerfile b/tutor/templates/build/forum/Dockerfile index 6d48eaf..2bb7c23 100644 --- a/tutor/templates/build/forum/Dockerfile +++ b/tutor/templates/build/forum/Dockerfile @@ -45,6 +45,7 @@ ENV NEW_RELIC_ENABLE false ENV API_KEY forumapikey ENV SEARCH_SERVER "http://elasticsearch:9200" ENV MONGODB_AUTH "" +ENV MONGOID_AUTH_MECH ":scram" ENV MONGODB_HOST "mongodb" ENV MONGODB_PORT "27017" ENV MONGODB_DATABASE "cs_comments_service"