Installed the latest version of re:dash using the bash script, logged in as admin, created a new mongodb data source and called it “staging_DB”, then I created another data source and by mistake called it also “staging_DB”, I got a “saving failed” msg so I realized my mistake and corrected it to “production_DB”, got another “saving failed”, refreshed the page and got an internal error, this is the relevant trace from the log file:
[2016-08-09 13:36:57,329][PID:30985][ERROR][redash] Exception on /api/data_sources [GET]
Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/flask/app.py”, line 1475, in full_dispatch_request
rv = self.dispatch_request()
File “/usr/local/lib/python2.7/dist-packages/flask/app.py”, line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File “/usr/local/lib/python2.7/dist-packages/flask_restful/init.py”, line 477, in wrapper
resp = resource(args, *kwargs)
File “/usr/local/lib/python2.7/dist-packages/flask_login.py”, line 792, in decorated_view
return func(args, *kwargs)
File “/usr/local/lib/python2.7/dist-packages/flask/views.py”, line 84, in view
return self.dispatch_request(args, *kwargs)
File “/opt/redash/current/redash/handlers/base.py”, line 25, in dispatch_request
return super(BaseResource, self).dispatch_request(args, *kwargs)
File “/usr/local/lib/python2.7/dist-packages/flask_restful/init.py”, line 587, in dispatch_request
resp = meth(args, *kwargs)
File “/opt/redash/current/redash/permissions.py”, line 41, in decorated
return fn(args, *kwargs)
File “/opt/redash/current/redash/handlers/data_sources.py”, line 66, in get
d = ds.to_dict()
File “/opt/redash/current/redash/models.py”, line 378, in to_dict
‘syntax’: self.query_runner.syntax,
File “/opt/redash/current/redash/models.py”, line 454, in query_runner
return get_query_runner(self.type, self.options)
File “/opt/redash/current/redash/query_runner/init.py”, line 148, in get_query_runner
return query_runner_class(configuration)
File “/opt/redash/current/redash/query_runner/mongodb.py”, line 101, in init
self.db_name = self.configuration[“dbName”]
File “/opt/redash/current/redash/utils/configuration.py”, line 73, in getitem
raise KeyError(item)
KeyError: ‘dbName’
Can you suggest a way of quick fixing it? re-installing on same machine didn’t help.