Error connecting to any remote: withRevealTerminalEvent can only be called once at a time globally within the app

Type: Bug
Dear VSCode team,
I am receiving an error in VSCode when opening any remote:
Could not establish connection to "<remote>": withRevealTerminalEvent can only be called once at a time globally within the app.

The remote connection is then aborted.
The error started popping up after updating VSCode to the latest version. It seems to pop up immediately, before any extensions are loaded.

Steps to reproduce

Click either "Connect to Host..." or "Connect current window to host..." and try any remote from the remote extension menu, or:
Open a remote workspace from the "Open recent" submenu.

Troubleshooting steps taken / attempted:

Reinstall VSCode
Start VSCode with extensions disabled
Try the Insiders version of VSCode

[Remote - SSH] extension log
[08:04:09.206] Log Level: 2
[08:04:09.243] VS Code version: 1.84.0
[08:04:09.243] Remote-SSH version<EMAIL_ADDRESS>[08:04:09.243] win32 x64
[08:04:09.401] Opening exec server for ssh-remote+tns1956
[08:04:09.445] SSH Resolver called for "ssh-remote+tns1956", attempt 1
[08:04:09.446] "remote.SSH.useLocalServer": false
[08:04:09.447] "remote.SSH.useExecServer": false
[08:04:09.448] "remote.SSH.showLoginTerminal": false
[08:04:09.448] "remote.SSH.remotePlatform": {"server.home":"linux","tns1956.inet.telenet.be":"linux","sandertimmermans.me":"linux","vps1":"linux","tns1956":"linux","<IP_ADDRESS>":"linux","sandbox.hwzyhp.csb":"linux"}
[08:04:09.449] "remote.SSH.path": undefined
[08:04:09.450] "remote.SSH.configFile": undefined
[08:04:09.450] "remote.SSH.useFlock": false
[08:04:09.450] "remote.SSH.lockfilesInTmp": false
[08:04:09.450] "remote.SSH.localServerDownload": auto
[08:04:09.452] "remote.SSH.remoteServerListenOnSocket": false
[08:04:09.452] "remote.SSH.showLoginTerminal": false
[08:04:09.452] "remote.SSH.defaultExtensions": []
[08:04:09.453] "remote.SSH.loglevel": 2
[08:04:09.453] "remote.SSH.enableDynamicForwarding": true
[08:04:09.453] "remote.SSH.enableRemoteCommand": false
[08:04:09.453] "remote.SSH.serverPickPortsFromRange": {}
[08:04:09.456] "remote.SSH.serverInstallPath": {"tns1956.inet.telenet.be":"/data/stimmerm","tns1956":"/data/stimmerm"}
[08:04:09.468] Initizing new exec server for ssh-remote+tns1956
[08:04:09.501] Using commit id "d037ac076cee195194f93ce6fe2bdfe2969cc82d" and quality "stable" for server
[08:04:09.505] Install and start server if needed
[08:04:09.518] SSH Resolver called for host: tns1956
[08:04:09.518] Setting up SSH remote "tns1956"
[08:04:09.522] Using commit id "d037ac076cee195194f93ce6fe2bdfe2969cc82d" and quality "stable" for server
[08:04:09.526] Install and start server if needed
[08:04:09.529] Resolver error: Error: withRevealTerminalEvent can only be called once at a time globally within the app
	at t.withShowDetailsEvent (c:\Users\stimmerm\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.0\out\extension.js:2:725354)
	at O (c:\Users\stimmerm\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.0\out\extension.js:2:721226)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async I (c:\Users\stimmerm\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.0\out\extension.js:2:719146)
	at async t.resolve (c:\Users\stimmerm\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.0\out\extension.js:2:722852)
	at async c:\Users\stimmerm\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.0\out\extension.js:2:906656
[08:04:09.541] Checking ssh with "C:\Program Files\Microsoft\jdk-<IP_ADDRESS>-hotspot\bin\ssh.exe -V"
[08:04:09.553] Got error from ssh: spawn C:\Program Files\Microsoft\jdk-<IP_ADDRESS>-hotspot\bin\ssh.exe ENOENT
[08:04:09.554] Checking ssh with "C:\ProgramData\Oracle\Java\javapath\ssh.exe -V"
[08:04:09.557] Got error from ssh: spawn C:\ProgramData\Oracle\Java\javapath\ssh.exe ENOENT
[08:04:09.557] Checking ssh with "C:\Oracle\product\12.2.0\client_1\bin\ssh.exe -V"
[08:04:09.560] Got error from ssh: spawn C:\Oracle\product\12.2.0\client_1\bin\ssh.exe ENOENT
[08:04:09.560] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V"
[08:04:09.563] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT
[08:04:09.563] Checking ssh with "C:\WINDOWS\ssh.exe -V"
[08:04:09.566] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT
[08:04:09.566] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V"
[08:04:09.569] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT
[08:04:09.569] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[08:04:09.572] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[08:04:09.573] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[08:04:09.754] ------

[08:04:09.978] > OpenSSH_for
[08:04:09.979] > _Windows_8.1p1, LibreSSL 3.0.2

[08:04:09.991] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 17068 tns1956 bash
[08:04:09.994] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[08:04:12.235] > ]0;C:\WINDOWS\System32\cmd.exe
[08:04:12.235] Got some output, clearing connection timeout
[08:04:12.541] > cefe191538f4: running
[08:04:12.592] > Found existing installation at /data/stimmerm/.vscode-server...
> Running ssh connection command... /data/stimmerm/.vscode-server/code-d037ac076ce
> e195194f93ce6fe2bdfe2969cc82d command-shell --cli-data-dir /data/stimmerm/.vscod
> e-server/cli --on-port --require-token 46c78f1fbedd --parent-process-id 2780070
> &> "/data/stimmerm/.vscode-server/.cli.d037ac076cee195194f93ce6fe2bdfe2969cc82d.
> log" < /dev/null
> printenv:
[08:04:12.603] >     SSH_CONNECTION=<IP_ADDRESS> 17072 <IP_ADDRESS> 22
>     XDG_SESSION_ID=97688
>     USER=stimmerm
>     PWD=/home/stimmerm
>     HOME=/home/stimmerm
>     SSH_CLIENT=<IP_ADDRESS> 17072 22
>     no_proxy=localhost,bliss.telenet-ops.be,shari.telenet-ops.be,beckett.telenet
> -ops.be,bryant.telenet-ops.be,holland.telenet-ops.be,morrow.telenet-ops.be:$no_p
> roxy
>     SHELL=/bin/bash
>     SHLVL=2
>     VSCODE_AGENT_FOLDER=/data/stimmerm/.vscode-server
>     LOGNAME=stimmerm
>     DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/2785/bus
>     XDG_RUNTIME_DIR=/run/user/2785
>     PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
>     _=/usr/bin/printenv
[08:04:12.619] > Removing old logfile at /data/stimmerm/.vscode-server/.cli.d037ac076cee195194f93
> ce6fe2bdfe2969cc82d.log
> Spawned remote CLI: 2780095
> Waiting for server log...
[08:04:12.652] > cefe191538f4: start
> SSH_AUTH_SOCK====
> DISPLAY====
> listeningOn==<IP_ADDRESS>:41291==
> osReleaseId==rocky==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/run/user/2785==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> serverStartTime==52==
> execServerToken==46c78f1fbedd==
> cefe191538f4: end
[08:04:12.653] Received install output:
SSH_AUTH_SOCK====
DISPLAY====
listeningOn==<IP_ADDRESS>:41291==
osReleaseId==rocky==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/2785==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime==52==
execServerToken==46c78f1fbedd==

[08:04:12.653] Remote server is listening on port 41291
[08:04:12.654] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":41291},"osReleaseId":"rocky","arch":"x86_64","sshAuthSock":"","display":"","tmpDir":"/run/user/2785","platform":"linux","execServerToken":"46c78f1fbedd"},"serverStartTime":52,"installUnpackCode":""}
[08:04:12.659] Starting forwarding server. local port 17073 -> socksPort 17068 -> remotePort 41291
[08:04:12.660] Forwarding server listening on port 17073
[08:04:12.661] Waiting for ssh tunnel to be ready
[08:04:12.662] [Forwarding server port 17073] Got connection 0
[08:04:12.663] Tunneled port 41291 to local port 17073
[08:04:12.664] Resolved "ssh-remote+tns1956" to "port 17073"
[08:04:12.664] Resolving exec server at port 17073
[08:04:12.666] [Forwarding server port 17073] Got connection 1
[08:04:12.673] >
[08:04:12.724] Exec server for ssh-remote+tns1956 created and cached

Developer tools console log
WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-dotnettools.dotnet-interactive-vscode' wants API proposal 'languageConfigurationAutoClosingPairs' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
39[Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. See <URL>
dom.ts:79 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Consider marking event handler as 'passive' to make the page more responsive.  Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
log.ts:421  INFO Invoking resolveAuthority(ssh-remote)...
log.ts:421  INFO [LocalProcess0][resolveAuthority(ssh-remote,1)][0ms] obtaining proxy...
log.ts:421  INFO [LocalProcess0][resolveAuthority(ssh-remote,1)][0ms] invoking...
log.ts:441   ERR [LocalProcess0][resolveAuthority(ssh-remote,1)][634ms] returned an error {code: 'NotAvailable', message: 'withRevealTerminalEvent can only be called once at a time globally within the app', detail: true}code: "NotAvailable"detail: truemessage: "withRevealTerminalEvent can only be called once at a time globally within the app"[[Prototype]]: Objectconstructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()__defineGetter__: ƒ __defineGetter__()__defineSetter__: ƒ __defineSetter__()__lookupGetter__: ƒ __lookupGetter__()__lookupSetter__: ƒ __lookupSetter__()__proto__: (...)get __proto__: ƒ __proto__()set __proto__: ƒ __proto__()
log.ts:441   ERR resolveAuthority(ssh-remote) returned an error after 637 ms CodeExpectedError: withRevealTerminalEvent can only be called once at a time globally within the app
    at Q.rb (abstractExtensionService.ts:647:9)
    at async Q.qb (abstractExtensionService.ts:608:19)
    at async Q.Ob (nativeExtensionService.ts:370:22)
    at async Q.jb (abstractExtensionService.ts:438:31)
nativeExtensionService.ts:376 Error handled: Not showing a notification for the error
log.ts:441   ERR Error received from starting extension host (kind: Remote)
log.ts:441   ERR CodeExpectedError: withRevealTerminalEvent can only be called once at a time globally within the app
    at Q.rb (abstractExtensionService.ts:647:9)
    at async Q.qb (abstractExtensionService.ts:608:19)
    at async Q.Ob (nativeExtensionService.ts:370:22)
    at async Q.jb (abstractExtensionService.ts:438:31)
log.ts:441   ERR [remote-connection][attempt 1] An error occurred in initial connection! Will retry... Error:
log.ts:441   ERR CodeExpectedError: withRevealTerminalEvent can only be called once at a time globally within the app
    at Q.rb (abstractExtensionService.ts:647:9)
    at async Q.qb (abstractExtensionService.ts:608:19)
    at async Q.Ob (nativeExtensionService.ts:370:22)
    at async Q.jb (abstractExtensionService.ts:438:31)
log.ts:441   ERR [remote-connection][attempt 2] An error occurred in initial connection! Will retry... Error:
log.ts:441   ERR CodeExpectedError: withRevealTerminalEvent can only be called once at a time globally within the app
    at Q.rb (abstractExtensionService.ts:647:9)
    at async Q.qb (abstractExtensionService.ts:608:19)
    at async Q.Ob (nativeExtensionService.ts:370:22)
    at async Q.jb (abstractExtensionService.ts:438:31)
27log.ts:441   ERR [idleberg.icon-fonts]: Unknown language in `contributes.icon-fonts.language`. Provided value: blade
27log.ts:441   ERR [idleberg.icon-fonts]: Unknown language in `contributes.icon-fonts.language`. Provided value: vue-html
27log.ts:441   ERR [idleberg.icon-fonts]: Unknown language in `contributes.icon-fonts.language`. Provided value: svelte
log.ts:441   ERR [kamilturek.vscode-pyproject-toml-snippets]: Unknown language in `contributes.vscode-pyproject-toml-snippets.language`. Provided value: toml
log.ts:441   ERR [remote-connection][attempt 3] An error occurred in initial connection! Will retry... Error:
log.ts:441   ERR CodeExpectedError: withRevealTerminalEvent can only be called once at a time globally within the app
    at Q.rb (abstractExtensionService.ts:647:9)
    at async Q.qb (abstractExtensionService.ts:608:19)
    at async Q.Ob (nativeExtensionService.ts:370:22)
    at async Q.jb (abstractExtensionService.ts:438:31)
log.ts:441   ERR [remote-connection][attempt 4] An error occurred in initial connection! Will retry... Error:
log.ts:441   ERR CodeExpectedError: withRevealTerminalEvent can only be called once at a time globally within the app
    at Q.rb (abstractExtensionService.ts:647:9)
    at async Q.qb (abstractExtensionService.ts:608:19)
    at async Q.Ob (nativeExtensionService.ts:370:22)
    at async Q.jb (abstractExtensionService.ts:438:31)
log.ts:441   ERR [remote-connection][attempt 5]  An error occurred in initial connection! It will be treated as a permanent error. Error:
log.ts:441   ERR CodeExpectedError: withRevealTerminalEvent can only be called once at a time globally within the app
    at Q.rb (abstractExtensionService.ts:647:9)
    at async Q.qb (abstractExtensionService.ts:608:19)
    at async Q.Ob (nativeExtensionService.ts:370:22)
    at async Q.jb (abstractExtensionService.ts:438:31)
log.ts:441   ERR CodeExpectedError: withRevealTerminalEvent can only be called once at a time globally within the app
    at Q.rb (abstractExtensionService.ts:647:9)
    at async Q.qb (abstractExtensionService.ts:608:19)
    at async Q.Ob (nativeExtensionService.ts:370:22)
    at async Q.jb (abstractExtensionService.ts:438:31)
log.ts:441   ERR Cannot register remote filesystem provider. Error while fetching remote environment. withRevealTerminalEvent can only be called once at a time globally within the app
4log.ts:441   ERR CodeExpectedError: withRevealTerminalEvent can only be called once at a time globally within the app
    at Q.rb (abstractExtensionService.ts:647:9)
    at async Q.qb (abstractExtensionService.ts:608:19)
    at async Q.Ob (nativeExtensionService.ts:370:22)
    at async Q.jb (abstractExtensionService.ts:438:31)
log.ts:441   ERR CodeExpectedError: withRevealTerminalEvent can only be called once at a time globally within the app
    at Q.rb (abstractExtensionService.ts:647:9)
    at async Q.qb (abstractExtensionService.ts:608:19)
    at async Q.Ob (nativeExtensionService.ts:370:22)
    at async Q.jb (abstractExtensionService.ts:438:31)
log.ts:441   ERR CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-bash-utils'
    at n.j (fileService.ts:150:18)
    at async n.bb (fileService.ts:1177:20)
    at async fileService.ts:1143:24
log.ts:441   ERR CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-date-utils'
    at n.j (fileService.ts:150:18)
    at async n.bb (fileService.ts:1177:20)
    at async fileService.ts:1143:24
log.ts:441   ERR CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-deployment'
    at n.j (fileService.ts:150:18)
    at async n.bb (fileService.ts:1177:20)
    at async fileService.ts:1143:24
log.ts:441   ERR CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-dev-toolbox'
    at n.j (fileService.ts:150:18)
    at async n.bb (fileService.ts:1177:20)
    at async fileService.ts:1143:24
log.ts:441   ERR CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-eslint-plugin'
    at n.j (fileService.ts:150:18)
    at async n.bb (fileService.ts:1177:20)
    at async fileService.ts:1143:24
log.ts:441   ERR CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-jest'
    at n.j (fileService.ts:150:18)
    at async n.bb (fileService.ts:1177:20)
    at async fileService.ts:1143:24
log.ts:441   ERR CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-typescript'
    at n.j (fileService.ts:150:18)
    at async n.bb (fileService.ts:1177:20)
    at async fileService.ts:1143:24
log.ts:441   ERR CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-utils'
    at n.j (fileService.ts:150:18)
    at async n.bb (fileService.ts:1177:20)
    at async fileService.ts:1143:24
log.ts:441   ERR CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-bash-utils'
    at n.j (fileService.ts:150:18)
    at async n.bb (fileService.ts:1177:20)
    at async fileService.ts:1143:24
log.ts:441   ERR CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-date-utils'
    at n.j (fileService.ts:150:18)
    at async n.bb (fileService.ts:1177:20)
    at async fileService.ts:1143:24
log.ts:441   ERR CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-deployment'
    at n.j (fileService.ts:150:18)
    at async n.bb (fileService.ts:1177:20)
    at async fileService.ts:1143:24
log.ts:441   ERR CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-dev-toolbox'
    at n.j (fileService.ts:150:18)
    at async n.bb (fileService.ts:1177:20)
    at async fileService.ts:1143:24
log.ts:441   ERR CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-eslint-plugin'
    at n.j (fileService.ts:150:18)
    at async n.bb (fileService.ts:1177:20)
    at async fileService.ts:1143:24
log.ts:441   ERR CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-jest'
    at n.j (fileService.ts:150:18)
    at async n.bb (fileService.ts:1177:20)
    at async fileService.ts:1143:24
log.ts:441   ERR CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-typescript'
    at n.j (fileService.ts:150:18)
    at async n.bb (fileService.ts:1177:20)
    at async fileService.ts:1143:24
log.ts:441   ERR CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-utils'
    at n.j (fileService.ts:150:18)
    at async n.bb (fileService.ts:1177:20)
    at async fileService.ts:1143:24
log.ts:441   ERR ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-bash-utils/.git/config': CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-bash-utils/.git/config'
    at n.j (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:645:11549)
    at async n.exists (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:645:13756)
    at async Promise.all (index 0)
log.ts:441   ERR CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-deployment/src/scripts/py/util/nginx.py'
    at n.j (fileService.ts:150:18)
    at async n.m (fileService.ts:160:20)
    at async n.readFileStream (fileService.ts:537:20)
    at async b.M (textFileService.ts:219:19)
    at async b.readStream (textFileService.ts:198:35)
    at async P.Cb (textFileEditorModel.ts:444:20)
    at async P.resolve (textFileEditorModel.ts:300:3)
    at async s.W (textFileEditorModelManager.ts:416:4)
    at async n.gb (fileEditorInput.ts:336:4)
    at async T.setInput (textFileEditor.ts:105:26)
    at async c.S (editorPanes.ts:445:4)
    at async c.L (editorPanes.ts:270:34)
    at async c.openEditor (editorPanes.ts:146:12)
    at async editorGroupView.ts:1091:49
log.ts:441   ERR ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-bash-utils/pom.xml': CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-bash-utils/pom.xml'
    at n.j (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:645:11549)
    at async n.exists (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:645:13756)
    at async Promise.all (index 0)
log.ts:441   ERR withRevealTerminalEvent can only be called once at a time globally within the app: CodeExpectedError: withRevealTerminalEvent can only be called once at a time globally within the app
    at Q.rb (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2702:21248)
    at async Q.qb (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2702:20507)
    at async Q.Ob (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2703:11479)
    at async Q.jb (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2702:18090)
log.ts:441   ERR ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-bash-utils/.vscode': CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-bash-utils/.vscode'
    at n.j (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:645:11549)
    at async n.exists (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:645:13756)
    at async vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2046:6301
    at async Promise.all (index 0)
    at async O.v (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2046:6408)
log.ts:441   ERR withRevealTerminalEvent can only be called once at a time globally within the app: CodeExpectedError: withRevealTerminalEvent can only be called once at a time globally within the app
    at Q.rb (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2702:21248)
    at async Q.qb (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2702:20507)
    at async Q.Ob (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2703:11479)
    at async Q.jb (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2702:18090)
log.ts:441   ERR CodeExpectedError: withRevealTerminalEvent can only be called once at a time globally within the app
    at Q.rb (abstractExtensionService.ts:647:9)
    at async Q.qb (abstractExtensionService.ts:608:19)
    at async Q.Ob (nativeExtensionService.ts:370:22)
    at async Q.jb (abstractExtensionService.ts:438:31)
log.ts:441   ERR withRevealTerminalEvent can only be called once at a time globally within the app: CodeExpectedError: withRevealTerminalEvent can only be called once at a time globally within the app
    at Q.rb (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2702:21248)
    at async Q.qb (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2702:20507)
    at async Q.Ob (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2703:11479)
    at async Q.jb (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2702:18090)
marked.js:3029 [Violation] 'setTimeout' handler took 53ms
log.ts:441   ERR [Extension Host] (node:13168) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Code --trace-deprecation ...` to show where the warning was created)
console.ts:137 [Extension Host] (node:13168) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Code --trace-deprecation ...` to show where the warning was created)
w @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:456
Q @ rpcProtocol.ts:441
M @ rpcProtocol.ts:371
L @ rpcProtocol.ts:297
(anonymous) @ rpcProtocol.ts:161
y @ event.ts:1140
fire @ event.ts:1171
fire @ ipc.net.ts:650
Q.onmessage @ localProcessExtensionHost.ts:581
log.ts:441   ERR [Extension Host] CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-bash-utils'
    at n.j (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:645:11549)
    at async n.exists (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:645:13756)
    at async Promise.all (index 0)
    at async vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1867:2796
console.ts:137 [Extension Host] CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Btns1956/data/stimmerm/spot-bash-utils'
    at n.j (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:645:11549)
    at async n.exists (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:645:13756)
    at async Promise.all (index 0)
    at async vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1867:2796
w @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:456
Q @ rpcProtocol.ts:441
M @ rpcProtocol.ts:371
L @ rpcProtocol.ts:297
(anonymous) @ rpcProtocol.ts:161
y @ event.ts:1140
fire @ event.ts:1171
fire @ ipc.net.ts:650
Q.onmessage @ localProcessExtensionHost.ts:581
2log.ts:441   ERR withRevealTerminalEvent can only be called once at a time globally within the app: CodeExpectedError: withRevealTerminalEvent can only be called once at a time globally within the app
    at Q.rb (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2702:21248)
    at async Q.qb (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2702:20507)
    at async Q.Ob (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2703:11479)
    at async Q.jb (vscode-file://vscode-app/c:/Users/stimmerm/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2702:18090)

VS Code version: Code 1.84.0 (d037ac076cee195194f93ce6fe2bdfe2969cc82d, 2023-11-01T11:29:04.398Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Connection to 'SSH: tns1956' could not be established  withRevealTerminalEvent can only be called once at a time globally within the app

System Info

Item
Value

CPUs
11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 2995)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
31.85GB (16.61GB free)

Process Argv
--crash-reporter-id 73534df5-988d-42b2-9f2a-eace9dbfcbdc

Screen Reader
no

VM
0%

Connection to 'SSH: tns1956' could not be established  withRevealTerminalEvent can only be called once at a time globally within the app
Extensions: none
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes516:30244333
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263cf:30880073
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
282f8724:30602487
f6dab269:30613381
showlangstatbar:30737416
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixtcf:30871695
pythonregdiag2:30871582
pyreplss2:30879913
pythonmypyd1:30879173
pythoncet00cf:30874137
pythontbext0:30879054
dsvsc016cf:30880770

Seems to be a bug from a recent release.

I know this is not a fix, but changing to a older version, is working for now.
Source

Thank you for your reply!
Unfortunately, in my case, the error seems to persist after downgrading the Remote - SSH extension to any other version.
I'm currently looking into downgrading VSCode entirely for now. Will update to let you know if that fixes the problem (albeit temporarily).

Edit: I can confirm the error is gone when downgrading to Visual Studio Code 1.83.1. The issue is thus localized to versions >= 1.85 (the problem was also present in the insiders version)

I confirm this fix. Downgrade from 1.84 to 1.83 make SSH remote works again.
https://code.visualstudio.com/updates/v1_83
Thanks.

yeah been facing same issue , let me downgrade and see if this helps

I installed pre release version of Remote SSH, it works. Thanks!

Having the same issue, usually it works after I click "Reply" once or twice.

The problem was fixed after downgrading to Visual Studio Code 1.83.1.
Thanks!

Having same issue on all my SSH remotes...will attempt to revert back to 1.83.1 as well.

Having the same issue, usually it works after I click "Reply" once or twice.

This worked for me. Just one more point to make... the more remote-SSH sessions that I have open, the more I have to click the "Retry" button. Eventually it gets connected.

Is this happening with some people or everyone ?

to me as well @m-Afnan2018

Still happening to me today.  Trying to ssh to digital ocean ubuntu droplet, used to work after a couple retries, but still not working today after 10 + retries.

VS<EMAIL_ADDRESS><EMAIL_ADDRESS>Logs
[09:20:32.265] Log Level: 2
[09:20:32.274] VS Code version: 1.84.2
[09:20:32.274] Remote-SSH version<EMAIL_ADDRESS>[09:20:32.274] win32 x64
[09:20:32.340] Opening exec server for ssh-remote+ubuntu.(digitalOceanUbuntuDroplet).com
[09:20:32.341] SSH Resolver called for "ssh-remote+ubuntu.(digitalOceanUbuntuDroplet).com", attempt 1
[09:20:32.341] "remote.SSH.useLocalServer": false
[09:20:32.342] "remote.SSH.useExecServer": false
[09:20:32.342] "remote.SSH.showLoginTerminal": false
[09:20:32.342] "remote.SSH.remotePlatform": {"(digitalOceanUbuntuDroplet).com":"linux","docker.(digitalOceanUbuntuDroplet).com":"linux","ubuntu.(digitalOceanUbuntuDroplet).com":"linux"}
[09:20:32.342] "remote.SSH.path": undefined
[09:20:32.342] "remote.SSH.configFile": undefined
[09:20:32.342] "remote.SSH.useFlock": true
[09:20:32.342] "remote.SSH.lockfilesInTmp": false
[09:20:32.343] "remote.SSH.localServerDownload": auto
[09:20:32.343] "remote.SSH.remoteServerListenOnSocket": false
[09:20:32.343] "remote.SSH.showLoginTerminal": false
[09:20:32.343] "remote.SSH.defaultExtensions": []
[09:20:32.343] "remote.SSH.loglevel": 2
[09:20:32.344] "remote.SSH.enableDynamicForwarding": true
[09:20:32.344] "remote.SSH.enableRemoteCommand": false
[09:20:32.344] "remote.SSH.serverPickPortsFromRange": {}
[09:20:32.344] "remote.SSH.serverInstallPath": {}
[09:20:32.353] Initizing new exec server for ssh-remote+ubuntu.(digitalOceanUbuntuDroplet).com
[09:20:32.365] Using commit id "1a5daa3a0231a0fbba4f14db7ec463cf99d7768e" and quality "stable" for server
[09:20:32.368] Install and start server if needed
[09:20:32.368] SSH Resolver called for host: ubuntu.(digitalOceanUbuntuDroplet).com
[09:20:32.368] Setting up SSH remote "ubuntu.(digitalOceanUbuntuDroplet).com"
[09:20:32.370] Using commit id "1a5daa3a0231a0fbba4f14db7ec463cf99d7768e" and quality "stable" for server
[09:20:32.372] Install and start server if needed
[09:20:32.372] Resolver error: Error: withRevealTerminalEvent can only be called once at a time globally within the app
	at t.withShowDetailsEvent (c:\Users\benme\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.0\out\extension.js:2:725354)
	at O (c:\Users\benme\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.0\out\extension.js:2:721226)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async I (c:\Users\benme\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.0\out\extension.js:2:719146)
	at async t.resolve (c:\Users\benme\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.0\out\extension.js:2:722852)
	at async c:\Users\benme\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.0\out\extension.js:2:906656
[09:20:32.378] Checking ssh with "C:\Program Files\BellSoft\LibericaJDK-17\bin\ssh.exe -V"
[09:20:32.380] Got error from ssh: spawn C:\Program Files\BellSoft\LibericaJDK-17\bin\ssh.exe ENOENT
[09:20:32.380] Checking ssh with "C:\Program Files\BellSoft\LibericaJDK-21\bin\ssh.exe -V"
[09:20:32.381] Got error from ssh: spawn C:\Program Files\BellSoft\LibericaJDK-21\bin\ssh.exe ENOENT
[09:20:32.381] Checking ssh with "C:\Python311\Scripts\ssh.exe -V"
[09:20:32.382] Got error from ssh: spawn C:\Python311\Scripts\ssh.exe ENOENT
[09:20:32.382] Checking ssh with "C:\Python311\ssh.exe -V"
[09:20:32.383] Got error from ssh: spawn C:\Python311\ssh.exe ENOENT
[09:20:32.383] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[09:20:32.384] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[09:20:32.385] Checking ssh with "C:\Windows\ssh.exe -V"
[09:20:32.386] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[09:20:32.386] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[09:20:32.387] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[09:20:32.388] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[09:20:32.388] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[09:20:32.389] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[09:20:32.397] ------
[09:20:32.413] > OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3
[09:20:32.416] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 59636 "ubuntu.(digitalOceanUbuntuDroplet).com" bash
[09:20:32.418] Terminal shell path: C:\Windows\System32\cmd.exe
[09:20:34.942] > c42ff3b00823: running

]0;C:\Windows\System32\cmd.exe
[09:20:34.942] Got some output, clearing connection timeout
[09:20:34.972] > Found existing installation at /root/.vscode-server...
Running ssh connection command... /root/.vscode-server/code-1a5daa3a0231a0fbba4f14db7ec463cf99d7768e command-shell --cli-data-dir /root/.vscode-server/cli --on-port --require-token 30055cbd3230 --parent-process-id 794981 &> "/root/.vscode-server/.cli.1a5daa3a0231a0fbba4f14db7ec463cf99d7768e.log" < /dev/null
printenv:
SHELL=/bin/bash
PWD=/root
LOGNAME=root
XDG_SESSION_TYPE=tty
MOTD_SHOWN=pam
HOME=/root
LANG=C.UTF-8
VSCODE_AGENT_FOLDER=/root/.vscode-server
SSH_CONNECTION=<IP_ADDRESS> 59638 <IP_ADDRESS> 22
XDG_SESSION_CLASS=user
USER=root
SHLVL=0
XDG_SESSION_ID=1763
XDG_RUNTIME_DIR=/run/user/0
SSH_CLIENT=<IP_ADDRESS> 59638 22
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus
_=/usr/bin/printenv
Removing old logfile at /root/.vscode-server/.cli.1a5daa3a0231a0fbba4f14db7ec463cf99d7768e.log
Spawned remote CLI: 795000
Waiting for server log...
[09:20:34.988] >
[09:20:35.023] > Waiting for server log...
[09:20:35.038] >
[09:20:35.134] > c42ff3b00823: start
SSH_AUTH_SOCK====
DISPLAY====
listeningOn==<IP_ADDRESS>:44027==
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/0==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime==111==
execServerToken==30055cbd3230==
c42ff3b00823: end
[09:20:35.134] Received install output:
SSH_AUTH_SOCK====
DISPLAY====
listeningOn==<IP_ADDRESS>:44027==
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/0==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime==111==
execServerToken==30055cbd3230==

[09:20:35.135] Remote server is listening on port 44027
[09:20:35.135] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":44027},"osReleaseId":"ubuntu","arch":"x86_64","sshAuthSock":"","display":"","tmpDir":"/run/user/0","platform":"linux","execServerToken":"30055cbd3230"},"serverStartTime":111,"installUnpackCode":""}
[09:20:35.137] Starting forwarding server. local port 59644 -> socksPort 59636 -> remotePort 44027
[09:20:35.137] Forwarding server listening on port 59644
[09:20:35.137] Waiting for ssh tunnel to be ready
[09:20:35.138] [Forwarding server port 59644] Got connection 0
[09:20:35.139] Tunneled port 44027 to local port 59644
[09:20:35.139] Resolved "ssh-remote+ubuntu.(digitalOceanUbuntuDroplet).com" to "port 59644"
[09:20:35.139] Resolving exec server at port 59644
[09:20:35.140] [Forwarding server port 59644] Got connection 1
[09:20:35.265] Exec server for ssh-remote+ubuntu.(digitalOceanUbuntuDroplet).com created and cached

I have to keep spamming the retry button and it eventually works but it's incredibly annoying

Facing this issue since last 2 days already. No clue yet. Dear VSCODE team, Please help on priority.

Remote - SSH version v0.102.0 worked.
I am not sure which version to lower it to.

Edit: I can confirm the error is gone when downgrading to Visual Studio Code 1.83.1. The issue is thus localized to versions >= 1.85 (the problem was also present in the insiders version)

I confirm this fix. Downgrade VS code from 1.84 to 1.83 make SSH remote works again. https://code.visualstudio.com/updates/v1_83
Thanks.

Thank you @Gaetanbrl
I can confirm that downgrading VSCode worked. Downgrading the extension alone did not work.

Big Discovery
TLDR: VSCode Extension "codesandbox", a terminal-related vscode extension is the culpult for my case.
after i disabled all others vscode extension problem is gone. I asked github copilot about this

The error message you're seeing suggests that there might be a conflict between extensions that are trying to use the withRevealTerminalEvent method concurrently. This method is part of the VS Code API and is used to control the visibility of the terminal.
The extensions that could potentially cause this problem are those that interact with the terminal. These could be extensions that run commands in the terminal, extensions that create new terminals, or extensions that manage terminal sessions.
The SSH extension you mentioned is a workspace extension as per the first code snippet you provided. It's possible that another workspace extension is conflicting with it.
To identify the problematic extension, you can enable your extensions one by one and check if the problem reoccurs. Start with the extensions that have terminal-related functionality. Once you identify the extension causing the issue, you can check if there's an update available that might fix the problem, or report the issue to the extension's maintainers.

Then, i uninstall an extension that use terminal one by one. And VSCode Extension "codesandbox", a terminal-related vscode extension is the culpult for my case.

Big Discovery
TLDR: VSCode Extension "codesandbox", a terminal-related vscode extension is the culpult for my case.
after i disabled all others vscode extension problem is gone. I asked github copilot about this

The error message you're seeing suggests that there might be a conflict between extensions that are trying to use the withRevealTerminalEvent method concurrently. This method is part of the VS Code API and is used to control the visibility of the terminal.
The extensions that could potentially cause this problem are those that interact with the terminal. These could be extensions that run commands in the terminal, extensions that create new terminals, or extensions that manage terminal sessions.
The SSH extension you mentioned is a workspace extension as per the first code snippet you provided. It's possible that another workspace extension is conflicting with it.
To identify the problematic extension, you can enable your extensions one by one and check if the problem reoccurs. Start with the extensions that have terminal-related functionality. Once you identify the extension causing the issue, you can check if there's an update available that might fix the problem, or report the issue to the extension's maintainers.

Then, i uninstall an extension that use terminal one by one. And VSCode Extension "codesandbox", a terminal-related vscode extension is the culpult for my case.

I faced the same issue, and uninstalling codesandbox extention solved it! Thank you!

I've also had same issue since 1.84 upgrade.  Disabling "codesandbox" extension also solved for me.  Big thx @wasdee

Big Discovery
TLDR: VSCode Extension "codesandbox", a terminal-related vscode extension is the culpult for my case.
after i disabled all others vscode extension problem is gone. I asked github copilot about this

The error message you're seeing suggests that there might be a conflict between extensions that are trying to use the withRevealTerminalEvent method concurrently. This method is part of the VS Code API and is used to control the visibility of the terminal.
The extensions that could potentially cause this problem are those that interact with the terminal. These could be extensions that run commands in the terminal, extensions that create new terminals, or extensions that manage terminal sessions.
The SSH extension you mentioned is a workspace extension as per the first code snippet you provided. It's possible that another workspace extension is conflicting with it.
To identify the problematic extension, you can enable your extensions one by one and check if the problem reoccurs. Start with the extensions that have terminal-related functionality. Once you identify the extension causing the issue, you can check if there's an update available that might fix the problem, or report the issue to the extension's maintainers.

Then, i uninstall an extension that use terminal one by one. And VSCode Extension "codesandbox", a terminal-related vscode extension is the culpult for my case.

Same issue with me. Uninstalling "codesandbox" extension in vscode 1.84.2 solved the problem.

Looking into what code inside CodeSandbox causes this crash...

I believe the issue was caused because our extension marked the SSH Remote extension as a dependency. Maybe that activated the extension twice. I've now fixed it by removing the dependency of that extension, and instead we now prompt the user to install the extension if it's not yet installed.
That fix has been published now!

I believe the issue was caused because our extension marked the SSH Remote extension as a dependency. Maybe that activated the extension twice. I've now fixed it by removing the dependency of that extension, and instead we now prompt the user to install the extension if it's not yet installed.
That fix has been published now!

Can confirm that the issue is gone now. Thanks a million!


Docs.MS Release Updates for Microsoft.Azure.Batch

Update docs metadata and targeting for release of Microsoft.Azure.Batch

Docs Build status updates of commit e47b654:
:warning: Validation status: warnings

File
Status
Preview URL
Details

api/overview/azure/microsoft.batch-readme.md
:warning:Warning
View
Details

api/overview/azure/microsoft.batch-readme.md

Line 17: [Warning-multiple-h1s] Multiple H1s({0}) are not allowed. You can only have one top-level heading.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


BUG:about page not found

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
in the about us page only footer widget not any other section in about page

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

can you assign me this task?


App crashes when initialising with topics (v2.0.0-rc1)

Expected Behaviour
App should initialise push notifications with the FCM server.
Actual Behaviour
App crashes out to home screen.
Reproduce Scenario (including but not limited to)
?
Steps to Reproduce

Perform window.PushNotification.init() and pass through topics as an array of strings e.g.

window.PushNotification.init({
    ...
    topics: ['test']
...
});

Platform and Version (eg. Android 5.0 or iOS 9.2.1)
iOS 10.2 (Beta 8)
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Apple
Cordova CLI version and cordova platform version
cordova 6.4.0
cordova-ios 4.3.0
Plugin version
2.0.0-rc1
Sample Push Data Payload
N/A
Sample Code that illustrates the problem
window.PushNotification.init({
    ...
    topics: ['test']
...
});

Logs taken while reproducing problem
19f1db496c063f52367708acab000543.log.txt

@CookieCookson it's fixed in the 2.0.x branch now. I believe I screwed up a merge. Thanks for raising the bug.


Make VCR tool ignore patterns case insensitive

These ignore patterns should also match camel case resource names.

Codecov Report

Merging #2049 (dce2bd7) into master (2a9823a) will decrease coverage by 7.63%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master    #2049      +/-   ##
============================================
- Coverage     69.42%   61.79%   -7.64%
+ Complexity     9548     8277    -1271
============================================
  Files           725      725
  Lines         55013    55015       +2
  Branches       6802     6802
============================================
- Hits          38194    33996    -4198
- Misses        14692    18838    +4146
- Partials       2127     2181      +54

Impacted Files
Coverage Δ

...java/com/github/ambry/clustermap/HelixVcrUtil.java
1.89% <0.00%> (-0.03%)
:arrow_down:

...rc/main/java/com/github/ambry/store/TimeRange.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...om/github/ambry/store/CompactAllPolicyFactory.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...github/ambry/store/CompactionPolicySwitchInfo.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...github/ambry/store/StatsBasedCompactionPolicy.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...hub/ambry/store/HybridCompactionPolicyFactory.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...ambry/store/StatsBasedCompactionPolicyFactory.java
0.00% <0.00%> (-100.00%)
:arrow_down:

.../main/java/com/github/ambry/store/ScanResults.java
0.00% <0.00%> (-96.71%)
:arrow_down:

...n/java/com/github/ambry/store/CostBenefitInfo.java
0.00% <0.00%> (-93.34%)
:arrow_down:

...java/com/github/ambry/store/CompactionDetails.java
0.00% <0.00%> (-90.00%)
:arrow_down:

... and 51 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a9823a...dce2bd7. Read the comment docs.

@justinlin-linkedin will make an alternative change to check that resources are numerical.


Adding ¡ or accents (ó) breaks Discord webhook message (does not send)

Bug Report
System Information

Operating System (Including distribution name and version number): Windows Server 2022
AMP version and build date (Always use the version number, 'latest' is not valid!): v20220530.3, built 30/05/2022 12:48
Which AMP release stream you're using (Mainline, Nightly or FastTrack): Nightly

I confirm:

[x] that I have searched for an existing bug report for this issue.
[x] that I am using the latest available version of AMP.
[x] that my operating system is up-to-date.

Symptoms

What are you trying to do?
Add ¡ and ó in a Discord message.

What are you expecting to happen?
The message "¡Hay una actualización de V Rising disponible!" to be sent via Discord webhook.

What is actually happening? ('Nothing' is not an acceptable answer!)
Message is not sent if it includes ¡ and/or ó.

Reproduction
Add a message to a task that includes a non common English character such as ¡ or accented letters.

Any help with this one? Any way I help so that we can support spanish properly across all AMP?


[Query Question] filter based on edge (non-)existence ?

OrientDB Version: 3.1.0-M3
Java Version: 1.8.0_211
OS: Windows 10
I have a somewhat simple query such as
SELECT FROM User WHERE userId != 'msh'
and I want to also return users that don't have a specific direct relationship. I tried something like this:
SELECT FROM User WHERE userId != 'msh' AND (SELECT FROM like WHERE ( (in.userId = 'msh' AND out = #66:77) OR (out.userId = 'msh' AND in= #66:77 ) ) ) is null
but it simply returned all records. Debugging the server, it's because the result was a collection with size 0.
I tried to then do this:
SELECT FROM User WHERE userId != 'msh' AND (SELECT FROM like WHERE ( (in.userId = 'msh' AND out = #66:77) OR (out.userId = 'msh' AND in= #66:77 ) ) ).size() = 0
But then I got a syntax error.
Is there another way perhaps I'm missing?

Hi @matanshukry
You can try with AND (SELECT...) = [], it should work fine
Thanks
Luigi

Cool it's working greaat!


JSONAPI: Allow collections within compounds to use extend option

@apotonick @pd
Fixes https://github.com/apotonick/roar/pull/127
How it is now with the current implementation:
{
  "albums"=> {"id"=>1},
  "linked"=> {
    "songs"=> [
      {"songs"=>{"id"=>1, "title"=>"Stand Up"}},
      {"songs"=>{"id"=>2, "title"=>"Audition Mantra"}}
    ]
  }
}

How it is after this fix:
{
  'albums' => { 'id' => 1 },
  'linked' => {
    'songs' => [
      {'id' => 1, 'title' => 'Stand Up'},
      {'id' => 2, 'title' => 'Audition Mantra'}
    ]
  }
}

This fix removes the second, redundant songs wrap by writing fragments to the doc without the extra wrap.

You rule! :beers:


Do not require an account id for importing addresses

#258
Overview

[ ] I have remove the 'accountIndex' from the import-address endpoint

Comments

Actually, we were sort-of ignoring it already and the endpoint was misleading.
Cardano addresses embed their corresponding account index inside them, therefore,
when importing addresses, we only care about the root master key (and therefore, the
root id). The account ix comes from the address anyway

@KtorZ perhaps you might want to update also ->

https://input-output-hk.github.io/cardano-wallet/#section/Common-Use-Cases/Importing-(Unused)-Addresses-From-a-Previous-Node-(or-Version)
https://input-output-hk.github.io/cardano-wallet/#tag/Addresses%2Fpaths%2F~1api~1v1~1wallets~1{walletId}~1accounts~1{accountId}~1addresses%2Fpost

(not sure, the latter will update automatically?)

Indeed. And I'll also update the manual tests instruction / scripts. Thinking about getting yours merged before.

No probs, I can update manual tests  under #319.

Updated manual tests, API layout and Swagger documentation :+1:

:+1: Feel free to merge. I'll add tests in #319 on the top of it if that's ok.


Add vertices support to loft

should address issue https://github.com/gumyr/build123d/issues/270 to add vertex support to loft. This is a good way of creating polygonal shapes such as a rectangular pyramid (using ruled=True) that is not very easy otherwise in build123d.
I also added Sketch as an acceptable input type, which I believe was a missing feature for loft
The formatter also caught some other whitespace issues elsewhere, hopefully that is OK.

Thank you, this is a nice addition to loft.

This is beautiful


ValueError: Can only save/restore ResourceVariables when executing eagerly

System information

Have I written custom code (as opposed to using a stock example script
provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 18.04
TensorFlow installed from (source or binary):
TensorFlow version (use command below):v2.3.0-rc2-23-gb36436b087
Python version:3.7.9
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:10.1/7.6.5
GPU model and memory:2080 Ti
Exact command to reproduce:

Describe the problem
When I run, prog run till base.save
While run tf.compat.v1.train.Saver(), it hint
`
Traceback (most recent call last):
  File "main.py", line 131, in <module>
       main()
  File "main.py", line 113, in main
       T.train()
  File "/home/yang/Documents/paper/refer/MGNN-SPred-master/Train.py", line 40, in train
       self.model.save()
  File "/home/yang/Documents/paper/refer/MGNN-SPred-master/models/base.py", line 116, in save
       self.saver.save(self.sess, name)
  File "/home/yang/anaconda3/envs/tsorflw/lib/python3.7/site-packages/tensorflow/python/training/saver.py", line 1180, in save
       checkpoint_file, build_save=True, build_restore=False)
  File "/home/yang/anaconda3/envs/tsorflw/lib/python3.7/site-packages/tensorflow/python/training/saver.py", line 852, in _build_eager
       checkpoint_path, build_save=build_save, build_restore=build_restore)
  File "/home/yang/anaconda3/envs/tsorflw/lib/python3.7/site-packages/tensorflow/python/training/saver.py", line 886, in _build
        build_restore=build_restore)
  File "/home/yang/anaconda3/envs/tsorflw/lib/python3.7/site-packages/tensorflow/python/training/saver.py", line 490, in _build_internal
        names_to_saveables)
  File "/home/yang/anaconda3/envs/tsorflw/lib/python3.7/site-packages/tensorflow/python/training/saving/saveable_object_util.py", line 360, in validate_and_slice_inputs
        for converted_saveable_object in saveable_objects_for_op(op, name):
   File "/home/yang/anaconda3/envs/tsorflw/lib/python3.7/site-packages/tensorflow/python/training/saving/saveable_object_util.py", line 209, in saveable_objects_for_op
       "executing eagerly, got type: %s." % type(op))
   ValueError: Can only save/restore ResourceVariables when executing eagerly, got type: <class'tensorflow.python.framework.ops.Tensor'>.

`
Source code / logs
I run this model
https://github.com/Autumn945/MGNN-SPred
and  change some tf1 code to tf2
`
def make_model(self):
    with tf.compat.v1.variable_scope('Graph', reuse=tf.compat.v1.AUTO_REUSE, regularizer=self.l2_loss('all')) as self.graph_scope:
        n = args.nb_nodes
        k = args.dim_k
        self.embedding_matrix = tf.compat.v1.get_variable(name='emb_w', shape=[n, k])
        with tf.compat.v1.variable_scope('graph_agg', reuse=tf.compat.v1.AUTO_REUSE) as self.graph_agg_scope:
            pass

    with tf.compat.v1.variable_scope('Network', reuse=tf.compat.v1.AUTO_REUSE, regularizer=self.l2_loss('all')):
        score, label = self.forward(*self.inputs)
        seq_loss = tf.compat.v1.losses.softmax_cross_entropy(label, score)
        tf.summary.scalar('seq_loss', seq_loss)

    self.loss = seq_loss
    self.loss += tf.compat.v1.losses.get_regularization_loss()

    opt = tf.compat.v1.train.AdamOptimizer(learning_rate=args.lr)
    self.minimizer = opt.minimize(self.loss)
    tf.summary.scalar('loss', self.loss)

    graph_var_list = tf.compat.v1.trainable_variables(scope='^Graph/')
    network_var_list = tf.compat.v1.trainable_variables(scope='^Network/')
    for v in graph_var_list:
        print('graph', v)
    for v in network_var_list:
        print('network', v)

    self.saver = tf.compat.v1.train.Saver()
    self.sess = self.get_session()
    self.sess.run(tf.compat.v1.global_variables_initializer())
def save(self):
    name = f'{self.save_dir}/model.ckpt'
    self.saver.save(self.sess, name)

`
and
`
 for ep in range(args.epochs):
        pbar = tqdm(total=args.nb_vali_step, desc='training', leave=False)
        loss = []
        t0 = time.time()
        for _ in range(args.nb_vali_step):
            data = next(data_generator)
            _loss = self.model.fit(data)

            loss.append(_loss)
            pbar.update(1)
        pbar.close()
        train_time = time.time() - t0

        vali_v, vali_str = self.metric('vali')
        if vali_v > best_vali:
            brk = 0
            best_vali = vali_v
            self.model.save()
        else:
            brk += 1
        red = (brk == 0)`

Is it wrong ? Where? I need help

@unlimition
Code provided is incomplete for us to replicate the issue faced, please share a colab gist with error reported.

我也这样，不知道为啥

我也这样，不知道为啥

你现在解决了吗

I meet this issue when running codes in this notebook. I am able to resolve this by adding this line in the front.
tf.disable_v2_behavior()

没有成功的可以试试
tf.compat.v1.disable_v2_behavior()
之后可能会出现use closed sess错误
需要将saver函数往后缩进，放入with里边

@dongmingli-Ben Thanks a lot, mate. It worked


Makes button border editable in _settings.scss

Address #295 by using the $button-border variable to define button styles in _button.scss

Good one!


Sleep long enough for cloud-init to have a chance to give up

If DHCP fails, that'll take 2 minutes before the networking upstart
job gives up. Then another 2 minutes for cloud-init to give up reaching
the MD service. Add a buffer of an extra 30 seconds. That makes 270
seconds.

I took a look at the AT runs and realised that with only 100 seconds of sleep, it's pointless since cloud-init doesn't give up until after 120 seconds.

Ta very much.


How to create sub directory

use Hypweb\Flysystem\GoogleDrive\GoogleDriveAdapter;
use League\Flysystem\Filesystem;

$client = new Google_Client();

$client->setAuthConfigFile('path_to_json_file');
$client->setScopes(['https://www.googleapis.com/auth/drive']);

$googleDriveFileManager = new Filesystem(
    new GoogleDriveAdapter(
        new Google_Service_Drive($client),
        'root'
    )
);

$result = $googleDriveFileManager->createDir('_test');
echo $result;exit; // displays 1

Result is 1, but there is no created directory on my Google Drive. What is the reason in?

@JILeXanDR Please check with var_dump($result); instead to echo $result;.

@nao-pon It returns bool(true)

Umm... I'm not sure. What is result $googleDriveFileManager->listContents('root');?

@nao-pon
var_dump(implode(', ', array_pluck($cloud->listContents(), 'filename')));exit;
There are a lot of created directories by me..
_test, _test, _test, _test, _test, _test, xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, _test, _test, _test, GOOGLE_DRIVE_SYNC, root, GOOGLE_DRIVE_SYNC, GOOGLE_DRIVE_SYNC, _test, _test, Getting started, _test, root, 1111, _test, _test, _test, GOOGLE_DRIVE_SYNC, _test, GOOGLE_DRIVE_SYNC, _test, _test, _test, _test, xxx, _test, _test, GOOGLE_DRIVE_SYNC, _test, _test, _test, GOOGLE_DRIVE_SYNC, test, _test, test, _test, _test, _test, _test, _test, _test, _test, _test, _test, _test, _test, _test, _test, 1111, _test, test, _test, _test, GOOGLE_DRIVE_SYNC, test, _test, _test, _test, _test, GOOGLE_DRIVE_SYNC, _test, 1111, root, _test, _test, _test, _test, _test, _test, _test, _test, _test, _test, GOOGLE_DRIVE_SYNC, _test, _test, _test, _test, GOOGLE_DRIVE_SYNC, GOOGLE_DRIVE_SYNC, _test, test, GOOGLE_DRIVE_SYNC, 1111, _test, _test, _test

Used version is 1.1

Google Drive is ID based filesystem, so this connector need ID based path. e.g. $cloud->createDir('FOLDER ID/images');

@nao-pon
var_dump($googleDriveFileManager->createDir('root/1'));
var_dump($googleDriveFileManager->has('root/1'));
var_dump($googleDriveFileManager->deleteDir('root/1'));
exit;

bool(true)
bool(true)

  [Google_Service_Exception]
  {
   "error": {
    "errors": [
     {
      "domain": "global",
      "reason": "notFound",
      "message": "File not found: 1.",
      "locationType": "parameter",
      "location": "fileId"
     }
    ],
    "code": 404,
    "message": "File not found: 1."
   }
  }

Also I tried specify dirname without "root" only "1" result the same

Problem with not existed directory was solved. Need use unique "path" instead of real name of directory.
array(8) {
    ["type"]=>
    string(3) "dir"
    ["path"]=>
    string(33) "root/0ByPeQhcJr3-DRDVzd3BFUGZtWU0"
    ["filename"]=>
    string(3) "zip"
    ["extension"]=>
    string(0) ""
    ["timestamp"]=>
    int(1489679824)
    ["size"]=>
    int(0)
    ["dirname"]=>
    string(4) "root"
    ["basename"]=>
    string(28) "0ByPeQhcJr3-DRDVzd3BFUGZtWU0"
  }

This code works
$cloud->createDir('root/0ByPeQhcJr3-DRDVzd3BFUGZtWU0/fileOrDirName');
@nao-pon But created files and directories are still not visible in Google Drive UI

But created files and directories are still not visible in Google Drive UI

Please connect with the account you want to display on GoogleDrive UI by OAuth authentication.
c.f. Getting your Client ID and Client Secret

I've used this way and got the following error:
[Google_Service_Exception]
  {
   "error": {
    "errors": [
     {
      "domain": "global",
      "reason": "required",
      "message": "Login Required",
      "locationType": "header",
      "location": "Authorization"
     }
    ],
    "code": 401,
    "message": "Login Required"
   }
  }

Same me.
I was got follow. But not working

Sam me


Last dot for PIN occurs after onComplete?

I would like to see the animation of the last dot appear before my onComplete function runs, is that possible?

Did you find a solution?

It seems like a work around was the add a few milliseconds delay to the logic that was happening right after the animation, which caused the UI thread to lag.
So that worked.


Update sign a plugin documentation

Following up on: https://github.com/grafana/plugin-tools/issues/323
We have already updated https://grafana.com/docs/grafana/latest/developers/plugins/publish-a-plugin/sign-a-plugin/#sign-a-public-plugin so we need to also update the current state.
We should also update this page https://grafana.com/developers/plugin-tools/publish-a-plugin/sign-a-plugin

@josmperez @sympatheticmoose maybe it's already somewhere in migration PRs?

Already in this PR https://github.com/grafana/plugin-tools/pull/350


Make the about us section on home page responsive

Responsiveness of the about us section is not good.
The spacing between lines is not consistent.

plz assign me this issue @Susmita-Dey @myhacktech


discord.errors.HTTPException: 405 Method Not Allowed (error code: 0): 405: Method Not Allowed

C:\Users\Administrator\Desktop\MidJourney-Wrapper-main>python main.py
Ignoring exception in on_connect
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 352, in _run_event
await coro(*args, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\bot.py", line 793, in on_connect
await self.register_commands()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\bot.py", line 460, in register_commands
await self.http.bulk_upsert_command_permissions(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\http.py", line 338, in request
raise HTTPException(response, data)
discord.errors.HTTPException: 405 Method Not Allowed (error code: 0): 405: Method Not Allowed
do you know any reason that he error 405 in program first one.
error 401 when prompt submitted

Try Updating Py-cord it solved the issue for me , still getting "Request has failed; please try later" tho

Try Updating Py-cord it solved the issue for me , still getting "Request has failed; please try later" tho

thx, fixed for that, how if you faced error 401 unauthorized? But I am so sure that the API key is correct.

@vst212 try debugging more, we don't have enough info

I got this error as well, did you find any solution for that? I believe my py-cord version is up-to-date 2.0.0 ### discord.errors.HTTPException: 405 Method Not Allowed (error code: 0): 405: Method Not Allowed

I'm going to try to test the bot soon and try to fix it

I tried the bot today, and it seems that can't reproduce the error, everything works fine for me.

It should me this error. I uninstalled py-cord:
pip uninstall py-cord
and installed it again:
pip install py-cord

I am also seeing this issue.   Spawning from https://github.com/Wildric-Auric/MidJourney-Wrapper/issues/15
I thought it was my environment, so I used a completely fresh VM of Ubuntu 22.10 and still get the Method not allowed error and Request has failed; please try later whenever I try to invoke the /mj_imagine command

I just used WSL to launch the bot and it worked; does the command /Hello work for you?

/hello hello
Returns hello into the chat.

Ok, can you, please, print "response" after the line where there is response =...

I just tested Windows 10, as well as Raspberry Pi, and Linux Debian. It worked on Windows for one time, but now getting
Request has failed; please try later
Same error on Linux and Pi too.

I am getting 400 error

I am getting 400 error

after new release , everything ok now

I no longer get any errors when the bot starts but now get this error when I do any /mj_imagine prompt:
python3 main.py
Logged in as Bot ####
Ignoring exception in command mj_imagine:
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.10/site-packages/discord/commands/core.py", line 124, in wrapped
    ret = await coro(arg)
  File "/home/pi/.local/lib/python3.10/site-packages/discord/commands/core.py", line 982, in _invoke
    await self.callback(ctx, **kwargs)
  File "/home/pi/MidJourney-Wrapper/main.py", line 27, in mj_imagine
    print(response.txt)
AttributeError: 'Response' object has no attribute 'txt'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.10/site-packages/discord/bot.py", line 1114, in invoke_application_command
    await ctx.command.invoke(ctx)
  File "/home/pi/.local/lib/python3.10/site-packages/discord/commands/core.py", line 375, in invoke
    await injected(ctx)
  File "/home/pi/.local/lib/python3.10/site-packages/discord/commands/core.py", line 132, in wrapped
    raise ApplicationCommandInvokeError(exc) from exc
discord.errors.ApplicationCommandInvokeError: Application Command raised an exception: AttributeError: 'Response' object has no attribute 'txt'

@BoredMind
Well, it's reponse.text not response.txt...

It's in the main.py in the repo:
https://github.com/Wildric-Auric/MidJourney-Wrapper/blob/a19c75f071bc27e1b9f6bf5688ae951bfeec27a3/main.py#L27


prefer_contains false positive

This code snippet triggers a false "Use contains instead of indexOf" analyzer hint as I'm using next inside the while loop and therefore contains is no option.
while ((next = text.indexOf('{', last)) != -1) {
  ...
}

Dart version: Dart VM version: 2.2.0 (Tue Feb 26 15:04:32 2019 +0100) on "macos_x64"

CC @pq

This issue was moved to dart-lang/linter#1456


⚠ Minecraft has degraded performance

In 5ec5edc, Minecraft (https://www.minecraft.net) experienced degraded performance:

HTTP code: 200
Response time: 1338 ms

Resolved: Minecraft performance has improved in 71a6738.


Adding a couple of scenarios for managed rules filtering

Description
Adding 2 scenarios for the WebConsole OCP not showing managed rules
Type of change

New test feature file
New test scenario added into existing feature file

Testing steps
Not implemented steps are used, so no testing was done
Checklist

[x] Pylint passes for Python sources
[x] sources has been pre-processed by Black
[x] updated documentation wherever necessary

Looks good to me.


Insert Title Here

Describe the issue in detail here. Attach any relevant screenshots or files. The section below was automatically generated. Remove any information that you do not wish to include in the report.

Debug Data

Property
Value

Name
"Wolfram/Chatbook"

Version
"1.0.1"

EvaluationEnvironment
"Session"

FrontEndVersion
"Desktop: 13.2 for Microsoft Windows (64-bit) (January 30, 2023)"

KernelVersion
"13.2.1 for Microsoft Windows (64-bit) (January 27, 2023)"

SystemID
"Windows-x86-64"

Notebooks
True

DynamicEvaluation
False

SynchronousEvaluation
False

TaskEvaluation
False

Settings

Property
Value

ChatDrivenNotebook
True

LLMEvaluator
"PlainChat"

Stack Data
EvaluateChatInput
throwFailure
trimURL

Failure Data
<|
  "Evaluation" :> Wolfram`Chatbook`FrontEnd`rootEvaluationCell[CellObject["61a32f62-aa49-42bd-ab68-53ed930b2e85", "367f444e-e87b-47cf-86ef-c88a09fb0c67"], $Failed]
  "Arguments" -> {}
|>

I have struggled for days to connect to chat from mathematica (I upgraded to version 13.2) with no success. Could you help me?

I have struggled for days to connect to chat from mathematica (I upgraded to version 13.2) with no success. Could you help me?

Is there more information you can provide? You need a valid API key from OpenAI

The failure data above indicates that this is a duplicate of #187


Add anchor attributes for menu items

Allows for attributes to be added to the actual anchor of the navigation. This will allow for things like target to be set.
There will be another PR for the docs linked below

Closing as found alternative


Remove dependency on undocumented httpx classes

The cause of #18 was this test using undocumented API classes from httpx:
https://github.com/simonw/asgi-csrf/blob/157647ba91311f17af7c0eafd07e09644bdb82e3/test_asgi_csrf.py#L232-L265
I filed a httpx feature request to make those stable, but a better solution would be for me to not use them in this way. https://github.com/encode/httpx/issues/1455

I could even straight-up vendor those classes. But it may be possible to replace them with a hard-coded string.

I could even straight-up vendor those classes. But it may be possible to replace them with a hard-coded string.

>>> stream.get_headers()
{'Content-Length': '220', 'Content-Type': 'multipart/form-data; boundary=boo'}
>>> stream.iter_chunks()
<generator object MultipartStream.iter_chunks at 0x1032907c8>
>>> for chunk in stream.iter_chunks(): print(chunk)
b'--boo\r\n'
b'Content-Disposition: form-data; name="csv"; filename="data.csv"\r\nContent-Type: text/csv\r\n\r\n'
b'blah,foo\n1,2'
b'\r\n'
b'--boo\r\n'
b'Content-Disposition: form-data; name="csrftoken"\r\n\r\n'
b'InRva2VuIg.49BUIh1HVBjcyCpg_4018iFDFdY'
b'\r\n'
b'--boo--\r\n'

>>> stream.get_headers()
{'Content-Length': '220', 'Content-Type': 'multipart/form-data; boundary=boo'}
>>> stream.iter_chunks()
<generator object MultipartStream.iter_chunks at 0x1032907c8>
>>> for chunk in stream.iter_chunks(): print(chunk)
b'--boo\r\n'
b'Content-Disposition: form-data; name="csv"; filename="data.csv"\r\nContent-Type: text/csv\r\n\r\n'
b'blah,foo\n1,2'
b'\r\n'
b'--boo\r\n'
b'Content-Disposition: form-data; name="csrftoken"\r\n\r\n'
b'InRva2VuIg.49BUIh1HVBjcyCpg_4018iFDFdY'
b'\r\n'
b'--boo--\r\n'

I think this would make for a more readable test.

I think this would make for a more readable test.


Update python allowed: [3.8 ; 3.11]

We start now from 3.8 and end with 3.11.
We build a wheel for 3.11, except on windows. The reason for this exception is that there is dependency conflicts when installing scikit-decide[all] on windows python3.11 (seemingly due to pyarrow) and thus we could not test the generated wheel.

All comments taken into account!


Simple dependency.

Probably seems simple to you @junegunn but some people as I saw in an r/vim thread a while ago thought this neat. Simple way to manage dependencies of plugins that Plug can fetch.
By having it on one line, easily delete or comment plugin + deps.

I don't know if it would cause confusion. I mean, I don't know if it is clear enough that it is the same as doing
Plug 'Sirver/Ultisnips'
Plug 'honza/vim-snippets'

and that vim-plug does nothing special about it, no check, no special ordering etc etc.

@vheon True enough, it's mainly just an organizational trick for the vimrc. We can just as easily not add this line. I just thought some people might like.

I'm not saying that it isn't cool, I'm saying that it feels wrong calling it just "simple plugin dependency". Maybe note that it is possible that two or more plug command can be inlined but that it is just a stylistic matter.

@starcraftman Hey, thanks. I kind of like it because the | reminds me of the expression for conditional probability. I think @vheon has a point. How about labeling the line slightly differently, like "Inlining dependent plugins" or something similar.

@junegunn I agree, that does summarize it better.  I made it: Inline dependent plugins by ORing to be absolutely clear.

@starcraftman Thanks but I'm not sure if "OR" is the right term to use here. The bar character (:help bar), though used for bitwise-or in some languages, has nothing to do with "OR" in this context. I also feel that the use of imperative present tense may give the wrong message that they "have to be inlined". Sorry for being picky :) What do you think?

@junegunn Re verb vs adjective, yes, inline is technically an adjective but it has entered verb usage in my opinion, just like Googling. Also, I see what your saying about OR, guess that is a bit misleading.
I like your suggestion, I changed it slightly to Inline declaration of plugin dependencies because I think people are more familiar with that phrasing over the word dependent.

I changed it slightly to Inline declaration of plugin dependencies because I think people are more familiar with that phrasing over the word dependent

I don't know if it will be clear that the dependency direction is the opposite of the one might think. Instead using what @junegunn suggested it is more clear that the one that we are inlining are plug dependant of the plug mentioned before. So for example in:
Plug 'junegunn/vim-pseudocl' | Plug 'junegunn/vim-fnr'

vim-fnr is dependant on vim-pseudocl and not the other way around. It is rare that order matter in plugin inclusion, but in case the dependant has to be loaded after the dependency, it has to be clear how to use this syntax. Some people could not know it and think that is a special thing of vim-plug.

@vheon I see what your saying, I guess I was over thinking it.
As one last alternative, do you find it clearer if I just spell out the example?
" Group dependencies: vim-snippets DEPENDS on ultisnips
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'

Side note: What an exercise is the English language :).

Yes, I prefer this one :+1:

Side note: What an exercise is the English language :).

Yeah, I'm not a native English speaker, so it's even harder for me :stuck_out_tongue_closed_eyes:

@junegunn Unless you've any objection, I think the wording is now quite clear.

@starcraftman @vheon Thanks, guys!


Implement JsonSerializable on Entity class

Allow json_encode() to be called on an Entity class, to have its attributes returned, json_encoded. This is not just a nice to have but also solves an issue for the ResourceController (#2617).
Checklist:

[x] Securely signed commits
[x] Component(s) with PHPdocs
[ ] Unit testing, with >80% coverage
[x] User guide updated (N/A)
[x] Conforms to style guide

PS. I created a PR for this contribution before but it was messy so I closed it and did it again. First contribution, hope it meets your standards. Congrats on version 4.0!

I did amend the commit with my signature and I pushed it to my branch; still merging is blocked. Anyone can help?
$ git log --show-signature
commit 71eb4ccf014308310e3fca6967c95df11026766a (HEAD -> entity-jsonserializable, origin/entity-jsonserializable)
gpg: Signature made Tue Feb 25 20:53:19 2020 CET
gpg:                using RSA key A8994E83D326366D3D90A6A378198037B77190A5
gpg: Good signature from "Benjamin Rogmans<EMAIL_ADDRESS>[ultimate]
Author: Ben Rogmans<EMAIL_ADDRESS>Date:   Tue Feb 25 20:45:34 2020 +0100

    Entity to implement JsonSerializable

Yes that’s right... the method could be overridden of course to return only certain attributes but the developer would need to think of that. Any ideas to do this in a better way? 🤔

Yes that’s right... the method could be overridden of course to return only certain attributes but the developer would need to think of that. Any ideas to do this in a better way?

In the project that I am currently supporting, I have added a proxy class that implements the JsonSerializable interface. The constructor take the entity. The class property contains fields for publication. The Сlass::jsonSerialize() method in a loop gets fields from an entity.
AbstractProxy.zip

I like this change but I agree with iRedd that returning raw data values seems like it could be misleading. We already have toArray() which handles casts and filters - maybe fetch the data from there?

Yes I agree as well. Calling __get() like in iRedds AbstractProxy does seem to make sense.
But for the issue I referenced #2617, the ResourceController is not calling toArray(). Maybe that should change then?

I still think your implementation is good, and will satisfy the ResourceController - I just want to see the data coming from toArray() instead of $this->attributes. Especially for an API or other user-facing controller we want to be showing the cast & filtered version of an entity, not its wrong attributes.

Of course 🤦♂ Thanks for that.

Thanks for that update! I think the test failure is a fluke - I’ve seen it once or twice before. It does beg the question of tests though. Could you add something basic to demonstrate expected behavior of using this new feature? Probably showing that calling JSON functions on it automatically use the new method and return expected attributes & casts.

@benrogmans Any update on getting tests added?

Yes, will provide those next week

@benrogmans Any word on tests?

Sorry for the delay. Test pushed. Using assertEquals to make sure that the json string content actually represents the attributes. I hope this is what you were looking for?

I'm sorry about the messy history. I had trouble signing an older merge commit. My contribution including its test are now in a single signed commit.

No problem. Nice addition. Thanks.


[IMP] Subtask re-order drag n' drop

Same as one can do on the board presently to move tasks about, but applied to the subtasks (together with line numbering?).
I am finding our process is to launch the main task of a project, then we are having a meeting to finalize out the subtasks while someone is updating kanboard live based on group feedback.

This would be a nice improvement but you have already requested this in #1553...so this should be marked as a duplicate issue

Correct, duplicate of my #1553 . Closing as duplicate.


Nodes rolling update when there are changes in NodeTemplate and/or Provisioner config

Version

Karpenter Version: v0.27.3

Kubernetes Version: v1.23.16-eks-48e63af
Expected Behavior
When a change is performed in Node Temlplate and/or Provisioner config and we apply this change, all the nodes launched by Karpenter should be updated performing a node rolling update. Something like this:

Launch new nodes (same number of nodes)
Cordon old nodes
Drain old nodes taking into account apps inside the nodes (specially if there are configured pdbs)
Once old nodes are empty, delete them

This is the behavior we have with EKS nodegroups when we modify a launch template (ie. change instance type, disk size, subnet, etc.)
Actual Behavior
When a change is performed in Node Temlplate and/or Provisioner config and we apply this change, all the nodes launched by Karpenter  are updated, but at the same time. All the old nodes are deleted at the same time causing an outage, even if there are applications running in those nodes with a configured PDB. Karpenter doesn't perform a node rolling update. It deletes all old nodes simultaneously.
Steps to Reproduce the Problem
Modifiy existing Node templates and/or Provisioners with new changes. i.e: change instance type/family, increase disk size,...
Resource Specs and Logs
n/a
Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Thanks for your quick answer.
I will try to show you all the process:

Change: karpenter.k8s.aws/instance-category from m to c|m

Apply helm chart update

helm_release.karpenter: Modifying... [id=karpenter]
helm_release.karpenter: Still modifying... [id=karpenter, 10s elapsed]
helm_release.karpenter: Still modifying... [id=karpenter, 20s elapsed]
helm_release.karpenter: Still modifying... [id=karpenter, 30s elapsed]
helm_release.karpenter: Still modifying... [id=karpenter, 40s elapsed]
helm_release.karpenter: Still modifying... [id=karpenter, 50s elapsed]
helm_release.karpenter: Still modifying... [id=karpenter, 1m0s elapsed]
helm_release.karpenter: Still modifying... [id=karpenter, 1m10s elapsed]
helm_release.karpenter: Modifications complete after 1m18s [id=karpenter]

Karpenter logs:
2023-05-17T09:19:31.361Z	INFO	controller.termination	cordoned node	{"commit": "d7e22b1-dirty", "node": "ip-10-11-38-111.eu-west-1.compute.internal"}
2023-05-17T09:19:31.371Z	INFO	controller.termination	cordoned node	{"commit": "d7e22b1-dirty", "node": "ip-10-11-38-234.eu-west-1.compute.internal"}
2023-05-17T09:19:31.414Z	INFO	controller.termination	cordoned node	{"commit": "d7e22b1-dirty", "node": "ip-10-11-39-4.eu-west-1.compute.internal"}
2023-05-17T09:19:31.460Z	INFO	controller.termination	cordoned node	{"commit": "d7e22b1-dirty", "node": "ip-10-11-39-44.eu-west-1.compute.internal"}
2023-05-17T09:19:31.872Z	INFO	controller.termination	deleted node	{"commit": "d7e22b1-dirty", "node": "ip-10-11-39-44.eu-west-1.compute.internal"}
2023-05-17T09:19:31.882Z	INFO	controller.termination	deleted node	{"commit": "d7e22b1-dirty", "node": "ip-10-11-38-111.eu-west-1.compute.internal"}
2023-05-17T09:19:31.883Z	INFO	controller.termination	deleted node	{"commit": "d7e22b1-dirty", "node": "ip-10-11-39-4.eu-west-1.compute.internal"}
2023-05-17T09:19:31.885Z	INFO	controller.termination	deleted node	{"commit": "d7e22b1-dirty", "node": "ip-10-11-38-234.eu-west-1.compute.internal"}
2023-05-17T09:20:17.335Z	DEBUG	controller.provisioner	301 out of 622 instance types were excluded because they would breach provisioner limits	{"commit": "d7e22b1-dirty"}
2023-05-17T09:20:17.340Z	DEBUG	controller.provisioner	531 out of 622 instance types were excluded because they would breach provisioner limits	{"commit": "d7e22b1-dirty"}
2023-05-17T09:20:17.346Z	DEBUG	controller.provisioner	613 out of 622 instance types were excluded because they would breach provisioner limits	{"commit": "d7e22b1-dirty"}
2023-05-17T09:20:17.346Z	ERROR	controller.provisioner	Could not schedule pod, incompatible with provisioner "default", no instance type satisfied resources {"cpu":"1","memory":"1Gi","pods":"1"} and requirements karpenter.k8s.aws/instance-category In [c m], karpenter.k8s.aws/instance-generation Exists >4, kubernetes.io/arch In [amd64], nodegroup In [karpenter], karpenter.sh/capacity-type In [on-demand], kubernetes.io/os In [linux], karpenter.k8s.aws/instance-hypervisor In [nitro], karpenter.sh/provisioner-name In [default], topology.kubernetes.io/zone In [eu-west-1b]	{"commit": "d7e22b1-dirty", "pod": "karpenter/debug-deployment-67f7856c4f-qxc5g"}
2023-05-17T09:20:17.346Z	INFO	controller.provisioner	found provisionable pod(s)	{"commit": "d7e22b1-dirty", "pods": 8}
2023-05-17T09:20:17.346Z	INFO	controller.provisioner	computed new machine(s) to fit pod(s)	{"commit": "d7e22b1-dirty", "machines": 2, "pods": 7}
2023-05-17T09:20:17.346Z	INFO	controller.provisioner	launching machine with 3 pods requesting {"cpu":"3205m","memory":"3320Mi","pods":"7"} from types c6in.xlarge, c5.xlarge, c5a.xlarge, c5ad.xlarge, c6a.xlarge and 4 other(s)	{"commit": "d7e22b1-dirty", "provisioner": "default"}
2023-05-17T09:20:17.353Z	INFO	controller.provisioner	launching machine with 4 pods requesting {"cpu":"4205m","memory":"4344Mi","pods":"8"} from types c5n.2xlarge, m6a.2xlarge, m5zn.2xlarge, m5a.2xlarge, m5a.4xlarge and 51 other(s)	{"commit": "d7e22b1-dirty", "provisioner": "default"}
2023-05-17T09:20:19.240Z	INFO	controller.provisioner.cloudprovider	launched instance	{"commit": "d7e22b1-dirty", "provisioner": "default", "id": "i-0f73fa42d71c0d325", "hostname": "ip-10-11-39-169.eu-west-1.compute.internal", "instance-type": "c6a.xlarge", "zone": "eu-west-1b", "capacity-type": "on-demand", "capacity": {"cpu":"4","ephemeral-storage":"15Gi","memory":"7577Mi","pods":"58"}}
2023-05-17T09:20:19.834Z	INFO	controller.provisioner.cloudprovider	launched instance	{"commit": "d7e22b1-dirty", "provisioner": "default", "id": "i-07f4c0061690df9b9", "hostname": "ip-10-11-38-99.eu-west-1.compute.internal", "instance-type": "c6a.2xlarge", "zone": "eu-west-1a", "capacity-type": "on-demand", "capacity": {"cpu":"8","ephemeral-storage":"15Gi","memory":"15155Mi","pods":"58"}}
2023-05-17T09:20:27.336Z	DEBUG	controller.provisioner	319 out of 622 instance types were excluded because they would breach provisioner limits	{"commit": "d7e22b1-dirty"}
2023-05-17T09:20:27.341Z	INFO	controller.provisioner	found provisionable pod(s)	{"commit": "d7e22b1-dirty", "pods": 8}
2023-05-17T09:20:27.341Z	INFO	controller.provisioner	computed new machine(s) to fit pod(s)	{"commit": "d7e22b1-dirty", "machines": 1, "pods": 1}
2023-05-17T09:20:27.341Z	INFO	controller.provisioner	computed 2 unready node(s) will fit 7 pod(s)	{"commit": "d7e22b1-dirty"}
2023-05-17T09:20:27.341Z	INFO	controller.provisioner	launching machine with 1 pods requesting {"cpu":"1205m","memory":"1272Mi","pods":"5"} from types m6i.large, m6idn.large, c5n.2xlarge, c6i.large, m6a.2xlarge and 87 other(s)	{"commit": "d7e22b1-dirty", "provisioner": "default"}
2023-05-17T09:20:29.120Z	INFO	controller.provisioner.cloudprovider	launched instance	{"commit": "d7e22b1-dirty", "provisioner": "default", "id": "i-0c58991e5e9f1af65", "hostname": "ip-10-11-39-145.eu-west-1.compute.internal", "instance-type": "c6a.large", "zone": "eu-west-1b", "capacity-type": "on-demand", "capacity": {"cpu":"2","ephemeral-storage":"15Gi","memory":"3788Mi","pods":"29"}}

This is the pdb config for the debug app running in those nodes:
$ k describe pdb debug-pdb
Name:             debug-pdb
Namespace:        karpenter
Max unavailable:  1
Selector:         app=debug
Status:
    Allowed disruptions:  1
    Current:              8
    Desired:              7
    Total:                8
Events:                   <none>

I've attached screen shots during the process:
Initial state:

Nodes deleted:

All pods pending, provisioning new nodes:

New nodes up:

The helm chart values, with node template and provisioner definitions:
replicas: 2

settings:
  aws:
    clusterName: "${cluster_name}"
    defaultInstanceProfile: "${node_instance_profile}"

serviceAccount:
  create: true
  name: "eks-karpenter-oidc-sa"
  annotations:
    eks.amazonaws.com/role-arn: ${iam_role_arn}

nodeSelector:
  kubernetes.io/os: linux
  nodegroup: tools

controller:
  resources:
    requests:
      cpu: 500m
      memory: 512Mi
    limits:
      cpu: 500m
      memory: 512Mi

serviceMonitor:
  enabled: true

extraObjects:
  - apiVersion: karpenter.k8s.aws/v1alpha1
    kind: AWSNodeTemplate
    metadata:
      name: default
      annotations:
        "helm.sh/hook": "post-install,post-upgrade"
        "helm.sh/hook-delete-policy": before-hook-creation
    spec:
      blockDeviceMappings:
        - deviceName: /dev/xvda
          ebs:
            volumeSize: 15Gi
            volumeType: gp3
            encrypted: false
      subnetSelector:
        aws-ids: "${worker_subnets}"
      securityGroupSelector:
        aws-ids: "${worker_security_groups}"
      tags:
        project: "coretools"
        environment: "prd"
        terraform: "true"
        Name: "karpenter-node-poc"

  - apiVersion: karpenter.sh/v1alpha5
    kind: Provisioner
    metadata:
      name: default
      annotations:
        "helm.sh/hook": "post-install,post-upgrade"
        "helm.sh/hook-delete-policy": before-hook-creation
    spec:
      # References cloud provider-specific custom resource, see your cloud provider specific documentation
      providerRef:
        name: default

      taints:
        - key: dedicated
          value: karpenter
          effect: NoSchedule

      labels:
        nodegroup: karpenter

      requirements:
        - key: karpenter.k8s.aws/instance-category
          operator: In
          values: [m, c]
        - key: "karpenter.k8s.aws/instance-hypervisor"
          operator: In
          values: ["nitro"]
        - key: karpenter.k8s.aws/instance-generation
          operator: Gt
          values: ["4"]
        - key: kubernetes.io/arch
          operator: In
          values: ["amd64"]
        - key: "karpenter.sh/capacity-type"
          operator: In
          values: ["on-demand"]

      # Enables consolidation which attempts to reduce cluster cost by both removing un-needed nodes and down-sizing those
      # that can't be removed.  Mutually exclusive with the ttlSecondsAfterEmpty parameter.
      consolidation:
        enabled: true

      # Resource limits constrain the total size of the cluster.
      # Limits prevent Karpenter from creating new instances once the limit is exceeded.
      limits:
        resources:
          cpu: "100"
          memory: 100Gi

      # Enables consolidation which attempts to reduce cluster cost by both removing un-needed nodes and down-sizing those
      # that can't be removed.  Mutually exclusive with the ttlSecondsAfterEmpty parameter.
      # consolidation:
      #   enabled: false

      # If omitted, the feature is disabled and nodes will never expire.  If set to less time than it requires for a node
      # to become ready, the node may expire before any pods successfully start.
      ttlSecondsUntilExpired: 2592000 # 30 Days = 60 * 60 * 24 * 30 Seconds;

      # If omitted, the feature is disabled, nodes will never scale down due to low utilization
      # ttlSecondsAfterEmpty: 30

      # Priority given to the provisioner when the scheduler considers which provisioner
      # to select. Higher weights indicate higher priority when comparing provisioners.
      # Specifying no weight is equivalent to specifying a weight of 0.
      # weight: 10

Ah ok, so this is related to consolidation rather than drift. I'll try to reproduce it, but I'd agree that Karpenter shouldn't result in disrupting all of your pods with the PDB you have setup.

Hi @bwagner5
Have you been able to reproduce it? If you need something else, please feel free to ask me!
Thanks!

We have not been able to reproduce this.  Can you send us the output of:
kubectl get provisioner default
from before and after you modify it?
I'm wondering if your tooling is deleting the old provisioner and creating a new one which would cause all of the old nodes to be removed at once.

Hi @tzneal
Yes, you were right! Defining the Provisioner and AWSNodeTemplate inside the helm values (under extraObjects section) causes that both objects are recreated when a change is detected in the helm values.
I've seen that the extraObjects section in the values.yaml  and extra-manifestst.yaml template has been removed in the latest version (0.28.0-rc.1).
I've defined the both objects (Provisioner and AWSNodeTemplate) in a separate Terraform kubernetes_manifest resource. Now, if something changes, the objects are no recreated and the pods are not deleted.
It would be nice if Karpenter could detect configuration drift in AWSNodeTemplate and Provisioners definitions and update all the nodes with new specs. I'll submit a feature request for that. :)
Thanks a lot for your help, @tzneal!
Marc


fix(deps): update terraform terraform-ibm-modules/kms-all-inclusive/ibm to v4.16.9

This PR contains the following updates:

Package
Type
Update
Change

terraform-ibm-modules/kms-all-inclusive/ibm (source)
module
patch
4.16.8 -> 4.16.9

Release Notes

terraform-ibm-modules/terraform-ibm-kms-all-inclusive (terraform-ibm-modules/kms-all-inclusive/ibm)
v4.16.9
Compare Source
Bug Fixes

deps: update terraform ibm to latest for the deployable architecture solution (#584) (92226cc)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

:tada: This PR is included in version 3.19.6 :tada:
The release is available on:

GitHub release
v3.19.6

Your semantic-release bot :package::rocket: