@rsmithlal I’ve got the same error when using the version 3.1.4 of Discourse Bitnami
The fix mentioned above is available only on 3.1.5 and not 3.1.4
The fix provided by @moggleif works as workaround, but we must wait for the new release by Bitnami (version 3.1.5) to fix it