-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while updating the database #1411
Comments
Hello, did you try to run the upgrade process twice?. That field wasn't created before 3.1, so you would need to import a previous backup and the run the upgrade again. Regards |
Hi I try the upgrade from 3.0.5 to 3.1.0 in docker 3.1.0-php7.3. And I get the same error. Why it is happening? there is way to solve it? |
@alebeta90 Hi, could you provide some more information about the error?. Some logs messages would be useful... Regards |
Hi @nuxsmin sorry for the lack of information in the first message. The environment is Docker Swarm, it had been running syspass 3.0.5 with no problem and now I just did the switch to 3.1.0 and I get this error when trying to upgrade. This is what I get at syspass.log [2019-08-26 12:45:41] syspass.INFO: logger {"message":"Extensions checked","caller":"SP\Core\PhpExtensionChecker::checkMandatory"} |
@alebeta90 no worries. How did you do the switch?. It complains about an already existing table. Regards |
@nuxsmin what I did was:
then the error appear thanks |
@nuxsmin now I can not use the version 3.0.5. It is always showing upgrade page. Even after restoring to old database. |
@alebeta90 it's weird since the new version is not written into configuration file unless it was successful. I'm trying to find out what can be causing the duplicated column error. Did you try to upgrade multiple times? Regards |
@nuxsmin thanks for the reply. I did try to upgrade before and I was entering the wrong security code. Then when I enter the right security code, it gave me that error. Thanks |
@nuxsmin sorry for the late reply. |
@VexedSyd no worries Could you restore the database to the previous state and then upgrade again? |
@nuxsmin I did that, and the same issue... even with the database from before the upgrade attempt I had been checking the database to make work, but not luck so far... |
@nuxsmin |
Hello, sorry for the late reply... Could you remove the Regards |
Good day, Best regards. |
@VexedSyd good day! Which version are you running? The custom fields issue was solved some releases ago. |
sysPass Version:
Upgarding from syspass:3.0.5 to syspass:3.1.0-rc5 (CentOS 7.6, MariaDB 5.5.60, PHP 7.2.20)
Describe the bug:
Similar to #1382
An error "Error while updating the database" appears while performing the upgrade.
Error while updating the database | ERROR: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'versionLevel'
To Reproduce:
Steps to reproduce the behavior:
Filled in Security Code
Checked-out "I have done a full backup"
Pressed "Upgrade" button
An error "Error while updating the database" occurs on the browser
sysPass Log:
The text was updated successfully, but these errors were encountered: