Hi great cornelinux,
ok i tried now to upgrade bin of privacyidea-> all ok.
Now upgrading not freezing but i have this error on following steps:
pi-manage db stamp 4f32a4e1bf33 -d /opt/privacyIDEA/lib/privacyidea/migrations
give me this error:
No handlers could be found for logger “privacyidea.lib.stats”
/opt/privacyIDEA/lib/python2.7/site-packages/privacyidea/app.py:58: ExtDeprecationWarning: Importing flask.ext.migrate is deprecated, use flask_migrate instead.
from flask.ext.migrate import Migrate
/opt/privacyIDEA/lib/python2.7/site-packages/flask_sqlalchemy/init.py:839: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True or False to suppress this warning.
'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and '
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
/opt/privacyIDEA/lib/python2.7/site-packages/flask_sqlalchemy/init.py:839: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True or False to suppress this warning.
'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and ’
AND
pi-manage db upgrade -d /opt/privacyIDEA/lib/privacyidea/migrations
No handlers could be found for logger “privacyidea.lib.stats”
/opt/privacyIDEA/lib/python2.7/site-packages/privacyidea/app.py:58: ExtDeprecationWarning: Importing flask.ext.migrate is deprecated, use flask_migrate instead.
from flask.ext.migrate import Migrate
/opt/privacyIDEA/lib/python2.7/site-packages/flask_sqlalchemy/init.py:839: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True or False to suppress this warning.
'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and '
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
/opt/privacyIDEA/lib/python2.7/site-packages/flask_sqlalchemy/init.py:839: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True or False to suppress this warning.
'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and ’
_ _______ _______
___ () _____ _______ __/ / _ / __/ _ |
/ _ / __/ / |/ / _ `/ / // // // // / _// __ |
/ .// //|/_,/_/_, ///// ||
// /___/
Running online
Column already exists
(psycopg2.ProgrammingError) column “Type” of relation “tokeninfo” already exists
[SQL: ‘ALTER TABLE tokeninfo ADD COLUMN “Type” VARCHAR(100)’]
Traceback (most recent call last):
File “/opt/privacyIDEA/bin/pi-manage”, line 894, in
manager.run()
File “/opt/privacyIDEA/lib/python2.7/site-packages/flask_script/init.py”, line 412, in run
result = self.handle(sys.argv[0], sys.argv[1:])
File “/opt/privacyIDEA/lib/python2.7/site-packages/flask_script/init.py”, line 383, in handle
res = handle(*args, **config)
File “/opt/privacyIDEA/lib/python2.7/site-packages/flask_script/commands.py”, line 216, in call
return self.run(*args, **kwargs)
File “/opt/privacyIDEA/lib/python2.7/site-packages/flask_migrate/init.py”, line 259, in upgrade
command.upgrade(config, revision, sql=sql, tag=tag)
File “/opt/privacyIDEA/lib/python2.7/site-packages/alembic/command.py”, line 254, in upgrade
script.run_env()
File “/opt/privacyIDEA/lib/python2.7/site-packages/alembic/script/base.py”, line 425, in run_env
util.load_python_file(self.dir, ‘env.py’)
File “/opt/privacyIDEA/lib/python2.7/site-packages/alembic/util/pyfiles.py”, line 93, in load_python_file
module = load_module_py(module_id, path)
File “/opt/privacyIDEA/lib/python2.7/site-packages/alembic/util/compat.py”, line 75, in load_module_py
mod = imp.load_source(module_id, path, fp)
File “/opt/privacyIDEA/lib/privacyidea/migrations/env.py”, line 87, in
run_migrations_online()
File “/opt/privacyIDEA/lib/privacyidea/migrations/env.py”, line 78, in run_migrations_online
context.run_migrations()
File “”, line 8, in run_migrations
File “/opt/privacyIDEA/lib/python2.7/site-packages/alembic/runtime/environment.py”, line 836, in run_migrations
self.get_context().run_migrations(**kw)
File “/opt/privacyIDEA/lib/python2.7/site-packages/alembic/runtime/migration.py”, line 337, in run_migrations
head_maintainer.update_to_step(step)
File “/opt/privacyIDEA/lib/python2.7/site-packages/alembic/runtime/migration.py”, line 540, in update_to_step
self.update_version(from, to_)
File “/opt/privacyIDEA/lib/python2.7/site-packages/alembic/runtime/migration.py”, line 500, in update_version
== literal_column("’%s’" % from))
File “/opt/privacyIDEA/lib/python2.7/site-packages/alembic/ddl/impl.py”, line 118, in _exec
return conn.execute(construct, *multiparams, **params)
File “/opt/privacyIDEA/lib/python2.7/site-packages/sqlalchemy/engine/base.py”, line 945, in execute
return meth(self, multiparams, params)
File “/opt/privacyIDEA/lib/python2.7/site-packages/sqlalchemy/sql/elements.py”, line 263, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File “/opt/privacyIDEA/lib/python2.7/site-packages/sqlalchemy/engine/base.py”, line 1053, in _execute_clauseelement
compiled_sql, distilled_params
File “/opt/privacyIDEA/lib/python2.7/site-packages/sqlalchemy/engine/base.py”, line 1189, in _execute_context
context)
File “/opt/privacyIDEA/lib/python2.7/site-packages/sqlalchemy/engine/base.py”, line 1402, in _handle_dbapi_exception
exc_info
File “/opt/privacyIDEA/lib/python2.7/site-packages/sqlalchemy/util/compat.py”, line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File “/opt/privacyIDEA/lib/python2.7/site-packages/sqlalchemy/engine/base.py”, line 1182, in _execute_context
context)
File “/opt/privacyIDEA/lib/python2.7/site-packages/sqlalchemy/engine/default.py”, line 470, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.InternalError: (psycopg2.InternalError) current transaction is aborted, commands ignored until end of transaction block
[SQL: “UPDATE alembic_version SET version_num=‘2551ee982544’ WHERE alembic_version.version_num = ‘4f32a4e1bf33’”]
Httpd restarted
but when i try to access web interface i receive this error:
{“jsonrpc”: “2.0”, “signature”: “23856886817918389368218395258113911217475597493943105684620333156915031288164571044987257682001719237494299112410883755984231853805922636423509190590341710336654564825637984744548599914263511036230780371218661561762025334557108510882879208895664736562357452201753123644518211001667219109469243891047619065441840988351586662179027258962579922320955780478831720581116679552157806898015627056711070111035890448687409103227163411146377330400918826063663477608451206889171415936938597633275964703731024139871904638055048202211538438177636147634640311215006439261155444256231233891426616274476192222337394151170909012584366”, “detail”: null, “version”: “privacyIDEA 2.19.1”, “result”: {“status”: false, “error”: {“message”: “(psycopg2.ProgrammingError) column policy.check_all_resolvers does not exist\nLINE 1: …id AS policy_id, policy.active AS policy_active, policy.che…\n ^\n [SQL: ‘SELECT policy.id AS policy_id, policy.active AS policy_active, policy.check_all_resolvers AS policy_check_all_resolvers, policy.name AS policy_name, policy.scope AS policy_scope, policy.action AS policy_action, policy.realm AS policy_realm, policy.adminrealm AS policy_adminrealm, policy.resolver AS policy_resolver, policy.“user” AS policy_user, policy.client AS policy_client, policy.time AS policy_time, policy.condition AS policy_condition \nFROM policy’]”, “code”: -500}}, “time”: 1504261103.634437, “id”: 1}
What do you think of that?
Thank you very much…