Checked. Only change I had to make was to increase memory to 4GB. Still there are errors.
I think errors are related to network and permission.
Specifically notice step (1) and (2) they are important for Windows docker service to be able to run the elastic container and mongo container
Notice you have configure the shared driver for the docker, as the volume mount doesn't work without it. https://stackoverflow.com/a/61850413
trains-apiserver | [2020-07-10 13:33:29,269] [8] [ERROR] [trains.updates] Failed obtaining updates
trains-apiserver | Traceback (most recent call last):
trains-apiserver | File "/opt/trains/server/updates.py", line 96, in _check_updates
trains-apiserver | response = self._check_new_version_available()
trains-apiserver | File "/opt/trains/server/updates.py", line 48, in _check_new_version_available
trains-apiserver | uid = Settings.get_by_key("server.uuid")
trains-apiserver | File "/opt/trains/server/database/model/settings.py", line 26, in get_by_key
trains-apiserver | res = Settings.objects(key=key).first()
trains-apiserver | File "/usr/local/lib/python3.6/site-packages/mongoengine/queryset/manager.py", line 37, in get
trains-apiserver | queryset = queryset_class(owner, owner._get_collection())
trains-apiserver | File "/usr/local/lib/python3.6/site-packages/mongoengine/document.py", line 219, in _get_collection
trains-apiserver | if cls._meta.get("auto_create_index", True) and db.client.is_primary:
trains-apiserver | File "/usr/local/lib64/python3.6/site-packages/pymongo/mongo_client.py", line 1005, in is_primary
trains-apiserver | return self._server_property('is_writable')
trains-apiserver | File "/usr/local/lib64/python3.6/site-packages/pymongo/mongo_client.py", line 830, in _server_property
trains-apiserver | writable_server_selector)
trains-apiserver | File "/usr/local/lib64/python3.6/site-packages/pymongo/topology.py", line 235, in select_server
trains-apiserver | address))
trains-apiserver | File "/usr/local/lib64/python3.6/site-packages/pymongo/topology.py", line 193, in select_servers
trains-apiserver | selector, server_timeout, address)
trains-apiserver | File "/usr/local/lib64/python3.6/site-packages/pymongo/topology.py", line 209, in _select_servers_loop
trains-apiserver | self._error_message(selector))
trains-apiserver | pymongo.errors.ServerSelectionTimeoutError: mongo:27017: [Errno -2] Name or service not known
LazyLeopard18 well done on locating the issue.
Yes Docker on Windows is a bit flacky...
Hi LazyLeopard18 ,
See details below, are you using the win10 docker-compose yaml?
https://github.com/allegroai/trains-server/blob/master/docs/install_win.md
Looks like a mongodb and NTFS issue
https://github.com/docker-library/mongo/issues/190
Above command and yaml file are working in Win10
I tried a slightly different approach that seems to work.
docker volume create --name=mongodata
And configured mogodat data in docker-compose file
Are all the docker running? it looks like the mongo docker is down
Web server port is modified and changed c:\opt to d:\opt
LazyLeopard18 nice. maybe we should add it in the FAQ / Install. Could you send the exact docker-compose you used and command line, I'll ask the guys to add it 🙂
could you send the entire log here?
i.e. from the "docker-compose" command line and onward