1. SSH Connection Error: ChannelException(2, ‘Connect failed’)

SSH Connection Error: ChannelException(2, ‘Connect failed’)

Home Forums FABRIC General Questions and Discussion SSH Connection Error: ChannelException(2, ‘Connect failed’)

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #8075
    Yuanjun Dai
    Participant

      Summary of the Issue:

      I attempted to run the following command on the worker node using the worker1.execute() function:

      sudo apt update && sudo apt install -y net-tools && pip install netifaces

      However, the operation failed with the following error message:

      paramiko.ssh_exception.ChannelException: ChannelException(2, ‘Connect failed’)

      Error Details from Logs:

      [14:36:51] {/home/johnnydai/miniconda3/lib/python3.11/site-packages/paramiko/transport.py:1909} ERROR – Secsh channel 0 open FAILED: No route to host: Connect failed
      [14:36:51] {/home/johnnydai/miniconda3/lib/python3.11/site-packages/fabrictestbed_extensions/fablib/node.py:1644} WARNING – Exception in node.execute() command: sudo apt update && sudo apt install -y net-tools && pip install netifaces (attempt #0 of 3): ChannelException(2, ‘Connect failed’)
      [14:37:05] {/home/johnnydai/miniconda3/lib/python3.11/site-packages/paramiko/transport.py:1909} ERROR – Secsh channel 0 open FAILED: No route to host: Connect failed
      [14:37:05] {/home/johnnydai/miniconda3/lib/python3.11/site-packages/fabrictestbed_extensions/fablib/node.py:1644} WARNING – Exception in node.execute() command: sudo apt update && sudo apt install -y net-tools && pip install netifaces (attempt #1 of 3): ChannelException(2, ‘Connect failed’)
      [14:37:19] {/home/johnnydai/miniconda3/lib/python3.11/site-packages/paramiko/transport.py:1909} ERROR – Secsh channel 0 open FAILED: No route to host: Connect failed
      [14:37:19] {/home/johnnydai/miniconda3/lib/python3.11/site-packages/fabrictestbed_extensions/fablib/node.py:1644} WARNING – Exception in node.execute() command: sudo apt update && sudo apt install -y net-tools && pip install netifaces (attempt #2 of 3): ChannelException(2, ‘Connect failed’)

      #8076
      Komal Thareja
      Participant

        Hi Yuanjun,

        Both the issues with upload_file and this point to SSH access to the VMs. It could be because of the expired bastion keys or a configuration issue.
        Is it possible for a quick zoom meeting to resolve this? Please let me know if that works.

        Thanks,
        Komal

        #8077
        Yuanjun Dai
        Participant

          Hi,

          Yes. We can have a quick zoom meeting to deal with the problems. Please contact yxd429@case.edu.

          Thank you !

          #8078
          Yuanjun Dai
          Participant

            The upload _file API works now.

            To my case,I can use the bastion key to login in the VMs. It seems the bastion keys does not expire.

            Some of the VMs does not have problem to run the execute command but some VMs have such problem.

            I use the same code and it never happen before the new update.

            Best Regards,

             

            #8084
            Komal Thareja
            Participant

              User has confirmed that this is no longer an issue.


              HI, Komal

              The problem has been solved. I believe we do not need the meeting today.

              Thank you so much for your help!

              Best Regards,
              Yuanjun Dai

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.