View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
17506 | Bug reports | ComfortUpdate | public | 2021-08-12 06:03 | 2021-08-17 09:55 |
Reporter | PPRI | Assigned To | c_schmitz | ||
Priority | none | Severity | crash | ||
Status | closed | Resolution | fixed | ||
Product Version | 5.x | ||||
Summary | 17506: Error while upgrading a database from Ver 3.2.7.11+210809 to Ver 5.0.14+210811 | ||||
Description | I was updating my Limesurvey through ComfortUpdate. After updating files, it asked to upgrade database. While upgrading a database, I got the following error message.An non-recoverable error happened during the update. Error details: File C:\Websites\Limesurvey2019\application\helpers\update\updatedb_helper.php, line 3532. Please fix this error in your database and try again | ||||
Tags | No tags attached. | ||||
Bug heat | 8 | ||||
Complete LimeSurvey version number (& build) | Version 5.0.14+210811 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Google Chrome Version 92.0.4515.131 (Official Build) (64-bit) | ||||
Database type & version | SQLServerVersion 12.00.6164 | ||||
Server OS (if known) | Windows Server 2016 | ||||
Webserver software & version (if known) | Microsoft-IIS/10.0 | ||||
PHP Version | 7.3.11 | ||||
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=32510 |
|
@PPRI : can you please apply this patch https://github.com/LimeSurvey/LimeSurvey/commit/a4415187bc5284d97de9c9b20dda276dca1605c6 and see if it fixes the upgrade issue? |
|
tried after applying the fix. No more error message but after processing the db update., the page says "Loading..." at the page, index.php?r=admin/databaseupdate/sa/db/continue/yes and stuck on it. |
|
Can you enable debug = 2 in application/config/config.php and try again, please? Paste the complete error message here. |
|
Loading... Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 8388616 bytes) in C:\Websites\Limesurvey2019\framework\db\CDbCommand.php on line 518 |
|
Ok, so you have run out of memory. |
|
Loading... Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in C:\Websites\Limesurvey2019\framework\db\CDbCommand.php on line 518 Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 135168 bytes) in C:\Websites\Limesurvey2019\framework\logging\CLogger.php on line 150 |
|
Is that the complete error message? No stack trace? Make sure debugsql => 0, not 1, in config.php. |
|
That's all with debug'=>2, 'debugsql'=>0 |
|
Please try to raise it further then. At some point it will work. |
|
I have 30 surveys and only 7 surveys are active and running. I will try to raise the memory limit more. |
|
Thank you, we're reviewing the code to reduce the memory usage. |
|
I set memory_limit = 2048M and got the new error. ==== C:\Websites\Limesurvey2019\application\models\LSActiveRecord.php(370) 358 }
|
|
I pushed a fix here: https://github.com/LimeSurvey/LimeSurvey/commit/2bf863b0563cd9896b8369af8edb3543f68d9192 But this will still throw an exception, just a "correct" exception. |
|
Can you start the upgrade from scratch from a database and file backup? You might now have the problem that some files/database are half-way updated creating follow-up errors. |
|
Version 5.1.1 released, please try again with this new version and let us know if any problems remain. Thank you! |
|
To test a fresh update from the previous version like c_schmitz suggested, I built a new website with my code and database backups but Version 5.xxx is gone from the ComfortUpdate now so I couldn't test it. |
|
Never mind, I see 5.1.1 update at the ComfortUpdate now. I will let you know my test result soon. |
|
while updating I got this error message. Please see the screenshot added. |
|
@PPRI The service was temporarily disabled while we debugged it, but should be fine since around when you tried it. Can you reload the page and try again, please? |
|
Error again but different message. ===== An non-recoverable error happened during the update. Error details: File C:\Websites\Limesurvey2019_Org\application\core\LSSodiumOld.php, line 25. |
|
To know where your database update halted, can you run this query and show us the result? SELECT * FROM settings_global WHERE stg_name = 'dbversion'; (Assuming your table prefix is empty - it might be "lime_" too). You can also inspect the file application/config/security.php and check which values it has (but don't paste them here, the values are secret). Thank you. |
|
DBVersion = 451 I have $config['encryptionnonce'] and $config['encryptionsecretboxkey'] in the security.php. |
|
@PPRI OK, we've released 5.1.2 with a fix for this. Please test and report any other issues. Thank you! |
|
Actually, might still be a bug in that version related to encryption of emailsmtppassword. We'll release a fix tomorrow. |
|
Thank you so much for all your helps. It has been updated successfully now. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2021-08-12 06:03 | PPRI | New Issue | |
2021-08-12 08:27 | c_schmitz | Changeset attached | => LimeSurvey master a4415187 |
2021-08-12 08:27 | c_schmitz | Note Added: 65905 | |
2021-08-12 08:27 | c_schmitz | Bug heat | 0 => 2 |
2021-08-12 08:27 | c_schmitz | Assigned To | => c_schmitz |
2021-08-12 08:27 | c_schmitz | Resolution | open => fixed |
2021-08-12 08:28 | c_schmitz | Status | new => feedback |
2021-08-12 08:28 | c_schmitz | Note Added: 65906 | |
2021-08-12 08:45 | c_schmitz | Sync to Zoho Project | => |Yes| |
2021-08-12 09:06 | PPRI | Note Added: 65909 | |
2021-08-12 09:06 | PPRI | File Added: Screenshot 2021-08-12 015415.png | |
2021-08-12 09:06 | PPRI | Bug heat | 2 => 4 |
2021-08-12 09:06 | PPRI | Status | feedback => assigned |
2021-08-12 09:14 | c_schmitz | Status | assigned => feedback |
2021-08-12 09:14 | c_schmitz | Note Added: 65910 | |
2021-08-12 09:32 | PPRI | Note Added: 65911 | |
2021-08-12 09:32 | PPRI | Status | feedback => assigned |
2021-08-12 09:33 | ollehar | Issue Monitored: ollehar | |
2021-08-12 09:33 | ollehar | Bug heat | 4 => 6 |
2021-08-12 09:35 | c_schmitz | Note Added: 65912 | |
2021-08-12 09:36 | c_schmitz | Status | assigned => feedback |
2021-08-12 09:43 | PPRI | Note Added: 65913 | |
2021-08-12 09:43 | PPRI | Status | feedback => assigned |
2021-08-12 09:47 | ollehar | Note Added: 65914 | |
2021-08-12 09:47 | ollehar | Bug heat | 6 => 8 |
2021-08-12 09:55 | PPRI | Note Added: 65915 | |
2021-08-12 09:56 | c_schmitz | Note Added: 65916 | |
2021-08-12 09:57 | c_schmitz | Note Edited: 65916 | |
2021-08-12 10:20 | PPRI | Note Added: 65917 | |
2021-08-12 10:35 | ollehar | Note Added: 65918 | |
2021-08-12 10:44 | PPRI | Note Added: 65919 | |
2021-08-12 10:56 | ollehar | Note Added: 65920 | |
2021-08-12 11:24 | c_schmitz | Note Added: 65921 | |
2021-08-12 15:30 | ollehar | Note Added: 65926 | |
2021-08-12 15:30 | ollehar | Status | assigned => feedback |
2021-08-12 16:34 | c_schmitz | Relationship added | related to 17501 |
2021-08-12 16:56 | PPRI | Note Added: 65930 | |
2021-08-12 16:56 | PPRI | Status | feedback => assigned |
2021-08-12 17:04 | PPRI | Note Added: 65931 | |
2021-08-12 17:11 | PPRI | Note Added: 65933 | |
2021-08-12 17:11 | PPRI | File Added: Screenshot 2021-08-12 110959.png | |
2021-08-12 17:44 | ollehar | Note Added: 65938 | |
2021-08-12 18:13 | PPRI | Note Added: 65939 | |
2021-08-12 18:28 | ollehar | Note Added: 65941 | |
2021-08-12 18:46 | PPRI | File Deleted: Screenshot 2021-08-12 015415.png | |
2021-08-12 19:00 | PPRI | Note Added: 65946 | |
2021-08-12 19:37 | ollehar | Note Added: 65947 | |
2021-08-12 19:54 | ollehar | Note Added: 65949 | |
2021-08-12 19:54 | PPRI | Note Added: 65950 | |
2021-08-12 22:05 | ollehar | Status | assigned => resolved |
2021-08-17 09:55 | c_schmitz | Status | resolved => closed |