rancher / old-vm

(OBSOLETE) Package and Run Virtual Machines as Docker Containers
Apache License 2.0
646 stars 133 forks source link

ranchervm WebUI failing #46

Closed dx9 closed 9 years ago

dx9 commented 9 years ago

This happens when attempting to reach the UI after booting the container on RancherOS v0.3.1

rancher@rancher:~$ docker run -v /run:/run -p 8081:80 -v /tmp/ranchervm:/ranchervm rancher/ranchervm

WARNING: no 'numpy' module, HyBi protocol will be slower 172.19.8.1 - - [17/Jun/2015 20:05:02] command: /var/lib/rancher/noVNC-0.0.2/cgi-bin/ranchervm "" 172.19.8.1 - - [17/Jun/2015 20:05:02] Traceback (most recent call last): File "/var/lib/rancher/noVNC-0.0.2/cgi-bin/ranchervm", line 355, in containers = {c.get("Id"): c for c in docker_client.containers(all=True)} File "/usr/local/lib/python2.7/dist-packages/docker/client.py", line 440, in containers res = self._result(self._get(u, params=params), True) File "/usr/local/lib/python2.7/dist-packages/docker/client.py", line 106, in _get return self.get(url, _self._set_request_timeout(kwargs)) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 477, in get return self.request('GET', url, _kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 465, in request resp = self.send(prep, _send_kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 573, in send r = adapter.send(request, _kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 415, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', error(111, 'Connection refused'))

172.19.8.1 - - [17/Jun/2015 20:05:02] CGI script exit status 0x1 172.19.8.1: ignoring socket not ready 172.19.8.1: ignoring socket not ready

sheng-liang commented 9 years ago

Please use -v /var/run:/var/run instead of -v /run:/run. It turns out RancherOS does not link /var/run to /run

dx9 commented 9 years ago

nice tks @sheng-liang now I'm rockin