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

Running an error #1207

Closed
fcwys opened this issue Oct 5, 2023 · 10 comments
Closed

Running an error #1207

fcwys opened this issue Oct 5, 2023 · 10 comments
Labels

Comments

@fcwys
Copy link

fcwys commented Oct 5, 2023

Describe the bug
Connection error.

Expected behavior
normal operation

Screenshots
image

Environment:

  • OS: [Microsoft Windows 11 企业版 10.0.22000]
  • Browser: [Chrome/95.0.4638.69]

Additional context

[2023/10/05 09:19:56:3129] N: ttyd 1.7.4-fa1ee59 (libwebsockets 4.3.2-unknown)
[2023/10/05 09:19:56:3209] N: tty configuration:
[2023/10/05 09:19:56:3239] N:   start command: cmd
[2023/10/05 09:19:56:3279] N:   close signal: SIGHUP (1)
[2023/10/05 09:19:56:3329] N:   terminal type: xterm-256color
[2023/10/05 09:19:56:3379] N: The --writable option is not set, will start in readonly mode
[2023/10/05 09:19:56:3439] N: lws_create_context: LWS: 4.3.2-unknown, NET SRV H1 WS MbedTLS ConMon IPV6-off
[2023/10/05 09:19:56:3579] N: elops_init_pt_uv:  Using foreign event loop...
[2023/10/05 09:19:56:3649] N: __lws_lc_tag:  ++ [wsi|0|pipe] (1)
[2023/10/05 09:19:56:3779] N: __lws_lc_tag:  ++ [vh|0|default||7681] (1)
[2023/10/05 09:19:56:3859] N: [vh|0|default||7681]: lws_socket_bind: source ads 0.0.0.0
[2023/10/05 09:19:56:3919] N: __lws_lc_tag:  ++ [wsi|1|listen|default||7681] (2)
[2023/10/05 09:19:56:3989] N:  Listening on port: 7681
[2023/10/05 09:19:56:8323] N: __lws_lc_tag:  ++ [wsisrv|0|adopted] (1)
[2023/10/05 09:19:56:8383] N: WS   /ws - 127.0.0.1, clients: 1
@fcwys fcwys added the bug label Oct 5, 2023
@gitlsl
Copy link

gitlsl commented Oct 24, 2023

[2023/10/24 09:20:54:7594] N: ttyd 1.7.4-fa1ee59 (libwebsockets 4.3.2-unknown)
[2023/10/24 09:20:54:7639] N: tty configuration:
[2023/10/24 09:20:54:7665] N: start command: bash -v
[2023/10/24 09:20:54:7686] N: close signal: SIGHUP (1)
[2023/10/24 09:20:54:7705] N: terminal type: xterm-256color
[2023/10/24 09:20:54:7725] N: The --writable option is not set, will start in readonly mode
[2023/10/24 09:20:54:7762] N: lws_create_context: LWS: 4.3.2-unknown, NET SRV H1 WS MbedTLS ConMon IPV6-off
[2023/10/24 09:20:54:7883] N: elops_init_pt_uv: Using foreign event loop...
[2023/10/24 09:20:54:7913] N: __lws_lc_tag: ++ [wsi|0|pipe] (1)
[2023/10/24 09:20:54:7985] N: __lws_lc_tag: ++ [vh|0|default||7681] (1)
[2023/10/24 09:20:54:8021] N: [vh|0|default||7681]: lws_socket_bind: source ads 0.0.0.0
[2023/10/24 09:20:54:8060] N: __lws_lc_tag: ++ [wsi|1|listen|default||7681] (2)
[2023/10/24 09:20:54:8090] N: Listening on port: 7681
[2023/10/24 09:20:55:0606] N: __lws_lc_tag: ++ [wsisrv|0|adopted] (1)
[2023/10/24 09:20:55:0665] N: WS /ws - 127.0.0.1, clients: 1

同样, 启动后 浏览器一访问 就程序自动退出了

@zhang9song
Copy link

Same error.

@tsl0922
Copy link
Owner

tsl0922 commented Oct 30, 2023

Maybe related to #1064

@tsl0922
Copy link
Owner

tsl0922 commented Oct 30, 2023

Try: https://support.microsoft.com/en-us/windows/make-older-apps-or-programs-compatible-with-windows-783d6dd7-b439-bdb0-0490-54eea0f45938#ID0EBH=Windows_11

I've tested it on a windows 11 VM, it works for me if I set the compatibility mode to Windows 8

@fcwys
Copy link
Author

fcwys commented Oct 30, 2023

However, version 1.7.3 runs normally and does not require compatibility mode to be set.

@tsl0922
Copy link
Owner

tsl0922 commented Nov 10, 2023

I have no idea. You may want to compile it yourself.

The difference is: 1.7.3 is compiled with mingw64 from msys2 on windows, while 1.7.4 is cross compiled with mingw64 on linux (Ubuntu).

@MohamedKarrab
Copy link

Same problem here on windows11, fixed it like @tsl0922 said by setting the compatibility mode to Windows 8.

@lkyu-ly
Copy link

lkyu-ly commented Mar 16, 2024

same problem on the newest 1.7.4 (windows 11),once i open the browser (correct password inpuyed),the ttyd exit with no ouy put:

