Comments (12)
@gushil ,
Can you tell us which OS you are using?
Version of docker and docker-compose?
Which interface did you choose during setup?
Does the corresponding ip match mongo.kobo.private
in extra_hosts
in docker-compose.frontend.override.yml
?
from kobo-install.
Having the same issue with Ubuntu 18.04, docker version 18.09.5, docker-compose version 1.21.2, and a server mode installation. The extra_hosts
section in docker-compose.frontend.override.yml
does match the public ip of my machine: mongo.kobo.temp.private:<machine public ip>
.
Interestingly when I curl <machine ip>:27017
from the host, mongodb is responding, but after attaching to the kpi container, the same curl command times out. So it seems that this container cannot open an outward connection on port 27017. Yet it can access the outside world (curl google.com
works)
from kobo-install.
@raphaelmerx, nothing else is installed?
Would you mind to paste the output of docker ps
command?
from kobo-install.
Nothing else is installed on this machine. I started from a fresh Ubuntu 18.04 install. Here's the output of docker ps
:
enketo@kobo ~ % docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
08f2c296f53a kobotoolbox/kobocat:2.019.13 "/sbin/my_init" 2 days ago Up 2 minutes 8000/tcp kobo-docker_kobocat_1
fdef9a6c2d54 kobotoolbox/nginx:latest "/sbin/my_init" 2 days ago Up 2 days 0.0.0.0:80->80/tcp, 443/tcp kobo-docker_nginx_1
a72515b6f53e kobotoolbox/enketo-express-extra-widgets:1.75.3 "/sbin/my_init" 2 days ago Up 2 days 8005/tcp kobo-docker_enketo_express_1
6df7112f21ca kobotoolbox/kpi:2.019.13 "/sbin/my_init" 2 days ago Up 6 seconds 8000/tcp kobo-docker_kpi_1
b8b4963583c2 redis:3.2 "docker-entrypoint.s…" 2 days ago Up 2 days 6379/tcp, 0.0.0.0:6380->6380/tcp kobo-docker_redis_cache_1
1c5c5200e545 redis:3.2 "docker-entrypoint.s…" 2 days ago Up 2 days 0.0.0.0:6379->6379/tcp kobo-docker_redis_main_1
4837d35051d6 mdillon/postgis:9.5 "docker-entrypoint.s…" 2 days ago Up 2 days 0.0.0.0:5432->5432/tcp kobo-docker_postgres_1
As you can see above kpi and kobocat keep restarting, because they are waiting for mongo, which they cannot access.
from kobo-install.
@raphaelmerx I don't see the mongo container? Did you paste all the output or it's missing? I'm wondering why it didn't start with others?
from kobo-install.
Indeed the mongo container was gone one hour ago, yet it was there and accepting connections 3 days ago... Anyways, just did another python run.py
, and here's the docker ps
output:
enketo@kobo ~/kobo-install % docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6e247f9e3a37 kobotoolbox/nginx:latest "/sbin/my_init" 6 minutes ago Up 6 minutes 0.0.0.0:80->80/tcp, 443/tcp kobo-docker_nginx_1
328ddf9f34bd kobotoolbox/kpi:2.019.13 "/sbin/my_init" 6 minutes ago Up 6 seconds 8000/tcp kobo-docker_kpi_1
d59cd029a2bb kobotoolbox/kobocat:2.019.13 "/sbin/my_init" 6 minutes ago Up 6 seconds 8000/tcp kobo-docker_kobocat_1
93ed694c2613 kobotoolbox/enketo-express-extra-widgets:1.75.3 "/sbin/my_init" 6 minutes ago Up 6 minutes 8005/tcp kobo-docker_enketo_express_1
8923410e6f82 redis:3.2 "docker-entrypoint.s…" 6 minutes ago Up 6 minutes 0.0.0.0:6379->6379/tcp kobo-docker_redis_main_1
a8db11109a15 mdillon/postgis:9.5 "docker-entrypoint.s…" 6 minutes ago Up 6 minutes 0.0.0.0:5432->5432/tcp kobo-docker_postgres_1
866cc4bb3fbd mongo:3.4 "docker-entrypoint.s…" 6 minutes ago Up 6 minutes 0.0.0.0:27017->27017/tcp kobo-docker_mongo_1
0944ad661f01 redis:3.2 "docker-entrypoint.s…" 6 minutes ago Up 6 minutes 6379/tcp, 0.0.0.0:6380->6380/tcp kobo-docker_redis_cache_1
Mongo is here, yet kpi and kobocat keep restarting because they can't connect to mongo.
from kobo-install.
I gave it a try with these versions:
- ubuntu
18.04.2
- docker:
version 18.09.5, build e8ff056
- docker-compose
version 1.24.0, build 0aa59064
Using docker
with a normal user. not sudo
Even I don't think it's related to your issue, it did not work for me at the first run because of AppArmor
. I had to disable it. It blocked docker to stop/down containers.
With AppArmor
disabled, it worked as expected. You can check if it changes something for you.
Would you mind to share your .run.conf
(can be found in kobo-install
directory). Don't forget to remove passwords and other private credentials (aws, smtp etc...) before sharing it.
You can also try advanced options
and use another port for Mongo
.
from kobo-install.
Thanks for suggesting changing the mongo port, it made me remember to check if ufw was running on this machine, which it was. Disabling ufw fixed the connection between kobocat/kpi and mongo!
@gushil please try sudo systemctl stop ufw
and see if that works for you.
from kobo-install.
@raphaelmerx I still got the issue, especially when using in centos in server.
It looks like that either kpi or kobocat cannot connect to mongo using extra_hosts that mapped mongo.kobo.private to host ip address.
If I try with local development host, which is macos, this issue comes intermittently, but most of the time works.
from kobo-install.
@gushil: Which version do you have of docker
, docker-compose
and CentOS
.
Do you have other things installed on the server?
from kobo-install.
Docker version 18.09.5, build e8ff056
docker-compose version 1.23.1, build b02f1306
CentOS Linux release 7.6.1810 (Core)
I don't think there are many things installed in the server because it's a recent one.
from kobo-install.
I can't say. It works on our side. You may have already checked but as raphael suggested, any firewalls/iptables rules activated?
You can ask for help at https://community.kobotoolbox.org/
from kobo-install.
Related Issues (20)
- Use "docker compose" instead of "docker-compose", or why I hate software engineering HOT 3
- Use distinct Redis database numbers (helpful when "main" and "cache" are the same server)
- Media files are not being displayed in forms HOT 1
- Update Enketo logo
- `kobo-install` cannot stop or restart containers when LetsEncrypt is activated
- Make default PostgreSQL settings the same with advanced options or default setup
- Error when running kobo-install
- What is the latest tested version of Ubuntu for running kobo-install? [update readme.md] HOT 2
- CryptographyDeprecation warning on Ubuntu 22.04 HOT 1
- Could not write configuration file HOT 1
- Install on debian : error with postgresql HOT 1
- Error 500 when sending mail, with an private SMTP relay, on port 25, without authentication and without TLS HOT 1
- Install error on debian 11 : FileNotFound HOT 2
- Let's Encrypt / Nginx scripts expect obsolete "docker-compose" command
- Unable to connect to redis-main while running kobo-install HOT 1
- git error while installing HOT 2
- Implement new environment variable `ENKETO_REDIS_MAIN_URL`
- Unused environment variable(s)? HOT 1
- Upgrading to docker[space]compose (Docker Compose v2) breaks installation
- Request: Tutorial Video for VM Installation and Custom Domain Setup HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kobo-install.