KoboToolbox self-hosted: kf login loop using duckdns and kobo-install

I’m trying to install KoboToolbox using https://github.com/kobotoolbox/kobo-install, on AWS EC2 with Ubuntu 24.02, Docker version 29.2.1 (build a5c7197), Docker Compose version v5.0.2, and Python 3.12.3.

I’m using duckdns.org for the subdomains kf, kc, and ee. After finishing the installation, everything seems to be working correctly and I can access all the subdomains. However, when I try to login to kf, it accepts my credentials but then redirects me back to the login page again.

How can I fix this issue?

Hi @al12110669

Could you please share the output of
docker ps -a?

Depending on how Docker and Docker Compose were installed, you may need to run the commands with sudo, for example:

  • sudo docker ps -a

  • sudo docker network ls

Kindly confirm whether all containers are up and running,
and also check the status of the Docker networks.

Avoid sharing any confidential information here. For sensitive details, feel free to send them via DM

1 Like

ure, I’m sharing the result of the docker ps -a query.

CONTAINER ID   IMAGE                                            COMMAND                  CREATED          STATUS          PORTS                                                                          NAMES
3d1c2d923dd3   certbot/certbot                                  "/bin/sh -c 'trap ex…"   26 minutes ago   Up 26 minutes   80/tcp, 443/tcp                                                                nginx-certbot-certbot-1
7ae595ea2b66   nginx:1.26-alpine                                "/docker-entrypoint.…"   27 minutes ago   Up 27 minutes   0.0.0.0:80->80/tcp, [::]:80->80/tcp, 0.0.0.0:443->443/tcp, [::]:443->443/tcp   nginx-certbot-nginx_ssl_proxy-1
f9aa663d2fd5   nginx:1.27                                       "/docker-entrypoint.…"   27 minutes ago   Up 27 minutes   80/tcp                                                                         kobofe-nginx-1
c96de13f6dc1   kobotoolbox/kpi:2.026.03                         "bash /srv/src/kpi/d…"   27 minutes ago   Up 27 minutes   8000/tcp                                                                       kobofe-worker_low_priority-1
df6caafb0286   kobotoolbox/kpi:2.026.03                         "bash /srv/src/kpi/d…"   27 minutes ago   Up 27 minutes   8000/tcp                                                                       kobofe-worker-1
853d038fb488   kobotoolbox/kpi:2.026.03                         "bash /srv/src/kpi/d…"   27 minutes ago   Up 26 minutes   8000/tcp                                                                       kobofe-beat-1
9ec757654a7e   kobotoolbox/kpi:2.026.03                         "bash /srv/src/kpi/d…"   27 minutes ago   Up 27 minutes   8000/tcp                                                                       kobofe-worker_kobocat-1
f89333fb4971   kobotoolbox/kpi:2.026.03                         "/bin/bash docker/en…"   27 minutes ago   Up 16 minutes   8000/tcp                                                                       kobofe-kpi-1
b355ddac067b   kobotoolbox/kpi:2.026.03                         "bash /srv/src/kpi/d…"   27 minutes ago   Up 27 minutes   8000/tcp                                                                       kobofe-worker_long_running_tasks-1
488aaaa37d9a   kobotoolbox/enketo-express-extra-widgets:7.6.0   "docker-entrypoint.s…"   27 minutes ago   Up 27 minutes   8005/tcp                                                                       kobofe-enketo_express-1
453b03737633   redis:7.2                                        "docker-entrypoint.s…"   28 minutes ago   Up 28 minutes   6379/tcp                                                                       kobobe-redis_main-1
bfc14f10b636   redis:7.2                                        "docker-entrypoint.s…"   28 minutes ago   Up 28 minutes   6379/tcp                                                                       kobobe-redis_cache-1
375bb2b19825   mongo:5.0                                        "docker-entrypoint.s…"   28 minutes ago   Up 28 minutes   27017/tcp                                                                      kobobe-mongo-1
86eaf0518db1   postgis/postgis:14-3.2                           "docker-entrypoint.s…"   28 minutes ago   Up 28 minutes   5432/tcp                                                                       kobobe-postgres-1
ubuntu@ip-172-31-19-69:~/kobo-install$

The steps I followed are the ones suggested on the page. Additionally, I disabled the firewall (sudo ufw disable) and, using the recommended configuration without linking an email (I checked and it’s not necessary), I get a message that the website sends.