Giter VIP home page Giter VIP logo

nojava-ipmi-kvm-server's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nojava-ipmi-kvm-server's Issues

Fails to connect due to tornado.websocket.WebSocketClosedError

Hi,

With a very basic setup, that's no oauth, no LDAP, I'm getting the error below. Could it be that there is some sort of timeout? Also, maybe not echo the password in the logs :)

Thanks!

INFO:tornado.access:200 GET /dashboard (192.168.5.103) 4.29ms
INFO:tornado.access:101 GET /kvm (192.168.5.103) 0.72ms
INFO:root:Websocket opened by anonymous
INFO:root:Websocket from anonymous said {"action":"connect","server":"mykvmhost","password":"SECRET","resolution":"1280x960"}
INFO:root:anonymous wants to connect to mykvmhost with res 1280x960
INFO:nojava_ipmi_kvm.kvm:Check if 'http://ipmi.sector.int/' is reachable...
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): ipmi.sector.int:80
DEBUG:urllib3.connectionpool:http://ipmi.sector.int:80 "HEAD / HTTP/1.1" 200 0
INFO:nojava_ipmi_kvm.kvm:The url 'http://ipmi.sector.int/' is reachable.
INFO:nojava_ipmi_kvm.kvm:Starting the Docker container...
INFO:nojava_ipmi_kvm.kvm:Waiting for the Docker container to be up and ready...
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8801
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8801
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8801
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8801
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8801
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8801
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8801
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8801
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8801
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8801
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8801
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8801
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8801
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8801
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8801
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8801
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8801
DEBUG:urllib3.connectionpool:http://localhost:8801 "HEAD / HTTP/1.1" 200 0
INFO:nojava_ipmi_kvm.kvm:Docker container is up and running.

INFO:nojava_ipmi_kvm.kvm:Docker container is up and running.
ERROR:tornado.application:Exception in callback functools.partial(<function WebSocketProtocol._run_callback.<locals>.<lambda> at 0x7f145dc28f70>, <Task finished name='Task-17' coro=<KVMHandler.on_message() done, defined at /home/ipmi/s/nojava-ipmi-kvm-server/kvm_handler.py:49> exception=WebSocketClosedError()>)
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/tornado/ioloop.py", line 741, in _run_callback
    ret = callback()
  File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 656, in <lambda>
    self.stream.io_loop.add_future(result, lambda f: f.result())
  File "/home/ipmi/s/nojava-ipmi-kvm-server/kvm_handler.py", line 109, in on_message
    sess = self._current_session = await start_kvm_container(
  File "/usr/local/lib/python3.8/dist-packages/nojava_ipmi_kvm/kvm.py", line 384, in start_kvm_container
    log("Docker container is up and running.")
  File "/usr/local/lib/python3.8/dist-packages/nojava_ipmi_kvm/kvm.py", line 136, in log
    additional_logging(msg, *args, **kwargs)
  File "/home/ipmi/s/nojava-ipmi-kvm-server/kvm_handler.py", line 93, in send_log_message
    self.write_message({"action": "log", "message": msg if len(args) == 0 else msg % args})
  File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 337, in write_message
    raise WebSocketClosedError()
tornado.websocket.WebSocketClosedError
ERROR:tornado.application:Uncaught exception GET /kvm (192.168.5.103)
HTTPServerRequest(protocol='http', host='nojava-ipmi.sector.int:8080', method='GET', uri='/kvm', version='HTTP/1.1', remote_ip='192.168.5.103')
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/tornado/web.py", line 1704, in _execute
    result = await result
  File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 278, in get
    await self.ws_connection.accept_connection(self)
  File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 879, in accept_connection
    await self._accept_connection(handler)
  File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 962, in _accept_connection
    await self._receive_frame_loop()
  File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 1116, in _receive_frame_loop
    await self._receive_frame()
  File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 1207, in _receive_frame
    await handled_future
  File "/usr/local/lib/python3.8/dist-packages/tornado/ioloop.py", line 741, in _run_callback
    ret = callback()
  File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 656, in <lambda>
    self.stream.io_loop.add_future(result, lambda f: f.result())
  File "/home/ipmi/s/nojava-ipmi-kvm-server/kvm_handler.py", line 109, in on_message
    sess = self._current_session = await start_kvm_container(
  File "/usr/local/lib/python3.8/dist-packages/nojava_ipmi_kvm/kvm.py", line 384, in start_kvm_container
    log("Docker container is up and running.")
  File "/usr/local/lib/python3.8/dist-packages/nojava_ipmi_kvm/kvm.py", line 136, in log
    additional_logging(msg, *args, **kwargs)
  File "/home/ipmi/s/nojava-ipmi-kvm-server/kvm_handler.py", line 93, in send_log_message
    self.write_message({"action": "log", "message": msg if len(args) == 0 else msg % args})
  File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 337, in write_message
    raise WebSocketClosedError()
tornado.websocket.WebSocketClosedError

Docker error caused by running nojava ipmi kvm!

INFO:root:anonymous wants to connect to host82 with res 1280x960
INFO:nojava_ipmi_kvm.kvm:Check if 'http://192.168.4.82/' is reachable...
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.4.82:80
DEBUG:urllib3.connectionpool:http://192.168.4.82:80 "HEAD / HTTP/1.1" 200 0
INFO:nojava_ipmi_kvm.kvm:The url 'http://192.168.4.82/' is reachable.
INFO:nojava_ipmi_kvm.kvm:Starting the Docker container...
ERROR:root:Could not start KVM container
Traceback (most recent call last):
File "/code/main.py", line 136, in on_message
sess = self._current_session = await start_kvm_container(
File "/usr/local/lib/python3.9/site-packages/nojava_ipmi_kvm/kvm.py", line 337, in start_kvm_container
raise DockerTerminatedError("Docker terminated with return code {}.".format(docker_process.returncode))
nojava_ipmi_kvm.kvm.DockerTerminatedError: Docker terminated with return code 5.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.