Closed upats closed 6 years ago
Your error log shows user_id is null.
That cannot be.
Maybe there’s a database integrity issue?
Chad, care to weigh in?
Hey Robert,
This entry in mdl_block_quickmail_signatures has a user_id set. It's the first row in the table.
Hey there @upats
One thing I noticed it that it looks like you are attempting to upgrade to an unstable branch dev-34-n
. This is a new branch of the dev-34
which is the current release candidate for Quickmail v2. So, first, I'd recommend trying to upgrade to that one.
With that said, the upgrade process should be no different and should work (though you'll get a bunch of tables that aren't used yet).
Our "master" stable branch for Quickmail v1 at this point is the dev-30
branch (apologies for the naming conventions at this point!). There have been updates to that one since your tagged 2017062200
which appears to be the version you are upgrading from.
Myself and other institutions have tested going from the latest dev-30
to the latest dev-34
with no problems.
I'd recommend first upgrading to the latest dev-30
code, then upgrade to the latest dev-34
.
I'm not ruling out any bugs on our side, so I'll attempt to set up the scenario you were in and report back and patch if I find any issues.
Thanks for giving it a shot, and for the feedback.
Chad
Oops, didn't mean to close.
Hi Chad,
Updating to the latest dev-30 branch (2017122000) worked. The subsequent attempt to update to dev-34 (2018051100) produced the same error as reported previously :(
Seems it is not pulling the proper data from the DB since there is indeed a user_id entry. Might this have something to do with the required DB collation change to utf8mb4_unicode_ci? Doesn't seem like that would be an issue with a simple integer.
Thanks, Tony
Tony, I'm going to close this issue now as we've come up with a different strategy for migrating any existing quickmail data from v1 to v2. Because some installations may have a large amount of block_quickmail_logs
or block_quickmail_drafts
records, it is not safe to assume that a web installation session would be able to handle that amount of db queries. As a result, we've removed the inline script and gone to an optional scheduled task to chip away at the data according to your needs. In fact, there is a configurable "chunk size" on the amount of records that will be attempted to be migrated in a given run of the task (which defaults to 1000). I just wanted to clear out some issues here and feel like this one has been resolved. If you do want to check out the new code I'm referencing here our release candidate branch is now develop
.
I'm attempting to upgrade from moodle 3.2 to 3.4, including quickmail from 1.7.0 (2017062200) -> 2.0.0 (2018051100) and am getting the following error: