Amazon S3 cURL and open_basedir

j3030 - August 7, 2009 - 00:19
Project:FlashVideo
Version:6.x-1.5-rc3
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello,

I get the following errors/warnings when I try to add a new video. The video works, meaning I can play it, but it gets stored locally rather than getting uploaded to S3. Our account works fine (I've uploaded using the Firefox plugin) and I've double checked the bucket name, and both keys.

I used double asterisks (**) to denote text that I replaced.

warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in **path to**/sites/all/modules/flashvideo/plugins/flashvideo_s3/S3.php on line 1256.

warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in **path to**/sites/all/modules/flashvideo/plugins/flashvideo_s3/S3.php on line 1256.

user warning: S3::putBucket(**my-bucket-name**-..-stored_files-finished_video, public-read, ): [6] Couldn't resolve host '**my-bucket-name**-..-stored_files-finished_video.s3.amazonaws.com' in [path to]/sites/all/modules/flashvideo/plugins/flashvideo_s3/S3.php on line 226.

S3::putBucket(): Unable to create bucket (it may already exist and/or be owned by someone else)

warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in **path to**/sites/all/modules/flashvideo/plugins/flashvideo_s3/S3.php on line 1256.

warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in **path to**/sites/all/modules/flashvideo/plugins/flashvideo_s3/S3.php on line 1256.

user warning: S3::putBucket(**my-bucket-name**-..-stored_files-finished_video, public-read, ): [6] Couldn't resolve host '**my-bucket-name**-..-stored_files-finished_video.s3.amazonaws.com' in **path to**/sites/all/modules/flashvideo/plugins/flashvideo_s3/S3.php on line 226.

S3::putBucket(): Unable to create bucket (it may already exist and/or be owned by someone else)

I believe the open_basedir directive is set because we have our download method, under File System settings in the Drupal core, set to Private. I don't think changing the method to Public is an option for us. Also, another item that jumped out at me was the "Couldn't resolve host '**my-bucket-name**-..-stored_files-finished_video.s3.amazonaws.com'... My bucket name is followed by -..-, which doesn't look right to me.

Let me know if you need more info and thanks a lot!

 
 

Drupal is a registered trademark of Dries Buytaert.