I see python 2.6 So I assume this is a RHEL6 distro. I've not been able to use mod-fcgid in any setup on RHEL6 variants. I'd reccomend you use the mod-fastcgi packages from http://gitbuilder.ceph.com/.
We have some example configs (puppet templates) you can refrence /etc/httpd/conf.d/fastcgi.conf https://github.com/stackforge/fuel-library/blob/master/deployment/puppet/ceph/templates/fastcgi.conf.erb#L19-21 /etc/httpd/conf.d/rgw.conf https://github.com/stackforge/fuel-library/blob/master/deployment/puppet/ceph/templates/rgw.conf.erb /var/www/s3gw.fcgi https://github.com/stackforge/fuel-library/blob/master/deployment/puppet/ceph/templates/s3gw.fcgi.erb On Tue, Dec 17, 2013 at 7:31 AM, Yehuda Sadeh <yeh...@inktank.com> wrote: > On Tue, Dec 17, 2013 at 6:27 AM, raj kumar <rajkumar600...@gmail.com> > wrote: > > Hi, > > > > I followed inst mentioned in ceph radosgw setup. > > > > I used swift python script to access it. I'm getting error like, > > > > Traceback (most recent call last): > > File "a.py", line 8, in <module> > > authurl='http://192.168.211.70/auth', > > File "/usr/lib/python2.6/site-packages/cloudfiles/__init__.py", line > 98, > > in get_connection > > return Connection(*args, **kwargs) > > File "/usr/lib/python2.6/site-packages/cloudfiles/connection.py", line > 86, > > in __init__ > > self._authenticate() > > File "/usr/lib/python2.6/site-packages/cloudfiles/connection.py", line > 92, > > in _authenticate > > (url, self.cdn_url, self.token) = self.auth.authenticate() > > File "/usr/lib/python2.6/site-packages/cloudfiles/authentication.py", > line > > 68, in authenticate > > response = conn.getresponse() > > File "/usr/lib64/python2.6/httplib.py", line 990, in getresponse > > response.begin() > > File "/usr/lib64/python2.6/httplib.py", line 391, in begin > > version, status, reason = self._read_status() > > File "/usr/lib64/python2.6/httplib.py", line 349, in _read_status > > line = self.fp.readline() > > File "/usr/lib64/python2.6/socket.py", line 433, in readline > > data = recv(1) > > socket.timeout: timed out > > > > > > > > python script: > > #---------------------------- > > import cloudfiles > > username = 'userceph1:swift' > > api_key = 'VJpKiW4XVjC534czbbgexOS6\/TEpso6p306ML9KZ' > > > > conn = cloudfiles.get_connection( > > username=username, > > api_key=api_key, > > authurl='http://192.168.211.70/auth', > > ) > > > > container = conn.create_container('my-new-container') > > > > obj = container.create_object('hello.txt') > > obj.content_type = 'text/plain' > > obj.load_from_filename('./my_hello.txt') > > > > for container in conn.get_all_containers(): > > print container.name > > > > #---------------------------------------------- > > > > > > apache error log show, > > > > [error] [client 192.168.211.70] FastCGI: comm with (dynamic) server > > "/var/www/s3gw.fcgi" aborted: (first read) idle timeout (20 sec) > > [error] [client 192.168.211.70] FastCGI: incomplete headers (0 bytes) > > received from server "/var/www/s3gw.fcgi" > > > > How do i proceed trouble shooting it. I have a running ceph. > > > > > > Are you using the appropriate fastcgi module? If not, can you set 'rgw > print continue = false' in your ceph.conf and see if the problem goes > away.. > radosgw log? apache access log? > > Yehuda > _______________________________________________ > ceph-users mailing list > ceph-users@lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > -- If google has done it, Google did it right!
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com