Problem with radosgw

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

 



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

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 admin@xxxxxxxxxxx
  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 ceph-radosgw@radosgw.gateway.service

httpd and ceph-radosgw@radosgw.gateway service is: active (running)

Please help me to figure out how to repair it.
_______________________________________________
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]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux