Comment 24 for bug 1017978

Revision history for this message
James Page (james-page) wrote : Re: [Bug 1017978] Re: [MIR] libfcgi, ceph (radosgw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 28/08/12 23:44, Yehuda Sadeh wrote:
> Note that while libapache2-mod-fastcgi is currently the better way
> to go, there's also libapache2-mod-fcgid, or nginx/lighttpd with
> fastcgi.

Thanks for the pointers Yehuda; I had a go with libapache2-mod-fcgid
but was not able to get it working using the instructions here:

http://ceph.com/wiki/RADOS_Gateway#Using_fcgid_module

I hacked around with the options a bit but with no success; I kept
getting:

[Wed Aug 29 09:11:25 2012] [notice] Apache/2.2.22 (Ubuntu)
mod_fcgid/2.3.7 configured -- resuming normal operations
radosgw: must specify 'rgw socket path' to run as a daemon
[Wed Aug 29 09:11:33 2012] [warn] [client 192.168.1.50]
(104)Connection reset by peer: mod_fcgid: error reading data from
FastCGI server
[Wed Aug 29 09:11:33 2012] [error] [client 192.168.1.50] Premature end
of script headers: s3gw.fcgi

When "rgw socket path" was specified in /etc/ceph/ceph.conf and

[Wed Aug 29 09:55:48 2012] [notice] Apache/2.2.22 (Ubuntu)
mod_fcgid/2.3.7 configured -- resuming normal operations
radosgw daemon started with pid 1816
[Wed Aug 29 09:56:03 2012] [warn] [client 192.168.1.50]
(104)Connection reset by peer: mod_fcgid: error reading data from
FastCGI server
[Wed Aug 29 09:56:03 2012] [error] [client 192.168.1.50] Premature end
of script headers: s3gw.fcgi

When I dropped this option and passed it directly as a parameter in
the s3gw.fcgi wrapper using the --rgw-socket-path option.

- --
James Page
Ubuntu Core Developer
Debian Maintainer
<email address hidden>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBCAAGBQJQPduPAAoJEL/srsug59jDVRoQAI48c5Il6Clk7NIxVAh1O22G
WMuAzR6+mLaYq7jwh1lwRKlbCSnEHPTewgEbKMX8vjejzA8YvkvUYne+9GqFYemw
DUQDyVHOUuaItwQBA59XJpRBiY4xUu2XOffwcDk73tKjBUb28cxwWM3S14vlnQ3m
I5aK0TDLgEFF4g1L5tAjtYc2JOPx/0P2Z2FH5IGZBShegtOK0Dmbh3LQ//ui+7qm
1H68NqIvSrXoYDduYezTBJ3Mq/Eel8E4xyw6gnmjPbX9IdbX2k4Jam1HwcxG+Ed8
HukyCAiw7ZjxoATXWaidKBksCVqlIagLic560c3fvgVK/qcgghzicxKo3jSSlVxn
hTAAST6wUkIPe/JYI/2zrS4Eo9Exc2bqGJ/xyZSTqm5nfYZ0kgmW80T0BqE8fdV7
80ayU0F4ZTzM/n2+1vVIJ2TiYwoV4t4/33HNT4BsHQVhTuJhTjUT04zTdh8oIUL2
iXNxsAhUjM39c0f2rVp59etSQho8pu9MiEPyMkJ+50a/fQ/4//UHOSw7M1jJLff9
IYtla7Ihmqqw5VzIMN/eBCX+I60wjT0+lPdHZ3vLcEWoIaGVP3i18C06IR5AYMJm
0inKX4BbaFj+5kzVu2qGkGPbpY+3ogHrWFD8Y/l/wF0ovZmQ7cE0JE+1he0PAuzz
XF0qHoexMEYi2gEA0+//
=V68W
-----END PGP SIGNATURE-----