Re: radosgw: set_contents_from_string provokes "Internal Server Error"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey Arne,

Could you send me your RGW logs and your Apache RGW configuration?

Caleb
--
Developer, inktank

On Apr 11, 2013 8:53 AM, "Arne Wiebalck" <Arne.Wiebalck@xxxxxxx> 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?

I got logging enabled on the gateway, in case this is not an obvious problem.

TIA,
 Arne


--
Arne Wiebalck
CERN IT


_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux