question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: No working Terminal on FreeBSD 13.1-RELEASE-p2

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome
  • Local OS: Windows 10
  • Remote OS: FreeBSD 13.1-RELEASE-p2 Jails
  • Remote Architecture: amd64
  • code-server --version: 4.8.1

Steps to Reproduce

  1. open code-server on Chrome
  2. New Notification “The connection to the terminal’s pty host process is unresponsive, the terminals may stop working.”
  3. Repeated “Restart pty host”

Expected

pty host must operate normally

Actual

Terminal is not working.

Logs

[17:00:43] ptyHost was unable to resolve shell environment Error: Unable to resolve your shell environment: Unexpected exit code from spawned shell (code 1, signal null) at /usr/local/lib/node_modules/code-server/lib/vscode/out/vs/server/node/server.main.js:92:2607 at async /usr/local/lib/node_modules/code-server/lib/vscode/out/vs/server/node/server.main.js:67:23805 [IPC Library: Pty Host] The factory function of “vs/platform/terminal/node/ptyHostMain” has thrown an exception [IPC Library: Pty Host] Error: Platform not supported at E (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:19:811) at y (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:19:110) at new E (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:19:1504) at Object.<anonymous> (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js:27:17502) at Function.s._safeInvokeFunction (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:1337) at Function.s._invokeFactory (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:1522) at s.complete (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:1801) at s._onModuleComplete (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:1112) at s._onModuleComplete (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:1358) at s._onModuleComplete (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:1358) at s._onModuleComplete (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:1358) at s._onModuleComplete (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:1358) at s._resolve (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:510) at s.defineModule (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:6066) at n (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:10527) at Object.R (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:6036) at Function.s._safeInvokeFunction (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:1337) at Function.s._invokeFactory (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:1522) at s.complete (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:1801) at s._onModuleComplete (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:1112) at s._onModuleComplete (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:1358) at s._resolve (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:510) at s.defineModule (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:6066) at y (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:1825) at h (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:2554) at Object.<anonymous> (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.nls.js:3:61) at e._createAndEvalScript (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:2598) at /usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:2237 at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) [IPC Library: Pty Host] Here are the modules that depend on it: [IPC Library: Pty Host]% [ ‘===anonymous1===’ ] [17:00:43] [192.168.0.104][5ee7cc5d][ExtensionHostConnection] Unknown reconnection token (never seen). [17:00:43] [192.168.0.104][eb8a76c1][ManagementConnection] Unknown reconnection token (never seen). [IPC Library: Pty Host] Unknown channel: heartbeat [IPC Library: Pty Host] Unknown channel: log [IPC Library: Pty Host] Unknown channel: ptyHost [IPC Library: Pty Host] Unknown channel: ptyHost [IPC Library: Pty Host] Unknown channel: ptyHost [IPC Library: Pty Host] Unknown channel: ptyHost [IPC Library: Pty Host] Unknown channel: ptyHost [IPC Library: Pty Host] Unknown channel: ptyHost [IPC Library: Pty Host] Unknown channel: ptyHost

Screenshot/Video

bug

Does this issue happen in VS Code or GitHub Codespaces?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

It works fine in other jails environments.

  • FreeBSD 13.1-RELEASE-p2
  • node14-14.18.1_1
  • npm-node14-6.14.8_1
  • code-server v4.0.2

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
ilovebsdcommented, Nov 4, 2022

I changed the default shell to bash or zsh and solved the problem by referring to the link below. Thank you @kawanakaiku

https://github.com/coder/code-server/issues/5496#issuecomment-1240839804

0reactions
olegsidorkincommented, Nov 7, 2022

I changed the default shell to bash or zsh and solved the problem by referring to the link below. Thank you @kawanakaiku

#5496 (comment)

Yes, this helped. Terminal started to work after patching with sed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Libreoffice crashing on 13.1-p2 | The FreeBSD Forums
libreoffice + firefox + some bhyve VM (not every time sometimes it crashes all and sometimes it crashes only 2/4 VM). OR SUCCESSFUL...
Read more >
freebsd-bugs
Dec 18 bugzilla-noreply@fr [Bug 264981] jail with vnet interface or ip4.addr ar 2. Dec 18 bugzilla-noreply@Fr Problem reports for bugs@FreeBSD.org that need ...
Read more >
Chapter 25. Updating and Upgrading FreeBSD
Information about how to keep a FreeBSD system up-to-date with freebsd-update or Git, how to rebuild and reinstall the entire base system, ...
Read more >
net/remmina: Crashing immediately on FreeBSD 13.1 and 13 ...
On the FreeBSD 13-STABLE box with its packages I saw this strange behaviour around six weeks ago the first time. Since we have...
Read more >
errno(2) - FreeBSD
5 EIO Input/output error. Some physical input or output error occurred. This error will not be reported until a subsequent operation on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found