Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not websocket protocol #149

Closed
KevinMyDing opened this issue May 29, 2017 · 6 comments
Closed

not websocket protocol #149

KevinMyDing opened this issue May 29, 2017 · 6 comments

Comments

@KevinMyDing
Copy link

Environment

  • [Include version, operating system name, and other relevant details]
  • OS:mac
  • Docker:
    Client:
Version:      17.03.1-ce
API version:  1.27
Go version:   go1.7.5
Git commit:   c6d412e
Built:        Tue Mar 28 00:40:02 2017
OS/Arch:      darwin/amd64

Server:
Version:      17.03.1-ce
API version:  1.27 (minimum version 1.12)
Go version:   go1.7.5
Git commit:   c6d412e
Built:        Fri Mar 24 00:00:50 2017
OS/Arch:      linux/amd64
Experimental: true

What happened

  • 部署后,访问localhost:8000
  • 报错:not websocket protocol
@superxi911-zz
Copy link
Contributor

cyclone server 有两个端口提供服务:

  • 7099:api server 端口,提供创建版本库关联、构建版本等 cyclone 主要功能操作的 restful API
  • 8000:websocket 端口,用于获取构建过程中实时日志

你是如何访问 localhost:8000 的?

@KevinMyDing
Copy link
Author

@Superxi911 我按照安装手册的Docker方式进行安装,安装完成后,通过浏览器访问的http://localhost:8000

@superxi911-zz
Copy link
Contributor

8000端口提供的不是http服务,是websocket服务,不能这么访问,你需要建一个websocket客户端连过来

@superxi911-zz
Copy link
Contributor

这里有个小程序是我当初调试这个功能的时候用go写的一个websocket client,有兴趣可以参考 WebsocketClient

@KevinMyDing
Copy link
Author

KevinMyDing commented Jun 6, 2017

在setup的文档中,表示localhost:8000是网页访问地址哦,那么,网页管理应该通过什么端口访问呢?

@Superxi911

@superxi911-zz
Copy link
Contributor

噢,你说的是cyclone用于OAUTH的回调前端用户界面url的ENV配置,文档里我们并没有明说现在可以通过localhost:8000访问。前端用户界面是另一个项目,目前我们还没有开源。目前只能通过API操作cyclone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants