vscode remote ssh 开发,跑不起来

2020-05-28 16:38:38 +08:00
 nutting
用 vbox 装的 ubuntu18.04 以及尝试还有 debian10 。用 vscode 链接,ssh 连上了,但是运行 codeserver 返回好几行 waiting for server log,就失败了。上服务器看,好像是执行的一个 什么 .sh 文件没有,这个文件是 vscode 建立的文件夹里的,但是其实没成功,也不是权限问题,其他都有。有遇到过的吗?
如果换成 centos7,官方文档说不支持。其他还有啥呢,莫非 ubuntu 和 debian 版本太高?
2181 次点击
所在节点    问与答
4 条回复
nutting
2020-05-28 16:44:10 +08:00
说错了,是 alpine linux 不支持
fen
2020-05-28 19:05:48 +08:00
在 arm 平台遇到过,x86 没遇到
nutting
2020-05-28 19:21:00 +08:00
[11:15:43] Extension host agent started.
[11:15:44] [127.0.0.1][307f2cc2][ManagementConnection] New connection established.
[11:15:44] [127.0.0.1][7bdb5a19][ExtensionHostConnection] New connection established.
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
[11:15:44] [127.0.0.1][7bdb5a19][ExtensionHostConnection] <11422> Launched Extension Host Process.
EXTHOST-LOG:::::
["/home/apple/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a/node_modules/graceful-fs/graceful-fs.js:211\n WriteStream.prototype = Object.create(fs$WriteStreȫ/�qb��C@�G.\"�\n \n\nSyntaxError: Invalid or unexpected token\n at Module._compile (internal/modules/cjs/loader.js:718:23)\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)\n at Module.load (internal/modules/cjs/loader.js:641:32)\n at Function.Module._load (internal/modules/cjs/loader.js:556:12)\n at Module.require (internal/modules/cjs/loader.js:681:19)\n at require (internal/modules/cjs/helpers.js:16:16)\n at t.load (/home/apple/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a/out/vs/loader.js:16:119)\n at e.load (/home/apple/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a/out/vs/loader.js:13:586)\n at i (/home/apple/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a/out/vs/loader.js:29:259)\n at Object.errorback (/home/apple/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a/out/vs/loader.js:29:383)\n at e.triggerErrorback (/home/apple/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a/out/vs/loader.js:13:955)\n at /home/apple/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a/out/vs/loader.js:13:659\n at ReadFileContext.callback (/home/apple/.vscode-server/bin/5763d909d5f12fe19f215cbfdd29a91c0fa9208a/out/vs/loader.js:16:494)\n at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:246:13)"]
[11:15:45] [127.0.0.1][7bdb5a19][ExtensionHostConnection] <11422> Extension Host Process exited with code: 0, signal: null.
Last EH closed, waiting before shutting down
[11:15:45] Last EH closed, waiting before shutting down
[11:15:50] [127.0.0.1][7bdb5a19][ExtensionHostConnection] Unknown reconnection token.
Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:83:16) {
errno: 'EPIPE',
code: 'EPIPE',
syscall: 'write'
nutting
2020-05-28 19:21:51 +08:00
后来手动下载部署上去了,但是连接成功后,显示激活扩展中,就说不能够连接窗口,找到报错如上。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/676366

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX