This is what I get when trying to upgrade on Ubuntu 14 per the upgrade
instructions at
http://privacyidea.readthedocs.org/en/v2.3/installation/upgrade.html#stopping-your-server
Ultimately what happens is I get wrong otp pin in the web gui and the
system no longer authenticates to the remote servers.
The log file is empty.
root@ubuntu14-privacyidea:/home/toddf# pi-manage.py db stamp 4f32a4e1bf33
The configuration name is: production
Additional configuration can be read from the file /etc/privacyidea/pi.cfg
Traceback (most recent call last):
File “/usr/bin/pi-manage.py”, line 401, in
manager.run()
File “/usr/lib/python2.7/dist-packages/flask_script/init.py”, line
405, in run
result = self.handle(sys.argv[0], sys.argv[1:])
File “/usr/lib/python2.7/dist-packages/flask_script/init.py”, line
384, in handle
return handle(app, *positional_args, **kwargs)
File “/usr/lib/python2.7/dist-packages/flask_script/commands.py”, line
145, in handle
return self.run(*args, **kwargs)
File “/usr/lib/python2.7/dist-packages/flask_migrate/init.py”, line
88, in stamp
config = _get_config(directory)
File “/usr/lib/python2.7/dist-packages/flask_migrate/init.py”, line
37, in _get_config
config.set_main_option(‘script_location’, directory)
File “/usr/lib/python2.7/dist-packages/alembic/config.py”, line 142, in
set_main_option
self.file_config.set(self.config_ini_section, name, value)
File “/usr/lib/python2.7/ConfigParser.py”, line 753, in set
ConfigParser.set(self, section, option, value)
File “/usr/lib/python2.7/ConfigParser.py”, line 396, in set
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'alembic’
root@ubuntu14-privacyidea:/home/toddf# pi-manage.py db stamp 4f32a4e1bf33
The configuration name is: production
Additional configuration can be read from the file /etc/privacyidea/pi.cfg
Traceback (most recent call last):
File “/usr/bin/pi-manage.py”, line 401, in
manager.run()
File “/usr/lib/python2.7/dist-packages/flask_script/init.py”, line
405, in run
result = self.handle(sys.argv[0], sys.argv[1:])
File “/usr/lib/python2.7/dist-packages/flask_script/init.py”, line
384, in handle
return handle(app, *positional_args, **kwargs)
File “/usr/lib/python2.7/dist-packages/flask_script/commands.py”, line
145, in handle
return self.run(*args, **kwargs)
File “/usr/lib/python2.7/dist-packages/flask_migrate/init.py”, line
88, in stamp
config = _get_config(directory)
File “/usr/lib/python2.7/dist-packages/flask_migrate/init.py”, line
37, in _get_config
config.set_main_option(‘script_location’, directory)
File “/usr/lib/python2.7/dist-packages/alembic/config.py”, line 142, in
set_main_option
self.file_config.set(self.config_ini_section, name, value)
File “/usr/lib/python2.7/ConfigParser.py”, line 753, in set
ConfigParser.set(self, section, option, value)
File “/usr/lib/python2.7/ConfigParser.py”, line 396, in set
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: ‘alembic’
root@ubuntu14-privacyidea:/home/toddf# pi-manage.py db upgrade -d
/usr/lib/privacyidea/migrations
The configuration name is: production
Additional configuration can be read from the file /etc/privacyidea/pi.cfg
INFO [alembic.migration] Context impl MySQLImpl.
INFO [alembic.migration] Will assume non-transactional DDL.
INFO [alembic.migration] Running upgrade 2181294eed0b -> e5cbeb7c177, Add
column ‘priority’ to table ‘resolverealm’
Thanks,
Todd