Summary: | ASTERISK-25890: Asterisk 13.8.0 alembic database update fails | ||
Reporter: | Harley Peters (hpeters63) | Labels: | |
Date Opened: | 2016-04-01 16:54:37 | Date Closed: | 2016-04-11 19:38:04 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | Contrib/General |
Versions: | 13.8.0-rc1 13.8.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | Debian Jessie | Attachments: | |
Description: | I get the following error when trying to update date the database via contrib/ast-db-manage/alembic -c config.ini upgrade head.
Every previous update has always worked any idea what is wrong. OS=Debian Jessie, fully up to date. alembic [0.6.5+ds-1] python-sqlalchemy [0.9.8+dfsg-0.1] {noformat} INFO [alembic.migration] Context impl MySQLImpl. INFO [alembic.migration] Will assume non-transactional DDL. INFO [alembic.migration] Running upgrade 2d078ec071b7 -> 26d7f3bf0fa5, add bind_rtp_to_media_address to pjsip INFO [alembic.migration] Running upgrade 26d7f3bf0fa5 -> 136885b81223, add regcontext to pjsip INFO [alembic.migration] Running upgrade 136885b81223 -> 423f34ad36e2, fix pjsip qualify timeout Traceback (most recent call last): File "/usr/bin/alembic", line 9, in <module> load_entry_point('alembic==0.6.5', 'console_scripts', 'alembic')() File "/usr/lib/python2.7/dist-packages/alembic/config.py", line 298, in main CommandLine(prog=prog).main(argv=argv) File "/usr/lib/python2.7/dist-packages/alembic/config.py", line 293, in main self.run_cmd(cfg, options) File "/usr/lib/python2.7/dist-packages/alembic/config.py", line 279, in run_cmd **dict((k, getattr(options, k)) for k in kwarg) File "/usr/lib/python2.7/dist-packages/alembic/command.py", line 125, in upgrade script.run_env() File "/usr/lib/python2.7/dist-packages/alembic/script.py", line 203, in run_env util.load_python_file(self.dir, 'env.py') File "/usr/lib/python2.7/dist-packages/alembic/util.py", line 212, in load_python_file module = load_module_py(module_id, path) File "/usr/lib/python2.7/dist-packages/alembic/compat.py", line 58, in load_module_py mod = imp.load_source(module_id, path, fp) File "config/env.py", line 74, in <module> run_migrations_online() File "config/env.py", line 67, in run_migrations_online context.run_migrations() File "<string>", line 7, in run_migrations File "/usr/lib/python2.7/dist-packages/alembic/environment.py", line 688, in run_migrations self.get_context().run_migrations(**kw) File "/usr/lib/python2.7/dist-packages/alembic/migration.py", line 258, in run_migrations change(**kw) File "config/versions/423f34ad36e2_fix_pjsip_qualify_ti.py", line 17, in upgrade with op.batch_alter_table('ps_aors') as batch_op: AttributeError: 'module' object has no attribute 'batch_alter_table' {noformat} | ||
Comments: | By: Asterisk Team (asteriskteam) 2016-04-01 16:54:38.425-0500 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. |