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

Problem Connection: ubuntu.sock: Bad file descriptor #15

Open
rits1902 opened this issue Aug 14, 2024 · 1 comment
Open

Problem Connection: ubuntu.sock: Bad file descriptor #15

rits1902 opened this issue Aug 14, 2024 · 1 comment
Assignees

Comments

@rits1902
Copy link

Describe the bug
I tried to perform a connection test in the ala-toolkit on four machines that I created to install some services. However, I was having connection issues with the API that handles the connection. I noticed that in the file api/controllers/gen-ssh-conf.js, ControlMaster and ControlPath were being configured. With this configuration, it was not possible to perform the connection test on the machines I created, which are Ubuntu 18.04. I made a copy of all the .js files in the controllers directory and commented out lines 21 and 22 of the gen-ssh-conf.js file. This way, it generated the /home/ubuntu/.ssh/config file without those entries. I mounted the volumes of the controllers files in docker-compose.yaml and resolved the issue in question.

ScreenshotsAdd screenshots to help explain your problem.

docker-compose
file_js

Desktop (please complete the following information):

  • OS: [MacOS 14.4.1]
  • Browser [chrome]
  • Version [Versão 127.0.6533.100 (Versão oficial) (arm64)]

Logs
ubuntu@la-toolkit:~/ansible/la-inventories$ ssh -T server-xxxxxxxxxxxx sudo hostname muxserver_listen: link mux listener /home/ubuntu/.ssh/server-xxxxxxxxxxxx-22-ubuntu.sock.0Xjsi76eOlQsldlF => /home/ubuntu/.ssh/server-xxxxxxxxxxxx-22-ubuntu.sock: Bad file descriptor

@vjrj
Copy link
Contributor

vjrj commented Aug 14, 2024

Muito obrigado Rodrigo, thanks indeed. It seems that this is setup is not working as expected (the idea is to reuse ssh connections in order to make the re-connections faster). The code of this is in:
https://github.com/living-atlases/la-toolkit-backend
I'll try to add a fix for the next release.

@vjrj vjrj self-assigned this Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants