wimleers / fileconveyor

File Conveyor is a daemon written in Python to detect, process and sync files. In particular, it's designed to sync files to CDNs. Amazon S3 and Rackspace Cloud Files, as well as any Origin Pull or (S)FTP Push CDN, are supported. Originally written for my bachelor thesis at Hasselt University in Belgium.
https://wimleers.com/fileconveyor
The Unlicense
340 stars 95 forks source link

S3 Transporter Error - unexpected keyword argument 'reduced_redundancy' #110

Open apower opened 12 years ago

apower commented 12 years ago

I'm trying to setup File Conveyor to use Amazon S3. To provide some context, I was having trouble on starting fileconveyor and I kept getting this error:

File "arbitrator.py", line 927, in __create_transporter 
except ConnectionError, e:
NameError: global name 'ConnectionError' is not defined

I found this issue https://github.com/wimleers/fileconveyor/issues/107 which pointed me here: https://github.com/mnestor/fileconveyor. After installing that, fileconveyor started just fine. However, now I'm having trouble with the file uploads to Amazon S3. It returns the following error:

The transporter 'S3' has failed while transporting the file '/tmp/fileconveyor/var/www/test/sites/default/files/image.jpg' (action: 1).
Error: 'set_contents_from_file() got an unexpected keyword argument 'reduced_redundancy''.

Any ideas on how to resolve? Thanks in advance for your assistance.

mrcwinn commented 12 years ago

I'm getting this too. Any ideas?

ymorales commented 12 years ago

i have this issue too, help please!!

chrisivens commented 12 years ago

Looks like the s3boto.py file is causing it. May be fixed in a newer version of boto.

ghost commented 12 years ago

LOL @Chrisivens should stop posting that #115 in every issue. I got that 'ConnectionError' error in two scenarios (i use ftp push cdn):

  1. My FTP machine was sleeping. I had to wake it up.
  2. As from #115, if you make any mistake at the transporters_xx.py. Make sure u edit them w/o any errors.
chrisivens commented 12 years ago

Yeah sorry about that. Github likes to show references doesn't it. I'd also advise not editing to add errors, it's not helpful is it. Does anyone know a combination of the dependencies that doesn't have to be hacked? I'm running python 2.6 on a Red Hat EL 5 box and I'm surprised at how many bits don't gel.

mwrather commented 12 years ago

When I encountered this issue, upgrading boto to the latest version resolved it.