zenbot
zenbot copied to clipboard
Docker compose commands fails to run
System information
- Have I written custom code (as opposed to using zenbot vanilla): No custom code
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac
- Zenbot version (commit ref, or version): latest unstable branch
- Zenbot branch: unstable
- NodeJS version: 8.9.0
- Python version (when using a python script):
- Exact command to reproduce (include everything): docker-compose up
- Did I make any changes to conf-sample.js?: no
Describe the problem
running docker-compose up gives following error
Source code / Error logs
aching to 9333ccc3dfb4_zenbot_mongodb_1, zenbot_server_1
server_1 | WARNING: MongoDB Connection Error: { MongoNetworkError: failed to connect to server [mongodb:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 172.18.0.2:27017]
server_1 | at Pool.
Make sure you run MongoDB. See: GH-168
I am able to get the bot working without docker. When i dont use docker i start mongodb in background and then run bot and it works fine.
Looking at the docker-compose file it looks that it starts mongodb and the bot, so i assume that it should start mongodb too. Not that familiar with docker hence cant debug more.
Any pointers?
Any help will be appritiated
Same problem on MacOS Mojave
i got the same error on High Sierra, but that's when i was running on a boot 2 docker vm using virtualbox.
When i updated to the latest Docker for Mac and did it natively, it worked.
However, after you ctrl-c and quit you need to do docker-compose down
before going back up again, otherwise the can't connect error comes back.