mysql / mysql/mysql-shell-plugins

WSL2 Kali not work: 13:30:38.521676 ERROR: Exception information: FileNotFoundError: [Errno 2] No such file or directory: 'certutil.exe'

Open
#63 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
96
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Pulgins version: MySQL Shell for VS Code 1.16.4+9.0.1 Preview

Freshly installed Kali Linux in WSL2

┌──(kali㉿DESKTOP-JMN88CV)-[~/wwwroot]
└─$ uname -a
Linux DESKTOP-JMN88CV 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 GNU/Linux

About vscode:

Version: 1.94.2 (system setup)
Commit: 384ff7382de624fb94dbaf6da11977bba1ecd427
Date: 2024-10-09T16:08:44.566Z
Electron: 30.5.1
ElectronBuildId: 10262041
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.19045
MySQL Shell for VS Code error detail
Running on a ssh-remote VS Code session.
Starting embedded MySQL Shell, using config dir '/home/kali/.mysqlsh-gui' ...
Please enter the single instance token: 
13:27:41.196550 INFO: Token read from STDIN
13:27:41.196589 INFO: Starting MySQL Shell GUI web server...

13:27:41.196665 INFO: 	Checking web server certificate...

13:27:41.198370 ERROR: Exception information:
Traceback (most recent call last):
-  File "/home/kali/.vscode-server/extensions/oracle.mysql-shell-for-vs-code-1.16.4/shell/lib/mysqlsh/plugins/gui_plugin/core/lib/certs/locations.py", line 721, in _get_installed_certs
-    exit_code, output = lib.run_shell_cmd(cmd)
-                        ^^^^^^^^^^^^^^^^^^^^^^
-  File "/home/kali/.vscode-server/extensions/oracle.mysql-shell-for-vs-code-1.16.4/shell/lib/mysqlsh/plugins/gui_plugin/core/lib/SystemUtils.py", line 158, in run_shell_cmd
-    stream = popen(cmd, cwd=cwd)
-             ^^^^^^^^^^^^^^^^^^^
-  File "/home/kali/.vscode-server/extensions/oracle.mysql-shell-for-vs-code-1.16.4/shell/lib/mysqlsh/plugins/gui_plugin/core/lib/SystemUtils.py", line 187, in popen
-    proc = subprocess.Popen(cmd,
-           ^^^^^^^^^^^^^^^^^^^^^
-  File "/home/kali/.vscode-server/extensions/oracle.mysql-shell-for-vs-code-1.16.4/shell/lib/mysqlsh/lib/python3.12/subprocess.py", line 1026, in __init__
-    self._execute_child(args, executable, preexec_fn, close_fds,
-  File "/home/kali/.vscode-server/extensions/oracle.mysql-shell-for-vs-code-1.16.4/shell/lib/mysqlsh/lib/python3.12/subprocess.py", line 1953, in _execute_child
-    raise child_exception_type(errno_num, err_msg, err_filename)
-FileNotFoundError: [Errno 2] No such file or directory: 'certutil.exe'

13:27:41.198432 INFO: The installed certificate has errors: The certificate is not installed at WIN Certificate Store

13:27:41.198456 INFO: 	Certificate is not installed. Use gui.core.installShellWebCertificate() to install one.

Starting embedded MySQL Shell, using config dir '/home/kali/.mysqlsh-gui' ...
13:27:54.159543 ERROR: Exception information:
FileNotFoundError: [Errno 2] No such file or directory: 'certutil.exe'

13:27:54.490374 ERROR: Exception information:
FileNotFoundError: [Errno 2] No such file or directory: 'certutil.exe'

13:27:54.491105 ERROR: Exception information:
FileNotFoundError: [Errno 2] No such file or directory: 'certutil.exe'
true

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure in the WSL2 SSH-remote setup, then inspect the installed extension paths shell/lib/mysqlsh/plugins/gui_plugin/core/lib/certs/locations.py and shell/lib/mysqlsh/plugins/gui_plugin/core/lib/SystemUtils.py, focusing on the certutil.exe invocation. Done means the embedded MySQL Shell handles this environment without the reported FileNotFoundError and certificate startup errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, mysql, typescript, vscode
Domain
devtools, operating-systems, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.