Skip to content

Conversation

@70rc
Copy link
Contributor

@70rc 70rc commented Nov 9, 2025

This Pull request:

Fixes root connection issues on MacOS.

Changes or fixes:

Changed rootssh not to create the $listener_socket prior to calling nc.
nc BSD, which is used on MacOS, cannot connect to existing Unix sockets.

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

This PR

Fixes rootssh connection issues on MacOS.

@70rc 70rc requested a review from dpiparo as a code owner November 9, 2025 22:34
@70rc 70rc changed the title Changed rootssh to not create the Unix socket before calling nc. Fix rootssh connection issues on MacOS Nov 9, 2025
@linev linev self-requested a review November 10, 2025 09:37
Copy link
Member

@linev linev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably it make sense.
I change this line in May 2025, but didn't test on mac.
But change is not sufficient - in line 59 chmod -f 0700 $listener_socket fails for me too. So one need to adjust code here as well.

At the best one should check in the loop:

if [-f $listener_socket.log]; then
   chmod -f 0700 $listener_socket
fi

@70rc, will you add such change?

Prevent failure on Mac where operation with non-existing files/sockets leads to failure
@linev linev changed the title Fix rootssh connection issues on MacOS Fix rootssh connection issues on MacOS [skip-ci] Nov 11, 2025
Copy link
Member

@linev linev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I add extra commit to check socket before changing mode for it.

Thanks to reporting the problem!

@linev linev merged commit 458f8da into root-project:master Nov 11, 2025
28 of 29 checks passed
@70rc
Copy link
Contributor Author

70rc commented Nov 11, 2025

@linev Apologies for the slow reaction, I'm in the middle of a beamtime. Thanks for adding the missing check yourself!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants