Hi guys! I’m really enjoying to project using rasa stack, thanks for the wonderfull work
I’ve used rasa x before many times, but today I am experiencing a strange error: when running “rasa x” on terminal, I get this error, which I did not found anywhere:
Traceback (most recent call last):
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/base.py", line 158, in _catch_revision_errors
yield
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/base.py", line 360, in _upgrade_revs
revs = list(revs)
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/revision.py", line 755, in _iterate_revisions
requested_lowers = self.get_revisions(lower)
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/revision.py", line 319, in get_revisions
return sum([self.get_revisions(id_elem) for id_elem in id_], ())
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/revision.py", line 319, in <listcomp>
return sum([self.get_revisions(id_elem) for id_elem in id_], ())
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/revision.py", line 324, in get_revisions
for rev_id in resolved_id
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/revision.py", line 324, in <genexpr>
for rev_id in resolved_id
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/revision.py", line 387, in _revision_for_ident
resolved_id,
alembic.script.revision.ResolutionError: No such revision or branch '8893bba2a522'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/rasa/cli/x.py", line 429, in run_locally
args, project_path, args.data, token=rasa_x_token, config_path=config_path
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/rasax/community/local.py", line 208, in main
sql_migrations.run_migrations(session)
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/rasax/community/sql_migrations.py", line 25, in run_migrations
_run_schema_migrations(session)
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/rasax/community/sql_migrations.py", line 41, in _run_schema_migrations
_run_alembic_migration(alembic_config)
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/rasax/community/sql_migrations.py", line 65, in _run_alembic_migration
command.upgrade(alembic_config, target_revision)
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/command.py", line 276, in upgrade
script.run_env()
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/base.py", line 475, in run_env
util.load_python_file(self.dir, "env.py")
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/util/pyfiles.py", line 90, in load_python_file
module = load_module_py(module_id, path)
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/util/compat.py", line 177, in load_module_py
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/rasax/community/database/schema_migrations/alembic/env.py", line 89, in <module>
run_migrations_online()
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/rasax/community/database/schema_migrations/alembic/env.py", line 79, in run_migrations_online
context.run_migrations()
File "<string>", line 8, in run_migrations
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/runtime/environment.py", line 839, in run_migrations
self.get_context().run_migrations(**kw)
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/runtime/migration.py", line 351, in run_migrations
for step in self._migrations_fn(heads, self):
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/command.py", line 265, in upgrade
return script._upgrade_revs(revision, rev)
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/base.py", line 365, in _upgrade_revs
for script in reversed(list(revs))
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/base.py", line 190, in _catch_revision_errors
compat.raise_from_cause(util.CommandError(resolution))
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/util/compat.py", line 295, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=exc_value)
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/util/compat.py", line 288, in reraise
raise value.with_traceback(tb)
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/base.py", line 158, in _catch_revision_errors
yield
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/base.py", line 360, in _upgrade_revs
revs = list(revs)
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/revision.py", line 755, in _iterate_revisions
requested_lowers = self.get_revisions(lower)
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/revision.py", line 319, in get_revisions
return sum([self.get_revisions(id_elem) for id_elem in id_], ())
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/revision.py", line 319, in <listcomp>
return sum([self.get_revisions(id_elem) for id_elem in id_], ())
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/revision.py", line 324, in get_revisions
for rev_id in resolved_id
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/revision.py", line 324, in <genexpr>
for rev_id in resolved_id
File "/home/luan/anaconda3/envs/rasa/lib/python3.7/site-packages/alembic/script/revision.py", line 387, in _revision_for_ident
resolved_id,
alembic.util.exc.CommandError: Can't locate revision identified by '8893bba2a522'
Sorry, something went wrong (see error above). Make sure to start Rasa X with valid data and valid domain and config files. Please, also check any warnings that popped up.
If you need help fixing the issue visit our forum: http://forum.rasa.com/.
Additionally, when running locally, everything works fine.
Any ideias?
Thanks in advance!