Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/DIRAC/Resources/Computing/SSHComputingElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

from fabric import Connection
from invoke.exceptions import CommandTimedOut
from paramiko.ssh_exception import SSHException
from paramiko.ssh_exception import NoValidConnectionsError, SSHException

import DIRAC
from DIRAC import S_ERROR, S_OK
Expand Down Expand Up @@ -123,6 +123,8 @@ def _run(self, connection: Connection, command: str):
return S_ERROR(
errno.ETIME, f"[{connection.host}] The command timed out. Consider increasing the timeout: {e}"
)
except NoValidConnectionsError as e:
return S_ERROR(f"[{connection.host}] Unable to connect: {str(e)}")
except SSHException as e:
return S_ERROR(f"[{connection.host}] SSH error occurred: {str(e)}")

Expand Down
Loading