From timocratic at gmail.com Fri Jul 6 13:00:43 2007 From: timocratic at gmail.com (Tim Connor) Date: Fri, 6 Jul 2007 17:00:43 +0000 (UTC) Subject: FastCGI without ScriptAlias References: <45D8818C.5040204@tipogral.hu> Message-ID: Nagy Bence writes: > > Hi, > > I made some experiments with the sample blog application, my index.fcgi > file contains the following: > > require 'camping/fastcgi' > Camping::Models::Base.establish_connection( > :adapter => 'sqlite3', > :database => 'database/camping.db' > ) > Camping::FastCGI.serve('blog.rb') > > Without ScriptAlias the application works fine, but only if I give the > url with "index.fcgi/" at the end > (http://localhost/~gimb/camping/index.fcgi/). Loading > http://localhost/~gimb/camping/ or > http://localhost/~gimb/camping/index.fcgi (no slash at the end) gives an > error: > > ./lib/camping/fastcgi.rb:180:in `camp_do': undefined local variable or > method `exc' for # (NameError) > from ./lib/camping/fastcgi.rb:79:in `start' > from /usr/lib/ruby/1.8/fcgi.rb:117:in `session' > from /usr/lib/ruby/1.8/fcgi.rb:104:in `each_request' > from /usr/lib/ruby/1.8/fcgi.rb:36:in `each' > from ./lib/camping/fastcgi.rb:78:in `start' > from ./lib/camping/fastcgi.rb:90:in `start' > from ./lib/camping/fastcgi.rb:123:in `serve' > from /home/gimb/public_html/camping/index.fcgi:8 > > With ScriptAlias the program run correctly on my computer, but my > hosting provider gives access only for the .htaccess files, so there I > can not use this directive. Is any other way to run camping programs > only with or maybe without .htaccess tricks? > > Greetings, Bence > Actually Bence, that error is only partially related to the lack of ScriptAlias. The problem is that without the ScriptAlias, you get an exception, and that hits this bug in the exception handling code (http://code.whytheluckystiff.net/camping/changeset/181), that is fixed in svn. You can fix that bug, and then you'll be able to move onto whatever the exception is. You are probably having the same problems as me, though, so go ahead and read my blog entry on it: http://www.timocracy.com/articles/2007/07/06/ getting-camping-working-with-fcgi-on-a-shared-host-dreamhost -part-1 (I had to break the link into three parts due to the annoying gmane interface 80 char limit - go ahead and paste them together) From _ at whats-your.name Sat Jul 7 01:30:39 2007 From: _ at whats-your.name (carmen) Date: Sat, 7 Jul 2007 01:30:39 -0400 Subject: [patch] no crumbs Message-ID: <20070707053038.GB11972@replic.net> in the spirit of minimal-impact 'leave no trace' principles, this patch adds a missing feature, the ability to remove cookies. usage: @cookies.redbean = nil a side note, the trunk seems to be broken when using Markaby. i've tested this out using ngrep and firefox and opera w/ controllers that just return strings in any case.. -------------- next part -------------- Index: lib/camping.rb =================================================================== --- lib/camping.rb (revision 194) +++ lib/camping.rb (working copy) @@ -25,7 +25,7 @@ "post" and e.CONTENT_TYPE == "application/x-www-form-urlencoded" q.u C.qsp(@in.read)end;@cookies, at input=@k.dup,q.dup end;def service*a @body=send(@method,*a)if respond_to?@method;@headers["Set-Cookie"]=@cookies.map{ -|k,v|"#{k}=#{C.escape(v)}; path=#{self/'/'}"if v!=@k[k]}-[nil];self end;def to_s +|k,v|"#{k}=#{C.escape(v)};#{"max-age=0;"if !v}path=#{self/'/'}"if v!=@k[k]}-[nil];self end;def to_s a=[];@headers.map{|k,v|[*v].map{|x|a<<"#{k}: #{x}"}};"Status: #{@status}#{Z+a*Z+ Z*2+ at body}"end;end;X=module Controllers;@r=[];class< so i guess the parser changed or something.. -------------- next part -------------- Index: camping.rb =================================================================== --- camping.rb (revision 194) +++ camping.rb (working copy) @@ -7,7 +7,7 @@ c=self/c;c="//"+ at env.HTTP_HOST+c if c[/^\//];URI(c)end;def/p;p[/^\//]?@root+p : p end;def errors_for o;ul.errors{o.errors.each_full{|x|li x}}if o.errors.any?end end;module Base;include Helpers;attr_accessor:input,:cookies,:env,:headers,:body, -:status,:root;def method_missing*a,&b;a.shift if a[0]==:render;m=Mab.new {},self +:status,:root;def method_missing*a,&b;a.shift if a[0]==:render;m=Mab.new({},self) s=m.capture{send(*a,&b)};s=m.capture{send(:layout){s}} if /^_/!~a[0].to_s and m. respond_to?:layout;s end;def r s,b,h={};@status=s;@headers.merge!h;@body=b end def redirect*a;r 302,'','Location'=>URL(*a)end;Z="\r\n";def to_a;[@status, at body, From timocratic at gmail.com Sat Jul 7 16:49:07 2007 From: timocratic at gmail.com (Tim Connor) Date: Sat, 7 Jul 2007 13:49:07 -0700 Subject: logging errors Message-ID: <5906dd440707071349h497829a6p8c753d0846571a1@mail.gmail.com> Looking over the ServerError code there is no built in way to tell camping to log its errors is there? I suppose the answer it to instantiate a logger, inherit ServerError, call super and pass the return into the logger? If we using fcgi on production, does the ServerError get called, or only the server_error in fcgi.rb? Mainly I'm wondering if there is just one place I can handle things (my theoretical overloaded ServerError method), or if I need to get in there and muck with e code of fastcgi.rb also. BTW, I've got things (camping fcgi on dreamhost with mysql) mostly running, aside this last bit, and I'll blog some of the tricky bits, and see if there is anything on fcgi that should be updated on the wiki after I push it live. Thanks, Tim From ernest.prabhakar at gmail.com Wed Jul 11 17:26:12 2007 From: ernest.prabhakar at gmail.com (Ernest Prabhakar) Date: Wed, 11 Jul 2007 14:26:12 -0700 Subject: Extending Markaby for SVG Message-ID: Hi all, I love the elegance of Markaby for HTML generation. I'd like to do something similar for SVG, e.g.: svg11 do title "Slide Title" rect({:x=>2,:y=>2,:width=>508,:height=>318,:fill=>"aqua"}) g({:style=>"fill:blue; stroke:black", :transform=>"translate(17,-38)"}) do circle({:cx=>70, :cy=>100, :r=>50}) rect (:x =>"150", :y=>"50", :rx=>"20", :ry=>"20", :width=>"135", :height=>"100") line(:x1=>325, :y1=>150, :x2=>375, :y2=>50) polyline(:points=>"50, 250 75, 350 100, 250 125, 350 150, 250 175, 350") polygon(:points=>"250, 250, 297, 284, 279, 340, 220, 340, 202, 284") ellipse({:cx=>400, :cy=>300, :rx=>72, :ry=>50}) end end I've hacked a custom subclass of Builder (SVGBuilder) that can handle this, but that's probably the wrong approach -- since most users will want to embed SVG inside HTML. Any Markaby experts here who can help me figure out the best way to integrate SVG support into Markaby? Thanks, -- Dr. Ernie http://ihack.us/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20070711/cb08ecb5/attachment.html From timur.mehrvarz at web.de Wed Jul 11 17:31:17 2007 From: timur.mehrvarz at web.de (Timur Mehrvarz) Date: Wed, 11 Jul 2007 23:31:17 +0200 Subject: Extending Markaby for SVG In-Reply-To: References: Message-ID: <5CD77C05-A50F-4EC3-B4B9-F316E2DF0BE5@web.de> Hello. I'm interested in this as well. Timur On 11.07.2007, at 23:26, Ernest Prabhakar wrote: > Hi all, > > I love the elegance of Markaby for HTML generation. I'd like to do > something similar for SVG, e.g.: > > svg11 do > title "Slide Title" > rect({:x=>2,:y=>2,:width=>508,:height=>318,:fill=>"aqua"}) > g({:style=>"fill:blue; stroke:black", :transform=>"translate > (17,-38)"}) do > circle({:cx=>70, :cy=>100, :r=>50}) > rect > (:x=>"150", :y=>"50", :rx=>"20", :ry=>"20", :width=>"135", :height=>"1 > 00") > line(:x1=>325, :y1=>150, :x2=>375, :y2=>50) > polyline(:points=>"50, 250 75, 350 100, 250 125, 350 150, 250 175, > 350") > polygon(:points=>"250, 250, 297, 284, 279, 340, 220, 340, 202, 284") > ellipse({:cx=>400, :cy=>300, :rx=>72, :ry=>50}) > end > end > > I've hacked a custom subclass of Builder (SVGBuilder) that can > handle this, but that's probably the wrong approach -- since most > users will want to embed SVG inside HTML. > > Any Markaby experts here who can help me figure out the best way to > integrate SVG support into Markaby? > > Thanks, > -- Dr. Ernie > http://ihack.us/ > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list From twoggle at gmail.com Wed Jul 11 18:34:04 2007 From: twoggle at gmail.com (Tim Fletcher) Date: Wed, 11 Jul 2007 23:34:04 +0100 Subject: Extending Markaby for SVG In-Reply-To: References: Message-ID: > I've hacked a custom subclass of Builder (SVGBuilder) that can handle this, > but that's probably the wrong approach -- since most users will want to > embed SVG inside HTML. > > Any Markaby experts here who can help me figure out the best way to > integrate SVG support into Markaby? My opinion would be to keep it seperate so that in can be used elsewhere, but provide a hook into Markaby. So something along the lines of this (completely untested): module Markaby class Builder def svg(options = {}, &block) concat SVGBuilder.new(&block) end end end The developer could either have to explicitly require the hook, or, if you make the assumption that Markaby is loaded before the SVG code then you can just test for it's presence i.e. if defined?(Markaby) and load it based on that. Hope that makes sense - getting late here :) From boss at topfunky.com Wed Jul 11 19:10:49 2007 From: boss at topfunky.com (Geoffrey Grosenbach) Date: Wed, 11 Jul 2007 16:10:49 -0700 Subject: Extending Markaby for SVG In-Reply-To: References: Message-ID: <15754f7e0707111610w34d04d89ic66e6d4bf7f599e8@mail.gmail.com> On 7/11/07, Tim Fletcher wrote: > > Any Markaby experts here who can help me figure out the best way to > > integrate SVG support into Markaby? I worked on a project started by Scott Barron to do something similar for CSS. I'm using SASS now, but here it is for reference: http://topfunky.net/svn/plugins/styleaby/ -- Geoffrey Grosenbach boss at topfunky.com ........................ Blog | http://nubyonrails.com Podcast | http://podcast.rubyonrails.com Screencast | http://peepcode.com From ernest.prabhakar at gmail.com Thu Jul 12 18:23:53 2007 From: ernest.prabhakar at gmail.com (Ernest Prabhakar) Date: Thu, 12 Jul 2007 15:23:53 -0700 Subject: Extending Markaby for SVG - done! In-Reply-To: References: Message-ID: <75E32C93-BFE4-4F5B-BF43-4340BF13A423@gmail.com> Hi Tim, On Jul 11, 2007, at 3:34 PM, Tim Fletcher wrote: > My opinion would be to keep it seperate so that in can be > usedelsewhere, but provide a hook into Markaby. So something along the > lines of this (completely untested): Thanks! That's exactly what I needed. The whole implementation is now at: http://pastie.caboo.se/78442 This uses an Markaby::SVG11 tagset, which is at: http://pastie.caboo.se/78441 The only ugly bit is that Markaby defines "text" as the output command, which conflicts with the SVG tag named "text." I remember _why saying he was going to rename that method to "out" or something. Is that still planned? To use it, simply make sure that builder_svg is loaded, and do something like: > html do > head {title "Testing HTML+SVG"} > body do > p "Below is a wonderful example of" > a "SVG", :href => "http://www.w3.org/2000/svg" > svg do > title "Slide Title" > rect({:x=>2,:y=>2,:width=>508,:height=>318,:fill=>"aqua"}) > end > end > end I have a test suite, if anyone is interested. I haven't done anything fancy yet, but it seems to all work. Is this something I should submit as a patch to Markaby itself? Best, -- Ernie P. From prannock at gmail.com Sun Jul 22 18:47:45 2007 From: prannock at gmail.com (=?ISO-8859-1?Q?S=E9rgio?=) Date: Sun, 22 Jul 2007 23:47:45 +0100 Subject: 500 error while trying to run Camping on Dreamhost Message-ID: <66a150090707221547p27b7805ahb36b0f0fe87bea7c@mail.gmail.com> I've tried setting up an Hello World app with Rails (no database), on a Dreamhost account. I used the configuration I found here http://www.mail-archive.com/camping-list at rubyforge.org/msg00114.html with the proper paths. But I keep getting Internal Server Errors (500). On the error.log I found this [Sun Jul 22 15:32:07 2007] [error] [client 82.154.48.138] FastCGI: comm with (dynamic) server "/home/xxx/little/dispatch.fcgi" aborted: (first read) idle timeout (60 sec), referer: http://little.xxx.com/ [Sun Jul 22 15:32:07 2007] [error] [client 82.154.48.138] FastCGI: incomplete headers (0 bytes) received from server "/home/xxx/little/dispatch.fcgi", referer: http://little.xxx.com/ It seems that is a somewhat common error, that can have several causes. Could anyone who already has their application running on Dreamhost or other shared hosting service, please give a few pointer on how to deploy a Camping application or just try to guess what could be causing the error above. I was really hoping I could use Camping on some projects. Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20070722/792263be/attachment.html From timocratic at gmail.com Sun Jul 22 19:50:51 2007 From: timocratic at gmail.com (Tim Connor) Date: Sun, 22 Jul 2007 16:50:51 -0700 Subject: 500 error while trying to run Camping on Dreamhost In-Reply-To: <66a150090707221547p27b7805ahb36b0f0fe87bea7c@mail.gmail.com> References: <66a150090707221547p27b7805ahb36b0f0fe87bea7c@mail.gmail.com> Message-ID: <5906dd440707221650ic372405k1b47848df34b6214@mail.gmail.com> http://www.timocracy.com/articles/2007/07/06/getting-camping-working-with-fcgi-on-a-shared-host-dreamhost-part-1 I forgot to write part 2 before I went on vacation - but maybe I'll look over things and try to recall what else there is. On 7/22/07, S?rgio wrote: > I've tried setting up an Hello World app with Rails (no database), on a > Dreamhost account. I used the configuration I found here > http://www.mail-archive.com/camping-list at rubyforge.org/msg00114.html > with the proper paths. But I keep getting Internal Server > Errors (500). On the error.log I found this > > [Sun Jul 22 15:32:07 2007] [error] [client 82.154.48.138] FastCGI: comm with > (dynamic) server "/home/xxx/little/dispatch.fcgi" aborted: > (first read) idle timeout (60 sec), referer: http://little.xxx.com/ > [Sun Jul 22 15:32:07 2007] [error] [client 82.154.48.138] FastCGI: > incomplete headers (0 bytes) received from server > "/home/xxx/little/dispatch.fcgi", referer: > http://little.xxx.com/ > > It seems that is a somewhat common error, that can have several causes. > Could anyone who already has their application running on Dreamhost or other > shared hosting service, please give a few pointer on how to deploy a Camping > application or just try to guess what could be causing the error above. > > I was really hoping I could use Camping on some projects. Thanks in advance. > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From me at sergiosantos.info Sun Jul 22 20:14:55 2007 From: me at sergiosantos.info (=?ISO-8859-1?Q?S=E9rgio_Santos?=) Date: Mon, 23 Jul 2007 01:14:55 +0100 Subject: 500 error while trying to run Camping on Dreamhost In-Reply-To: <5906dd440707221650ic372405k1b47848df34b6214@mail.gmail.com> References: <66a150090707221547p27b7805ahb36b0f0fe87bea7c@mail.gmail.com> <5906dd440707221650ic372405k1b47848df34b6214@mail.gmail.com> Message-ID: <66a150090707221714y31718be7kccfdf0b67f8f6f99@mail.gmail.com> Thanks for the reply Tim. I'm using the 1.5 version installed on the dreamhost servers, since I didn't figure out yet out to use a gem from my local account. Maybe I have to set the gems path somewhere. I also didn't figure out where did you set the 'path = req.env['REQUEST_URI']' you mention on you article. 2007/7/23, Tim Connor : > > > http://www.timocracy.com/articles/2007/07/06/getting-camping-working-with-fcgi-on-a-shared-host-dreamhost-part-1 > > I forgot to write part 2 before I went on vacation - but maybe I'll > look over things and try to recall what else there is. > > On 7/22/07, S?rgio wrote: > > I've tried setting up an Hello World app with Rails (no database), on a > > Dreamhost account. I used the configuration I found here > > http://www.mail-archive.com/camping-list at rubyforge.org/msg00114.html > > with the proper paths. But I keep getting Internal Server > > Errors (500). On the error.log I found this > > > > [Sun Jul 22 15:32:07 2007] [error] [client 82.154.48.138] FastCGI: comm > with > > (dynamic) server "/home/xxx/little/dispatch.fcgi" aborted: > > (first read) idle timeout (60 sec), referer: http://little.xxx.com/ > > [Sun Jul 22 15:32:07 2007] [error] [client 82.154.48.138] FastCGI: > > incomplete headers (0 bytes) received from server > > "/home/xxx/little/dispatch.fcgi", referer: > > http://little.xxx.com/ > > > > It seems that is a somewhat common error, that can have several causes. > > Could anyone who already has their application running on Dreamhost or > other > > shared hosting service, please give a few pointer on how to deploy a > Camping > > application or just try to guess what could be causing the error above. > > > > I was really hoping I could use Camping on some projects. Thanks in > advance. > > > > _______________________________________________ > > Camping-list mailing list > > Camping-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/camping-list > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -- www.sergiosantos.info -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20070723/4ca1f2f9/attachment.html From bcorrigan78 at gmail.com Mon Jul 30 17:32:19 2007 From: bcorrigan78 at gmail.com (Brian Corrigan) Date: Mon, 30 Jul 2007 17:32:19 -0400 Subject: Camping Apache2 & FCGI - Internal Use Message-ID: Hey Folks, I'm deploying a camping app on an internal Apache2 + FastCGI server at my office. Of course, on my Mac it works great, but I can't get things to work with Apache and FCGI. I've followed the directions on why's page documenting how to do this, but I'm getting the following error in my Apache error.log file: FastCGI: (dynamic) server "/var/www/campapp/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts If I just go run the dispatch.fcgi file, I get no output. I hit enter and I'm back to the prompt. In my web browser, this all shows up as a 500 error. Anyone have an idea? Here is a copy of my dispatch file: #!/usr/bin/ruby require 'rubygems' require 'camping/fastcgi' current = File.direname(__FILE__) Camping::Models::Base.establish_connection :adapter => 'sqllite3', :database => File.expand_path(current+ '/camping.db') Camping::FastCGI.server(current) Thanks a lot! -Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20070730/41d5ebb3/attachment.html From ewokker at gmail.com Mon Jul 30 17:54:01 2007 From: ewokker at gmail.com (Eli Brody) Date: Tue, 31 Jul 2007 00:54:01 +0300 Subject: Camping Apache2 & FCGI - Internal Use In-Reply-To: References: Message-ID: I had a devil of a time with this very subject. You might want to check this thread: http://groups.google.com/group/israelrb/browse_frm/thread/5df3fa040d3a4046/. There was a solution to my immediate problem in there, but the conclusion seems to be that FastCGI is contraindicated for Camping. On Windows, I ended up running a mongrel server, using Apache as a proxy. This worked fine, except I couldn't figure out how to make that into a windows service ... but that's another problem. Hope this helps, -Eli On 7/31/07, Brian Corrigan wrote: > > Hey Folks, > > I'm deploying a camping app on an internal Apache2 + FastCGI server at my > office. Of course, on my Mac it works great, but I can't get things to work > with Apache and FCGI. I've followed the directions on why's page > documenting how to do this, but I'm getting the following error in my Apache > error.log file: > > FastCGI: (dynamic) server "/var/www/campapp/dispatch.fcgi" has failed to > remain running for 30 seconds given 3 attempts > > If I just go run the dispatch.fcgi file, I get no output. I hit enter and > I'm back to the prompt. In my web browser, this all shows up as a 500 > error. > > Anyone have an idea? Here is a copy of my dispatch file: > > #!/usr/bin/ruby > require 'rubygems' > require 'camping/fastcgi' > > current = File.direname(__FILE__) > > Camping::Models::Base.establish_connection :adapter => 'sqllite3', > :database => File.expand_path(current+ '/camping.db') > Camping::FastCGI.server(current) > > Thanks a lot! > -Brian > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -- www.megastructure.org http://www.last.fm/user/coldphage/ Bubs: Let's head down to the Datum Center and see what we can find. Strong Bad: Datum sounds good. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20070731/df9d1df1/attachment-0001.html From erik at ruby-lang.nl Tue Jul 31 09:18:14 2007 From: erik at ruby-lang.nl (Erik Terpstra) Date: Tue, 31 Jul 2007 15:18:14 +0200 Subject: How to receive POST data in controller. Message-ID: <46AF3696.3000506@ruby-lang.nl> Hi, When I create a controller like this: module Bla::Controllers class Workflow < R '/workflow/([^\/]+)' def post(name) @@log.info input.inspect end end end And POST some data from the command line: curl -i -X POST -H 'Content-Type: application/xml' -d '' 'http://localhost/workflow/test' I see this in my log: {""\"423\"/>"} It seems that it builds a hash from my POSTED data. How can I get the data as it was submitted? TIA, Erik. From manfred at gmail.com Tue Jul 31 10:17:50 2007 From: manfred at gmail.com (Manfred Stienstra) Date: Tue, 31 Jul 2007 16:17:50 +0200 Subject: How to receive POST data in controller. In-Reply-To: <46AF3696.3000506@ruby-lang.nl> References: <46AF3696.3000506@ruby-lang.nl> Message-ID: <0A3764E5-7CD8-4874-AE38-0314B5C6F257@gmail.com> On Jul 31, 2007, at 3:18, Erik Terpstra wrote: > > How can I get the data as it was submitted? Currently there is no way to get the raw post data. The version in trunk has a change that allows you to @in.read the post body. Maybe you can backport the feature to your installation? Manfred From erik at ruby-lang.nl Tue Jul 31 10:23:33 2007 From: erik at ruby-lang.nl (Erik Terpstra) Date: Tue, 31 Jul 2007 16:23:33 +0200 Subject: How to receive POST data in controller. Message-ID: <46AF45E5.5080006@ruby-lang.nl> Thanks Manfred, I will have a look at that. Erik. Manfred Stienstra wrote: > On Jul 31, 2007, at 3:18, Erik Terpstra wrote: > >> How can I get the data as it was submitted? >> > > Currently there is no way to get the raw post data. The version in > trunk has a change that allows you to @in.read the post body. Maybe > you can backport the feature to your installation? > > Manfred > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > > From erik at ruby-lang.nl Tue Jul 31 10:29:07 2007 From: erik at ruby-lang.nl (Erik Terpstra) Date: Tue, 31 Jul 2007 16:29:07 +0200 Subject: Restarting Lighttpd for each change? Error logging? Message-ID: <46AF4733.6030007@ruby-lang.nl> Hi, It seems that for each change that I make in my camping application, I have to restart lighttpd to make it work. Also whenever something goes wrong, a syntax error in my camping application for example, things just stop working and I can't see any error messages in the lighttpd logs or any other log. I just followed the instructions to use Camping with lighttpd on the wiki. Any ideas? Erik. From bcorrigan78 at gmail.com Tue Jul 31 12:23:23 2007 From: bcorrigan78 at gmail.com (Brian Corrigan) Date: Tue, 31 Jul 2007 12:23:23 -0400 Subject: Camping-list Digest, Vol 15, Issue 2 In-Reply-To: References: Message-ID: Eli, This is interesting. I enabled DEBUG logging in Apache and tailed the error.log. Lo and behold, you're right, its a problem with one of my require statements. Namely: `gem_original_require': no such file to load -- camping/fastcgi (LoadError) Strange, it works fine when I do it in IRB, or do it from a ruby script at the bash prompt. Apache runs as the same user that I'm currently logged in as, but just as a check, I added the GEM_PATH statement to my /etc/profile Still nothing. I'm going to screw around with it more today, I'll post if I solve it. Thanks again for the help! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20070731/3b0e9c88/attachment.html From ewokker at gmail.com Tue Jul 31 13:37:17 2007 From: ewokker at gmail.com (Eli Brody) Date: Tue, 31 Jul 2007 20:37:17 +0300 Subject: Camping-list Digest, Vol 15, Issue 2 In-Reply-To: References: Message-ID: I found the Camping development process with FastCGI to be painful and frustrating. Error messages were vague or nonexistent ("500 Server Error"). Again, I strongly recommend that you find another solution. On 7/31/07, Brian Corrigan wrote: > > Eli, > > This is interesting. I enabled DEBUG logging in Apache and tailed the > error.log. Lo and behold, you're right, its a problem with one of my > require statements. Namely: > > `gem_original_require': no such file to load -- camping/fastcgi > (LoadError) > > Strange, it works fine when I do it in IRB, or do it from a ruby script at > the bash prompt. Apache runs as the same user that I'm currently logged in > as, but just as a check, I added the GEM_PATH statement to my /etc/profile > Still nothing. > > I'm going to screw around with it more today, I'll post if I solve it. > > Thanks again for the help! > > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -- www.megastructure.org http://www.last.fm/user/coldphage/ Bubs: Let's head down to the Datum Center and see what we can find. Strong Bad: Datum sounds good. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20070731/e7cf72d8/attachment.html From bcorrigan78 at gmail.com Tue Jul 31 15:33:04 2007 From: bcorrigan78 at gmail.com (Brian Corrigan) Date: Tue, 31 Jul 2007 15:33:04 -0400 Subject: Camping-list Digest, Vol 15, Issue 2 In-Reply-To: References: Message-ID: Hey Folks, Just to close this one out, I fixed my issue. Basically, Apache2 on UBUNTU is running with a limited system environment. (Check the /etc/init.d/apache2 script) I had to add my RUBY, GEM_PATH, GEM_HOME, and PATH environement variables to /etc/apache2/envvars and things worked out ok.. Best, Brian On 7/31/07, Brian Corrigan wrote: > > Eli, > > This is interesting. I enabled DEBUG logging in Apache and tailed the > error.log. Lo and behold, you're right, its a problem with one of my > require statements. Namely: > > `gem_original_require': no such file to load -- camping/fastcgi > (LoadError) > > Strange, it works fine when I do it in IRB, or do it from a ruby script at > the bash prompt. Apache runs as the same user that I'm currently logged in > as, but just as a check, I added the GEM_PATH statement to my /etc/profile > Still nothing. > > I'm going to screw around with it more today, I'll post if I solve it. > > Thanks again for the help! > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20070731/272d8c71/attachment.html