-
Notifications
You must be signed in to change notification settings - Fork 2k
docker-compose up error #241
Comments
When I had that second error you posted I restarted the Docker service and it fixed it, |
Try this instead |
I'm running on wondows not linux so no sudo command. |
my docker-compose build shows mongodb-data uses an image, skipping |
I was able to get docker-compose to run but if I run a command like zenbot backfill gdax.BTC-USD 7 I get \Documents\GitHub\zenbot [master ≡ +0 ~2 -0 !]> zenbot backfill gdax.BTC-USD 7 Error: must pass a node-mongodb-native db with backend_options.db |
You must run zenbot in docker, because mongodb is running in docker. |
Actually it is not very easy to run simulations in a docker container... So I set up a linux virtual machine to run simulations. |
Yeah I was just thinking about setting up a linux virtual then deal with windows bs. |
Windows is not really friends with all docker functions just yet. There have been people that solved this problem by using the volume differently, but I don't know the details (and quite frankly do not care too much about Windows). |
Looks like more issues with volumes and Windows, honestly like others I don't use Windows and don't care enough about it to fix it. In addition fixing it on Windows might cause issues with other platforms. As others mentioned probably better to get a VM with linux |
I haven't used linux in about 2 years. What's a good lite linux distro for VM. |
You could look at CentOS 7. Lean and mean if you don't install desktop (Gnome or KDE) |
I had issues with Docker on Windows. It's filesystem related. If you're on Windows 10 with Creators Update, then your best bet is to use the Windows Subsystem for Linux (WSL) and follow the standard Linux instructions (no Docker). Works great for me. https://msdn.microsoft.com/en-us/commandline/wsl/install_guide |
The error is filesystem related, when using Docker for Windows (as opposed to the old docker on windows which worked with VirtualBox) your shared filesystem works over windows file sharing and just isn't compatible with all FS operations in the docker container. You can fix this easily by not mapping the DB data to a directory outside of the container. Change the following line in your docker-compose.yml
And re-run |
when I run this: zenbot backfill gdax.ETH-USD --days 14 I get the mongodb error running on my linux VPS. My other bot (not zenbot) continues to run just fine in the background, but no matter how I try to sim using zenbot, I get the error. Tried running the above with sudo at the front too, but not sure if I'm doing something wrong or not. I just followed the instructions on the wiki and installed via git clone then moved the dir to the same dir my other bot's in. |
@QuadroBro Please look at the response I posted just before yours, your VPS/FS doesn't support memory mapped files, and so it cannot load the DB. Make the change I suggested and it should work. |
@cmroche I don't use docker though. Does that matter? |
@QuadroBro Probably, the only errors listed in the original issue are ones emitted by docker. Unless you're referring to the generic cannot connect to mongodb error, in which case check your DB server and configuration. |
@cmroche I'm getting Error: must pass a node-mongodb-native db with backend_options.db then a bunch of other bullshit |
@cmroche here's the |
It cannot connect to the DB, this isn't really this issue. Please check your conf.js for the IP and User/Password and make sure your MongoDB server is configured correctly. |
Yeah, it's because they didn't add the line about installing mongo-db. There's the command for copying the sample config to a config.js, but no npm install mongoshit or apt-get mongoshit |
Closing due to inactivity. |
When running docker-compose up i get
ERROR: for mongodb-data Cannot start service mongodb-data: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:359: container init caused "rootfs_linux.go:54: mounting \"/C/Users/Curri/Documents/GitHub/zenbot/data/db\" to rootfs \"/var/lib/docker/overlay2/6f26981ffba8f523d28236e7b38c37cbca71fc267d9b9c1e5a9adbc9ed01e855/merged\" at \"/data/db\" caused \"stat /C/Users/Curri/Documents/GitHub/zenbot/data/db: input/output error\"""
ERROR: Encountered errors while bringing up the project.
as well as the other error I get is
Starting zenbot_mongodb-data_1
Starting zenbot_mongodb_1
Recreating 693ef93d0326_693ef93d0326_zenbot_server_1
ERROR: for server Cannot start service server: Cannot link to a non running container: /zenbot_mongodb_1 AS /zenbot_server_1/mongodb
ERROR: Encountered errors while bringing up the project.
The text was updated successfully, but these errors were encountered: