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?
I got logging enabled on the gateway, in case this is not an obvious problem.
TIA,
Arne
--
Arne Wiebalck
CERN IT
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ ceph-users mailing list [email protected] http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
