Skip to content
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

[Bug]: Failed to establish multiplexed connection, MacOS Docker Desktop #4161

Open
dawnniie opened this issue Nov 7, 2024 · 1 comment
Open
Labels
🐛 Bug Reported issues that need to be reproduced by the team.

Comments

@dawnniie
Copy link

dawnniie commented Nov 7, 2024

Error Message and Logs

Error message in notification:

Failed to establish multiplexed connection: muxserver_listen: link mux listener /var/www/html/storage/app/ssh/mux/mux_is8sw40k0k0ccog408cswkwo.T1frzHlQscP2Xaqj => /var/www/html/storage/app/ssh/mux/mux_is8sw40k0k0ccog408cswkwo: Bad file descriptor

The command for reference:

ssh -fNM -o ControlMaster=auto -o ControlPath=/var/www/html/storage/app/ssh/mux/mux_is8sw40k0k0ccog408cswkwo -o ControlPersist=3600 -i /var/www/html/storage/app/ssh/keys/ssh_key@wog4sww4ossskwos0c4o8kkg -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o PasswordAuthentication=no -o ConnectTimeout=10 -o ServerAliveInterval=20 -o RequestTTY=no -o LogLevel=ERROR -p 22 root@coolify-testing-host

And the last few lines of the -vvv ssh logs running that command (on a different attempt):

Authenticated to coolify-testing-host ([172.18.0.6]:22) using "publickey".
debug1: setting up multiplex master socket
debug3: muxserver_listen: temporary control path /var/www/html/storage/app/ssh/mux/mux_xs0k48okkgoow04gwww8s4ok.QaQBZPot0nlV5iEc
muxserver_listen: link mux listener /var/www/html/storage/app/ssh/mux/mux_xs0k48okkgoow04gwww8s4ok.QaQBZPot0nlV5iEc => /var/www/html/storage/app/ssh/mux/mux_xs0k48okkgoow04gwww8s4ok: Bad file descriptor

Steps to Reproduce

  1. Follow the setup guide in Contributing step for step.
  2. Navigate to a resource or validate the server, any action to create a remote process and trigger establishNewMultiplexedConnection
  3. The error appears.
  4. Try seeding with docker exec -it coolify php artisan migrate:fresh --seed, error is still reproducible immediately afterwards

Example Repository URL

No response

Coolify Version

v4.0.0-beta.361

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

MacOS 15.0.1 (24A348)

Additional Information

Using MacOS and Docker Desktop (4.33.0), issue occurs on both beta.361 and beta.360.

When troubleshooting the issue, I tried changing line 16 in SshMultiplexingHelper to use a different file location:

- $muxFilename = '/var/www/html/storage/app/ssh/mux/mux_'.$server->uuid;
+ $muxFilename = '/tmp/mux_'.$server->uuid;

That actually worked, so maybe this is a directory permissions issue oooor something to do with the bind mount?

@dawnniie dawnniie added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Nov 7, 2024
@dawnniie
Copy link
Author

dawnniie commented Nov 7, 2024

Also, I tried setting SSH_MUX_ENABLED=false in my .env to get around it, but after I ran spin up again it kept trying to do multiplexed connections. Not sure if there's something I'm missing there.

@peaklabs-dev peaklabs-dev removed the 🔍 Triage Issues that need assessment and prioritization. label Nov 14, 2024
@peaklabs-dev peaklabs-dev added this to the v4.0.0 Stable Release milestone Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Reported issues that need to be reproduced by the team.
Projects
None yet
Development

No branches or pull requests

2 participants