Re: [ceph-users] got "XmlParseFailure" when libs3 client accessing radosgw object gateway

2015-01-16 Thread Liu, Xuezhao
Thanks for the hints.
My original configuration is with " rgw print continue = false", but does not 
work.

Just now I tested to change it be "true" and restart radosgw and apache2 
service, strangely to see that everything can work now.

Best,
Xuezhao
> 
> This sounds like you're having trouble with 100-continue. Try setting 'rgw 
> print
> continue = false' in your ceph.conf, or replace the apache fastcgi module (as
> specified in the ceph docs).
> 
> Yehuda
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] got "XmlParseFailure" when libs3 client accessing radosgw object gateway

2015-01-16 Thread Yehuda Sadeh
On Wed, Jan 14, 2015 at 7:27 PM, Liu, Xuezhao  wrote:
> Thanks for the replying.
>
> After disable the default site (a2dissite 000-default), I can use libs3's 
> commander s3 to create/list bucket, get object also works.
>
> But put object failed:
>
> root@xuezhaoUbuntu74:~# s3 -u put bucket11/seqdata filename=seqdata
>
> it hangs forever, and one the object gateway server, I can see such log:
> root@xuezhaoUbuntu73:~# cat /var/log/apache2/error.log
> [Thu Jan 15 10:24:10.896926 2015] [:warn] [pid 20751:tid 140666587821824] 
> FastCGI: 10.32.231.74 PUT http://xuezhaoubuntu73/bucket11/seqdata auth AWS 
> VTT37Z56CWEPI3LCI38U:r3cX5AKJBA0t6zwygFvk5i1YHIY=
> [Thu Jan 15 10:24:32.906128 2015] [:warn] [pid 20752:tid 1401236] 
> FastCGI: 10.32.231.74 PUT http://xuezhaoubuntu73/bucket11/seqdata auth AWS 
> VTT37Z56CWEPI3LCI38U:bm23T98hihu1LXfHSJK0o4wKW7M=
> [Thu Jan 15 10:24:40.918845 2015] [fastcgi:error] [pid 20751:tid 
> 140666587821824] [client 10.32.231.74:36311] FastCGI: comm with server 
> "/var/www/s3gw.fcgi" aborted: idle timeout (30 sec)
> [Thu Jan 15 10:24:40.919282 2015] [fastcgi:error] [pid 20751:tid 
> 140666587821824] [client 10.32.231.74:36311] FastCGI: incomplete headers (0 
> bytes) received from server "/var/www/s3gw.fcgi"
> [Thu Jan 15 10:24:49.908398 2015] [:warn] [pid 20751:tid 140666579429120] 
> FastCGI: 10.32.231.74 PUT http://xuezhaoubuntu73/bucket11/seqdata auth AWS 
> VTT37Z56CWEPI3LCI38U:CNy4pmZcslar7u5+AaW0fPGUEbY=
>
> Same result when using different libs3 (https://github.com/bji/libs3 or 
> http://github.com/wido/libs3.git )
>
> But if using the python tool s3cmd the object putting can work.

This sounds like you're having trouble with 100-continue. Try setting
'rgw print continue = false' in your ceph.conf, or replace the apache
fastcgi module (as specified in the ceph docs).

Yehuda
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] got "XmlParseFailure" when libs3 client accessing radosgw object gateway

2015-01-16 Thread Liu, Xuezhao
Thanks for the replying.

After disable the default site (a2dissite 000-default), I can use libs3's 
commander s3 to create/list bucket, get object also works.

But put object failed:

root@xuezhaoUbuntu74:~# s3 -u put bucket11/seqdata filename=seqdata

it hangs forever, and one the object gateway server, I can see such log:
root@xuezhaoUbuntu73:~# cat /var/log/apache2/error.log
[Thu Jan 15 10:24:10.896926 2015] [:warn] [pid 20751:tid 140666587821824] 
FastCGI: 10.32.231.74 PUT http://xuezhaoubuntu73/bucket11/seqdata auth AWS 
VTT37Z56CWEPI3LCI38U:r3cX5AKJBA0t6zwygFvk5i1YHIY=
[Thu Jan 15 10:24:32.906128 2015] [:warn] [pid 20752:tid 1401236] 
FastCGI: 10.32.231.74 PUT http://xuezhaoubuntu73/bucket11/seqdata auth AWS 
VTT37Z56CWEPI3LCI38U:bm23T98hihu1LXfHSJK0o4wKW7M=
[Thu Jan 15 10:24:40.918845 2015] [fastcgi:error] [pid 20751:tid 
140666587821824] [client 10.32.231.74:36311] FastCGI: comm with server 
"/var/www/s3gw.fcgi" aborted: idle timeout (30 sec)
[Thu Jan 15 10:24:40.919282 2015] [fastcgi:error] [pid 20751:tid 
140666587821824] [client 10.32.231.74:36311] FastCGI: incomplete headers (0 
bytes) received from server "/var/www/s3gw.fcgi"
[Thu Jan 15 10:24:49.908398 2015] [:warn] [pid 20751:tid 140666579429120] 
FastCGI: 10.32.231.74 PUT http://xuezhaoubuntu73/bucket11/seqdata auth AWS 
VTT37Z56CWEPI3LCI38U:CNy4pmZcslar7u5+AaW0fPGUEbY=

