Hello, I have a working mongrel cluster and want to use Lighty as the frontend webserver. I want ligthttpd to deliver the static content. So I did gem install sendfile --remote Everything installed. But if I run the tests like gem check sendfile --test --debug i get the following error message: Exception `Errno::ENOSYS'' at ./test/test_sendfile.rb:75 - Function not implemented - sendfile If I use lighttpd with mongrel and sendfile I do have similary error messages in my mongrel log. Does anybody know what is wrong? Cheers, Feurio My configuration is: Debian Sarge Rails 1.1.2 mongrel (0.3.13.3) mongrel_cluster (0.2.0) sendfile (0.9.2) lighttpd-1.4.11 -- Posted via http://www.ruby-forum.com/.
On Mon, 2006-07-17 at 18:16 +0200, Feurio wrote:> Hello, > > Exception `Errno::ENOSYS'' at ./test/test_sendfile.rb:75 - Function not > implemented - sendfile >Means that your OS don''t have it, which I don''t quite get since you''re running Linux.> My configuration is: > > Debian Sarge^^^ Nobody except debian people knows what this means. Which version of Linux is it? Can you do uname -a and send me that? -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need Mongrel support?
the uname -a output is Linux v330.v330.vanager.de 2.4.20-021stab028.19.777-enterprise #1 SMP Wed Oct 19 13:05:01 MSD 2005 i686 GNU/Linux I don?t understand the missing filesend support, too. -- Posted via http://www.ruby-forum.com/.
Feurio wrote:> the uname -a output is > > Linux v330.v330.vanager.de 2.4.20-021stab028.19.777-enterprise #1 SMP > Wed Oct 19 13:05:01 MSD 2005 i686 GNU/Linux > > I don?t understand the missing filesend support, too....maybe it is because this is a VPS. Could this be the reason? -- Posted via http://www.ruby-forum.com/.
Zed Shaw
2006-Jul-17 21:31 UTC
[Rails] Re: Rails+Mongrel+Lighthttpd: Ruby-Sendfile Problem
On Mon, 2006-07-17 at 21:09 +0200, Feurio wrote:> Feurio wrote: > > the uname -a output is > > > > Linux v330.v330.vanager.de 2.4.20-021stab028.19.777-enterprise #1 SMP > > Wed Oct 19 13:05:01 MSD 2005 i686 GNU/Linux > > > > I don?t understand the missing filesend support, too. > > ...maybe it is because this is a VPS. Could this be the reason? >No, unless debian went as far as to remove sendfile (wouldn''t surprise me really). I''ll have to confirm that sendfile is actually in the 2.4 kernel. -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need Mongrel support?
Guest
2006-Jul-18 09:43 UTC
[Rails] Re: Re: Rails+Mongrel+Lighthttpd: Ruby-Sendfile Problem
Zed Shaw wrote:> On Mon, 2006-07-17 at 21:09 +0200, Feurio wrote: >> Feurio wrote: >> > the uname -a output is >> > >> > Linux v330.v330.vanager.de 2.4.20-021stab028.19.777-enterprise #1 SMP >> > Wed Oct 19 13:05:01 MSD 2005 i686 GNU/Linux >> > >> > I don?t understand the missing filesend support, too. >> >> ...maybe it is because this is a VPS. Could this be the reason? >> > > No, unless debian went as far as to remove sendfile (wouldn''t surprise > me really). I''ll have to confirm that sendfile is actually in the 2.4 > kernel.According to this article sendfile is definetly in the linux 2.4.x kernel: http://linux.omnipotent.net/article.php?article_id=11706 Until now I couldn?t specific information about debian sarge & kernel & sendfile... Is this functionality something you could turn on and off? Maybe it is just disabled with my system? Feurio> > > -- > Zed A. Shaw > http://www.zedshaw.com/ > http://mongrel.rubyforge.org/ > http://www.railsmachine.com/ -- Need Mongrel support?-- Posted via http://www.ruby-forum.com/.
Feurio wrote:> My configuration is: > > Debian Sarge > Rails 1.1.2 > mongrel (0.3.13.3) > mongrel_cluster (0.2.0) > sendfile (0.9.2) > lighttpd-1.4.11looks like there could be a problem with lighttpd and debian 3.1 aka sarge. i looked for lighttpd and in their project-management "trac" you can find this: http://trac.lighttpd.net/trac/ticket/328 seems like your problem could be related to this one, as they keep getting errors like: "sendfile failed: Function not implemented" why don''t you try one of their workarounds or another version of lighttpd oder kernel!? regards none -- Posted via http://www.ruby-forum.com/.