Skip to content

[Bug]: Devcontainer startup fails immediately on macOS: SSH agent forwarding socket bind fails #578

Description

@heyarny

Before submitting

  • I have searched existing issues to confirm this is not a duplicate
  • I am running the latest version of Devsy

What happened?

I tried starting an existing workspace, but devcontainer creation fails immediately while setting up SSH agent forwarding.

Error

ssh agent forwarding setup failed:
new agent listener: listen unix /var/folders/.../T/devsy-1252726836/devsy-ssh-agent-341d40b5/listener.sock: bind: invalid argument

Exit error:
new agent listener: listen unix /var/folders/.../T/devsy-1252726836/devsy-ssh-agent-341d40b5/listener.sock: bind: invalid argument

agent exited without sending a result
Exit code: 1

What seems to be happening

The generated Unix socket path appears to be too long for macOS Unix domain socket limits. In my case the full socket path was 104 characters long:

/var/folders/.../T/devsy-1252726836/devsy-ssh-agent-341d40b5/listener.sock

What did you expect to happen instead?

Failed.

Steps to reproduce

Use mac.

devcontainer.json

Error output / logs

How often does this happen?

Every time

Operating system

macOS

Linux distribution (if applicable)

No response

Architecture

ARM64

Desktop app or CLI?

Desktop app

Devsy version

1.3.0

Devsy provider

Docker

Provider version

No response

Screenshots

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions