We release new versions of Central regularly. You do not have to upgrade to the latest version immediately, but we generally recommend that you do so to get access to the newest features, bug fixes, and security updates.
To see your version number, click on the question mark icon in the upper right section of your Central menu bar, then click Version. If you don't see the question mark, you can also see the version number by adding
version.txt to the root URL (e.g., demo.getodk.cloud/version.txt).
To perform an upgrade, you'll first need to get to the software. You'll need to log into your server's command line prompt again, like you did when you first set up the server. If you used our DigitalOcean installation steps but can't quite remember how to do this, we suggest reviewing the section Installing Central as a reminder, or if you can't remember your password to start at the top of that section to reset your password.
Once you are logged into your server, navigate back to the project folder (
cd central). Then, get the latest version of the infrastructure:
If you have made local changes to the files, you may have to start with
git stash, then run
git stash pop after you perform the
pull. If you aren't sure, just run
git pull anyway and it will tell you.
If you are upgrading to Central v1.2, see Upgrading to Central v1.2 to learn how to resolve any error messages using
Now, get the latest client and server:
git submodule update -i. Then, build your server from the latest code you just fetched:
If you run into problems with this step, try stopping the Central software (
docker-compose stop) and retry
docker-compose build after it has shut down the Central website.
Next, you need to do a little bit of maintenance. Run
docker prune. If it thinks
prune is not a docker command, run
docker image prune instead. You'll be asked to confirm the removal of all dangling images. Agree by typing the letter
y and pressing
Finally, restart the running server to pick up the changes:
docker-compose stop and
docker-compose up -d.
Upgrading to Central v1.2¶
In v1.2, we added some advanced features to Central's server configuration. These features will not be meaningful to most users. However, because we would like to make this change and further improvements in the future, we have modified the template
.env configuration file you set up during installation.
Since you have made your own changes to the
.env file to set Central up for your environment, you will see an error message when you run the
git pull command:
error: Your local changes to the following files would be overwritten by merge: .env Please commit your changes or stash them before you merge.
Don't worry, nothing bad happens if you see this. To get around this error, run this set of commands instead of
mv .env env-tmp git pull mv env-tmp .env
git status should not say anything about the
.env file at all and you can continue with the upgrade instructions above.
git status still shows errors, copy and paste your entire console session into a forum thread and someone will help you out.
Upgrading to Central v0.9¶
Particularly if you are installed on DigitalOcean, you will need to modify the system firewall for Enketo features in Central to work correctly.
The quickest way to do this is to run
ufw disable while logged into your server's command line prompt. You should see the message
Firewall stopped and disabled on system startup. If so, you have configured the firewall correctly.
For advanced administrators
While it sounds dangerous, disabling your system firewall does not put your server at greater risk. In fact, most Linux operating systems come with the system firewall disabled.
If you don't want to disable the firewall entirely, you can instead configure Docker,
ufw yourself. This can be really difficult to do correctly, so we don't recommend most people try. Another option is to use an upstream network firewall.
The goal here is to ensure that it is possible to access the host through its external IP from within each Docker container. In particular, if you can successfully
curl your Central website over HTTPS on its public domain name from within the Enketo container, all Enketo features should work correctly.