Skip to contentSkip to conversation

RADOS gateway and the S3 compatibility.

DISCUSSION ramu 3 participants 11 messages Aug 27, 2012 – Aug 31, 2012

lore
Share & tools
lore

ramu

author
#0 lore raw

Hi all,

I configured radosgw and installed s3.And also created user using this
command,"sudo radosgw-admin user create --uid=ramu --display-name=sree -- [email protected]",it was created user fine,after when am creating s3 bucket using"s3 create -u alpha" it is showing error,

ERROR: ConnectionFailed

and s3 -u list also not working.
Please help me to create s3 bucket.

Thanks,
Ramu.

#1 lore raw
Quoted 11 lines · ramu

Hi all,

I configured radosgw and installed s3.And also created user using this
command,"sudo radosgw-admin user create --uid=ramu --display-name=sree -- [email protected]",it was created user fine,after when am creating s3 bucket
using"s3 create -u alpha" it is showing error,

ERROR: ConnectionFailed

Have you configured apache correctly, and is it running?

Yehuda

author
#2 lore raw

Hi,

I configured apache correctly and it was running correctly.
The apache2 error log is,

radosgw: must specify 'rgw socket path' to run as a daemon

[Tue Aug 28 08:59:10 2012] [warn] FastCGI: (dynamic) server "/var/www/s3gw.fcgi" 
(pid 6492) terminated by calling exit with status '1'
[Tue Aug 28 08:59:10 2012] [warn] FastCGI: (dynamic) server "/var/www/s3gw.fcgi" 
has failed to remain running for 30 seconds given 3 attempts, its restart 
interval has been backed off to 600 seconds
[Tue Aug 28 08:59:10 2012] [warn] FastCGI: server "/usr/local/bin/radosgw" has 
failed to remain running for 30 seconds given 3 attempts, its restart interval 
has been backed off to 600 seconds
[Tue Aug 28 09:04:10 2012] [warn] FastCGI: (dynamic) server "/var/www/s3gw.fcgi" 
has failed to remain running for 30 seconds given 3 attempts, its restart 
interval has been backed off to 600 seconds
[Tue Aug 28 09:04:10 2012] [warn] FastCGI: server "/usr/local/bin/radosgw" has 
failed to remain running for 30 seconds given 3 attempts, its restart interval 
has been backed off to 600 seconds
[Tue Aug 28 09:09:02 2012] [warn] FastCGI: (dynamic) server "/var/www/s3gw.fcgi" 
has failed to remain running for 30 seconds given 3 attempts, its restart 
interval has been backed off to 600 seconds
[Tue Aug 28 09:09:02 2012] [warn] FastCGI: server "/usr/local/bin/radosgw" has 
failed to remain running for 30 seconds given 3 attempts, its restart interval 
has been backed off to 600 seconds
[Tue Aug 28 09:09:02 2012] [warn] FastCGI: server "/usr/local/bin/radosgw" (uid 
33, gid 33) restarted (pid 6504)
radosgw: must specify 'rgw socket path' to run as a daemon
[Tue Aug 28 09:09:02 2012] [warn] FastCGI: server "/usr/local/bin/radosgw" (pid 
6504) terminated by calling exit with status '1'
[Tue Aug 28 09:09:02 2012] [warn] FastCGI: (dynamic) server "/var/www/s3gw.fcgi" 
has failed to remain running for 30 seconds given 3 attempts, its restart 
interval has been backed off to 600 seconds
[Tue Aug 28 09:09:02 2012] [warn] FastCGI: server "/usr/local/bin/radosgw" has 
failed to remain running for 30 seconds given 3 attempts, its restart interval 
has been backed off to 600 seconds
[Tue Aug 28 09:09:10 2012] [warn] FastCGI: (dynamic) server "/var/www/s3gw.fcgi" 
has failed to remain running for 30 seconds given 3 attempts, its restart 
interval has been backed off to 600 seconds
[Tue Aug 28 09:09:10 2012] [warn] FastCGI: (dynamic) server "/var/www/s3gw.fcgi" 
(uid 0, gid 0) restarted (pid 6510)
[Tue Aug 28 09:09:10 2012] [warn] FastCGI: server "/usr/local/bin/radosgw" has 
failed to remain running for 30 seconds given 3 attempts, its restart interval 
has been backed off to 600 seconds
radosgw: must specify 'rgw socket path' to run as a daemon
[Tue Aug 28 09:09:11 2012] [warn] FastCGI: (dynamic) server "/var/www/s3gw.fcgi" 
(pid 6510) terminated by calling exit with status '1'
[Tue Aug 28 09:09:11 2012] [warn] FastCGI: (dynamic) server "/var/www/s3gw.fcgi" 
has failed to remain running for 30 seconds given 3 attempts, its restart 
interval has been backed off to 600 seconds
[Tue Aug 28 09:09:11 2012] [warn] FastCGI: server "/usr/local/bin/radosgw" has 
failed to remain running for 30 seconds given 3 attempts, its restart interval 
has been backed off to 600 seconds
[Tue Aug 28 09:14:11 2012] [warn] FastCGI: (dynamic) server "/var/www/s3gw.fcgi" 
has failed to remain running for 30 seconds given 3 attempts, its restart 
interval has been backed off to 600 seconds
[Tue Aug 28 09:14:11 2012] [warn] FastCGI: server "/usr/local/bin/radosgw" has 

failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds

Thanks,
Ramu.

#3 lore raw
Quoted 4 lines · ramu eppa

The apache2 error log is,

radosgw: must specify 'rgw socket path' to run as a daemon

[Tue Aug 28 08:59:10 2012] [warn] FastCGI: (dynamic) server "/var/www/s3gw.fcgi" 

As the error log says, you need to specify 'rgw socket path' in your ceph.conf file. See the man page for an example:

http://ceph.com/docs/master/man/8/radosgw/

Something like this should work:

rgw socket path = /tmp/radosgw.sock

And in your Apache httpd.conf:

FastCgiExternalServer /var/www/s3gw.fcgi -socket /tmp/radosgw.sock

author
#4 lore raw

Hi,

After i configured ,and start the apache2,am getting
following error,

* Starting web server apache2

Syntax error on line 1 of /etc/apache2/httpd.conf Invalid command 'FastCgiExternalServer', perhaps misspelled or defined by a module not included in the server configuration Action 'start' failed.
The Apache error log may have more information.

[fail]

Thanks,
Ramu.

author
#5 lore raw
In reply to ramu

Hi,

Now am getting following error while running the s3 -u create beta,
ERROR: XmlParseFailure

Thanks,
Ramu.

#6 lore raw
Quoted 2 lines · ramu eppa

Now am getting following error while running the s3 -u create beta,
ERROR: XmlParseFailure

Anything in the error log from Apache?

author
#7 lore raw

Hi,

After rebooting my system,I restarted the Apache2 but it's not restarting,
service apache2 restart (or)/etc/init.d/apache2 restart

Syntax error on line 1 of /etc/apache2/sites-enabled/rgw.conf:
FastCgiExternalServer: redefinition of previously defined class "/var/www/s3gw.fcgi"
Action 'configtest' failed.
The Apache error log may have more information.
...fail!

Thanks,
Ramu.

author
#8 lore raw

Hi,

After starting apache2 ,The s3 -u list command working properly,but s3 -u
create mytest was not working it is showing error is, ERROR:XMLParseFailure
And error.log is,

[Wed Aug 29 16:34:53 2012] [notice] FastCGI: process manager initialized (pid 
5531)
[Wed Aug 29 16:34:53 2012] [notice] Apache/2.2.22 (Ubuntu) 
mod_fastcgi/mod_fastcgi-SNAP-0910052141 Phusion_Passenger/2.2.11 configured -- 
resuming normal operations
[Wed Aug 29 16:34:59 2012] [notice] Graceful restart requested, doing restart
[Wed Aug 29 16:34:59 2012] [alert] FastCGI: read() from pipe failed (0)
[Wed Aug 29 16:34:59 2012] [alert] FastCGI: the PM is shutting down, Apache 
seems to have disappeared - bye
apache2: Could not reliably determine the server's fully qualified domain name, 
using 127.0.1.1 for ServerName
[Wed Aug 29 16:34:59 2012] [notice] FastCGI: process manager initialized (pid 
5699)
[Wed Aug 29 16:34:59 2012] [notice] Apache/2.2.22 (Ubuntu) 
mod_fastcgi/mod_fastcgi-SNAP-0910052141 Phusion_Passenger/2.2.11 configured -- 
resuming normal operations
[Wed Aug 29 16:35:07 2012] [notice] caught SIGTERM, shutting down
[Wed Aug 29 16:35:08 2012] [notice] FastCGI: process manager initialized (pid 
5808)
PHP Deprecated:  Comments starting with '#' are deprecated in 
/etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0
[Wed Aug 29 16:35:10 2012] [notice] Apache/2.2.22 (Ubuntu) 
mod_fastcgi/mod_fastcgi-SNAP-0910052141 Phusion_Passenger/2.2.11 PHP/5.3.10-
1ubuntu3.2 with Suhosin-Patch configured -- resuming normal operations
[Wed Aug 29 16:36:43 2012] [notice] caught SIGTERM, shutting down
[Wed Aug 29 16:36:44 2012] [notice] FastCGI: process manager initialized (pid 
6000)
PHP Deprecated:  Comments starting with '#' are deprecated in 
/etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0
[Wed Aug 29 16:36:44 2012] [notice] Apache/2.2.22 (Ubuntu) 

mod_fastcgi/mod_fastcgi-SNAP-0910052141 Phusion_Passenger/2.2.11 PHP/5.3.10- 1ubuntu3.2 with Suhosin-Patch configured -- resuming normal operations Thanks,
Ramu.

#9 lore raw
Quoted 4 lines · ramu eppa

After starting apache2 ,The s3 -u list command working properly,but s3 -u
create mytest was not working it is showing error is, ERROR:XMLParseFailure
And error.log is,

How about access.log? Is the script exiting with 200 or something else?

author
#10 lore raw

Hi,

The access.log is,

192.168.1.14 - - [31/Aug/2012:09:41:32 +0530] "GET / HTTP/1.1" 200 461 "-" "Mozilla/4.0 (Compatible; s3; libs3 0.9; Linux x86_64)" 192.168.1.14 - - [31/Aug/2012:09:41:43 +0530] "PUT /mypol/ HTTP/1.1" 405 540 "-" "Mozilla/4.0 (Compatible; s3; libs3 0.9; Linux x86_64)"

Thanks,
Ramu.