Giter Club home page Giter Club logo

Comments (12)

etianen avatar etianen commented on August 30, 2024

Ah, I think you're using django-s3-storage 0.9.9, and have just been hit by an unintended consequence of the fix for #18.

Try the master branch. I've just pushed up what is almost certainly a fix for your problem.

from django-s3-storage.

dbinetti avatar dbinetti commented on August 30, 2024

yep, fixed.

from django-s3-storage.

etianen avatar etianen commented on August 30, 2024

Cool, I'll get a new release out later today.

from django-s3-storage.

etianen avatar etianen commented on August 30, 2024

0.9.10 is out

On Wed, 29 Jun 2016 at 22:34 David Binetti [email protected] wrote:

yep, fixed.


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#24 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAJFCMtd7UfkKVgMXe63R8m7ptjkjBYBks5qQuTMgaJpZM4JAZ58
.

from django-s3-storage.

dbinetti avatar dbinetti commented on August 30, 2024

Might be a regression here. On 0.11.0

~ $ django-admin s3_sync_meta django.core.files.storage.default_storage
Syncing meta for django.core.files.storage.default_storage
Traceback (most recent call last):
  File "/app/.heroku/python/bin/django-admin", line 11, in <module>
    sys.exit(execute_from_command_line())
  File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/__init__.py", line 359, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/base.py", line 294, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/base.py", line 345, in execute
    output = self.handle(*args, **options)
  File "/app/.heroku/python/lib/python2.7/site-packages/django_s3_storage/management/commands/s3_sync_meta.py", line 30, in handle
    for path in storage.sync_meta_iter():
  File "/app/.heroku/python/lib/python2.7/site-packages/django_s3_storage/storage.py", line 333, in sync_meta_iter
    obj = self.meta(name)
  File "/app/.heroku/python/lib/python2.7/site-packages/django_s3_storage/storage.py", line 32, in _do_wrap_errors
    raise IOError("S3Storage error at {!r}: {}".format(name, force_text(ex)))
IOError: S3Storage error at '.': An error occurred (404) when calling the HeadObject operation: Not Found
~ $ 

from django-s3-storage.

etianen avatar etianen commented on August 30, 2024

There will hopefully be a fix for this in master.

I think that you have a key called "." in your bucket, which is causing the key name normalization to break. I've made django-s3-storage stop exploding when it encounters this, but you should probably get rid of it.

from django-s3-storage.

dbinetti avatar dbinetti commented on August 30, 2024

from django-s3-storage.

etianen avatar etianen commented on August 30, 2024

from django-s3-storage.

dbinetti avatar dbinetti commented on August 30, 2024

from django-s3-storage.

etianen avatar etianen commented on August 30, 2024

Any chance you could give me temporary access to the bucket so I can investigate? I'd imagine the answer is almost certainly not!

Otherwise, I can have a go at writing a script to try and find the problematic key.

from django-s3-storage.

dbinetti avatar dbinetti commented on August 30, 2024

from django-s3-storage.

etianen avatar etianen commented on August 30, 2024

Yes, I think an ad-hoc IAM role would do. If you're feeling paranoid, I can take a PGP email to [email protected] with the details (or a non-PGP email, if you're not feeling paranoid).

My intention is to write a read-only script to iterate over all the keys in the bucket, which will hopefully catch the offending key.

from django-s3-storage.

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.