Closed
Bug 822761
Opened 12 years ago
Closed 12 years ago
[traceback] KeyError: 'No such transport: ampq' - mkt.receipts.views._record (Unable to install any new app)
Categories
(Marketplace Graveyard :: Consumer Pages, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
2012-12-20
People
(Reporter: krupa.mozbugs, Assigned: oremj)
Details
steps to reproduce:
1. On your unagi phone, navigate to the details page of a packaged app
2. Try to install the app
observed behavior:
Install fails. The button switches from Free-> loading throbber-> Free.
From logcat:
12-18 22:38:54.679 E/GeckoConsole( 455): Content JS LOG at https://marketplace-dev-cdn.allizom.org/media/js/mkt/consumer-min.js?build=6b2591b:16 in anonymous: Error code:
Comment 1•12 years ago
|
||
It looks like this is an error with receipts and anonymous free installs:
12:03:51 django.request:ERROR Internal Server Error: /app/mezomcusings-io-hawshansper/purchase/record :/Users/rob/.virtualenvs/zamboni/lib/python2.6/site-packages/django/core/handlers/base.py:215
Traceback (most recent call last):
File "/Users/rob/.virtualenvs/zamboni/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/rob/git/zamboni/apps/amo/decorators.py", line 131, in wrapper
response = func(*args, **kw)
File "/Users/rob/git/zamboni/apps/addons/decorators.py", line 33, in wrapper
return f(request, addon, *args, **kw)
File "/Users/rob/git/zamboni/apps/amo/decorators.py", line 54, in wrapper
return f(request, *args, **kw)
File "/Users/rob/git/zamboni/apps/amo/decorators.py", line 160, in wrapper
return f(*args, **kw)
File "/Users/rob/git/zamboni/apps/amo/decorators.py", line 152, in wrapper
return f(*args, **kw)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/contextlib.py", line 34, in __exit__
self.gen.throw(type, value, traceback)
File "/Users/rob/git/zamboni/apps/amo/models.py", line 39, in skip_cache
yield
File "/Users/rob/git/zamboni/apps/amo/decorators.py", line 152, in wrapper
return f(*args, **kw)
File "/Users/rob/git/zamboni/mkt/receipts/views.py", line 134, in record_anon
return _record(request, addon)
File "/Users/rob/git/zamboni/mkt/receipts/views.py", line 119, in _record
amo.log(amo.LOG.INSTALL_ADDON, addon)
File "/Users/rob/git/zamboni/apps/amo/log.py", line 633, in log
user = kw.get('user', get_user())
File "/Users/rob/git/zamboni/apps/amo/__init__.py", line 31, in get_user
return _locals.user
AttributeError: 'thread._local' object has no attribute 'user'
[18/Dec/2012 12:03:51] "POST /app/mezomcusings-io-hawshansper/purchase/record?src=mkt-search HTTP/1.0" 500 48520
Krupa: If you log in does it work?
Comment 2•12 years ago
|
||
This also fails for me on hosted apps... not just packaged apps.
Comment 3•12 years ago
|
||
The first time I install an app it doesn't work. This smells like bug 821538.
Also I just realized: since Installed is unique on ClientData, we're recording all anonymous users' installs only once? That seems wrong.
Summary: Unable to install packaged apps on my unagi phone → Unable to install any new app
Comment 4•12 years ago
|
||
http://sentry.dmz.phx1.mozilla.com/marketplace-dev/group/3675/
KeyError: 'No such transport: ampq'
Stacktrace (most recent call last):
File "django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "amo/decorators.py", line 131, in wrapper
response = func(*args, **kw)
File "addons/decorators.py", line 33, in wrapper
return f(request, addon, *args, **kw)
File "amo/decorators.py", line 54, in wrapper
return f(request, *args, **kw)
File "amo/decorators.py", line 160, in wrapper
return f(*args, **kw)
File "amo/decorators.py", line 152, in wrapper
return f(*args, **kw)
File "mkt/receipts/views.py", line 134, in record_anon
return _record(request, addon)
File "mkt/receipts/views.py", line 122, in _record
'app-id': addon.pk
File "lib/metrics/__init__.py", line 36, in send_request
send(action, data)
File "lib/metrics/__init__.py", line 25, in send
metrics.delay(uid, action, data)
File "celery/app/task/__init__.py", line 371, in delay
return self.apply_async(args, kwargs)
File "nuggets/celeryutils.py", line 22, in apply_async
return super(Task, self).apply_async(args, kwargs, **options)
File "celery/app/task/__init__.py", line 467, in apply_async
publish = publisher or self.app.amqp.publisher_pool.acquire(block=True)
File "kombu/connection.py", line 666, in acquire
R = self.prepare(R)
File "kombu/pools.py", line 55, in prepare
p = p()
File "kombu/pools.py", line 46, in <lambda>
return lambda: self.create_producer()
File "celery/app/amqp.py", line 264, in create_producer
conn = self.connections.acquire(block=True)
File "kombu/connection.py", line 666, in acquire
R = self.prepare(R)
File "kombu/connection.py", line 807, in prepare
resource = resource()
File "kombu/connection.py", line 782, in new
return copy(self.connection)
File "python2.6/copy.py", line 79, in copy
return copier(x)
File "kombu/connection.py", line 560, in __copy__
return self.clone()
File "kombu/connection.py", line 381, in clone
return self.__class__(**dict(self.info(), **kwargs))
File "kombu/connection.py", line 387, in info
defaults = self.transport.default_connection_params
File "kombu/connection.py", line 610, in transport
self._transport = self.create_transport()
File "kombu/connection.py", line 368, in create_transport
return self.get_transport_cls()(client=self)
File "kombu/connection.py", line 375, in get_transport_cls
transport_cls = get_transport_cls(transport_cls)
File "kombu/transport/__init__.py", line 93, in get_transport_cls
_transport_cache[transport] = _get_transport_cls(transport)
File "kombu/transport/__init__.py", line 74, in _get_transport_cls
transport_module_name, transport_cls_name = resolve_transport(transport)
File "kombu/transport/__init__.py", line 69, in resolve_transport
raise KeyError("No such transport: %s" % (transport, ))
Summary: Unable to install any new app → [traceback] KeyError: 'No such transport: ampq' - mkt.receipts.views._record (Unable to install any new app)
Reporter | ||
Comment 5•12 years ago
|
||
(In reply to Rob Hudson [:robhudson] from comment #1)
> Krupa: If you log in does it work?
yes.
Reporter | ||
Comment 6•12 years ago
|
||
(In reply to krupa raj 82[:krupa] from comment #5)
> (In reply to Rob Hudson [:robhudson] from comment #1)
>
> > Krupa: If you log in does it work?
>
> yes.
as in, the bug is still reproducible.
Assignee | ||
Comment 7•12 years ago
|
||
This should be fixed now. Was a typo in BROKER_URL.
Assignee: robhudson.mozbugs → oremj
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•