Amit Tomar
2010-Sep-17 12:22 UTC
invalid content-Length ERROR while uploading 2 GB of stream
hi all, When Trying to upload 2GB of stream i got invalid content length error am running Apache as frontend server to mongrel and chrome as my browser. One more thing one i do it with mongrel alone am able to upload this 2 GB of stream ,cud anybody tell me whats the problem and how do i configure content length in apache?? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2010-Sep-17 12:47 UTC
Re: invalid content-Length ERROR while uploading 2 GB of stream
On Sep 17, 1:22 pm, Amit Tomar <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> hi all, > When Trying to upload 2GB of stream i got invalid content length > error > am running Apache as frontend server to mongrel and chrome as my > browser. > One more thing one i do it with mongrel alone am able to upload this 2 > GB of stream ,cud anybody tell me whats the problem and how do i > configure content length in apache??Older versions of Apache couldn''t handle content-lengths > 2GB (obviously using a signed 32bit integer, I remember apache reporting negative content lengths and crazy stuff like that). You should probably determine whether your version is one of the affected ones and if so upgrade to a newer version ? Fred> -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Amit Tomar
2010-Sep-17 13:09 UTC
Re: invalid content-Length ERROR while uploading 2 GB of stream
Frederick Cheung wrote:> On Sep 17, 1:22?pm, Amit Tomar <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> hi all, >> ? ? ? ?When Trying to upload 2GB of stream i got invalid content length >> error >> am running Apache as frontend server to mongrel and chrome as my >> browser. >> One more thing one i do it with mongrel alone am able to upload this 2 >> GB of stream ,cud anybody tell me whats the problem and how do i >> configure content length in apache?? > > Older versions of Apache couldn''t handle content-lengths > 2GB > (obviously using a signed 32bit integer, I remember apache reporting > negative content lengths and crazy stuff like that). > You should probably determine whether your version is one of the > affected ones and if so upgrade to a newer version ? > > Fredhow do i find Apache version and am using Apache comes with instantrais 2.0 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Walter Lee Davis
2010-Sep-17 13:28 UTC
Re: Re: invalid content-Length ERROR while uploading 2 GB of stream
From a shell on the server, type httpd -v and press return. Walter On Sep 17, 2010, at 9:09 AM, Amit Tomar wrote:> how do i find Apache version and am using Apache comes with > instantrais > 2.0-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Amit Tomar
2010-Sep-17 13:45 UTC
Re: Re: invalid content-Length ERROR while uploading 2 GB of stream
Walter Davis wrote:> From a shell on the server, type httpd -v and press return. > > WalterWalter i am running apche server on two different machine ,on one machine i am using apache that comes with XAMPP and when i type command httpd -v ,i got Server version: Apache/2.2.11 (Win32) Server built: Dec 10 2008 00:10:06 but on other machine where i am using apache that comes with instantrail 2.0 i got ''httpd'' is not recognized as an internal or external command, operable program or batch file. why is it so?? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Walter Lee Davis
2010-Sep-17 13:54 UTC
Re: Re: Re: invalid content-Length ERROR while uploading 2 GB of stream
Compare the results of the command echo PATH on both terminals. Whenever you issue a command in a shell without using an absolute (root-relative) path to that command, like say, http instead of /usr/ local/bin/httpd, you are asking the shell to fill in the missing bits for you. The way that works is the shell takes the path, one segment at a time (segments are separated by a colon in Unix, not sure if Windows respects that precedent), and prepends each segment before your command and sees if anything happens. If nothing does, it tries the next segment in the path until something works or it runs out of segments. I suspect that your PATH environment variable is either empty or very short in the latter terminal, so this process is ending in failure. Walter On Sep 17, 2010, at 9:45 AM, Amit Tomar wrote:> Walter Davis wrote: >> From a shell on the server, type httpd -v and press return. >> >> Walter > > Walter i am running apche server on two different machine ,on one > machine > i am using apache that comes with XAMPP and when i type command > httpd -v > ,i got > Server version: Apache/2.2.11 (Win32) > Server built: Dec 10 2008 00:10:06 > but on other machine where i am using apache that comes with > instantrail > 2.0 > i got > ''httpd'' is not recognized as an internal or external command, > operable program or batch file. > why is it so?? > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails- > talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > . > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en > . >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Amit Tomar
2010-Sep-17 14:05 UTC
Re: Re: Re: invalid content-Length ERROR while uploading 2 GB of stream
and Walter what about my above problem invalid content length -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Walter Lee Davis
2010-Sep-17 14:13 UTC
Re: Re: Re: Re: invalid content-Length ERROR while uploading 2 GB of stream
Well, I thought that was explained earlier. You need to figure out what the server is running, and see if that is your problem. Sounds likely to me, but I''m not there, and I''ve never tried to run Apache on a Windows computer before. You might want to try a cheap and cheerful Unix hosting account somewhere as a development server, and see if you can get your application to work there. Walter On Sep 17, 2010, at 10:05 AM, Amit Tomar wrote:> and Walter what about my above problem invalid content length-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Amit Tomar
2010-Sep-17 14:15 UTC
Re: Re: Re: invalid content-Length ERROR while uploading 2 GB of stream
Thanks Walter for your help.. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Amit Tomar
2010-Sep-17 14:16 UTC
Re: invalid content-Length ERROR while uploading 2 GB of stream
Thanks Fred -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.