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

[CRASH] CreateProcessW failed with error 123 or 67 #1410

Open
lkyu-ly opened this issue Dec 5, 2024 · 1 comment
Open

[CRASH] CreateProcessW failed with error 123 or 67 #1410

lkyu-ly opened this issue Dec 5, 2024 · 1 comment
Labels

Comments

@lkyu-ly
Copy link

lkyu-ly commented Dec 5, 2024

Describe the bug
When attempting to connect to the ttyd server, it crash with error immediately.
Looks like there is no problem with the path of the program and i'm confused about this problem.

PS C:\Users\14237\ttyd> ./ttyd.exe -p 8000 -c lkyu:passwd -6 --debug 7 -W pwsh -w C:\Users\14237
[2024/12/05 17:25:56:7491] N: ttyd 1.7.7-40e79c7 (libwebsockets 4.3.3-unknown)
[2024/12/05 17:25:56:7511] N: tty configuration:
[2024/12/05 17:25:56:7516] N:   credential: bGt5dTpIbHkwNDA2MjJ0dHlk
[2024/12/05 17:25:56:7536] N:   start command: pwsh -w C:\Users\14237
[2024/12/05 17:25:56:7546] N:   close signal: SIGHUP (1)
[2024/12/05 17:25:56:7561] N:   terminal type: xterm-256color
[2024/12/05 17:25:56:7572] N: lws_create_context: LWS: 4.3.3-unknown, MbedTLS-2.28.5 NET SRV H1 H2 WS ConMon IPV6-on
[2024/12/05 17:25:56:7607] N: elops_init_pt_uv:  Using foreign event loop...
[2024/12/05 17:25:56:7627] N: __lws_lc_tag:  ++ [wsi|0|pipe] (1)
[2024/12/05 17:25:56:7662] N: __lws_lc_tag:  ++ [vh|0|default||8000] (1)
[2024/12/05 17:25:56:7677] N: [vh|0|default||8000]: lws_socket_bind: source ads 0.0.0.0
[2024/12/05 17:25:56:7697] N: __lws_lc_tag:  ++ [wsi|1|listen|default||8000] (2)
[2024/12/05 17:25:56:7717] N: [vh|0|default||8000]: lws_socket_bind: source ads ::
[2024/12/05 17:25:56:7727] N: __lws_lc_tag:  ++ [wsi|2|listen|default||8000] (3)
[2024/12/05 17:25:56:7747] N:  Listening on port: 8000
[2024/12/05 17:25:59:4096] N: __lws_lc_tag:  ++ [wsisrv|0|adopted] (1)
[2024/12/05 17:25:59:4106] N: HTTP / - [ipv6]
[2024/12/05 17:25:59:5643] N: HTTP /token - [ipv6]
[2024/12/05 17:25:59:7620] N: __lws_lc_tag:  ++ [wsisrv|1|adopted] (2)
[2024/12/05 17:25:59:7630] N: WS   /ws - [ipv6], clients: 1
== CreateProcessW failed with error 123: 文件名、目录名或卷标语法不正确。

What's more, I try to use the method in mentioned another issue, which sets the program to run in Compatible mode, the error is:

== CreateProcessW failed with error 267: 目录名称无效。

To Reproduce
Steps to reproduce the behavior:

  1. use the command above to start the program
  2. connect to the server
  3. ttyd crashed

Expected behavior
stable service

Screenshots
see the log above

Environment:

  • OS: Windows 11 Pro 24H2
  • Browser: Chrome 131.0.6778.109
  • Browser: Android Webview based browser
  • ttyd version: 1.7.7

Additional context

@lkyu-ly lkyu-ly added the bug label Dec 5, 2024
@lkyu-ly
Copy link
Author

lkyu-ly commented Dec 5, 2024

I also try to use full path of pwsh.exe as 'C:/Program Files/PowerShell/7/pwsh.exe' but it doesn't work.

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

1 participant