-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Bug]: Can't start 2 instances of code-server 4.14.0
for separate users
#6275
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
Comments
Having the same issue, this totally bricked our shared development environment. EDIT For anyone else who ends up here, a downgrade worked for my environment. |
Before we were writing to a file instead of a socket and I think
we must have been ignoring write errors but with the new system we
do not. We may want to catch and warn about errors rather than
hard failing.
Additionally we should use a unique socket path per user.
CC @sleexyz in case you have interest in fixing this, otherwise I
believe I will have time next week.
|
4.14.0
4.14.0
for separate users
@code-asher Ah darn, I'll take a stab rn. |
Having two users (even if there are just two of them) access the same data folder is a rather week form of isolation. It's not just usability, but a security issue as well. Such multi-tenancy requires proper storage isolation, e.g. with PVCs in k8s. |
At what point did I say a shared data folder? This bug is literally about a lock file with the same filename (in tmp) being used for all users regardless of data directory. |
It's enough to share |
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.14.0Steps to Reproduce
/usr/bin/code-server
for user 1 - ok/usr/bin/code-server
for user 2 - fails with the followingExpected
Both instances should start
Actual
2nd instance fails to start
Logs
2nd instance tries to open the same file
[2023-06-19T16:15:12.625Z] info code-server 4.14.0 9955cd9
[2023-06-19T16:15:12.626Z] info Using user-data-dir ~/code-server/user
[2023-06-19T16:15:12.629Z] error EPERM: operation not permitted, unlink '/tmp/code-server-ipc.sock'
Screenshot/Video
No response
Does this issue happen in VS Code or GitHub Codespaces?
Are you accessing code-server over HTTPS?
Notes
It seems that every instance is trying to write to
/tmp/code-server-ipc.sock
, this was not the case in4.13.0
. Is there a way to specify an alternate socket file for each instance?The text was updated successfully, but these errors were encountered: