Hello, Im using the following amazon web service API for S3 : http://amazon.rubyforge.org/ The problem is that after I establish a connection using establish_connection!, and try using the "store" command, I keep getting the following error. However, if I reboot my webrick server, it works fine for about one hour and then starts throwing this error: Errno::EINVAL in UsersController#upload_pic Invalid argument RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:175:in `write'' E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:175:in `write0'' E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:151:in `write'' E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:166:in `writing'' E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:150:in `write'' E:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:1542:in `write_header'' E:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:1513:in `send_request_with_body'' E:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:1496:in `exec'' E:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:1044:in `request'' E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/connection.rb:41:in `request'' Does anyone know why this could be? -- 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-/JYPxA39Uh5TLH3MbocFFw@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 -~----------~----~----~----~------~----~------~--~---
Hello Aryk. I''m sorry I cannot help directly. I''ve been using Marcel Molina''s AWS::S3 with terrific results. http://amazon.rubyforge.org/ -- -- Tom Mornini, CTO -- Engine Yard, Ruby on Rails Hosting -- Reliability, Ease of Use, Scalability -- (866) 518-YARD (9273) On Jan 6, 2007, at 2:46 PM, Aryk Grosz wrote:> > Hello, > > Im using the following amazon web service API for S3 : > > > http://amazon.rubyforge.org/ > > The problem is that after I establish a connection using > establish_connection!, and try using the "store" command, I keep > getting > the following error. However, if I reboot my webrick server, it works > fine for about one hour and then starts throwing this error: > > Errno::EINVAL in UsersController#upload_pic > > Invalid argument > > RAILS_ROOT: ./script/../config/.. > Application Trace | Framework Trace | Full Trace > > E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:175:in `write'' > E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:175:in `write0'' > E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:151:in `write'' > E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:166:in `writing'' > E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:150:in `write'' > E:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:1542:in `write_header'' > E:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:1513:in > `send_request_with_body'' > E:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:1496:in `exec'' > E:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:1044:in `request'' > E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/ > connection.rb:41:in > `request'' > > > Does anyone know why this could be?--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@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 -~----------~----~----~----~------~----~------~--~---
hey have you ever found the solution? i think i have the same problem even on my production server. ive read around google that there may be a bug in ruby about handling timeouts/header information. Aryk Grosz wrote:> Hello, > > Im using the following amazon web service API for S3 : > > > http://amazon.rubyforge.org/ > > The problem is that after I establish a connection using > establish_connection!, and try using the "store" command, I keep getting > the following error. However, if I reboot my webrick server, it works > fine for about one hour and then starts throwing this error: > > Errno::EINVAL in UsersController#upload_pic > > Invalid argument > > RAILS_ROOT: ./script/../config/.. > Application Trace | Framework Trace | Full Trace > > E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:175:in `write'' > E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:175:in `write0'' > E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:151:in `write'' > E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:166:in `writing'' > E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:150:in `write'' > E:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:1542:in `write_header'' > E:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:1513:in > `send_request_with_body'' > E:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:1496:in `exec'' > E:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:1044:in `request'' > E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/connection.rb:41:in > `request'' > > > Does anyone know why this could be?-- 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-/JYPxA39Uh5TLH3MbocFFw@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 -~----------~----~----~----~------~----~------~--~---