mail_pending_refunds cron traceback

RESOLVED FIXED in 2013-03-14

Status

Marketplace
Payments/Refunds
P3
normal
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: robhudson, Assigned: Andy McKay)

Tracking

2013-03-14
Points:
---

Details

(Whiteboard: p=1)

(Reporter)

Description

5 years ago
Seeing the error on prod, dev, and altdev...

Traceback (most recent call last):
  File "manage.py", line 120, in <module>
    execute_manager(settings)
  File "/data/addons-dev/src/addons-dev.allizom.org/venv/lib/python2.6/site-packages/django/core/management/__init__.py", line 459, in execute_manager
    utility.execute()
  File "/data/addons-dev/src/addons-dev.allizom.org/venv/lib/python2.6/site-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/data/addons-dev/src/addons-dev.allizom.org/venv/lib/python2.6/site-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/data/addons-dev/src/addons-dev.allizom.org/venv/lib/python2.6/site-packages/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/data/addons-dev/src/addons-dev.allizom.org/venv/lib/python2.6/site-packages/cronjobs/management/commands/cron.py", line 64, in handle
    registered[script](*args)
  File "/data/addons-dev/src/addons-dev.allizom.org/zamboni/apps/market/cron.py", line 66, in mail_pending_refunds
    recipient_list=[owner])
  File "/data/addons-dev/src/addons-dev.allizom.org/zamboni/apps/amo/utils.py", line 271, in send_mail_jinja
    msg = send_mail(subject, template.render(**context), *args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)
  File "/data/addons-dev/src/addons-dev.allizom.org/zamboni/apps/market/templates/market/emails/refund-nag.txt", line 5, in top-level template code
    {{ addon.get_dev_url('refunds')|absolutify(site_url) }}
  File "/data/addons-dev/src/addons-dev.allizom.org/zamboni/mkt/webapps/models.py", line 189, in get_dev_url
    args=[self.app_slug] + args)
  File "/data/addons-dev/src/addons-dev.allizom.org/zamboni/apps/amo/urlresolvers.py", line 62, in reverse
    url = django_reverse(viewname, urlconf, args, kwargs, prefix, current_app)
  File "/data/addons-dev/src/addons-dev.allizom.org/venv/lib/python2.6/site-packages/django/core/urlresolvers.py", line 476, in reverse
    return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))
  File "/data/addons-dev/src/addons-dev.allizom.org/venv/lib/python2.6/site-packages/django/core/urlresolvers.py", line 396, in _reverse_with_prefix
    "arguments '%s' not found." % (lookup_view_s, args, kwargs))
django.core.urlresolvers.NoReverseMatch: Reverse for 'mkt.developers.apps.refunds' with arguments '(u'in-app-payment-tester',)' and keyword arguments '{}' not found.

Comment 2

5 years ago
Do we need this cron job if we're not doing refunds?
We are doing refunds.  see bug 820650
-> to the payments bucket for triage
Assignee: mattbasta → nobody
Component: General → Payments/Refunds
(Assignee)

Comment 5

5 years ago
Developers currently don't get involved in the refund process. This might change in the future, this cron can be removed.
Cool, that sounds easy. Thanks.
Priority: -- → P3
Whiteboard: p=1
Version: 1.0 → 1.2
(Assignee)

Updated

5 years ago
Assignee: nobody → amckay
Target Milestone: --- → 2013-03-14
(Assignee)

Comment 7

5 years ago
Removed: https://github.com/mozilla/zamboni/commit/b047cb
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.