1. What is the issue? Please be detailed.
I am trying to set up ODK, with ODK Central on a self-hosted instance on Digital Ocean following the docs. I am new to this, so am still learning.
Following the steps in the instructions, I have been able to install Central to the point where it loads on the subdomain we have created, and I am able to login as the admin. Adding new users didn't work, and, seeing the tip in the docs and reading many posts recommending the same on this forum, I decided to move us to a custom email serivce from Mailjet. All configuration on Mailjet appears to be all set, a sender email address on our custom company domain has been validated (SPF, DKIM) and the status says "Active".
As soon as I make this move following the instructions to the best of my understanding, my login to Central stopped working (the page still loads).
When I enter my login credentials, the error popup, in red, is: "Something went wrong: error code 502."
Could anyone spot what I am doing wrong?
2. What steps can we take to reproduce this issue?
Not sure. A fresh install of Central on Digital Ocean droplet following the instructions?
3. What have you tried to fix the issue?
Not knowing exactly what's wrong, I rebuilt the droplet and did a fresh install of everything upto the creating users and logging into Central step, and set up the Mailjet custom email service again. And I ran into the same problem: my login worked at first, but after setting up the Mailjet service, the same error started appearing.
4. Upload any forms or screenshots you can share publicly below.
Below is a screenshot of the part of my .env
for setting up the Mailjet email server.
I found it hard to follow the instructions in the docs for appropriately editing .env
. I followed Mailjet's docs here and here to arrive at these entries. The EMAIL_USER
and EMAIL_PASSWORD
are our Mailjet account's API key and secret key respectively. Should I be setting the EMAIL_FROM
to anything (the docs don't mention it)?
Thanks!