We are trying to install ODK Central on Ubuntu VM into Azure. Bellow is some prerequisite steps we have taken on installing the docker and firewall:
sudo apt update
sudo apt install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"
sudo apt update
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo apt install ufw
sudo ufw allow ssh sudo ufw allow 2375 sudo ufw allow 2376 sudo ufw enable
Afterwards, we continued with the steps mentioned in ODK Central Documentation from
git clone https://github.com/getodk/central
sudo cp files/docker-compose@.service /etc/systemd/system
but when we run
sudo systemctl start docker-compose@central
it failed to start. Here is what we got:
user@ourserver:~/central$ systemctl status docker-compose@central email@example.com - central via docker-compose Loaded: loaded (/etc/systemd/system/docker-compose@.service; disabled; vendor Active: failed (Result: exit-code) since Fri 2020-06-19 12:48:22 UTC; 12s ago Process: 3239 ExecStart=/usr/local/bin/docker-compose up (code=exited, status= Main PID: 3239 (code=exited, status=200/CHDIR)
Note that we didn't use DigitalOcean's Ubuntu image with docker, but we installed docker by ourselves following the above steps.
As we are planning to use Central for our data collection activities at the earliest possible, hence, we appreciate if you could help us with solving this problem and make it work.