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 working on ubuntu 16.04 #4

Closed
williamherry opened this issue Sep 18, 2016 · 10 comments
Closed

not working on ubuntu 16.04 #4

williamherry opened this issue Sep 18, 2016 · 10 comments
Labels

Comments

@williamherry
Copy link

installation is fine, but can not open in browser, here is the log

[1474175861:3836] NOTICE: Initial logging level 7
[1474175861:3836] NOTICE: Libwebsockets version: 1.7.1 unknown-build-hash
[1474175861:3836] NOTICE: IPV6 not compiled in
[1474175861:3836] NOTICE: libev support compiled in but disabled
[1474175861:3836] NOTICE:  Threads: 1 each 1024 fds
[1474175861:3836] NOTICE:  mem: platform fd map:  8192 bytes
[1474175861:3837] NOTICE:  mem: per-conn:          808 bytes + protocol rx buf
[1474175861:3837] NOTICE:  canonical_hostname = william
[1474175861:3837] NOTICE:  Compiled with OpenSSL support
[1474175861:3837] NOTICE:  Using non-SSL mode
[1474175861:3851] NOTICE:  SSL ECDH curve 'prime256v1'
[1474175861:3852] NOTICE:  Listening on port 7681
[1474175861:3852] NOTICE: TTY configuration:
[1474175861:3852] NOTICE:   start command: bash
[1474175861:3852] NOTICE:   reconnect timeout: 10s
[1474175861:3852] NOTICE:   close signal: SIGHUP (1)
[1474175864:1665] ERR: Ran out of header data space
[1474175894:2403] ERR: Ran out of header data space
[1474175954:2516] ERR: Ran out of header data space
^C[1474175997:2703] NOTICE: received signal: SIGINT (2)
[1474175997:2703] NOTICE: lws_context_destroy
@tsl0922
Copy link
Owner

tsl0922 commented Sep 18, 2016

Upgrade your libwesockets to the latest version and try again.

@williamherry
Copy link
Author

@tsl0922 did you mean libwebsockets they are all newest version

➜  Codes apt-cache search libwebsockets
libwebsockets-dev - lightweight C websockets library - development files
libwebsockets-test-server - lightweight C websockets library - test servers
libwebsockets-test-server-common - lightweight C websockets library - test servers data
libwebsockets7 - lightweight C websockets library
➜  Codes sudo apt-get install libwebsockets-dev libwebsockets7
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libwebsockets-dev is already the newest version (1.7.1-1).
libwebsockets7 is already the newest version (1.7.1-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

@zlx
Copy link

zlx commented Sep 18, 2016

@williamherry maybe,😄

@tsl0922
Copy link
Owner

tsl0922 commented Sep 18, 2016

Can you try if the docker image tsl0922/ttyd (based on 16.04) works? I had tested on native ubuntu 16.04 host, it works fine, too.

@williamherry
Copy link
Author

Chrome not work, but firefox works, thank you :-)

@williamherry
Copy link
Author

@zlx 😄

@tsl0922
Copy link
Owner

tsl0922 commented Sep 19, 2016

@williamherry What's the version of Chrome that doesn't work? I'm using Chrome(latest version), too. This maybe a libwebsockets issue, you can try the latest upstream version v2.0.3, ubuntu only maintains the 1.7.x version currently.

@williamherry
Copy link
Author

@tsl0922 yes, you are right, the version of Chrome is very old, after upgrade to latest version, everything works, thanks

@tsl0922 tsl0922 added the bug label Sep 26, 2016
@w-A-L-L-e
Copy link

Euhm I have same error with latest chrome on os x : Version 71.0.3578.98. It does work in safari on os x mojave. But the gotty go version does not have this issue on same chrome and safari browser. I did brew install ttyd and tried using it in chrome os x version 10.14.2.

output of ttyd with chrome:

ttyd -p 9000 bash

[2019/01/18 14:54:23:4886] NOTICE: ttyd 1.4.2 (libwebsockets 3.1.0)
[2019/01/18 14:54:23:4887] NOTICE: tty configuration:
[2019/01/18 14:54:23:4887] NOTICE:   start command: bash
[2019/01/18 14:54:23:4887] NOTICE:   close signal: SIGHUP (1)
[2019/01/18 14:54:23:4887] NOTICE:   terminal type: xterm-256color
[2019/01/18 14:54:23:4887] NOTICE:   reconnect timeout: 10s
[2019/01/18 14:54:23:4896] NOTICE: Creating Vhost 'default' port 9000, 2 protocols, IPv6 on
[2019/01/18 14:54:30:5525] ERR: Ran out of header data space
[2019/01/18 14:54:30:5558] ERR: Ran out of header data space
[2019/01/18 14:54:30:5573] ERR: Ran out of header data space
[2019/01/18 14:54:30:7306] ERR: Ran out of header data space
[2019/01/18 14:54:30:7311] ERR: Ran out of header data space
[2019/01/18 14:54:30:7317] ERR: Ran out of header data space
[2019/01/18 14:54:35:7666] ERR: Ran out of header data space

Output when using safari (then it works fine):

ttyd -p 9000 bash

[2019/01/18 14:53:27:0291] NOTICE: ttyd 1.4.2 (libwebsockets 3.1.0)
[2019/01/18 14:53:27:0294] NOTICE: tty configuration:
[2019/01/18 14:53:27:0294] NOTICE:   start command: bash
[2019/01/18 14:53:27:0294] NOTICE:   close signal: SIGHUP (1)
[2019/01/18 14:53:27:0294] NOTICE:   terminal type: xterm-256color
[2019/01/18 14:53:27:0294] NOTICE:   reconnect timeout: 10s
[2019/01/18 14:53:27:0296] NOTICE: Creating Vhost 'default' port 9000, 2 protocols, IPv6 on
[2019/01/18 14:53:39:0449] NOTICE: HTTP / - ::1 (localhost)
[2019/01/18 14:53:39:0697] NOTICE: HTTP /auth_token.js - ::1 (localhost)
[2019/01/18 14:53:39:3003] NOTICE: WS   /ws - ::1 (localhost), clients: 1
[2019/01/18 14:53:39:4660] NOTICE: started process, pid: 55909
[2019/01/18 14:53:40:4465] NOTICE: HTTP /favicon.ico - ::1 (localhost)
[2019/01/18 14:53:48:8089] NOTICE: sending SIGHUP (1) to process 55909
[2019/01/18 14:53:48:8091] NOTICE: process exited with code 0, pid: 55909
[2019/01/18 14:53:48:8092] NOTICE: WS closed from ::1 (localhost), clients: 0

@w-A-L-L-e
Copy link

Ok extra info. When I clear all my cookies it does work in Chrome also!
So some libwebsockets setting is somehow limited in size and breaks if a browser with many cookies tries to open the url of ttyd.
But still this is an issue basically it doesn;'t work when you have too many cookies set in your browser ;). Like said gotty go version does not complain here...

kevincox added a commit to kevincox/ttyd that referenced this issue Mar 28, 2022
Update alpine container to build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants