Re: radosgw: set_contents_from_string provokes "Internal Server Error"

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

 



On Thu, Apr 11, 2013 at 5: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?

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
_______________________________________________
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]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux