GNS3 / gns3-server

GNS3 server
GNU General Public License v3.0
811 stars 263 forks source link

Traceback when starting Docker container #383

Closed grossmj closed 8 years ago

grossmj commented 8 years ago

Tried to start an Ubuntu Docker container.

Server error from http://127.0.0.1:8000: ubuntu-1: Traceback (most recent call last):
  File "/home/grossmj/PycharmProjects/gns3-server/gns3server/web/route.py", line 179, in control_schema
    yield from func(request, response)
  File "/home/grossmj/PycharmProjects/gns3-server/gns3server/handlers/api/docker_handler.py", line 101, in start
    yield from container.start()
  File "/home/grossmj/PycharmProjects/gns3-server/gns3server/modules/docker/docker_vm.py", line 175, in start
    yield from self._start_console()
  File "/home/grossmj/PycharmProjects/gns3-server/gns3server/modules/docker/docker_vm.py", line 205, in _start_console
    ws = yield from self.manager.websocket_query("containers/{}/attach/ws?stream=1&stdin=1&stdout=1&stderr=1".format(self._cid))
  File "/home/grossmj/PycharmProjects/gns3-server/gns3server/modules/docker/__init__.py", line 109, in websocket_query
    autoping=True)
TypeError: ws_connect() got an unexpected keyword argument 'origin'
julien-duponchelle commented 8 years ago

You need last aiohttp. When you setup.py it should make the upgrade.

Le ven. 25 déc. 2015 01:05, Jeremy Grossmann notifications@github.com a écrit :

Tried to start an Ubuntu Docker container.

Server error from http://127.0.0.1:8000: ubuntu-1: Traceback (most recent call last): File "/home/grossmj/PycharmProjects/gns3-server/gns3server/web/route.py", line 179, in control_schema yield from func(request, response) File "/home/grossmj/PycharmProjects/gns3-server/gns3server/handlers/api/docker_handler.py", line 101, in start yield from container.start() File "/home/grossmj/PycharmProjects/gns3-server/gns3server/modules/docker/docker_vm.py", line 175, in start yield from self._start_console() File "/home/grossmj/PycharmProjects/gns3-server/gns3server/modules/docker/docker_vm.py", line 205, in _start_console ws = yield from self.manager.websocket_query("containers/{}/attach/ws?stream=1&stdin=1&stdout=1&stderr=1".format(self._cid)) File "/home/grossmj/PycharmProjects/gns3-server/gns3server/modules/docker/init.py", line 109, in websocket_query autoping=True) TypeError: ws_connect() got an unexpected keyword argument 'origin'

— Reply to this email directly or view it on GitHub https://github.com/GNS3/gns3-server/issues/383.

grossmj commented 8 years ago
$ pip3 freeze | grep aiohttp
aiohttp==0.17.2

I have version 0.17.2, the issue remains.

julien-duponchelle commented 8 years ago

It should be 0.19 previous doens't support docker websocket

Le lun. 28 déc. 2015 05:14, Jeremy Grossmann notifications@github.com a écrit :

$ pip3 freeze | grep aiohttp aiohttp==0.17.2

I have version 0.17.2, the issue remains.

— Reply to this email directly or view it on GitHub https://github.com/GNS3/gns3-server/issues/383#issuecomment-167480050.

julien-duponchelle commented 8 years ago

https://github.com/GNS3/gns3-server/blob/1.5/requirements.txt