From shagymoe at yahoo.com Mon Nov 10 14:23:19 2008 From: shagymoe at yahoo.com (Shaggy Moe) Date: Mon, 10 Nov 2008 11:23:19 -0800 (PST) Subject: [s3-dev] First save/upload failing Message-ID: <718275.41273.qm@web90401.mail.mud.yahoo.com> Hi, I'm using the aws-s3 gem version 0.5.1 in a rails app and, for a reason I cannot find, the very first save/upload of a model using attachment_fu does not work. All subsequent saves successfully upload the file, but the first one does not. The save is triggered by a background job using backgroundrb, which should load the rails environment completely. I've even tried adding some logic to check if the file is there using AWS::S3::S3Object.exists? and it is returning true even though the file isn't there. Any suggestions? Thanks, Shagy From kookster at gmail.com Mon Nov 10 14:36:54 2008 From: kookster at gmail.com (Andrew Kuklewicz) Date: Mon, 10 Nov 2008 14:36:54 -0500 Subject: [s3-dev] First save/upload failing In-Reply-To: <718275.41273.qm@web90401.mail.mud.yahoo.com> References: <718275.41273.qm@web90401.mail.mud.yahoo.com> Message-ID: <19ba6d7f0811101136t22e5fa9cne046c292e092f7b5@mail.gmail.com> I am on 0.the 5.1 version of aws-s3, and I am not seeing this - but I use active messaging instead of backgroundrb for such non-rails processing. My guess would be you are right, it has to do with some ruby loading issue - does it behave the same in dev and prod modes? What is the stack trace for the initial failure? -Andrew On Mon, Nov 10, 2008 at 2:23 PM, Shaggy Moe wrote: > Hi, > > I'm using the aws-s3 gem version 0.5.1 in a rails app and, for a reason I > cannot find, the very first save/upload of a model using attachment_fu does > not work. All subsequent saves successfully upload the file, but the first > one does not. The save is triggered by a background job using backgroundrb, > which should load the rails environment completely. I've even tried adding > some logic to check if the file is there using AWS::S3::S3Object.exists? and > it is returning true even though the file isn't there. > > Any suggestions? > > Thanks, > > Shagy > > > > > _______________________________________________ > amazon-s3-dev mailing list > amazon-s3-dev at rubyforge.org > http://rubyforge.org/mailman/listinfo/amazon-s3-dev > -- Andrew Kuklewicz -------------- next part -------------- An HTML attachment was scrubbed... URL: