Code Monkey home page Code Monkey logo

Comments (5)

robguttman avatar robguttman commented on September 23, 2024

I needed to patch fake-s3 to handle a case that led to same exact behavior:

robguttman@7bfc57e

May or may not be your problem though.

  • Rob

On Jan 5, 2013, at 1:25 PM, Markus Korn [email protected] wrote:

I'm using HEAD of fakes3, and whenever I restart the fakes3 server lookinng up keys is not working anymore, I always get an empty list of objects for each bucket.


Reply to this email directly or view it on GitHub.

from fake-s3.

runemadsen avatar runemadsen commented on September 23, 2024

I'm seeing the exact same problem using the AWS-S3 ruby gem. Everything works great, but after server restart I get "AWS::S3::NoSuchKey ". Checking the fakes3 folder, the files are there.

The proposed patch is not working.

Any ideas on what could cause this?

  • Rune

from fake-s3.

dterhorst-zz avatar dterhorst-zz commented on September 23, 2024

I worked around this locally with the following changes in lib/fakes3/file_store.rb:

19c19
<         bucket_obj = Bucket.new(bucket_name,Time.now,[])
---
>         bucket_obj = Bucket.new(bucket_name,Time.now,get_objects(bucket_name, bucket))
199a200,206
> 
>   private
>     def get_objects bucket_name, path
>       Dir[File.join(path, '*')].map do |filepath|
>         get_object(bucket_name, File.basename(filepath), nil)
>       end
>     end

from fake-s3.

mark2997 avatar mark2997 commented on September 23, 2024

I just had the same problem - objects are no longer listed after restarting the server, although I can still GET them. I applied the fix from dterhorst and it worked. This would be a good pull request.

from fake-s3.

saltzmanjoelh avatar saltzmanjoelh commented on September 23, 2024

I had to use a combination of fixes here to get it working in my fork:

https://github.com/saltzmanjoelh/fake-s3

from fake-s3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.