Skip to content

[Bug]: Can't start 2 instances of code-server 4.14.0 for separate users #6275

Closed
@bilogic

Description

@bilogic

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome
  • Local OS: Ubuntu
  • Remote OS: Windows
  • Remote Architecture: amd64
  • code-server --version: 4.14.0

Steps to Reproduce

  1. Run /usr/bin/code-server for user 1 - ok
  2. Run /usr/bin/code-server for user 2 - fails with the following

Expected

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?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

It seems that every instance is trying to write to /tmp/code-server-ipc.sock, this was not the case in 4.13.0. Is there a way to specify an alternate socket file for each instance?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions