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
Unable to write program user data when invoking VS Code Portable in a singularity image #74130
Comments
This sounds more like an issue with how you configured the container, rather than with Code itself. Just make sure those folders are writable by whatever user Code is run as. |
@joaomoreno thanks for your response. I moved the issue to the singularity repository since I think this is indeed caused by a misunderstanding on my side on how singularity sets its user and group permissions. |
Dear @joaomoreno I just got a response back from @rherban of the singularity repository who looked into my issue. He states that this issue might be caused by a deeper issue with vscode as while vscode gives the error writability error (see below) it can write data to the two data folders. This can be seen from the fact that after the error is displayed, visual code appears to have populated the two folders with files.
|
can you retry with the singularity flag |
The solution given by @truatpasteurdotfr solved my problem and therefore is a good workaround for people that experience the same issue. @joaomoreno do you maybe know why vscode needs access to the |
Oh I see what's happening: The |
@joaomoreno Thanks a lot for looking into it? Is there a way to watch this bug so I know when it is fixed? I looked into the may 2019 milestones but it is already closed there. |
Ah, I tested it out and this bug appears to be fixed! You can now also use the |
It was fixed today, so the next Insiders build (tomorrow) will have the fix. The next stable (next week) will have the fix. |
Problem description:
I am trying to install vs code inside a singularity image. I, unfortunately, haven't been able to do this as I keep running into some problems. I first tried to install vs code inside the container using the .dep package. However, as inside this container, the vs code program doesn't have write permissions to the user data and data folder on the main system it wont start. To solve this I tried using the portable version as this is explained in the vscode portable documentation. Unfortunately, also this gave me the
user-data and data directories should be writable
error.System information:
Steps to Reproduce:
sudo singularity build --sandbox ubuntu1604 docker://ubuntu:16.04
sudo singularity run --nv --writable ubuntu1604
sh ./bin/code
.This can be solved by running the shell as sudo but as this has some risks I was wondering if I can solve the error so that I can run vscode as a normal user from within a singularity container.
Extra information:
Does this issue occur when all extensions are disabled?: Yes
--verbose output:
Gtk-Message: Failed to load module "appmenu-gtk-module" Gtk-Message: Failed to load module "canberra-gtk-module" Gtk-Message: Failed to load module "canberra-gtk-module" [9043:0522/143121.884272:ERROR:bus.cc(394)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged. [main 2019-05-22T12:31:27.080Z] Error: listen EACCES /run/user/1000/vscode-5f7fbcc5-1.34.0-main.sock at Server.setupListenHandle [as _listen2] (net.js:1313:19) at listenInCluster (net.js:1378:12) at Server.listen (net.js:1477:5) at Promise (/jan/VSCode-linux-x64/resources/app/out/vs/code/electron-main/main.js:184:637) at new Promise (<anonymous>) at Object.t.serve (/jan/VSCode-linux-x64/resources/app/out/vs/code/electron-main/main.js:184:574) at n (/jan/VSCode-linux-x64/resources/app/out/vs/code/electron-main/main.js:490:263) at R (/jan/VSCode-linux-x64/resources/app/out/vs/code/electron-main/main.js:492:559) at l.invokeFunction (/jan/VSCode-linux-x64/resources/app/out/vs/code/electron-main/main.js:221:331) at then (/jan/VSCode-linux-x64/resources/app/out/vs/code/electron-main/main.js:494:347) [main 2019-05-22T12:31:27.084Z] Lifecycle#kill()
The text was updated successfully, but these errors were encountered: