[GH-ISSUE #2028] 版本更新后无法连接服务器 #1230

Closed
opened 2026-02-27 00:02:43 +03:00 by kerem · 14 comments
Owner

Originally created by @JiabinTang on GitHub (Jan 12, 2021).
Original GitHub issue: https://github.com/electerm/electerm/issues/2028

测试连接显示
connection fails: Cannot read property's' of undefined

Originally created by @JiabinTang on GitHub (Jan 12, 2021). Original GitHub issue: https://github.com/electerm/electerm/issues/2028 测试连接显示 connection fails: Cannot read property's' of undefined
kerem closed this issue 2026-02-27 00:02:43 +03:00
Author
Owner

@zxdong262 commented on GitHub (Jan 12, 2021):

方便提供更详细的信息吗 包括版本,操作系统,等等

<!-- gh-comment-id:758345642 --> @zxdong262 commented on GitHub (Jan 12, 2021): 方便提供更详细的信息吗 包括版本,操作系统,等等
Author
Owner

@pastcloud commented on GitHub (Jan 12, 2021):

我也出现同样的问题,mac big sur系统,在软件1.11之后的版本就会出现这样的问题,mac-arm64安装后无法运行,无arm64版本会报connection fails: Cannot read property's' of undefined这个错,v1.10.39目前可正常使用,而且在big sur系统上现在感觉到明显的卡顿

<!-- gh-comment-id:758354925 --> @pastcloud commented on GitHub (Jan 12, 2021): 我也出现同样的问题,mac big sur系统,在软件1.11之后的版本就会出现这样的问题,mac-arm64安装后无法运行,无arm64版本会报connection fails: Cannot read property's' of undefined这个错,v1.10.39目前可正常使用,而且在big sur系统上现在感觉到明显的卡顿
Author
Owner

@leonunix commented on GitHub (Jan 12, 2021):

TypeError: Cannot read property 's' of undefined
at file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.11.5:2:305573
at new Promise ()
at St (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.11.5:2:305549)
at Object.e. [as readdirAsync] (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.11.5:2:353624)
at $o.localList (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.11.5:2:412098)
at $o.initData (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.11.5:2:409204)
at $o.componentDidMount (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.11.5:2:415415)
at or (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/external/react-dom.production.min.js?1.11.5:2:65585)
at Vr (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/external/react-dom.production.min.js?1.11.5:2:81911)
at unstable_runWithPriority (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/external/react.production.min.js?1.11.5:2:

一样的问题

<!-- gh-comment-id:758385725 --> @leonunix commented on GitHub (Jan 12, 2021): TypeError: Cannot read property 's' of undefined at file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.11.5:2:305573 at new Promise (<anonymous>) at St (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.11.5:2:305549) at Object.e.<computed> [as readdirAsync] (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.11.5:2:353624) at $o.localList (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.11.5:2:412098) at $o.initData (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.11.5:2:409204) at $o.componentDidMount (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.11.5:2:415415) at or (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/external/react-dom.production.min.js?1.11.5:2:65585) at Vr (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/external/react-dom.production.min.js?1.11.5:2:81911) at unstable_runWithPriority (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/external/react.production.min.js?1.11.5:2: 一样的问题
Author
Owner

@JiabinTang commented on GitHub (Jan 12, 2021):

mac big sur系统,在软件1.11之后 mac-arm64

<!-- gh-comment-id:758445822 --> @JiabinTang commented on GitHub (Jan 12, 2021): mac big sur系统,在软件1.11之后 mac-arm64
Author
Owner

@zxdong262 commented on GitHub (Jan 12, 2021):

@jiabintang @leonunix
arm64目前不可用,构建未见报错,但是运行就会报错, 我还不知道原因,也没有m1设备,不能测试, vscode已经发布ARM64版本,所以肯定是可以的,只是我没有搞定.

<!-- gh-comment-id:758466759 --> @zxdong262 commented on GitHub (Jan 12, 2021): @jiabintang @leonunix arm64目前不可用,构建未见报错,但是运行就会报错, 我还不知道原因,也没有m1设备,不能测试, vscode已经发布ARM64版本,所以肯定是可以的,只是我没有搞定.
Author
Owner

@leonunix commented on GitHub (Jan 12, 2021):

@zxdong262
我用的是intel的mac book pro 升级1.11以后。会有上述的错误。OS版本是10.14.6

<!-- gh-comment-id:758477358 --> @leonunix commented on GitHub (Jan 12, 2021): @zxdong262 我用的是intel的mac book pro 升级1.11以后。会有上述的错误。OS版本是10.14.6
Author
Owner

@zxdong262 commented on GitHub (Jan 12, 2021):

@leonunix 可以命令行运行/Applications/electerm.app/Contents/MacOS/electerm看看输出吗?

<!-- gh-comment-id:758480453 --> @zxdong262 commented on GitHub (Jan 12, 2021): @leonunix 可以命令行运行`/Applications/electerm.app/Contents/MacOS/electerm`看看输出吗?
Author
Owner

@leonunix commented on GitHub (Jan 12, 2021):

@zxdong262
问题有点复杂,感觉是ssh协议的问题。
我有2台服务器。一台是比较老的solaris。一台是比较新的solaris。2台支持的ssh协议不一样。
情况是这样的。启动app。连接老的solaris。连接失败。再开新的窗口连接任何服务器,都报connection fails: Cannot read property's' of undefined错误。
启动app 。连接新的solaris、没有任何问题。这时候如果再连接老的solaris。整个electerm进入上面的情况。
命令行运行/Applications/electerm.app/Contents/MacOS/electerm没有任何错误的输出。

<!-- gh-comment-id:758487547 --> @leonunix commented on GitHub (Jan 12, 2021): @zxdong262 问题有点复杂,感觉是ssh协议的问题。 我有2台服务器。一台是比较老的solaris。一台是比较新的solaris。2台支持的ssh协议不一样。 情况是这样的。启动app。连接老的solaris。连接失败。再开新的窗口连接任何服务器,都报connection fails: Cannot read property's' of undefined错误。 启动app 。连接新的solaris、没有任何问题。这时候如果再连接老的solaris。整个electerm进入上面的情况。 命令行运行/Applications/electerm.app/Contents/MacOS/electerm没有任何错误的输出。
Author
Owner

@zxdong262 commented on GitHub (Jan 12, 2021):

@leonunix 确实像是协议问题,两台用的什么ssh-server呢?

<!-- gh-comment-id:758531720 --> @zxdong262 commented on GitHub (Jan 12, 2021): @leonunix 确实像是协议问题,两台用的什么ssh-server呢?
Author
Owner

@leonunix commented on GitHub (Jan 13, 2021):

@zxdong262 类似centos6和centos7的区别openssl库不一样。
你可以试试连接centos6.7的版本

<!-- gh-comment-id:759834155 --> @leonunix commented on GitHub (Jan 13, 2021): @zxdong262 类似centos6和centos7的区别openssl库不一样。 你可以试试连接centos6.7的版本
Author
Owner

@zxdong262 commented on GitHub (Jan 14, 2021):

@leonunix 之前的版本也是这样的情况吗,比如1.10.14?

<!-- gh-comment-id:759942544 --> @zxdong262 commented on GitHub (Jan 14, 2021): @leonunix 之前的版本也是这样的情况吗,比如1.10.14?
Author
Owner

@leonunix commented on GitHub (Jan 14, 2021):

@zxdong262 1.11以后版本才有这个问题。之前的版本没有问题。

<!-- gh-comment-id:759944234 --> @leonunix commented on GitHub (Jan 14, 2021): @zxdong262 1.11以后版本才有这个问题。之前的版本没有问题。
Author
Owner

@hezongkun commented on GitHub (Jan 15, 2021):

`catcher@hezongkundeMBP ~ % /Applications/electerm.app/Contents/MacOS/electerm
20:05:08 debug › electerm start
(node:64262) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron. See https://github.com/electron/electron/issues/23506 for more information
innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:

  • /Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js
  • /Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/index.js
  • /Applications/electerm.app/Contents/Resources/app.asar/server/session.js
  • /Applications/electerm.app/Contents/Resources/app.asar/server/dispatch-center.js
  • /Applications/electerm.app/Contents/Resources/app.asar/server/server.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
    at Module._load (internal/modules/cjs/loader.js:848:27)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12738)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object. (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:31:15)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js',
    '/Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/index.js',
    '/Applications/electerm.app/Contents/Resources/app.asar/server/session.js',
    '/Applications/electerm.app/Contents/Resources/app.asar/server/dispatch-center.js',
    '/Applications/electerm.app/Contents/Resources/app.asar/server/server.js'
    ]
    }
    /Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:36
    throw outerError;
    ^

Error: dlopen(/var/folders/b1/qs9nv66160155msv9w8lc3mw0000gn/T/.org.chromium.Chromium.8jz0OH, 1): no suitable image found. Did find:
/var/folders/b1/qs9nv66160155msv9w8lc3mw0000gn/T/.org.chromium.Chromium.8jz0OH: mach-o, but wrong architecture
/var/folders/b1/qs9nv66160155msv9w8lc3mw0000gn/T/.org.chromium.Chromium.8jz0OH: stat() failed with errno=17
at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1812)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1203:18)
at Object.func [as .node] (electron/js2c/asar_bundle.js:5:2039)
at Module.load (internal/modules/cjs/loader.js:992:32)
at Module._load (internal/modules/cjs/loader.js:885:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12738)
at Module.require (internal/modules/cjs/loader.js:1032:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:27:11)
at Module._compile (internal/modules/cjs/loader.js:1152:30)
`
m1 运行卡在启动界面,以上为启动log

<!-- gh-comment-id:760904800 --> @hezongkun commented on GitHub (Jan 15, 2021): `catcher@hezongkundeMBP ~ % /Applications/electerm.app/Contents/MacOS/electerm 20:05:08 debug › electerm start (node:64262) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron. See https://github.com/electron/electron/issues/23506 for more information innerError Error: Cannot find module '../build/Debug/pty.node' Require stack: - /Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js - /Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/index.js - /Applications/electerm.app/Contents/Resources/app.asar/server/session.js - /Applications/electerm.app/Contents/Resources/app.asar/server/dispatch-center.js - /Applications/electerm.app/Contents/Resources/app.asar/server/server.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:972:15) at Module._load (internal/modules/cjs/loader.js:848:27) at Function.f._load (electron/js2c/asar_bundle.js:5:12738) at Module.require (internal/modules/cjs/loader.js:1032:19) at require (internal/modules/cjs/helpers.js:72:18) at Object.<anonymous> (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:31:15) at Module._compile (internal/modules/cjs/loader.js:1152:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10) at Module.load (internal/modules/cjs/loader.js:992:32) at Module._load (internal/modules/cjs/loader.js:885:14) { code: 'MODULE_NOT_FOUND', requireStack: [ '/Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js', '/Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/index.js', '/Applications/electerm.app/Contents/Resources/app.asar/server/session.js', '/Applications/electerm.app/Contents/Resources/app.asar/server/dispatch-center.js', '/Applications/electerm.app/Contents/Resources/app.asar/server/server.js' ] } /Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:36 throw outerError; ^ Error: dlopen(/var/folders/b1/qs9nv66160155msv9w8lc3mw0000gn/T/.org.chromium.Chromium.8jz0OH, 1): no suitable image found. Did find: /var/folders/b1/qs9nv66160155msv9w8lc3mw0000gn/T/.org.chromium.Chromium.8jz0OH: mach-o, but wrong architecture /var/folders/b1/qs9nv66160155msv9w8lc3mw0000gn/T/.org.chromium.Chromium.8jz0OH: stat() failed with errno=17 at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1812) at Object.Module._extensions..node (internal/modules/cjs/loader.js:1203:18) at Object.func [as .node] (electron/js2c/asar_bundle.js:5:2039) at Module.load (internal/modules/cjs/loader.js:992:32) at Module._load (internal/modules/cjs/loader.js:885:14) at Function.f._load (electron/js2c/asar_bundle.js:5:12738) at Module.require (internal/modules/cjs/loader.js:1032:19) at require (internal/modules/cjs/helpers.js:72:18) at Object.<anonymous> (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:27:11) at Module._compile (internal/modules/cjs/loader.js:1152:30) ` m1 运行卡在启动界面,以上为启动log
Author
Owner

@zxdong262 commented on GitHub (Jan 27, 2021):

最新版应该可以了

<!-- gh-comment-id:768194118 --> @zxdong262 commented on GitHub (Jan 27, 2021): 最新版应该可以了
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1230
No description provided.