These are chat archives for getredash/redash

19th
Mar 2018
Ahmed Omar
@spawnthink
Mar 19 2018 11:49
Hey all, I was wondering if someone ran into the same issue: I have mail server configured, test email from manage.py works fine, but no other emails get sent (reset password, alerts)
sevenfourk
@sevenfourk
Mar 19 2018 13:19
@galgoogle thanks.
Ankit Chiplunkar
@ankitchiplunkar
Mar 19 2018 16:12
Hi, I am have made some changes in the models.py and am trying to migrate the database., but unfortunately I am getting IOError here is the stacktrace
  Generating /opt/redash/redash-3/migrations/versions/9b1f32d782a0_.py ... FAILED
Traceback (most recent call last):
  File "/opt/redash/redash-3/manage.py", line 9, in <module>
    manager()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flask/cli.py", line 345, in main
    return AppGroup.main(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flask/cli.py", line 229, in decorator
    return __ctx.invoke(f, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flask_migrate/cli.py", line 88, in migrate
    rev_id)
  File "/usr/local/lib/python2.7/dist-packages/flask_migrate/__init__.py", line 177, in migrate
    version_path=version_path, rev_id=rev_id)
  File "/usr/local/lib/python2.7/dist-packages/alembic/command.py", line 180, in revision
    revision_context.generate_scripts()
  File "/usr/local/lib/python2.7/dist-packages/alembic/autogenerate/api.py", line 480, in generate_scripts
    yield self._to_script(generated_revision)
  File "/usr/local/lib/python2.7/dist-packages/alembic/autogenerate/api.py", line 412, in _to_script
    **template_args)
  File "/usr/local/lib/python2.7/dist-packages/alembic/script/base.py", line 574, in generate_revision
    **kw
  File "/usr/local/lib/python2.7/dist-packages/alembic/script/base.py", line 439, in _generate_template
    **kw
  File "/usr/local/lib/python2.7/dist-packages/alembic/util/messaging.py", line 47, in status
    ret = fn(*arg, **kw)
  File "/usr/local/lib/python2.7/dist-packages/alembic/util/pyfiles.py", line 26, in template_to_file
    with open(dest, 'wb') as f:
IOError: [Errno 13] Permission denied: '/opt/redash/redash-3/migrations/versions/9b1f32d782a0_.py'