3

Using S3 + Fileconveyor to store files and Cloudfront for Urls with CNAME

http://drupal.org

I want to push some of my static files (mainly pictures) to Amazon s3, then not all of my files should be put on one shared host provider. As a result, one server will support the pic files and another will support the web files. CDN fileconveyor sounds like wonderful solution for me.

Following the CDN installation in the install.txt and configuration steps in readme.txt, I typed the following command:
$ python /opt/fileconveyor/code/arbitrator.py

------
but then the below message keeps showing in my ubuntu terminal:
quickstart@qs10:~$ python /opt/fileconveyor/code/arbitrator.py
2011-10-15 10:17:08,273 - Arbitrator - WARNING - File Conveyor is initializing.
2011-10-15 10:17:08,306 - Arbitrator - WARNING - Loaded config file.
2011-10-15 10:17:40,607 - Arbitrator - ERROR - Could not start transporter 'cf'. Error: 'S3Error: Unable to provide secure connection through proxy'.
2011-10-15 10:17:54,651 - Arbitrator - ERROR - Could not start transporter 's3'. Error: 'S3Error: Unable to provide secure connection through proxy'.
2011-10-15 10:17:54,915 - Arbitrator - ERROR - Server connection tests: could not connect with 2 servers.
2011-10-15 10:17:55,236 - Arbitrator - WARNING - File Conveyor has restarted itself!
------

For reference about configure.xml in /opt/fileconveyor/code, below is its details:
------
<<!-- Sources -->
  <sources ignoredDirs="CVS:.svn">
    <source name="drupal" scanPath="/home/quickstart/Desktop/websites/example.dev" documentRoot="/home/quickstart/Desktop/websites" basePath="/example.dev/" />
    <source name="downloads" scanPath="/home/quickstart/Downloads" />
  </sources><

<!-- Servers -->
  <servers>
    <server name="origin pull cdn" transporter="cf">
      <bucket_name>example</bucket_name>
      <access_key_id>xxxxxxxxxxxxx</access_key_id>
      <secret_access_key>xxxxxxxxxxxxx</secret_access_key>
      <distro_domain_name>example.mywebsite.com</distro_domain_name>
    </server>
    <server name="ftp push cdn" transporter="s3" maxConnections="5">
      <bucket_name>example</bucket_name>
      <access_key_id>xxxxxxxxxxxxxxx</access_key_id>
      <secret_access_key>xxxxxxxxxxxxxxxxxxxxx</secret_access_key>
    </server>
  </servers>
--------------

About configure.xml in /mywebsite/sites/all/modules/cdn/, below is its details:
----
  <!-- Sources -->
  <sources>
    <source name="drupal" scanPath="/home/quickstart/Desktop/websites/example.dev" documentRoot="/home/quickstart/Desktop/websites" basePath="/example.dev/" />
  </sources>

  <!-- Servers -->
  <servers>
    <server name="origin pull cdn" transporter="cf">
      <bucket_name>example</bucket_name>
      <access_key_id>xxxxxxxxxxxxx</access_key_id>
      <secret_access_key>xxxxxxxxxxxxx</secret_access_key>
      <distro_domain_name>example.mywebsite.com</distro_domain_name>
    </server>
    <server name="ftp push cdn" transporter="s3" maxConnections="5">
      <bucket_name>example</bucket_name>
      <access_key_id>xxxxxxxxxxxxxxx</access_key_id>
      <secret_access_key>xxxxxxxxxxxxxxxxxxxxx</secret_access_key>
    </server>
  </servers>
-----------------------------

--------------
Any help much appreciated. Really hope this CDN can work for me too as its features are very handy and useful.

Read »
Created by twobits 26 weeks 6 days ago
Category: News   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Tags for Using S3 + Fileconveyor to store files and Cloudfront for Urls with CNAME

Recent comments