Hi,
Coming from version 2.7 on Centos 7 x64
i follow the install process
from Two-Factor-Authentication with OTP on CentOS 7 – privacyID3A
some time ago and get a version 2.7 perfectly running
I upgrade to 2.1 and get the same issue as describe Houmanic,
What i did for the update is :
i install the requested package libxml2-devel and libxslt-devel using yum
install… then
cd /opt/privacyIDEA
source bin/activate
pip install --upgrade cffi
pip install --upgrade bcrypt
pip install --upgrade privacyidea
then
i read the doc, in particular the upgrade DB schema
: 2.4. Upgrading — privacyIDEA 3.8 documentation
and run the
pi-manage db stamp 4f32a4e1bf33 -d /opt/privacyIDEA/lib/privacyidea/migrations
pi-manage db upgrade -d /opt/privacyIDEA/lib/privacyidea/migrations
reboot the server and try to login and get the error message
What i can see is that the Schema DB upgrade does not seem to create the
smtpserver table in databse
and look like it’s try to update and already exiting fileds in table/db
Running online
Column already exists
(_mysql_exceptions.OperationalError) (1060, “Duplicate column name ‘Type’”)
[SQL: u’ALTER TABLE tokeninfo ADD COLUMN Type
VARCHAR(100)‘]
(_mysql_exceptions.OperationalError) (1060, “Duplicate column name
‘condition’”) [SQL: u’ALTER TABLE policy ADD COLUMN condition
INTEGER NOT
NULL’]
(_mysql_exceptions.OperationalError) (1060, “Duplicate column name
‘priority’”) [SQL: u’ALTER TABLE resolverrealm ADD COLUMN priority INTEGER’]
(_mysql_exceptions.OperationalError) (1060, “Duplicate column name
‘adminrealm’”) [SQL: u’ALTER TABLE policy ADD COLUMN adminrealm
VARCHAR(256)‘]
(_mysql_exceptions.OperationalError) (1060, “Duplicate column name
‘revoked’”) [SQL: u’ALTER TABLE token ADD COLUMN revoked BOOL’]
(_mysql_exceptions.OperationalError) (1060, “Duplicate column name
‘locked’”) [SQL: u’ALTER TABLE token ADD COLUMN locked BOOL’]
the command : pi-manage db heads -d
/opt/privacyIDEA/lib/privacyidea/migrations give :
20969b4cbf06 (head)
which let me think the upgrade did not run successfullyOn Monday, February 15, 2016 at 7:30:21 PM UTC+1, Houmanic wrote:
Hello Dear Cornelius
I updated the package to 2.10 and now I cannot login into the website.
Following is the error message I get:
“Authentication failed. (ProgrammingError) (1146, “Table ‘pi.smtpserver’
doesn’t exist”) ‘SELECT smtpserver.id AS smtpserver_id,
smtpserver.identifier AS smtpserver_identifier, smtpserver.server AS
smtpserver_server, smtpserver.port AS smtpserver_port, smtpserver.username
AS smtpserver_username, smtpserver.password AS smtpserver_password,
smtpserver.sender AS smtpserver_sender, smtpserver.tls AS smtpserver_tls,
smtpserver.description AS smtpserver_description \nFROM smtpserver’ ()”
I replaced the “config.smtp.edit.html” file with the one you put in Github
last day, then removed all the email field that I configured before,
however the error still exists.