Trying to use ftp on GENI

17 views
Skip to first unread message

ldu...@g.clemson.edu

unread,
Apr 4, 2015, 2:00:02 PM4/4/15
to protoge...@googlegroups.com, Alex Feltus
ProtoGeni Users Group,

I am an undergrad researcher trying to use ftp on GENI. Here's what I've done so far:

I have allocated resources to two GENI VMs, one at Clemson and one at Utah, which are connected.
I installed vsftpd and edited the .conf file on both VMs with the following steps:
1) sudo apt-get install vsftpd
2) sudo nano/etc/vsftpd.conf
3) uncommented anonymous_enable=yes
4) uncommented local_enable=yes
5) uncommented write_enable=yes
6) uncommented anon_upload_enable=yes
7) wrote the changes and exited nano
8) sudo service vsftpd restart

I then tried to connect to the Utah node from the Clemson node via ftp by typing (34363 is the port number):

I keep getting errors saying that I'm not connected. Any help would be much appreciated. Please see attached; this is what the output and error looks like when I try to "put" a file to the other VM.
I'm also not sure what "SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1" is.

Thank you again! You guys are the best.
Leland Dunwoodie

image (2).jpeg

Vicraj Thomas

unread,
Apr 4, 2015, 6:09:46 PM4/4/15
to protoge...@googlegroups.com, Alex Feltus, geni-...@googlegroups.com
Hi Leland,

First, did you set IP addresses on the interfaces on both sides of the
link connecting your VMs? You can do this manually or using the auto-ip
button if you are using the Portal/Jacks.

Next, make sure you can ping from the client to the server. If your VM
at Clemson is called VMC and the VM at Utah is VMU, log into VMC and
ping VMU

If that works, your link is working. But the ftp command you are using
is incorrect. To ftp from the Clemson VM (VMC) to the Utah VM (VMU),
the command you need at VMC is:
ftp VMU (if your server is listening on the standard ftp port 21)
or
ftp VMU:nnn (if your server is listening on port nnn)

The problems with the ftp commands you are using are:
1. pc10 is not the username---it is part of the hostname where your VM
is located. The name of the host where your VM was allocated is
pc10.utahddc.geniracks.net.
2. 34363 is the port you use to log into your Utah VM from the Internet.
This is not the port on which your ftp server is listening.
3. From the client VM (VMC) you should refer to your server VM (VMU) by
the name you gave it (e.g. VMU) or by the IP address you assigned its
interface. You cannot get to it using the name pc10.utahddc.geniracks.net.

Finally, you might want to stay away from the Utah resources (UtahDDC,
Utah InstaGENI and Utah Protogeni) for now. UtahDDC will be down for
maintenance for a bit starting Monday. Connectivity to the other Utah
resources may be iffy during this time as they make changes to their
network.

Best wishes,

< Vic
> --
> You received this message because you are subscribed to the Google
> Groups "protogeni-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to protogeni-use...@googlegroups.com
> <mailto:protogeni-use...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Leland Dunwoodie

unread,
Apr 4, 2015, 10:05:00 PM4/4/15
to protoge...@googlegroups.com
Vic,

Thanks so much for your help!

I made a new set of VMs. node-0 is at Clemson and node-1 is at U
Chicago. I can ping between the nodes just fine. I downloaded vsftpd
on both VMs just fine. I tried to ftp from Clemson to U Chicago and
was able to connect but did not have success transferring data. Here's
what happened:
note: SRR039884.sra is the experimental file I'm trying to transfer;
it is 81 MB in size. The connection timed out after about 30 minutes
of displaying a blank line after "150 Ok to send data"

ldunwoo@node-0:~$ ftp node-1
Connected to node-1-link-0.
220 (vsFTPd 2.3.5)
Name (node-1:ldunwoo): ldunwoo
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put SRR039884.sra
local: SRR039884.sra remote: SRR039884.sra
200 PORT command successful. Consider using PASV.
150 Ok to send data.
netout: Connection timed out
421 Data timeout. Reconnect. Sorry.
ftp>


No rush to reply - I'm not sure why I'm doing this on Saturday night
while the Final Four is on!
Any help would be much appreciated.

Thanks,
Leland Dunwoodie
> You received this message because you are subscribed to a topic in the
> Google Groups "protogeni-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/protogeni-users/VwoX2NdlyXY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> protogeni-use...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
=========================
Leland Dunwoodie
Clemson '18
Biochemistry
Calhoun Honors College

"Do your best and forget the rest!"

Vicraj Thomas

unread,
Apr 5, 2015, 6:52:15 PM4/5/15
to protoge...@googlegroups.com, ldu...@g.clemson.edu, geni-...@googlegroups.com
Hi Leland,

I'm not sure why your ftp connection is timing out. Here are a couple
of things you might want to try as you debug this:
1. ftp a very small file and see if that succeeds.
2. if the small file does not succeed, put your client and server on the
same rack and see if that succeeds.
In general, it is a good idea to debug your experiment on one rack
before going across racks. Also, start small.

Are you using a stitched link or a GRE tunnel to connect your VMs? As
you transfer large files, keep in mind that GRE tunnels goes over the
GENI control plane and traffic there is limited to 100 Mbps. If you are
going over a stitched link, the link bandwidth is set to 20 Mbps by
default, but you can increase it. In most cases you should use stitched
links instead of GRE tunnels.

I'm copying geni-users on my response as it reaches users in addition to
those on protogeni-users. Perhaps somebody in the larger community will
have other ideas on why this isn't working for you. To recv by email
responses sent to this group you should join it. See
http://groups.geni.net/geni/wiki/GENIExperimenter/CommunityMailingList.

< Vic

Niky Riga

unread,
Apr 5, 2015, 7:08:49 PM4/5/15
to geni-...@googlegroups.com, protoge...@googlegroups.com, ldu...@g.clemson.edu
Hi Leland,

Another thing you might want to try is to play with the MTU, you can either set the MTU in both of your
nodes to 1000 and see if that helps, or you just try a ping test:

ping <other_host>

ping -s 2000 <other_host>

Cheers,
Niky

April 5, 2015 at 6:52 PM
Hi Leland,

I'm not sure why your ftp connection is timing out.  Here are a couple of things you might want to try as you debug this:
1. ftp a very small file and see if that succeeds.
2. if the small file does not succeed, put your client and server on the same rack and see if that succeeds.
In general, it is a good idea to debug your experiment on one rack before going across racks.  Also, start small.

Are you using a stitched link or a GRE tunnel to connect your VMs?  As you transfer large files, keep in mind that GRE tunnels goes over the GENI control plane and traffic there is limited to 100 Mbps.  If you are going over a stitched link, the link bandwidth is set to 20 Mbps by default, but you can increase it.  In most cases you should use stitched links instead of GRE tunnels.

I'm copying geni-users on my response as it reaches users in addition to those on protogeni-users.  Perhaps somebody in the larger community will have other ideas on why this isn't working for you.  To recv by email responses sent to this group you should join it.  See http://groups.geni.net/geni/wiki/GENIExperimenter/CommunityMailingList.

< Vic





April 4, 2015 at 10:04 PM
April 4, 2015 at 6:09 PM
Hi Leland,

First, did you set IP addresses on the interfaces on both sides of the link connecting your VMs?  You can do this manually or using the auto-ip button if you are using the Portal/Jacks.

Next, make sure you can ping from the client to the server.  If your VM at Clemson is called VMC and the VM at Utah is VMU, log into VMC and
    ping VMU

If that works, your link is working.  But the ftp command you are using is incorrect.  To ftp from the Clemson VM (VMC) to the Utah VM (VMU), the command you need at VMC is:
   ftp VMU (if your server is listening on the standard ftp port 21)
or
   ftp VMU:nnn (if your server is listening on port nnn)

The problems with the ftp commands you are using are:
1. pc10 is not the username---it is part of the hostname where your VM is located.  The name of the host where your VM was allocated is pc10.utahddc.geniracks.net.
2. 34363 is the port you use to log into your Utah VM from the Internet.  This is not the port on which your ftp server is listening.
3. From the client VM (VMC) you should refer to your server VM (VMU) by the name you gave it (e.g. VMU) or by the IP address you assigned its interface.  You cannot get to it using the name pc10.utahddc.geniracks.net.

Finally, you might want to stay away from the Utah resources (UtahDDC, Utah InstaGENI and Utah Protogeni) for now.  UtahDDC will be down for maintenance for a bit starting Monday.  Connectivity to the other Utah resources may be iffy during this time as they make changes to their network.

Best wishes,

< Vic





April 4, 2015 at 2:00 PM
ProtoGeni Users Group,

I am an undergrad researcher trying to use ftp on GENI. Here's what I've done so far:

I have allocated resources to two GENI VMs, one at Clemson and one at Utah, which are connected.
I installed vsftpd and edited the .conf file on both VMs with the following steps:
1) sudo apt-get install vsftpd
2) sudo nano/etc/vsftpd.conf
3) uncommented anonymous_enable=yes
4) uncommented local_enable=yes
5) uncommented write_enable=yes
6) uncommented anon_upload_enable=yes
7) wrote the changes and exited nano
8) sudo service vsftpd restart

I then tried to connect to the Utah node from the Clemson node via ftp by typing (34363 is the port number):

I keep getting errors saying that I'm not connected. Any help would be much appreciated. Please see attached; this is what the output and error looks like when I try to "put" a file to the other VM.
I'm also not sure what "SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1" is.

Thank you again! You guys are the best.
Leland Dunwoodie

--
You received this message because you are subscribed to the Google Groups "protogeni-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protogeni-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages