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

Linux: Unable to launch Code after upgrade to 1.57 #126019

Closed
erikfroseth opened this issue Jun 11, 2021 · 15 comments · Fixed by #126798
Closed

Linux: Unable to launch Code after upgrade to 1.57 #126019

erikfroseth opened this issue Jun 11, 2021 · 15 comments · Fixed by #126798
Assignees
Labels
electron Issues and items related to Electron insiders-released Patch has been released in VS Code Insiders linux Issues with VS Code on Linux
Milestone

Comments

@erikfroseth
Copy link

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version:
    1.57.0
    b4c1bd0
    x64

  • OS Version:
    Ubuntu 20.04.2 LTS

Steps to Reproduce:

  1. Upgrade vscode to latest version using apt
  2. Start vscode either by clicking the icon in Gnome, or writing "code" in the terminal

I know this bug report doesn't help much, but I do not know what else to include. I did "apt update" this morning, and vscode stopped working after this. When writing "code" in my terminal, nothing happens. No output, nothing. The same has happened to a colleague with the same OS/machine. If there is anything more I should add (logs, etc), I would be more than happy to include it.

I noticed that there are some bug reports on the settings file being corrupted, but that does not seem to have happened to me.

@bpasero
Copy link
Member

bpasero commented Jun 11, 2021

Does it work when you run code --no-sandbox?

@bpasero bpasero added the info-needed Issue requires more information from poster label Jun 11, 2021
@erikfroseth
Copy link
Author

erikfroseth commented Jun 11, 2021

@bpasero Yes, that works!

@bpasero
Copy link
Member

bpasero commented Jun 11, 2021

@erikfroseth how did you install VSCode? Snap?

@bpasero bpasero self-assigned this Jun 11, 2021
@bpasero bpasero changed the title Unable to lanch Code after upgrade to 1.57 Linux: Unable to lanch Code after upgrade to 1.57 Jun 11, 2021
@bpasero bpasero changed the title Linux: Unable to lanch Code after upgrade to 1.57 Linux: Unable to launch Code after upgrade to 1.57 Jun 11, 2021
@erikfroseth
Copy link
Author

I installed it using this guide: https://code.visualstudio.com/docs/setup/linux#_debian-and-ubuntu-based-distributions

Downloaded the .deb and did the following steps:

sudo apt install apt-transport-https
sudo apt update
sudo apt install code # or code-insiders

@bpasero
Copy link
Member

bpasero commented Jun 11, 2021

Any chance you are running code as sudo?

@erikfroseth
Copy link
Author

No, I'm not running code as sudo. If I try running it as sudo, I get a warning saying You are trying to start Visual Studio Code as a super user ...

@bpasero
Copy link
Member

bpasero commented Jun 11, 2021

How about running with --disable-setuid-sandbox?

@erikfroseth
Copy link
Author

It still does not start. It gives me a warning, though: Warning: 'disable-setuid-sanbox' is not in the list of known options, but still passed to Electron/Chromium.

However, I see that entering "code" in my terminal does start some processes that never dies:

erikfroseth@erik-desktop:~$ ps -A | grep code
erikfroseth@erik-desktop:~$ code
erikfroseth@erik-desktop:~$ ps -A | grep code
  43167 ?        00:00:00 code
  43170 ?        00:00:00 code
  43171 ?        00:00:00 code

@Ekmansoft
Copy link

Ekmansoft commented Jun 11, 2021

I have the same problem. It seems to have started after an update tonight. Running Debian 10

Linux pc35826-1930 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Lin

@deepak1556
Copy link
Collaborator

@erikfroseth can you make sure to kill all code processes and then try #126019 (comment)

@erikfroseth
Copy link
Author

@deepak1556 Still the same problem :-(

@Ekmansoft
Copy link

@deepak1556 Still the same problem :-(

Me too

@Ekmansoft
Copy link

Killing the processes worked fine, and now no more processes appears, but still no sign of vscode starting

@bpasero
Copy link
Member

bpasero commented Jun 11, 2021

We will push #126027 for May recovery which will restore --no-sandbox.

@bpasero bpasero added electron Issues and items related to Electron linux Issues with VS Code on Linux labels Jun 11, 2021
@erikfroseth
Copy link
Author

@bpasero Big kudos to you and the team for super fast response! Thank you very much for your help

@github-actions github-actions bot locked and limited conversation to collaborators Aug 6, 2021
@bpasero bpasero moved this to ✔️ Done / Deferred in VSCode Electron Integration Jul 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
electron Issues and items related to Electron insiders-released Patch has been released in VS Code Insiders linux Issues with VS Code on Linux
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants
@bpasero @deepak1556 @Ekmansoft @erikfroseth and others