Re: Problem with radosgw

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

 



Hi,

first checks you can do:
- Check the RADOSGW process is running
- Check the output of ceph auth list for typos in permissions for the RADOSGW user
- Check you have the keyring file for the user you created on the RADOSGW node
- Check the output of ceph df to verify the RADOSGW was able to create its pools
- Check the execute permission on the FCGI script file
- Check the content of your ceph.conf file on the RADOSGW node and check for typos.

Feel free to post the result of those checks (ceph.conf file, ls -l, ceph df output, ps -ef | grep radosgw output) remove any key

JC

On Feb 16, 2016, at 08:08, Alexandr Porunov <alexandr.porunov@xxxxxxxxx> wrote:

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

When I try:

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:

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

_______________________________________________
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]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux