Hey,
please do not crosspost, diaspora-discuss is the only right place for
troubleshooting help ;).
In basically all cases I've seen a "!! Invalid request" that was
because the appserver was accessed via HTTPS. So here comes the
checklist:
1. If you cannot reverse proxy ensure that the SSL requirement is
turned off in your configuration. (circumvent_ssl_requirement: true
currently, require_ssl: false in the future).
2. If you do reverse proxy:
2a. Ensure the upstream resource is accessed via http not https
2b. Ensure the proxy sets the X-Forwarded-Proto header to "https"
3. After you fixed the unwanted redirect with one of the two methods
above: clear your browser cache, browsers do cache redirects!
On Wed 26 Sep 2012 02:13:14 PM CEST, rune wrote:
> Hi,
>
> I'm new to diaspora and am installing a POD for the first time.
>
> All has gone fine and I can run an instance using "./scripts/server"
>
> However, when I try to access
http://myhost:3000 i get the following
> error from Thin:
> mina diaspora # ./script/server
> >> Using rack adapter
> Rack::SSL is enabled
> Rack::SSL is enabled
> >> Thin web server (v1.4.1 codename Chromeo)
> >> Debugging ON
> >> Maximum connections set to 1024
> >> Listening on
0.0.0.0:3000, CTRL+C to stop
> !! Invalid request
> Invalid HTTP format, parsing fails.
>
> /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/request.rb:82:in
> `execute'
>
> /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/request.rb:82:in
> `parse'
>
> /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:38:in
> `receive_data'
>
> /usr/local/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
> `run_machine'
>
> /usr/local/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
> `run'
>
> /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/backends/base.rb:63:in
> `start'
>
> /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/server.rb:159:in
> `start'
>
> /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/controllers/controller.rb:86:in
> `start'
>
> /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/runner.rb:185:in
> `run_command'
>
> /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/runner.rb:151:in
> `run!'
> /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.4.1/bin/thin:6:in
> `<top (required)>'
> /usr/local/bin/thin:23:in `load'
> /usr/local/bin/thin:23:in `<main>'
>
>
> Any assistance would be greatly appreciated!
>
> Kind regards
>
>
> Simon