On Tue, Aug 23, 2011 at 6:43 PM, 林由清 <linyouqing7@xxxxxxxxx> wrote: > > Hi ,all > > I fount it's so diffcult to set RADOS gateway up, because of i didn't have > external IP , domain name , One virtual machine is fedora 15 i368 > 2.6.40.3-0.fc15.i686.PAE that installed osd ,monitor and radosgw (ceph-3.3), > with internal IP 192.168.1.81. Another virtual machine is centos 5.5 i386 which > installed wido-libs3-31546de as client to access radosgw with > internal IP 192.168.1.160. > > (1) > # /var/www/s3gw.fcgi > 2011-08-23 21:04:08.753979 b784c740 allocated request fcgx=0x98a55a8 > ./common/Mutex.h: In function 'Mutex::~Mutex()', in thread '0xb784c740' > ./common/Mutex.h: 89: FAILED assert(nlock == 0) > ceph version 0.33 (commit:340b4348bf620fe81f4c0d3a685fdc832663a4cf) > 1: /usr/local/bin/radosgw() [0x807518f] > 2: (RGWProcess::~RGWProcess()+0x231) [0x80c49e1] > 3: (main()+0x139) [0x8075dc9] > 4: (__libc_start_main()+0xf3) [0x4ed21413] > 5: /usr/local/bin/radosgw() [0x80769e1] > ceph version 0.33 (commit:340b4348bf620fe81f4c0d3a685fdc832663a4cf) > 1: /usr/local/bin/radosgw() [0x807518f] > 2: (RGWProcess::~RGWProcess()+0x231) [0x80c49e1] > 3: (main()+0x139) [0x8075dc9] > 4: (__libc_start_main()+0xf3) [0x4ed21413] > 5: /usr/local/bin/radosgw() [0x80769e1] > terminate called after throwing an instance of 'ceph::FailedAssertion' > *** Caught signal (Aborted) ** > in thread 0xb784c740 > *** Caught signal (Segmentation fault) ** > in thread 0xb784c740 > /var/www/s3gw.fcgi: line 2: 21737 Segmentation fault (core > dumped) /usr/local/bin/radosgw -c /usr/local/etc/ceph/ceph.conf > You're trying to run rgw manually. While it is possible nowadays, it requires special non-default configuration. With default config options you need to let the fastcgi process manager to manage its execution. > (2) > At radosgw+mon+osd > > # /usr/local/apache2/bin/apachectl -S > httpd: Could not reliably determine the server's fully qualified > domain name, using 192.168.1.81 for ServerName > VirtualHost configuration: > wildcard NameVirtualHosts and _default_ servers: > *:80 www.radosgw.com (/usr/local/apache2/conf/httpd.conf:57) > Syntax OK > > (3) > at client: > # export > declare -x S3_ACCESS_KEY_ID="QZPCDFTMIW8K19XMUMP7" > declare -x S3_HOSTNAME="www.radosgw.com" > declare -x S3_SECRET_ACCESS_KEY="yHXEOzdx8SGpw0IYKeCifOFB6a1WQInUVEGrQeVO" > > #vim /etc/hosts > 192.168.1.81 www.radosgw.com > > # s3 -u create alpha > ERROR: XmlParseFailure Probably got a 500 error. Can you paste your apache config, and both radosgw and apache logs (error.log, access.log)? Thanks, Yehuda -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html