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
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.
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.
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