I have problem with radosgw. I have pass this tutorial but without success:
http://docs.ceph.com/docs/hammer/radosgw/config/

When I try:
*curl http://porunov.com <http://porunov.com>*

I always get the same page:
...
<title>500 Internal Server Error</title>
...

*/var/log/httpd/error.log shows:*
...
[Tue Feb 16 17:32:37.413558 2016] [:error] [pid 6377] (13)Permission
denied: [client 192.168.56.80:41121] FastCGI: failed to connect to server
"/var/www/html/s3gw.fcgi": connect() failed
[Tue Feb 16 17:32:37.413596 2016] [:error] [pid 6377] [client
192.168.56.80:41121] FastCGI: incomplete headers (0 bytes) recived from
server "/var/www/html/s3gw.fcgi"

*/var/log/httpd/access.log shows:*
...
192.168.56.80 - - [16/Feb/2016:17:32:37 + 0200] "GET / HTTP/1.1" 500 530
"-" "curl/7.29.0"

*I have 6 nodes:*
node1 (ip: 192.168.56.101) - mon, osd
node2 (ip: 192.168.56.102) - mon, osd
node3 (ip: 192.168.56.103) - mon, osd
admin-node (ip: 192.168.56.100)
ns1 (ip: 192.168.56.50) - dns server (bind 9)
ceph-rgw (ip: 192.168.56.80) - Ceph Gateway Node

*Dns server have this zone file:*
$TTL 86400
@        IN     SOA     porunov.com. admin.porunov.com. (
                        2016021000
                        43200
                        3600
                        3600000
                        2592000 )
;
@        IN NS ns1.porunov.com.
@        IN A 192.168.56.80
* IN CNAME @

*/var/www/html/s3gw.fcgi contains:*
#!/bin/sh
exec /usr/bin/radosgw -c /etc/ceph/ceph.conf -n client.radosgw.gateway

*/etc/httpd/conf.d/rgw.conf contains:*
FastCgiExternalServer /var/www/html/s3gw.fcgi -socket
/var/run/ceph/ceph.radosgw.gateway.fastcgi.sock
<VirtualHost *:80>
  ServerName porunov.com
  ServerAlias *.porunov.com
  ServerAdmin [email protected]
  DocumentRoot /var/www/html
  RewriteEngine On
  RewriteRule ^/(.*) /s3gw.fcgi?%{QUERY_STRING}
[E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
  <IfModule mod_fastcgi.c>
    <Directory /var/www/html>
      Options +ExecCGI
      AllowOverride All
      SetHandler fastcgi-script
      Order allow,deny
      Allow from all
      AuthBasicAuthoritative Off
    </Directory>
  </IfModule>
  AllowEncodedSlashes On
  ErrorLog /var/log/httpd/error.log
  CustomLog /var/log/httpd/access.log combined
  ServerSignature Off
</VirtualHost>

I use CentOS 7 on all nodes. Also I can not start radosgw with this command:
*systemctl start ceph-radosgw*
because it shows:
*Failed to start ceph-radosgw.service: Unit ceph-radosgw.service failed to
load: No such file or directory.*

But this command seems to work:
*systemctl start [email protected]*

httpd and [email protected] service is: active (running)

Please help me to figure out how to repair it.
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to