Skip to content

jdc nc exec-start Handshake status 404 Not Found #54

@wanhl1990

Description

@wanhl1990
Traceback (most recent call last):
  File "/usr/local/bin/jdc", line 11, in <module>
    load_entry_point('jdcloud-cli==1.2.5', 'console_scripts', 'jdc')()
  File "/usr/local/lib/python3.6/site-packages/jdcloud_cli/jdc.py", line 152, in main
    app.run()
  File "/usr/local/lib/python3.6/site-packages/jdcloud_cli/cement/core/foundation.py", line 905, in run
    return_val = self.controller._dispatch()
  File "/usr/local/lib/python3.6/site-packages/jdcloud_cli/cement/ext/ext_argparse.py", line 926, in _dispatch
    return func()
  File "/usr/local/lib/python3.6/site-packages/jdcloud_cli/controllers/services/nc.py", line 602, in exec_start
    exec_start(self.app, 'nc', headers, region_id, self.app.pargs.containerId, self.app.pargs.execId)
  File "/usr/local/lib/python3.6/site-packages/jdcloud_cli/controllers/websocket/exec_start_request.py", line 61, in exec_start
    request.invoke_shell(credential)
  File "/usr/local/lib/python3.6/site-packages/jdcloud_cli/controllers/websocket/exec_start_request.py", line 47, in invoke_shell
    web_socket.invoke_shell(self.__url, self.__headers)
  File "/usr/local/lib/python3.6/site-packages/jdcloud_cli/controllers/websocket/websocket_gnu.py", line 43, in invoke_shell
    shell = websocket.create_connection(url, timeout=10, header=header)
  File "/usr/local/lib/python3.6/site-packages/websocket/_core.py", line 515, in create_connection
    websock.connect(url, **options)
  File "/usr/local/lib/python3.6/site-packages/websocket/_core.py", line 226, in connect
    self.handshake_response = handshake(self.sock, *addrs, **options)
  File "/usr/local/lib/python3.6/site-packages/websocket/_handshake.py", line 80, in handshake
    status, resp = _get_resp_headers(sock)
  File "/usr/local/lib/python3.6/site-packages/websocket/_handshake.py", line 165, in _get_resp_headers
    raise WebSocketBadStatusException("Handshake status %d %s", status, status_message, resp_headers)
websocket._exceptions.WebSocketBadStatusException: Handshake status 404 Not Found

获取exec-id 没有问题。 但使用jdc 连接容器的时候,出现了这个错误。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions