Closed Bug 1177290 Opened 10 years ago Closed 4 years ago

webapp throws misleading error if config omits enabled_plugins

Categories

(Webtools Graveyard :: DXR, defect)

defect
Not set
normal

Tracking

(firefox41 affected)

RESOLVED WONTFIX
Tracking Status
firefox41 --- affected

People

(Reporter: fubar, Unassigned)

Details

If you omit enabled_plugins in dxr.config, or if you attempt to define it as 'enabled_plugins = *', the web app throws the following error: [Wed Jun 24 16:39:28 2015] [error] mod_wsgi (pid=25048): Exception occurred processing WSGI script '/data_staging/dxr-staging/dxr/dxr/wsgi.py'. [Wed Jun 24 16:39:28 2015] [error] Traceback (most recent call last): [Wed Jun 24 16:39:28 2015] [error] File "/data_staging/dxr-staging/dxr/dxr/wsgi.py", line 25, in application [Wed Jun 24 16:39:28 2015] [error] relative_to=dirname(config_path)))(environ, [Wed Jun 24 16:39:28 2015] [error] File "/data_staging/dxr-staging/virtualenv/lib/python2.7/site-packages/dxr-0.1-py2.7.egg/dxr/config.py", line 177, in __init__ [Wed Jun 24 16:39:28 2015] [error] raise ConfigError(exc.code, [section]) [Wed Jun 24 16:39:28 2015] [error] ConfigError: There was an error in the configuration file, in the [mozilla-central] section: missed keys set(['python']) [Wed Jun 24 16:40:05 2015] [error] mod_wsgi (pid=25135): Exception occurred processing WSGI script '/data_staging/dxr-staging/dxr/dxr/wsgi.py'. [Wed Jun 24 16:40:05 2015] [error] Traceback (most recent call last): [Wed Jun 24 16:40:05 2015] [error] File "/data_staging/dxr-staging/dxr/dxr/wsgi.py", line 25, in application [Wed Jun 24 16:40:05 2015] [error] relative_to=dirname(config_path)))(environ, [Wed Jun 24 16:40:05 2015] [error] File "/data_staging/dxr-staging/virtualenv/lib/python2.7/site-packages/dxr-0.1-py2.7.egg/dxr/config.py", line 177, in __init__ [Wed Jun 24 16:40:05 2015] [error] raise ConfigError(exc.code, [section]) [Wed Jun 24 16:40:05 2015] [error] ConfigError: There was an error in the configuration file, in the [mozilla-central] section: missed keys set(['python'])

DXR is no longer available. Searchfox is now replacing it.
See meta bug 1669906 & https://groups.google.com/g/mozilla.dev.platform/c/jDRjrq3l-CY for more details.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.