[2024/03/16 14:29:52:2418] N: ttyd 1.7.4-fa1ee59 (libwebsockets 4.3.2-unknown)
[2024/03/16 14:29:52:2458] N: tty configuration:
[2024/03/16 14:29:52:2473] N:   credential: bGt5dTpIbHkwNDA2MjJhZG1pbg==
[2024/03/16 14:29:52:2502] N:   start command: dir
[2024/03/16 14:29:52:2521] N:   close signal: SIGHUP (1)
[2024/03/16 14:29:52:2531] N:   terminal type: xterm-256color
[2024/03/16 14:29:52:2557] N: lws_create_context: LWS: 4.3.2-unknown, NET SRV H1 WS MbedTLS ConMon IPV6-off
[2024/03/16 14:29:52:2629] N: elops_init_pt_uv:  Using foreign event loop...
[2024/03/16 14:29:52:2655] N: __lws_lc_tag:  ++ [wsi|0|pipe] (1)
[2024/03/16 14:29:52:2724] N: __lws_lc_tag:  ++ [vh|0|default||10086] (1)
[2024/03/16 14:29:52:2744] N: [vh|0|default||10086]: lws_socket_bind: source ads 0.0.0.0
[2024/03/16 14:29:52:2794] N: __lws_lc_tag:  ++ [wsi|1|listen|default||10086] (2)
[2024/03/16 14:29:52:2823] N:  Listening on port: 10086
[2024/03/16 14:30:01:0078] N: __lws_lc_tag:  ++ [wsisrv|0|adopted] (1)
[2024/03/16 14:30:01:0127] N: __lws_lc_tag:  ++ [wsisrv|1|adopted] (2)
[2024/03/16 14:30:01:0167] N: HTTP / - 127.0.0.1
[2024/03/16 14:30:01:0197] N: __lws_lc_untag:  -- [wsisrv|0|adopted] (1) 11.844ms
[2024/03/16 14:30:11:0175] N: __lws_lc_untag:  -- [wsisrv|1|adopted] (0) 10.004s
[2024/03/16 14:30:13:7422] N: __lws_lc_tag:  ++ [wsisrv|2|adopted] (1)
[2024/03/16 14:30:13:7467] N: __lws_lc_tag:  ++ [wsisrv|3|adopted] (2)
[2024/03/16 14:30:13:7517] N: HTTP / - 127.0.0.1
[2024/03/16 14:30:14:0256] N: HTTP /token - 127.0.0.1
[2024/03/16 14:30:14:0802] N: __lws_lc_tag:  ++ [wsisrv|4|adopted] (3)
[2024/03/16 14:30:14:0832] N: WS   /ws - 127.0.0.1, clients: 1

@lkyu-ly
Copy link

lkyu-ly commented Mar 16, 2024

same problem on the newest 1.7.4 (windows 11),once i open the browser (correct password inpuyed),the ttyd exit with no ouy put:

[2024/03/16 14:29:52:2418] N: ttyd 1.7.4-fa1ee59 (libwebsockets 4.3.2-unknown)
[2024/03/16 14:29:52:2458] N: tty configuration:
[2024/03/16 14:29:52:2473] N:   credential: bGt5dTpIbHkwNDA2MjJhZG1pbg==
[2024/03/16 14:29:52:2502] N:   start command: dir
[2024/03/16 14:29:52:2521] N:   close signal: SIGHUP (1)
[2024/03/16 14:29:52:2531] N:   terminal type: xterm-256color
[2024/03/16 14:29:52:2557] N: lws_create_context: LWS: 4.3.2-unknown, NET SRV H1 WS MbedTLS ConMon IPV6-off
[2024/03/16 14:29:52:2629] N: elops_init_pt_uv:  Using foreign event loop...
[2024/03/16 14:29:52:2655] N: __lws_lc_tag:  ++ [wsi|0|pipe] (1)
[2024/03/16 14:29:52:2724] N: __lws_lc_tag:  ++ [vh|0|default||10086] (1)
[2024/03/16 14:29:52:2744] N: [vh|0|default||10086]: lws_socket_bind: source ads 0.0.0.0
[2024/03/16 14:29:52:2794] N: __lws_lc_tag:  ++ [wsi|1|listen|default||10086] (2)
[2024/03/16 14:29:52:2823] N:  Listening on port: 10086
[2024/03/16 14:30:01:0078] N: __lws_lc_tag:  ++ [wsisrv|0|adopted] (1)
[2024/03/16 14:30:01:0127] N: __lws_lc_tag:  ++ [wsisrv|1|adopted] (2)
[2024/03/16 14:30:01:0167] N: HTTP / - 127.0.0.1
[2024/03/16 14:30:01:0197] N: __lws_lc_untag:  -- [wsisrv|0|adopted] (1) 11.844ms
[2024/03/16 14:30:11:0175] N: __lws_lc_untag:  -- [wsisrv|1|adopted] (0) 10.004s
[2024/03/16 14:30:13:7422] N: __lws_lc_tag:  ++ [wsisrv|2|adopted] (1)
[2024/03/16 14:30:13:7467] N: __lws_lc_tag:  ++ [wsisrv|3|adopted] (2)
[2024/03/16 14:30:13:7517] N: HTTP / - 127.0.0.1
[2024/03/16 14:30:14:0256] N: HTTP /token - 127.0.0.1
[2024/03/16 14:30:14:0802] N: __lws_lc_tag:  ++ [wsisrv|4|adopted] (3)
[2024/03/16 14:30:14:0832] N: WS   /ws - 127.0.0.1, clients: 1

also, setting the compatibility mode to Windows 8 helps it run correctly, at least now

@stretch07
Copy link

This worked for me. For those who have trouble finding the executable, if you installed via chocolatey, it should be here
"C:\Users\USERNAME\scoop\shims\ttyd.exe"
Navigate to this item in explorer, hit properties > compatibility, change compatibility

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

7 participants