-
Notifications
You must be signed in to change notification settings - Fork 39
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
[UX][DX] Update.php throws error about install.php (and says to delete live config) #3846
Comments
I've filed a PR that separates out problems with the staging directory form problems with the active directory. The staging directory is not required for this step, so a warning is printed to the screen letting people know about the problem - but not preventing them from proceeding with the updates. |
Thanks for figuring this one out @jenlampton 👍 Pending testing this on my local (unless anyone else beats me to it), code-wise, everything seems to be in order, besides a missing period in the inline comment added in the PR. While at it, I recommended an alternative for consideration, that I believe better summarizes the situation. |
I'd love some more testing on this one, bumping to 1.15.1 |
I ran into this problem again today, and was again baffled by the messaging about the wrong directory, and the dangerous recommendation. I'd love to get this resolved quickly, so I'm going to add it to the agenda for next week's meeting. Thanks for the code review @klonos. It looks like I'd merged your PR to fix the inline comment :) |
I was able to replicate the issue by installing an old version of Backup & Migrate, update it to the latest version, then delete my I then added @jenlampton's patch and ran * My only concern before marking this RTBC is that the new warning message isn't very helpful... It simply says: "Unable to initialize the staging configuration directory [dir]" |
Marking as 'needs work' just for the message text. Otherwise the functionality works and the code is good. |
Thanks @BWPanda. "initialize" is what was in the code, and not really suitable for people. How about |
I think add it if possible. Something like: "The staging configuration directory (%directory) could not be found. Please make sure it exists and is properly referenced in settings.php" |
done! (PR Updated) |
Nope 😅 ...even if you decide to not accept my recommendation re the inline comment, it still has a missing period. Thanks @BWPanda for providing steps to test this 👍 ...here's what is shown now: First issue is that the file path is chopped off because the updater container is narrow. Not a biggie, but still. Then the fact that there's a warning, makes me think twice before I click the continue button 🤔 ...should I address the problem that the message is warning me about, or is it safe to continue? ...would that break the db update process, and eventually my site, or what? Since this warning is not relevant for the task at hand, how about we defer it for the next step?: ...or even display that in the status page perhaps? |
I'm leaning towards this ^^ ...if this check was in place regardless of running update.php, then as a site admin, I would have sought to fix it before running update.php. ...and if shown on the status page, then there is no need to have it shown when running update.php. |
Can we make this a follow up?
…On Thu, Aug 20, 2020, 4:32 PM Gregory Netsas ***@***.***> wrote:
...or even display that in the status page perhaps?
I'm leaning towards this ^^ ...if this check was in place regardless of
running update.php, then as a site admin, I would have sought to fix it
before running update.php.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3846 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADBERZF63VEUSOS5P4QYNTSBWW73ANCNFSM4HSDVE7Q>
.
|
Yes we can. In which case, this is RTBC if a period is added to this inline comment: https://github.com/backdrop/backdrop/pull/2721/files#diff-af3cd43667d2de1601d1e26a3f1165ecR96 |
Done! |
Nice, RTBC from me. |
Great teamwork 👍 ...and here's that follow-up: #4557 |
@quicksketch @herbdool Care to merge this please? It's been RTBC for two weeks but, since I marked it as such, I think someone else should do the honours... |
…ssing. Throw warning instead. By @jenlampton, @BWPanda, and @klonos.
…ssing. Throw warning instead. By @jenlampton, @BWPanda, and @klonos.
Thanks! Merged backdrop/backdrop#2721 into 1.x and 1.16.x. |
I'm experiencing some server issue (missing staging directory) that is preventing update.php from running.
When this happens, I would expect to see an error message letting me know that my staging directory is missing.
Unfortunately, instead I see an error about the installer that asks me to delete all my live config which is the last thing I should do.
It looks like
update_prepare_bootstrap()
callsbackdrop_install_config_directories()
even when the staging directory is missing, and that checks to confirm that the live-active directory is empty, since it's intended to be used for the installer.Related:
PR: backdrop/backdrop#2721
The text was updated successfully, but these errors were encountered: