Coder Social home page Coder Social logo

not working on ubuntu 16.04 about ttyd HOT 10 CLOSED

tsl0922 avatar tsl0922 commented on May 22, 2024
not working on ubuntu 16.04

from ttyd.

Comments (10)

tsl0922 avatar tsl0922 commented on May 22, 2024

Upgrade your libwesockets to the latest version and try again.

from ttyd.

williamherry avatar williamherry commented on May 22, 2024

@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.

from ttyd.

zlx avatar zlx commented on May 22, 2024

@williamherry maybe,😄

from ttyd.

tsl0922 avatar tsl0922 commented on May 22, 2024

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.

from ttyd.

williamherry avatar williamherry commented on May 22, 2024

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

from ttyd.

williamherry avatar williamherry commented on May 22, 2024

@zlx 😄

from ttyd.

tsl0922 avatar tsl0922 commented on May 22, 2024

@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.

from ttyd.

williamherry avatar williamherry commented on May 22, 2024

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

from ttyd.

w-A-L-L-e avatar w-A-L-L-e commented on May 22, 2024

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

from ttyd.

w-A-L-L-e avatar w-A-L-L-e commented on May 22, 2024

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...

from ttyd.

Related Issues (20)

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.