Skip to content

mutagen doesn't work - unable to dial agent endpoint - chmod +x resolves it #6685

Closed

Description

@sharkymark

Connecting with mutagen from a local machine to a Coder workspace does not work.

Error message:

Connecting to agent (POSIX)...
Error: unable to connect to beta: unable to connect to endpoint: unable to dial agent endpoint: unable to handshake with agent process: unable to receive server magic number: EOF (error output: Connection timed out during banner exchange)

I was able to reproduce this - from a Macbook Pro to a Coder deployment. Another Coder employee using a Linux local machine, did not experience this.

A clever user of Coder has a work-around if others experience this where they have to chmod +x the Mutagen binary that gets copied over to the Coder workspace home directory quickly before Mutagen tries to execute it:

# From the Coder workspace home director
while true; do chmod +x .mutagen-*; done

Activity

  1. added
    s2
    on Apr 27, 2023
  2. added
    stale
    on Dec 4, 2023
  3. removed
    stale
    on Dec 11, 2023
  4. mafredri commented on Dec 11, 2023

    @mafredri
    Member

    Oof, this issue is pretty old and breaking basic functionality. I'm pretty sure it's a bug in the sftp library we use, I can take a look this week, I think it'll be an easy fix.

    The other factor here is that mutagen isn't explicitly changing permissions on the copied binary, but instead relying on default behavior (which should be to retain the permission of the file being copied).

  5. self-assigned this
    on Dec 11, 2023
  6. added a commit that references this issue on Dec 12, 2023
    b32a0a9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

s2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions