DeviaVir / zenbot

Zenbot is a command-line cryptocurrency trading bot using Node.js and MongoDB.
MIT License
8.22k stars 2.04k forks source link

Error with docker-compose on windows #2685

Closed BlackWingedKing closed 2 years ago

BlackWingedKing commented 3 years ago

System information

Describe the problem

I'm get this error when I ran docker-compose --file=docker-compose-windows.yml up in windows

Source code / Error logs

Docker Compose is now in the Docker CLI, try `docker compose up`

Starting zenbot_mongodb-data_1 ... done
Recreating zenbot_mongodb_1    ... done
Recreating zenbot_server_1     ... error

ERROR: for zenbot_server_1  Cannot start service server: Cannot link to a non running container: /zenbot_mongodb_1 AS /zenbot_server_1/mongodb

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.
DeviaVir commented 3 years ago

What does docker logs zenbot_server_1 return?

BlackWingedKing commented 3 years ago

@DeviaVir It doesn't return anything

posting the command line output for better reference

(zen2.7) PS C:\Users\rites\Desktop\eruditis\open_source\zenbot> docker-compose --file=docker-compose-windows.yml up
Docker Compose is now in the Docker CLI, try `docker compose up`

Starting zenbot_mongodb-data_1 ... done
Starting zenbot_mongodb_1      ... done
Starting zenbot_server_1       ... error

ERROR: for zenbot_server_1  Cannot start service server: Cannot link to a non running container: /zenbot_mongodb_1 AS /zenbot_server_1/mongodb

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.
(zen2.7) PS C:\Users\rites\Desktop\eruditis\open_source\zenbot> docker logs zenbot_server_1
(zen2.7) PS C:\Users\rites\Desktop\eruditis\open_source\zenbot>
DeviaVir commented 3 years ago

Ah, it looks like zenbot_mongodb_1 is the one erroring.

Try: docker logs zenbot_mongodb_1?

BlackWingedKing commented 3 years ago

@DeviaVir

(base) PS C:\Users\rites\Desktop\eruditis\open_source\zenbot> docker-compose --file=docker-compose-windows.yml up
Docker Compose is now in the Docker CLI, try `docker compose up`

Starting zenbot_mongodb-data_1 ... done
Starting zenbot_mongodb_1      ... done
Starting zenbot_server_1       ... error

ERROR: for zenbot_server_1  Cannot start service server: Cannot link to a non running container: /zenbot_mongodb_1 AS /zenbot_server_1/mongodb

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.
(base) PS C:\Users\rites\Desktop\eruditis\open_source\zenbot> docker logs zenbot_mongodb_1
Error parsing command line: unrecognised option '--smallfiles'
try 'mongod --help' for more information
Error parsing command line: unrecognised option '--smallfiles'
try 'mongod --help' for more information
Error parsing command line: unrecognised option '--smallfiles'
try 'mongod --help' for more information
Error parsing command line: unrecognised option '--smallfiles'
try 'mongod --help' for more information
DeviaVir commented 3 years ago

Can you try removing --smallfiles from https://github.com/DeviaVir/zenbot/blob/unstable/docker-compose-windows.yml#L15 ?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.