FTP server for Cloud Files
I have just committed an experiment of a FTP Server answering to Cloud Files. It act completely transparently to be able to use any FTP Client to connect to cloud-files.
There is probably a couple of bugs there but the basis of it seems to be working, please let me know if you find any problems with it.
Usage
By default it will bind to port 2021 and localhost to be able to be launched by user which can be changed via the command line option -p. The username password are your API Username and key.
Manual Install
FTP-Cloudfs require the pyftpdlib which can be installed from here :
http://code.google.com/p/pyftpdlib/
and python-cloudfiles :
http://github.com/rackspace/python-cloudfiles
you can then checkout FTP-Cloudfs from here :
http://github.com/chmouel/ftp-cloudfs
The way to install python package is pretty simple, simply do a python
setup.py install after uncompressing the tarball downloaded.
Automatic Install:
You can generate a debian package directly from the source if you have
dpkg-buildpackage installed on your system. It will give you a nice
initscripts as well to start automatically the ftp cloudfs process.
Support
Albeit I am working for Rackspace Cloud this is not supported by
Rackspace but please feel free to send a comment here if you have any
problems.
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

[...] from Planet !Mandriva: http://blog.chmouel.com/2009/10/29/ftp-server-for-cloud-files/ [...]
Hi
Looks great.
I’m wrote a freebsd py-cloudfiles port (python-cloudfiles)
http://www.freebsd.org/cgi/query-pr.cgi?pr=139926
I am awaiting approval.
Then I could create a cloudfs port.
roberto
Cool thanks roberto, let me know if I can be any help or you got any bugs report…
I think this is agreat idea as I’m frustrated with the FF plug-in to upload a large number of files.
I think I have it installed correctly on my windows 2008 server but the server.py doesn’t return anything and I can’t connect to localhost:2021.
Any ideas how I’ve broken it?
I haven’t tested yet on Windows 2008 to be honest, did you install the dependencies ? What version of python are you using the activestate one or cygwin?
Is there a quick HowTo on connecting this to RS Cloud Files and using an FTP client to connect to it? I think this is great, just needs a guide how to actually use it
I take it back. Its easy to use if you install it on the server where you want to copy files from (source). However, my ncftp client keeps getting disconnected… any ideas?
tried setting some variables such as timeouts from the ncftp side…hope it works…;)
using plain ftp and ncftp client gets me a “connection closed” error!
any ideas?
I can connect to the FTP server but it gets disconnected since due to this error: “Failed to retrieve directory listing”
Hi,
Can you just clarify for me, does this mean if i set this up at,
subdomain.domain.tld then used http://ftp.subdomain.tld then it would act like normal ftp and behind the scene interact with cloud files, i.e create containers for folders, objects for files edit and delete etc like an ftp server normally would on a local machine?
I’m sorta after someting of that nature because my site was built to use ftp to put and get files so it’ll be a pain making changes to work with cloud files.
I tried implementing something like this on my own using the php api but it was too buggy. So this would work wonders for me.
thanks for any response, be appreciated.
I think i’ve got it installed. Thanks, nice work.
How do i make it run as a long term process, i.e the server doesn’t shut down and how can i make it serve ftp via the public ip or domain name so that domain.tld:2021 is accessible?
thanks in advance
This is awesome. I would LOVE a yum install or RPM for CentOS if you can swing it. It’d save a ton of time installing and getting it working on our servers.
@Will Sorry I don’t have such infrastrcture yet, I have done ppa packages but I don’t think there is such things as launchpad for RPM based distros (I would not mind to provide a spec if that’s help but I don’t have fedora thing to test)…
@Courtney are you using the debian based init script ? then change the option in /etc/default/ftp-cloudfs. If not you have to provide the right argument to the ftpcloudfs binary :
chmouel@lutece:/etc/default$ ftpcloudfs –help
Usage: ftpcloudfs [OPTIONS]…..
Options:
-h, --help show this help message and exit
-p PORT, --port=PORT Port to bind the server default: 2021.
-b BIND_ADDRESS, --bind-address=BIND_ADDRESS
Address to bind default: 127.0.0.1.
-l LOG_FILE, --log-file=LOG_FILE
Log File: Default stdout