From olio-user-return-370-apmail-incubator-olio-user-archive=incubator.apache.org@incubator.apache.org Mon May 24 21:48:26 2010 Return-Path: Delivered-To: apmail-incubator-olio-user-archive@minotaur.apache.org Received: (qmail 71682 invoked from network); 24 May 2010 21:48:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 May 2010 21:48:26 -0000 Received: (qmail 13899 invoked by uid 500); 24 May 2010 21:48:26 -0000 Delivered-To: apmail-incubator-olio-user-archive@incubator.apache.org Received: (qmail 13887 invoked by uid 500); 24 May 2010 21:48:26 -0000 Mailing-List: contact olio-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: olio-user@incubator.apache.org Delivered-To: mailing list olio-user@incubator.apache.org Received: (qmail 13879 invoked by uid 99); 24 May 2010 21:48:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 May 2010 21:48:26 +0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brgsousa@gmail.com designates 209.85.212.175 as permitted sender) Received: from [209.85.212.175] (HELO mail-px0-f175.google.com) (209.85.212.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 May 2010 21:48:21 +0000 Received: by pxi14 with SMTP id 14so1489686pxi.6 for ; Mon, 24 May 2010 14:48:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=lM1DuImM3yzRU7kZVxRpnY0u4ptdlMmJVT9Cbh3b8cQ=; b=GQ+XPPP6I1tn4sTs8UfP6ZPSnxd7fZP4DR54/5iK1Qp+OndKdo6btpsQExntNy8s2h c7Lvx6wL7Uw0yX/FcZy55dsCKwE+95LUk17Z0WBtxGkIg4bmZPq3p/00WvjUI0pRQKm7 gqe+1mdsLPxCiSE1S3OPqjoQ6FxIbGxeeW3MU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=qfKvoQ0pl7c9BA8+dYJAVptWrgLGwywQNE/aAbF0YJLSOLKlg0HZEQ17q0e1SgY5sK oKzDo5x4fDvIoFVyYyPOug4uymDRXyASxnbYFiakRfDMTjzzE16BoXaHpL+hs7NbpKjU Fc8dlWfX7rmx61BZgGK+RyuCWUlTk4aulIVGI= Received: by 10.114.187.17 with SMTP id k17mr5407289waf.31.1274737681174; Mon, 24 May 2010 14:48:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.115.47.12 with HTTP; Mon, 24 May 2010 14:47:41 -0700 (PDT) In-Reply-To: References: From: =?ISO-8859-1?Q?Bruno_Guimar=E3es_Sousa?= Date: Mon, 24 May 2010 18:47:41 -0300 Message-ID: Subject: Re: Olio (rails) + FCGI To: olio-user@incubator.apache.org Content-Type: multipart/alternative; boundary=0016e64b1de8ab130704875dfe0a --0016e64b1de8ab130704875dfe0a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Nice! That really worked with Lighttpd. Isn't there a solution for more web servers with the same problem? Tried to set this line: ENV['"INLINEDIR'] ||=3D '/export/faban/olio_rails/olioapp/tmp' into *environment.rb* and *environments/production.rb* files but it didn't work. regards, -- Bruno Guimar=E3es Sousa www.ifba.edu.br PONTONET - DGTI - IFBA Ci=EAncia da Computa=E7=E3o UFBA Registered Linux user #465914 On Sat, May 22, 2010 at 3:13 PM, Amanda Waite wrote: > Hi Bruno, > > I've done lots of testing with Olio Rails with Lighttpd and FCGI. It work= s > well once you have everything setup. The error messages you've posted > suggest that the fastcgi backends aren't running or that they are crashin= g > on startup. Are you starting the backends manually or is lighttpd startin= g > them for you? Is there anything in the Olio application log files? > > One of the biggest issues with the backends is setting up image_science > ruby_inline to work correctly, I blogged about this here: > http://blogs.sun.com/mandy/category/Lighttpd > > Amanda > > 2010/5/22 Bruno Guimar=E3es Sousa > > Hi ! >> Did anyone get olio (rails) working with FCGI? >> >> Trying to deploy Olio with lighttpd + ruby 1.8.7 + ruby-fcgi and had no >> success yet. >> dispatch.fcgi file is correctly placed and has execution permission. >> >> I'm getting *500 - Internal Server Error* >> >> LOGS: >> 2010-05-22 11:32:38: (mod_fastcgi.c.1734) connect failed: Connection >> refused on unix:/tmp/ruby-rails.socket-4 >> 2010-05-22 11:32:38: (mod_fastcgi.c.3037) backend died; we'll disable it >> for 1 seconds and send the request to another backend instead: reconnect= s: 0 >> load: 1 >> 2010-05-22 11:32:39: (mod_fastcgi.c.2582) unexpected end-of-file (perhap= s >> the fastcgi process died): pid: 29184 socket: unix:/tmp/ruby-rails.socke= t-4 >> 2010-05-22 11:32:39: (mod_fastcgi.c.3367) response not received, request >> sent: 938 on socket: unix:/tmp/ruby-rails.socket-4 for /dispatch.fcgi?, >> closing connection >> >> >> The same configuration with another rails app, it DID work. >> >> -- >> Bruno Guimar=E3es Sousa >> www.ifba.edu.br >> PONTONET - DGTI - IFBA >> Ci=EAncia da Computa=E7=E3o UFBA >> Registered Linux user #465914 >> > > --0016e64b1de8ab130704875dfe0a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Nice! That really worked with Lighttpd.
Isn't there a solution for m= ore web servers with the same problem?
Tried to set this line:
ENV[&#= 39;"INLINEDIR'] ||=3D '/export/faban/olio_rails/olioapp/tmp= 9;
into environment.rb and environments/production.rb files but = it didn't work.

regards,
--
Bruno Guimar=E3e= s Sousa
www.ifba.edu.br
PONTON= ET - DGTI - IFBA
Ci=EAncia da Computa=E7=E3o UFBA
Registered Linux user #465914


On Sat, May 22, 2010 at 3:13 PM, Amanda = Waite <= amandarwaite@googlemail.com> wrote:
Hi Bruno,

I've done lots of testing with Olio Rails with Lighttp= d and FCGI. It works well once you have everything setup. The error message= s you've posted suggest that the fastcgi backends aren't running or= that they are crashing on startup. Are you starting the backends manually = or is lighttpd starting them for you? Is there anything in the Olio applica= tion log files?

One of the biggest issues with the backends is setting up image_science= ruby_inline to work correctly, I blogged about this here: http://blogs.sun= .com/mandy/category/Lighttpd

Amanda

2010/5/22 Bruno Guimar=E3es So= usa <brgsousa@gmail.com>
<= br>
Hi !
Did anyone get olio (rails) working with FCGI?

Trying to dep= loy Olio with lighttpd + ruby 1.8.7 + ruby-fcgi and had no success yet.
= dispatch.fcgi file is correctly placed and has execution permission.

I'm getting 500 - Internal Server Error

LOGS:
2010= -05-22 11:32:38: (mod_fastcgi.c.1734) connect failed: Connection refused on= unix:/tmp/ruby-rails.socket-4
2010-05-22 11:32:38: (mod_fastcgi.c.3037)= backend died; we'll disable it for 1 seconds and send the request to a= nother backend instead: reconnects: 0 load: 1
2010-05-22 11:32:39: (mod_fastcgi.c.2582) unexpected end-of-file (perhaps t= he fastcgi process died): pid: 29184 socket: unix:/tmp/ruby-rails.socket-4<= br>2010-05-22 11:32:39: (mod_fastcgi.c.3367) response not received, request= sent: 938 on socket: unix:/tmp/ruby-rails.socket-4 for /dispatch.fcgi?, cl= osing connection


The same configuration with another rails app, it DID work.

--
Bruno Guimar=E3es Sousa
www.ifba.edu.br
PON= TONET - DGTI - IFBA
Ci=EAncia da Computa=E7=E3o UFBA
Registered Linux user #465914

<= /div>

--0016e64b1de8ab130704875dfe0a--