Same result when using different libs3 (https://github.com/bji/libs3 or 
http://github.com/wido/libs3.git )

But if using the python tool s3cmd the object putting can work.

Thanks,
Xuezhao
> -Original Message-
> 
> Looks like your apache is misconfigured. Did you disable the default site?
> 
> Yehuda

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


Re: [ceph-users] got "XmlParseFailure" when libs3 client accessing radosgw object gateway

2015-01-15 Thread Yehuda Sadeh
On Tue, Jan 6, 2015 at 1:21 AM, Liu, Xuezhao  wrote:
> Hello,
>
>
>
> I am new to ceph and have a problem about ceph object gateway usage, did not
> find enough hints by googling it, so send an email here, thanks.
>
>
>
> I have a ceph server with object gateway configured, and another client node
> to test the object accessing.
>
>
>
> On the client when I using s3cmd (a python tool), everything works fine
> including creating/list bucket, put/get object. This proves the ceph object
> gateway should be fine.
>
>
>
> But when I using libs3 (clone from http://github.com/wido/libs3.git ), the
> s3 commander does not work as expected:
>
> root@node74:~# s3 -u list
>
>  Bucket Created
>
> 
> 
>
> root@node74:~# s3 -u create mybucket
>
>
>
> ERROR: XmlParseFailure
>
>
>
> On ceph object gateway server-side, when the error happens, no new log added
> to “/var/log/apache2/error.log”, one log added to
> “/var/log/apache2/access.log” as “10.32.231.74 - - [06/Jan/2015:15:57:47
> +0800] "PUT // HTTP/1.1" 405 524 "-" "Mozilla/4.0 (Compatible; s3; libs3
> 0.9; Linux x86_64)".
>

Looks like your apache is misconfigured. Did you disable the default site?

Yehuda

> And no new log added to “/var/log/radosgw/xxx.log”.
>
>
>
> Anybody can give me some hints about what’s the problem and how to resolve
> it?
>
>
>
> Best Regards,
>
> Xuezhao
>
>
>
>
> ___
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] got "XmlParseFailure" when libs3 client accessing radosgw object gateway

2015-01-14 Thread Ken Dreyer
On 01/06/2015 02:21 AM, Liu, Xuezhao wrote:
> But when I using libs3 (clone from http://github.com/wido/libs3.git ),
> the s3 commander does not work as expected:

Hi Xuezhao,

Wido's fork of libs3 is pretty old and not up to date [1]. It's best to
use Bryan's repository instead: https://github.com/bji/libs3

- Ken

[1] https://github.com/wido/libs3/pull/3
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


[ceph-users] got "XmlParseFailure" when libs3 client accessing radosgw object gateway

2015-01-06 Thread Liu, Xuezhao
Hello,

I am new to ceph and have a problem about ceph object gateway usage, did not 
find enough hints by googling it, so send an email here, thanks.

I have a ceph server with object gateway configured, and another client node to 
test the object accessing.

On the client when I using s3cmd (a python tool), everything works fine 
including creating/list bucket, put/get object. This proves the ceph object 
gateway should be fine.

But when I using libs3 (clone from http://github.com/wido/libs3.git ), the s3 
commander does not work as expected:
root@node74:~# s3 -u list
 Bucket Created
  
root@node74:~# s3 -u create mybucket

ERROR: XmlParseFailure

On ceph object gateway server-side, when the error happens, no new log added to 
"/var/log/apache2/error.log", one log added to "/var/log/apache2/access.log" as 
"10.32.231.74 - - [06/Jan/2015:15:57:47 +0800] "PUT // HTTP/1.1" 405 524 
"-" "Mozilla/4.0 (Compatible; s3; libs3 0.9; Linux x86_64)".
And no new log added to "/var/log/radosgw/xxx.log".

Anybody can give me some hints about what's the problem and how to resolve it?

Best Regards,
Xuezhao

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