Broken Camping (on Dreamhost)
Hello all, I'm running Camping 1.9.300 on DreamHost. Everything has been working great for quite some time, then recently, visiting the Camping app gives a 500 Internal Server Error. It seems as if something at DreamHost was upgraded and now everything is broken. Even the basic example Camping apps do not work so I suspect there is some incompatibility with Camping and the current setup. I'm hoping someone can help me figure out what is wrong. Here is the relevant error log data: [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/request.rb:150:in `rewind': Illegal seek (Errno::ESPIPE) [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/request.rb:150:in `POST' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/request.rb:160:in `params' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom (eval):30:in `initialize' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom (eval):50:in `new' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom (eval):50:in `call' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom dispatch.cgi:16 [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/content_length.rb:13:in `call' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/content_length.rb:13:in `call' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/cgi.rb:33:in `serve' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/cgi.rb:7:in `run' [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] \tfrom dispatch.cgi:19 [Wed Jan 20 18:08:06 2010] [error] [client ***.***.***.***] Premature end of script headers: dispatch.cgi My dispatch.cgi worked previously and nothing has been modified but here it is: #!/usr/bin/ruby ENV['GEM_PATH'] = '/home/garret/.gems:/usr/lib/ruby/gems/1.8' ENV['GEM_HOME'] = '/home/garret/.gems' Dir.chdir '/home/garret/admin.*.com' require 'admin' app = Admin fixed = lambda do |env| r = env[REQUEST_URI][0..(env[REQUEST_URI].index(?)||0)-1] d = r.length - (env[PATH_INFO]||'/').length env[SCRIPT_NAME] = r[0...d] env[PATH_INFO] = r[d..-1] app.call(env) end Rack::Handler::CGI.run(fixed) The require 'admin' app = Admin can be replaced with any of the sample apps I've found with the same effect. Help? Thanks, Garret Buell ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list
Re: Rack::Lint::LintError with latest camping and rack
What about using the github gem server? http://github.com/blog/51-github-s-rubygem-server That way the most current camping could be installed with a gem install judofyr-camping Instead of having to download and build it (marginally more difficult) -Garret Buell 2009/3/29 Magnus Holm judo...@gmail.com: Well, this issue is actually solved in the latest master :-) Maybe it's time to release this thing... I'm way to lazy :/ //Magnus Holm On Sun, Mar 29, 2009 at 20:45, Julik Tarkhanov julian.tarkha...@gmail.com wrote: On 29 Mar 2009, at 07:06, Garret Buell wrote: Would we gain anything by making the switch? Everybody would gain. Content-length is a requirement of the latest Rack spec, presumaby to allow for easier caching, and you have to set it _unless_ you send out chunked - but then you have to state it in the headers. -- Julik Tarkhanov m...@julik.nl ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list
Re: Rack::Lint::LintError with latest camping and rack
Ok, scratch that last. Turns out camping works just fine with Rack 0.4 so it seems the change was with 0.9. I'm not too familiar with Rack -- what changes would we need to make to get camping working with Rack 0.9? Would we gain anything by making the switch? -Garret On Sat, Mar 28, 2009 at 10:01 PM, Garret Buell terr...@gmail.com wrote: I'm trying to use Camping from Magnus' repo (1.9.300) but running the blog.rb example (or anything for that matter) gives me Rack::Lint::LintError at / Content-Length header was 0, but should be 548 Ruby C:/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/lint.rb: in assert, line 16 Web GET localhost/ There are no errors on the camping output so I suspect something has changed with Rack. What version of Rack do people have the examples working with? Thanks, Garret Buell ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list
Who has the latest version of camping?
So I'm looking to get the latest, most very bleeding edge version of camping. The question is, who's got it? It seems I can get it from why, Magnus, or zimbatm on github. Why's seems to be the oldest but it seems neither Magnus or zimbatm have merged changes recently. Should I just merge the changes myself? What's the story on this guys? -Garret Buell ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list