Closed kmtracey closed 12 years ago
Or possibly it's related to some other issue...attempting to click on the failure list for any detail run shows Internal Server Error (e.g. http://columbusco-staging.openrural.org/data-dashboard/addresses/165/failures/). Locally I'm getting a NoReverseMatch:
Environment:
Request Method: GET Request URL: http://localhost:8000/data-dashboard/addresses/9/failures/
Django Version: 1.3.1 Python Version: 2.6.6 Installed Applications: ['djcelery', 'openrural', 'gunicorn', 'openrural.data_dashboard', 'django.contrib.messages', 'background_task', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.comments', 'django.contrib.contenttypes', 'django.contrib.gis', 'django.contrib.humanize', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.staticfiles', 'compressor', 'ebdata.blobs', 'ebdata.geotagger', 'ebpub.accounts', 'ebpub.alerts', 'ebpub.db', 'ebpub.geocoder', 'ebpub.moderation', 'ebpub.neighbornews', 'ebpub.openblockapi', 'ebpub.openblockapi.apikey', 'ebpub.petitions', 'ebpub.preferences', 'ebpub.richmaps', 'ebpub.savedplaces', 'ebpub.streets', 'ebpub.widgets', 'obadmin.admin', 'olwidget', 'easy_thumbnails', 'ebdata.nlp', 'ebdata.templatemaker', 'ebdata.textmining', 'ebpub.metros', 'ebpub.utils', 'ebpub.geocoder', 'ebpub.geocoder.parser', 'south'] Installed Middleware: ('django.middleware.gzip.GZipMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'ebpub.accounts.middleware.UserMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.http.ConditionalGetMiddleware')
Traceback: File "/home/kmtracey/.virtualenvs/openrural/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
Exception Type: NoReverseMatch at /data-dashboard/addresses/9/failures/ Exception Value: Reverse for 'db_newsitem_change' with arguments '('',)' and keyword arguments '{}' not found.
@rebecca-caktus would you give an estimate for this task?
The page was failing (after taking forever to load) because the admin page to which we were linking to "fix" geocoded items doesn't exist for Address items (which aren't geocoded). Therefore, a TemplateSyntaxError was being thrown.
The addresses scraper on staging has over 46K total failures. Attempting to go to the linked page (http://columbusco-staging.openrural.org/data-dashboard/addresses/failures/) gets you (eventually....) a "site maintenance" page. I'm guessing the request is taking too long to process, since we're not doing any pagination on that 46+K list of failures...