Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Celery backend and S3 storage #265

Open
rodrigogadea opened this issue Jan 15, 2014 · 2 comments
Open

Error with Celery backend and S3 storage #265

rodrigogadea opened this issue Jan 15, 2014 · 2 comments

Comments

@rodrigogadea
Copy link

Traceback (most recent call last):
  File "/home/ubuntu/.virtualenvs/webcassette/src/celery-webcassette/celery/app/trace.py", line 218, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/home/ubuntu/.virtualenvs/webcassette/src/celery-webcassette/celery/app/trace.py", line 398, in __protected_call__
    return self.run(*args, **kwargs)
  File "/home/ubuntu/.virtualenvs/webcassette/local/lib/python2.7/site-packages/imagekit/cachefiles/backends.py", line 116, in _generate_file
    backend.generate_now(file, force=force)
  File "/home/ubuntu/.virtualenvs/webcassette/local/lib/python2.7/site-packages/imagekit/cachefiles/backends.py", line 94, in generate_now
    if force or self.get_state(file) not in (CacheFileState.GENERATING, CacheFileState.EXISTS):
  File "/home/ubuntu/.virtualenvs/webcassette/local/lib/python2.7/site-packages/imagekit/cachefiles/backends.py", line 68, in get_state
    exists = self._exists(file)
  File "/home/ubuntu/.virtualenvs/webcassette/local/lib/python2.7/site-packages/imagekit/cachefiles/backends.py", line 112, in _exists
    or file.storage.exists(file.name))
  File "/home/ubuntu/.virtualenvs/webcassette/local/lib/python2.7/site-packages/storages/backends/s3boto.py", line 290, in exists
    name = self._normalize_name(self._clean_name(name))
  File "/home/ubuntu/.virtualenvs/webcassette/local/lib/python2.7/site-packages/storages/backends/s3boto.py", line 225, in _clean_name
    return os.path.normpath(name).replace('\\', '/')
  File "/home/ubuntu/.virtualenvs/webcassette/lib/python2.7/posixpath.py", line 327, in normpath
    initial_slashes = path.startswith('/')
AttributeError: 'NoneType' object has no attribute 'startswith'
@pdr
Copy link

pdr commented Apr 7, 2015

I'm getting the same error. Any ideas? Are you also using newrelic?

@fellipeh
Copy link

Any news about these error? I got the same error here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants