-
Notifications
You must be signed in to change notification settings - Fork 445
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
Upgrade to 3.3.0.2 failed: Data truncated for column 'context_id' #6708
Comments
@claytondf, this seems like a data error. Do you have an unusual (very large or non-numeric) value for |
@asmecher I'm going to perform an analysis email_templates I will perform an analysis on the email_templates table. The context_id column is NULL in all records |
There was an advance in the update process after I reset all email templates. Only it fell into another error :-( [pre-install] |
@claytondf, it looks like you first countered...
...which is due to #6710 (comment), which will be resolved shortly. Then you edited the comment for a new message:
I think this might arise from attempting to re-run an upgrade on a database that has already experienced a failed upgrade. Did you restore your database from backup before trying again? |
@asmecher I tried in several ways root@edu-srv-omp:/var/www/html/tools# php upgrade.php upgrade ERROR: Upgrade failed: DB: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'omp.journal_settings' doesn't exist (SQL: select |
@claytondf, that issue is not resolved yet -- watch for an additional patch in the next day or so, or in the meantime you can change references to |
@asmecher |
@claytondf, that's the wrong file -- look for |
@asmecher, I made the changes to the code, according to your guidance, but the error continues for the OMP.
root@edu-srv-omp:/var/www/html/tools# php upgrade.php upgrade |
@claytondf, you'll also need to change |
@asmecher, Thank you! I'll wait for the patch! |
@claytondf, can you try setting |
I have already successfully updated the system to version 3_3_0-3, and for updating it was necessary to reset all email templates. At the moment I can no longer simulate the problem. |
@asmecher, To Reproduce WorkFlow->Emails->Email Templates Meu.Video.mp4 |
Log to Apache2: [Wed Feb 10 14:23:03.147849 2021] [:notice] [pid 21927] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On. |
@claytondf, that looks like a different issue; can you open a new entry for it? |
Describe the bug
Dear,
I tried to perform the upgrade procedure 3 times without success, follows below the error log
To Reproduce
Steps to reproduce the behavior:
Back up your files and database
Remove files of existing installation.
Restore your config.inc.php with all new changes present in new version.
root@edu-srv-omp:/var/www/html/tools# php upgrade.php lastest
Upgrade tool
Usage: upgrade.php command
Supported commands:
check perform version check
latest display latest version info
upgrade execute upgrade script
download download latest version (does not unpack/install)
root@edu-srv-omp:/var/www/html/tools# php upgrade.php upgrade
[pre-install]
[load: upgrade.xml]
[version: 3.3.0.2]
[code: Installer Installer::checkPhpVersion]
[code: Installer Installer::installDefaultNavigationMenus]
WARNING: The NavigationMenu (ContextId: 1, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
WARNING: The NavigationMenu (ContextId: 1, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
WARNING: The NavigationMenu (ContextId: 0, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[code: Installer Installer::migrateStaticPagesToNavigationMenuItems]
[migration: PKPv3_3_0UpgradeMigration]
ERROR: Upgrade failed: DB: SQLSTATE[01000]: Warning: 1265 Data truncated for column 'context_id' at row 1 (SQL: ALTER TABLE email_templates CHANGE context_id context_id BIGINT DEFAULT 0 NOT NULL)
Visit http://domain.com/[[DIR]]/index.php/index/install/upgrade and click on "Upgrade" throws above error.
What application are you using?
OMP 3.3.0.2
Additional information
Using PHP 7.4.14 and 10.3.27-MariaDB-0+deb10u1 - Debian 10
The text was updated successfully, but these errors were encountered: