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

terminal WARN Couldn't attach - can't find terminal with id: -1 #13609

Open
coldzerofear opened this issue Apr 17, 2024 · 5 comments
Open

terminal WARN Couldn't attach - can't find terminal with id: -1 #13609

coldzerofear opened this issue Apr 17, 2024 · 5 comments

Comments

@coldzerofear
Copy link

Bug Description:

Unable to open terminal, accessing URL will get stuck

Steps to Reproduce:

my package.json

{
    "private": true,
    "dependencies": {
        "@theia/callhierarchy": "latest",
        "@theia/file-search": "latest",
        "@theia/git": "latest",
        "@theia/markers": "latest",
        "@theia/messages": "latest",
        "@theia/navigator": "latest",
        "@theia/outline-view": "latest",
        "@theia/plugin-ext-vscode": "latest",
        "@theia/preferences": "latest",
        "@theia/preview": "latest",
        "@theia/search-in-workspace": "latest",
        "@theia/terminal": "latest",
        "@theia/vsx-registry": "latest"
    },
    "devDependencies": {
        "@theia/cli": "latest"
    },
    "scripts": {
        "prepare": "yarn run clean && yarn build && yarn run download:plugins",
        "clean": "theia clean",
        "build": "theia build --mode development",
        "start": "theia start --plugins=local-dir:plugins",
        "download:plugins": "theia download:plugins"
    },
    "theiaPluginsDir": "plugins",
    "theiaPlugins": {
        "vscode-builtin-extensions-pack": "https://open-vsx.org/api/eclipse-theia/builtin-extension-pack/1.50.1/file/eclipse-theia.builtin-extension-pack-1.50.1.vsix"
    },
    "theiaPluginsExcludeIds": [
        "ms-vscode.js-debug-companion",
        "vscode.extension-editing",
        "vscode.git",
        "vscode.git-ui",
        "vscode.github",
        "vscode.github-authentication",
        "vscode.microsoft-authentication"
    ]
}

I started building according to the description in the help document,will output errors

Failed to resolve module: @theia/electron

I'm not sure if this will have an impact, When I start running and accessing the URL, the terminal will get stuck

(mindspore2.2.11_py39) root@npu-pod-qwen7b:~/theia# yarn start  --hostname=0.0.0.0
yarn run v1.22.19
$ theia start --plugins=local-dir:plugins --hostname=0.0.0.0
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-04-17T08:13:10.212Z root INFO Backend d.initialize: 33.1 ms [Finished 0.532 s after backend start]
2024-04-17T08:13:10.212Z root INFO Backend Object.initialize: 29.3 ms [Finished 0.532 s after backend start]
2024-04-17T08:13:10.212Z root INFO Backend a.initialize: 1.6 ms [Finished 0.532 s after backend start]
2024-04-17T08:13:10.212Z root INFO Backend a.initialize: 1.2 ms [Finished 0.532 s after backend start]
2024-04-17T08:13:10.212Z root INFO Backend f.initialize: 1.1 ms [Finished 0.532 s after backend start]
2024-04-17T08:13:10.212Z root INFO Backend a.initialize: 1.0 ms [Finished 0.532 s after backend start]
2024-04-17T08:13:10.217Z root INFO Backend l.initialize: 30.1 ms [Finished 0.533 s after backend start]
2024-04-17T08:13:10.222Z root INFO configured all backend app contributions
2024-04-17T08:13:10.223Z root INFO Backend l.onStart: 2.2 ms [Finished 0.544 s after backend start]
2024-04-17T08:13:10.225Z root INFO Theia app listening on http://0.0.0.0:3000.
2024-04-17T08:13:10.227Z root INFO Configuration directory URI: 'file:///root/.theia'
2024-04-17T08:13:10.231Z root INFO Backend g.onStart: 7.2 ms [Finished 0.551 s after backend start]
2024-04-17T08:13:10.231Z root INFO Backend a.onStart: 0.6 ms [Finished 0.552 s after backend start]
2024-04-17T08:13:10.231Z root INFO Backend p.onStart: 0.9 ms [Finished 0.553 s after backend start]
2024-04-17T08:13:10.232Z root INFO Finished starting backend application: 0.0 ms [Finished 0.553 s after backend start]
2024-04-17T08:13:10.233Z root WARN The local plugin referenced by local-dir:/root/.theia/plugins does not exist.
2024-04-17T08:13:10.234Z root WARN The local plugin referenced by local-dir:/root/.theia/deployedPlugins does not exist.
2024-04-17T08:13:10.340Z root INFO Resolve plugins list: 106.6 ms [Finished 0.661 s after backend start]
2024-04-17T08:13:10.473Z root INFO Deploy plugins list: 240.9 ms [Finished 0.795 s after backend start]
2024-04-17T08:13:16.261Z root INFO creating connection for 6ae96a44-0c9b-42c8-95f0-9dc0e873022e
2024-04-17T08:13:16.932Z root INFO Using Git [2.25.1] from the PATH. (/usr/bin/git)
2024-04-17T08:13:16.950Z root WARN A command editor.action.toggleStickyScroll is already registered.
2024-04-17T08:13:17.032Z root INFO Start frontend contributions: 143.3 ms [Finished 1.110 s after frontend start]
2024-04-17T08:13:17.032Z root INFO Changed application state from 'init' to 'started_contributions'.
2024-04-17T08:13:17.043Z root INFO Changed application state from 'started_contributions' to 'attached_shell'.
2024-04-17T08:13:17.043Z root INFO >>> Restoring the layout state...
2024-04-17T08:13:17.043Z root INFO [3ee870a8-2aa7-4220-824e-d38073ee0200] Waiting for backend deployment: 41.4 ms [Finished 1.151 s after frontend start]
2024-04-17T08:13:17.150Z terminal WARN Couldn't attach - can't find terminal with id: -1 
2024-04-17T08:17:37.026Z root WARN Linked preference "cursorSurroundingLines" not found.
2024-04-17T08:17:37.027Z root WARN Linked preference "workbench.colorCustomizations" not found.
2024-04-17T08:17:37.027Z root WARN Linked preference "window.titleBarStyle" not found.
2024-04-17T08:17:37.027Z terminal WARN Failed attaching to terminal id -1, the terminal is most likely gone. Starting up a new terminal instead.
2024-04-17T08:17:37.033Z root INFO <<< The layout has been successfully restored.
2024-04-17T08:17:37.034Z root INFO Initialize the workbench layout: 295.9 ms [Finished 1.438 s after frontend start]
2024-04-17T08:17:37.034Z root INFO Changed application state from 'attached_shell' to 'initialized_layout'.
2024-04-17T08:17:37.034Z root INFO Replace loading indicator with ready workbench UI (animation): 826.0 ms [Finished 2.266 s after frontend start]
2024-04-17T08:17:37.034Z root INFO Changed application state from 'initialized_layout' to 'ready'.
2024-04-17T08:17:37.034Z root INFO Frontend application start: 260114.7 ms [Finished 267.355 s after backend start]
2024-04-17T08:17:37.042Z root INFO socked closed
2024-04-17T08:17:37.042Z root INFO closing connection for 6ae96a44-0c9b-42c8-95f0-9dc0e873022e
2024-04-17T08:17:37.042Z root INFO Closing channel on service path '/localization-server'.
2024-04-17T08:17:37.042Z root INFO Closing channel on service path '/os'.
2024-04-17T08:17:37.042Z root INFO Closing channel on service path '/services/commands'.
2024-04-17T08:17:37.042Z root INFO Closing channel on service path '/services/logger'.
2024-04-17T08:17:37.042Z root INFO Closing channel on service path '/services/messageService'.
2024-04-17T08:17:37.042Z root INFO Closing channel on service path '/services/remote-filesystem'.
2024-04-17T08:17:37.042Z root INFO Closing channel on service path '/services/envs'.
2024-04-17T08:17:37.042Z root INFO Closing channel on service path '/services/workspace'.
2024-04-17T08:17:37.042Z root INFO Closing channel on service path '/services/stopwatch'.
2024-04-17T08:17:37.042Z root INFO Closing channel on service path '/services/application'.
2024-04-17T08:17:37.042Z root INFO Closing channel on service path '/services/i18n'.
2024-04-17T08:17:37.042Z root INFO Closing channel on service path '/services/quickInput'.
2024-04-17T08:17:37.042Z root INFO Closing channel on service path '/services/debug'.
2024-04-17T08:17:37.043Z root INFO Closing channel on service path '/services/shell-terminal'.
2024-04-17T08:17:37.043Z root INFO Closing channel on service path '/services/task'.
2024-04-17T08:17:37.043Z root INFO Closing channel on service path '/services/quickPick'.
2024-04-17T08:17:37.043Z root INFO Closing channel on service path '/services/search'.
2024-04-17T08:17:37.043Z root INFO Closing channel on service path '/services/hostedPlugin'.
2024-04-17T08:17:37.043Z root INFO Closing channel on service path '/services/plugin-ext'.
2024-04-17T08:17:37.043Z root INFO Closing channel on service path '/services/plugin-paths'.
2024-04-17T08:17:37.043Z root INFO Closing channel on service path '/services/vsx-environment'.
2024-04-17T08:17:37.043Z root INFO Closing channel on service path '/services/request-service'.
2024-04-17T08:17:37.043Z root INFO Closing channel on service path '/services/git'.
2024-04-17T08:17:37.043Z root INFO Closing channel on service path '/services/git-watcher'.
2024-04-17T08:17:37.043Z root INFO Closing channel on service path '/services/mini-browser-service'.
2024-04-17T08:17:37.043Z root INFO Closing channel on service path '/services/search-in-workspace'.
2024-04-17T08:17:37.043Z root INFO [hosted-plugin: 11351] PLUGIN_HOST(11351) starting instance
2024-04-17T08:17:37.063Z root ERROR Error: Unexpected SIGPIPE
    at process.<anonymous> (/root/theia/lib/backend/711.js:2:17806)
    at process.emit (node:events:518:28)
