Closed Bug 543798 Opened 15 years ago Closed 15 years ago

Categories

(Cloud Services :: Operations: Marketplace, task)

All
Other
task
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jbalogh, Unassigned)

References

()

Details

Possible fix: settings_local.py changed, the CACHE_BACKEND should look like http://github.com/jbalogh/zamboni/blob/master/docs/settings/settings_local.prod.py#L32 We changed memcached to "caching.backends.memcached". If that doesn't work, let me know what the traceback is.
Traceback is: [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] Traceback (most recent call last): [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] File "/data/virtualenvs/zamboni/src/django/django/core/handlers/wsgi.py", line 241, in __call__ [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] response = self.get_response(request) [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] File "/data/virtualenvs/zamboni/src/django/django/core/handlers/base.py", line 76, in get_response [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] response = middleware_method(request) [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] File "/data/amo_python/www/preview/zamboni/apps/access/middleware.py", line 21, in process_request [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] if acl.action_allowed(request, 'Admin', '%'): [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] File "/data/amo_python/www/preview/zamboni/apps/access/acl.py", line 27, in action_allowed [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] for group in request.groups) [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] File "/data/amo_python/www/preview/zamboni/apps/access/acl.py", line 26, in <genexpr> [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] return any(match_rules(group.rules, app, action) [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] File "/data/virtualenvs/zamboni/src/django/django/db/models/query.py", line 103, in _result_iter [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] self._fill_cache() [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] File "/data/virtualenvs/zamboni/src/django/django/db/models/query.py", line 744, in _fill_cache [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] self._result_cache.append(self._iter.next()) [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] File "/data/amo_python/www/preview/zamboni/lib/caching/base.py", line 157, in iterator [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] for obj in CacheMachine(query_string, iterator): [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] File "/data/amo_python/www/preview/zamboni/lib/caching/base.py", line 116, in __iter__ [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] self.cache_objects(to_cache) [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] File "/data/amo_python/www/preview/zamboni/lib/caching/base.py", line 141, in cache_objects [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] add_to_flush_list(flush_keys, query_key) [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] File "/data/amo_python/www/preview/zamboni/lib/caching/base.py", line 134, in add_to_flush_list [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] cache.set_many(flush_lists) [Tue Feb 02 12:21:53 2010] [error] [client 10.2.83.103] AttributeError: 'CacheClass' object has no attribute 'set_many' Error logs at mpt-vpn:/var/log/clusterlogs/http_addons_preview/
Oh, this is because the dependencies are out of date. We'll need to fetch the latest bundle from hudson...which is down. (bug 543799) When it's back up: pip install from http://sm-hudson01.mozilla.org:8080/job/addons.mozilla.org/ws/packages/amo.pybundle
Blocks: 543514
Fixed.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
I had problem with zamboni in production mode. *** uWSGI is running in multiple interpreter mode *** spawned uWSGI worker 1 (and the only) (pid: 1728, cores: 1) Traceback (most recent call last): File "wsgi/mkt.py", line 61, in application return django_app(env, start_response) File "/root/.virtualenvs/zamboni/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 241, in __call__ response = self.get_response(request) File "/root/.virtualenvs/zamboni/lib/python2.6/site-packages/django/core/handlers/base.py", line 179, in get_response response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) File "/root/.virtualenvs/zamboni/lib/python2.6/site-packages/django/core/handlers/base.py", line 228, in handle_uncaught_exception return callback(request, **param_dict) File "./mkt/site/views.py", line 60, in handler500 return jingo.render(request, 'site/500.html', status=500) File "/root/.virtualenvs/zamboni/src/jingo/jingo/__init__.py", line 80, in render rendered = render_to_string(request, template, context) File "/root/.virtualenvs/zamboni/src/jingo/jingo/__init__.py", line 98, in render_to_string return template.render(**get_context()) File "/root/.virtualenvs/zamboni/src/jingo/jingo/__init__.py", line 91, in get_context c.update(processor(request)) File "./mkt/site/context_processors.py", line 24, in global_settings if request.user.is_authenticated() and getattr(request, 'amo_user', None): AttributeError: 'WSGIRequest' object has no attribute 'user' I think because skipping the amo installation from http://sm-hudson01.mozilla.org:8080/job/addons.mozilla.org/ws/packages/amo.pybundle which is down.
Component: Server Operations: Web Operations → Server Operations: AMO Operations
QA Contact: mzeier → oremj
Component: Server Operations: AMO Operations → Operations: Marketplace
Product: mozilla.org → Mozilla Services
You need to log in before you can comment on or make changes to this bug.