-
Notifications
You must be signed in to change notification settings - Fork 447
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 upgrading to OJS 3.4 if the journal's URL/domain has been changed #9810
Comments
@bozana check if it makes sense what I wrote. |
Hi @jonasraoni,
|
|
…the configured base_url
@jonasraoni, could you please review the PR above? |
…the configured base_url
…the configured base_url
#9810 check if the URL in the usage stats log file corresp…
pkp/pkp-lib#9810 submodule update ##bozana/9810-3_4_0##
pkp/pkp-lib#9810 submodule update ##bozana/9810-3_4_0##
pkp/pkp-lib#9810 submodule update ##bozana/9810-3_4_0##
…the configured base_url
#9810 check if the URL in the usage stats log file corresp…
Describe the bug
At the
I8508_ConvertCurrentLogFile
migration, the error below happens if theconfig.inc.php
isn't using the production URL.Error: File /files/usageStats/usageEventLogs/usage_events_20240319.log could not be successfully converted.
As a sysadmin, I might decide to upgrade the system under a temporary host, and this error is unexpected to me and tough to reason about.
Just a warning like
ensure you've got the right base_url before migrating
might not be enough, so I think we can be more pro-active and attempt to convert the file at this point (at least a couple of lines to ensure that it's ok):pkp-lib/classes/migration/upgrade/v3_4_0/PreflightCheckMigration.php
Line 206 in 3db74ed
As the code has a couple of
continue
s, I think it's better to ensure that at least one entry really failed before assuming that the file couldn't be processed (e.g. if the file just has one entry, an internal apache request then the tool will not process anything and mistakenly assume that it failed).To Reproduce
base_url
{$files_dir}/usageStats/usageEventLogs
What application are you using?
OJS 3.4
PRs:
stable-3_4_0:
main:
The text was updated successfully, but these errors were encountered: