Yehuda, Caleb, Thanks for your quick replies.
Setting rgw print continue = false helped indeed, the problem has gone. We apparently misunderstood the line saying "if you do NOT use a modified fastcgi …" in the radosgw manual install documentation. Thanks again for your help! Cheers, Arne -- Arne Wiebalck CERN IT On Apr 11, 2013, at 3:37 PM, Yehuda Sadeh <[email protected]> wrote: > On Thu, Apr 11, 2013 at 5:53 AM, Arne Wiebalck <[email protected]> wrote: >> Hi, >> >> We see a reproducible "Internal Server Error" when doing something like >> >> --> >> #!/usr/bin/env python >> >> import boto >> import boto.s3.connection >> access_key = '...' >> secret_key = '...' >> >> conn = boto.connect_s3( >> aws_access_key_id = access_key, >> aws_secret_access_key = secret_key, >> host = '....cern.ch', >> #is_secure=False, # uncommmnt if you are not using ssl >> calling_format = boto.s3.connection.OrdinaryCallingFormat(), >> ) >> >> bucket = conn.create_bucket('bucketXXX') >> key = bucket.new_key('fileXXX.txt') >> key.set_contents_from_string('XXX content!') >> <-- >> >> I can see that the script is actually achieving what it's meant to do, i.e. >> create the bucket, >> create the file and add content, but then it fails at >> "set_contents_from_string": >> >> --> >> Traceback (most recent call last): >> File "./ceph-s3.py", line 18, in <module> >> key.set_contents_from_string('XXX content!') >> File "/usr/lib/python2.6/site-packages/boto/s3/key.py", line 539, in >> set_contents_from_string >> self.set_contents_from_file(fp, headers, replace, cb, num_cb, policy) >> File "/usr/lib/python2.6/site-packages/boto/s3/key.py", line 455, in >> set_contents_from_file >> self.send_file(fp, headers, cb, num_cb) >> File "/usr/lib/python2.6/site-packages/boto/s3/key.py", line 367, in >> send_file >> self.name, headers, sender=sender) >> File "/usr/lib/python2.6/site-packages/boto/s3/connection.py", line 342, >> in make_request >> data, host, auth_path, sender) >> File "/usr/lib/python2.6/site-packages/boto/connection.py", line 459, in >> make_request >> return self._mexe(method, path, data, headers, host, sender) >> File "/usr/lib/python2.6/site-packages/boto/connection.py", line 435, in >> _mexe >> raise BotoServerError(response.status, response.reason, body) >> boto.exception.BotoServerError: BotoServerError: 500 Internal Server Error >> <-- >> >> This is Apache 2.2.15 on a RHEL6.4 derivative, ceph 0.56.4. >> >> Any ideas? > > Well, it's not completely obvious from your logs, but it might be that > you're not using the apache fastcgi module that is tailored for > 100-continue (not sure if there are readily available packages for > RHEL though). Try disabling 100-continue on the gateway; under the > correct conf section add: > > rgw print continue = false > > And see if it helps. > >> >> I got logging enabled on the gateway, in case this is not an obvious >> problem. > > Will need that if the above doesn't help. > > > Yehuda
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ ceph-users mailing list [email protected] http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
