Harley Peters
2016-Apr-01 20:57 UTC
[asterisk-users] Asterisk 13.8.0 alembic database update fails.
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.
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'
Joshua Colp
2016-Apr-01 21:06 UTC
[asterisk-users] Asterisk 13.8.0 alembic database update fails.
Harley Peters wrote:> 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.What version of Alembic is installed and how did you install it - from a package or pip? A change may have gone in which somehow requires a newer version. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
George Joseph
2016-Apr-01 21:08 UTC
[asterisk-users] Asterisk 13.8.0 alembic database update fails.
On Fri, Apr 1, 2016 at 3:06 PM, Joshua Colp <jcolp at digium.com> wrote:> Harley Peters wrote: > >> 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. >> > > What version of Alembic is installed and how did you install it - from a > package or pip? A change may have gone in which somehow requires a newer > version.?and what version of python-sqlalchemy??> > > -- > Joshua Colp > Digium, Inc. | Senior Software Developer > 445 Jan Davis Drive NW - Huntsville, AL 35806 - US > Check us out at: www.digium.com & www.asterisk.org > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160401/9b3c4acc/attachment.html>
Harley Peters
2016-Apr-01 21:15 UTC
[asterisk-users] Asterisk 13.8.0 alembic database update fails.
On 04/01/2016 04:06 PM, Joshua Colp wrote:> Harley Peters wrote: >> 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. > > What version of Alembic is installed and how did you install it - from a > package or pip? A change may have gone in which somehow requires a newer > version. >alembic [0.6.5+ds-1] python-sqlalchemy [0.9.8+dfsg-0.1] Looks like the alembic version maybe to old. Harley