Error while installing kobo on standalone server

Hi,

I am trying to install Kobo on AWS server. Setup is OK, but getting this error while trying to run it:

[+] Running 7/7
 ✔ Container kobofe-worker-1               Started2.6s
 ✔ Container kobofe-worker_low_priority-1  Started2.5s
 ✔ Container kobofe-worker_kobocat-1       Started2.6s
 ✔ Container kobofe-beat-1                 Started2.5s
 ✔ Container kobofe-nginx-1                Started2.4s
 ✔ Container kobofe-enketo_express-1       Started2.6s
 ✔ Container kobofe-kpi-1                  Started2.4s
WARN[0000] a network with name kobofe_kobo-fe-network exists but was not created for project "nginx-certbot".
Set `external: true` to use an existing network
[+] Running 1/1
 ✔ Network kobofe_kobo-fe-network  Removed0.0s
Error response from daemon: error while removing network: network kobofe_kobo-fe-network id c58443a5854632e3e9d34076510ff1b33b6e9cbaba823e96b257a2b5bcec7d62 has active endpoints
An error has occurred

Can someone help?
Thanks.

Welcome to the community, @saadaan! Linking you with @stephenoduor on this.

Hi all,
I have the same issue with my deployment. Did anyone succeed in finding a solution?
@saadaan @stephenoduor
Thanks

@nsaibirni Still waiting to get some help on the forum…

I edited the docker-compose.maintenance.yml file and removed the “kobofe_” prefix from the network name, and it seems to work. Not sure if this is the right solution, though.

networks:
  kobo-fe-network:
    name: kobofe_kobo-fe-network

To

networks:
  kobo-fe-network:
    name: kobo-fe-network

To me it looks like using the kobo-fe-network in the nginx_cerbot needs to be set as external.
In nginx compose template “external:true” is mission imho. That work for me.

Running on Python 3.10.12 I also had to solve this one in order to get the clean installation running: RSA key length in certbot-init template to small · Issue #247 · kobotoolbox/kobo-install · GitHub

Hello @nsaibirni I have managed to navigate the issue, my notes though not very clear but I hope it may help you.

Installing Kobo On Ubuntu VPS
Requirements
* Ubuntu 22.04
* Docker Engine
* Python 3.10+

Clone Kobo Install Repo
* https://github.com/kobotoolbox/kobo-install.git

Navigate to:
* /root/kobo-install/templates/nginx-certbot

Open:
* nano docker-compose.yml.tpl and add ```external: true``` in networks below name line (Ref: https://community.kobotoolbox.org/t/error-while-installing-kobo-on-standalone-server/65603/6)

Open:
* nano init-letsencrypt.sh.tpl and rsa:1024 to rsa:2048 (Ref: https://github.com/kobotoolbox/kobo-install/issues/247)

NOTE:
* Anytime you have encountered an, remove all docker containers, docker networks and kobo repo related materials and start again just incase any setup info is cached

Seems like the whole project is riddled with no predictable setup. After above changes going through in latest version still struggling.

Check your docker-compose version. If your version is 1 try 2 and if 2 - try 1.

1 Like