2024-04-17T08:17:37.497Z root INFO creating connection for b7e4765e-2ef0-4670-b9be-ff40c118f7b0
2024-04-17T08:17:39.099Z root WARN A command editor.action.toggleStickyScroll is already registered.
2024-04-17T08:17:39.189Z root INFO Start frontend contributions: 291.9 ms [Finished 150.107 s after frontend start]
2024-04-17T08:17:39.189Z root INFO Changed application state from 'init' to 'started_contributions'.
2024-04-17T08:17:39.222Z root INFO [ab9269ce-29ec-4a2d-9d9e-7f96783c7771] Waiting for backend deployment: 35.8 ms [Finished 150.143 s after frontend start]
2024-04-17T08:17:39.523Z root INFO [hosted-plugin: 11370] PLUGIN_HOST(11370) starting instance
2024-04-17T08:17:39.591Z root WARN Linked preference "cursorSurroundingLines" not found.
2024-04-17T08:17:39.591Z root WARN Linked preference "workbench.colorCustomizations" not found.
2024-04-17T08:17:39.591Z root WARN Linked preference "window.titleBarStyle" not found.
2024-04-17T08:17:40.000Z root INFO [ab9269ce-29ec-4a2d-9d9e-7f96783c7771] Sync of 74 plugins: 632.7 ms [Finished 150.776 s after frontend start]

Additional Information

I am running in a container with arm64 structure

  • Operating System: ubuntu-20.04
  • Theia Version:
@Kadalia
Copy link

Kadalia commented May 16, 2024

Hello,
Same issue [terminal WARN Couldn't attach - can't find terminal with id: -1] when running last theia with docker on Rocky Linux 9.4.

@shendongyuxmxm
Copy link

Same issue , Is there a solution?

@passion123
Copy link

Same issue , Is there a solution?

@Kadalia
Copy link

Kadalia commented Jul 9, 2024

Hello,
I use code server now. No issue with terminal.
I stay tuned.
Thanks

@passion123
Copy link

passion123 commented Jul 11, 2024

Hello, I use code server now. No issue with terminal. I stay tuned. Thanks

on the way to code server too, do u have a try to deploy the code-server on arm64 arch server ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants