Remote Mode for Pantheon

76 views
Skip to first unread message

Chun-Te Sung

unread,
May 25, 2018, 2:24:02 PM5/25/18
to pantheon...@googlegroups.com
Hi,

I am Chun-Te and currently studying computer science in Germany. Recently I tried to use Pantheon but had some problems with remote mode (Local mode is totally fine.).

I prepared two AWSes (in two different locations) and installed Pantheon in both. The command I used for remote mode is:

$ python src/experiments/test.py remote --all "ACCOUNT@HOST_IP":~/pantheon

, and below is the output:

$ ssh ACCOUNT@HOST_IP "cd ~/pantheon; ~/pantheon/src/experiments/git_summary.sh"
Testing scheme copa for experiment run 1/1...
$ /home/ubuntu/pantheon/src/wrappers/copa.py run_first
[tunnel server manager (tsm)] $ ssh ACCOUNT@HOST_IP python ~/pantheon/src/experiments/tunnel_manager.py
tunnel manager is running
[tunnel client manager (tcm)] $ python /home/ubuntu/pantheon/src/experiments/tunnel_manager.py
prompt [tsm]
tunnel manager is running
prompt [tcm]
[tsm] tunnel 1 mm-tunnelserver --ingress-log=~/pantheon/tmp/copa_datalink_run1_flow1_uidf028c792-87b0-4045-a081-828e96077367.log.ingress --egress-log=~/pantheon/tmp/copa_acklink_run1_flow1_uidf028c792-87b0-4045-a081-828e96077367.log.egress
[tsm] tunnel 1 readline
[tcm] tunnel 1 mm-tunnelclient HOST_IP 34951 100.64.0.2 100.64.0.1 --ingress-log=/home/ubuntu/pantheon/tmp/copa_acklink_run1_flow1_uidf028c792-87b0-4045-a081-828e96077367.log.ingress --egress-log=/home/ubuntu/pantheon/tmp/copa_datalink_run1_flow1_uidf028c792-87b0-4045-a081-828e96077367.log.egress
[tcm] tunnel 1 readline
Tunnelclient listening for server on port 54527
Tunnelclient received no response from tunnelserver, retrying 1/5
Tunnelclient received no response from tunnelserver, retrying 2/5
Tunnelclient received no response from tunnelserver, retrying 3/5
Tunnelclient received no response from tunnelserver, retrying 4/5
Tunnelclient received no response from tunnelserver, retrying 5/5

... (keep retrying)

It seems that the remote server cannot reply to the local client. I also tried from the other way around, but the results were the same. I'm not sure if there's any configuration that I forgot to set.

Looking forward to your reply.

Regards,
Chun-Te

Francis Y. Yan

unread,
May 25, 2018, 2:31:25 PM5/25/18
to Chun-Te Sung, pantheon...@googlegroups.com
Hello Chun-Te,

Thanks for your question!

Since it seems that you already installed pantheon tunnel, could you try to run “mm-tunnelserver” on one AWS machine and copy-paste its output on another machine but replace “localhost” with the IP of the former machine? If you still observe the same behaviors, then please check if you configured EC2’s firewall rules correctly — by default EC2 instances only allow ports like 22 for SSH connection.

Thanks,
Francis Yan

--
You received this message because you are subscribed to the Google Groups "Pantheon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pantheon-stanf...@googlegroups.com.
To post to this group, send email to pantheon...@googlegroups.com.
Visit this group at https://groups.google.com/group/pantheon-stanford.
To view this discussion on the web visit https://groups.google.com/d/msgid/pantheon-stanford/CAJyaiqmM_yFVGp-AimF5Aq5ABw08Z2%2B-aOZswO65%2B2XtPT2nDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Francis Y. Yan

unread,
May 25, 2018, 3:13:20 PM5/25/18
to Chun-Te Sung, Pantheon
Hi Chun-Te,

Glad to hear it! Please feel free to let us know if you have any other questions!

Thanks,
Francis Yan

On Fri, May 25, 2018 at 12:02 PM Chun-Te Sung <chunt...@tum.de> wrote:
Hi Francis,

Thanks for your fast reply!

Yes, you are right. After allowing proper ports, the connection is successful and everything goes well.

Regards,
Chun-Te
Reply all
Reply to author
Forward
0 new messages