Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notebook cells will not run ==> Error: cannot delete password (source: jupyter (extension)) #5934

Closed
indierambler opened this issue May 19, 2021 · 7 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@indierambler
Copy link

Environment data

  • VS Code version: 1.56.2
  • Jupyter Extension version: v2021.6.832593372
  • Python Extension version: v2021.5.842923320
  • OS: Linux (Opensuse Tumbleweed)
  • Python and/or Anaconda version: 3.8.10
  • Type of virtual environment used: venv
  • Jupyter server running: Local

Expected behaviour

Expect basic cell to run through with no vscode errors. I have been attempting mainly with a cell that only has imports.

Actual behaviour

When I click to run any cell the only response is an error popup on vscode that reads: cannot delete password (source: jupyter (extension))
image

The output of the cell is shown here:
image

Steps to reproduce:

  1. Open any .ipynb file in vscode (jupyter environment loads successfully and correctly as far as I can see)
  2. Click the run button on the first cell (jupyter seems to recognize the venv kernel even though vscode says it's not started)
  3. Error pops up immediately in the bottom right corner of vscode window

Logs

Output for Jupyter in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Jupyter)

Info 2021-05-19 21:31:52: Executing cell NotebookImport#3
Info 2021-05-19 21:31:52: Waiting for jupyter server and web panel ...
Error 2021-05-19 21:31:52: Exception attempting to start notebook: Error: Cannot delete password
at E.$deletePassword (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1763:64048)
Info 2021-05-19 21:31:52: Exception executing cell NotebookImport#3: Error: Cannot delete password
at E.$deletePassword (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1763:64048)
Info 2021-05-19 21:31:52: Finished executing cell NotebookImport#3
Error 2021-05-19 21:31:52: DataScience Error Error: Cannot delete password
at E.$deletePassword (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1763:64048)
Info 2021-05-19 21:31:54: Trusting notebook...

xxx

@indierambler indierambler added the bug Issue identified by VS Code Team member as probable bug label May 19, 2021
@rchiodo
Copy link
Contributor

rchiodo commented May 19, 2021

Thanks for the bug.

It looks like your encrypted storage is corrupted and our attempts to cleanup after it are failing. You might be able workaround this by deleting your user settings (although this will reset all of your settings if you do)

On windows those settings are stored here:

C:\Users\<user name>\AppData\Roaming\Code\User\globalStorage

If you stop VS code and delete the files and directories under that location, the problem should go away.

This was likely caused by this fix here:
54bc65d

@rchiodo rchiodo removed their assignment May 19, 2021
@indierambler
Copy link
Author

Thanks for the feedback. This workaround does not appear to have worked.

The settings you referred to on my OS (openSUSE Tumbleweed) are apparently at this location:
/home//.config/Code/User/globalStorage

I delete all of the contents of that directory after vscode is closed. New contents appear when I open vscode again. The jupyter notebook cell reacts the same (with an error).

Could this be related to admin rights somehow? Any other ideas?

@rchiodo
Copy link
Contributor

rchiodo commented May 19, 2021

This should only go down this path if you had been using a remote jupyter server before. You could try deleting your workspace and user settings.json (well really just the settings prefixed with 'jupyter')

Specifically this one:

"jupyter.jupyterServerType": ""

It may have to be set to this until we can fix this bug:

"jupyter.jupyterServerType": "local"

@rchiodo rchiodo added this to the June 2021 Release milestone May 19, 2021
@indierambler
Copy link
Author

Perfect! Thanks for the tip.

Switched the jupyter.jupyterServerType value to "local" in the the workspace and the user settings and now the cells run as expected.

This is strange because I have not used a remote server yet just FYI.

@rchiodo
Copy link
Contributor

rchiodo commented May 20, 2021

Do you have another machine? There is a sync settings option that might have moved it over. That might even be the cause of the problem as the expected URI isn't in the storage.

Or possibly if your workspace settings came down from another user submitting them to source control.

@indierambler
Copy link
Author

I used to use a Windows machine but I haven't used sync settings since I switched over. I only enabled the sync settings as an attempted fix to this problem actually. Thought it would be useful in the future as well though.

I'm not worried about it at this point but if you need more info on this bug I'll provide it. Just happy to know it's being checked out and I can still work.

@IanMatthewHuff
Copy link
Member

I don't have the specific validation on this (requires windows + corrupted storate), but resolved based on no incoming customer issues since then.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

4 participants