Closed lsthompson closed 2 months ago
This seems confirmed now via cPanel Support ticket 95340245 (access within re: triage/diagnostics).
How quickly will this be addressed once verified?
When RPMs are removed, files classified as "config" are backed up to .rpmsave
files (php.ini.rpmsave
, for example). This happens when we remove EA4, prior to upgrading the operating system (assuming the config file has been altered from the state it was shipped with). When the RPM is re-installed in stage 4, we follow up by finding all of the .rpmsave
files associated with easy apache and putting them back into place.
We do this here https://github.com/cpanel/elevate/blob/main/lib/Elevate/Components/EA4.pm#L139 and it was added in #367 back in January.
Out of curiosity, what is the contents of ea4_config_files
in /var/cpanel/elevate
on the server where this didn't happen for you?
When RPMs are removed, files classified as "config" are backed up to .rpmsave files (php.ini.rpmsave, for example).
The php.ini.rpmsave files present were not added by ELevate, rather by previous processes months ago. (Unless there is another location where you're saving the rpmsave copies to?)
/opt/cpanel $ ls -l ea-php*/root/etc/php.ini.rpmsave
-rw-r--r-- 1 root root 60881 Dec 17 2020 ea-php73/root/etc/php.ini.rpmsave
-rw-r--r-- 1 root root 60893 May 7 16:08 ea-php74/root/etc/php.ini.rpmsave
-rw-r--r-- 1 root root 60893 May 7 16:08 ea-php81/root/etc/php.ini.rpmsave
-rw-r--r-- 1 root root 60893 May 7 16:08 ea-php82/root/etc/php.ini.rpmsave
-rw-r--r-- 1 root root 60893 May 7 17:44 ea-php83/root/etc/php.ini.rpmsave
we follow up by finding all of the .rpmsave files associated with easy apache and putting them back into place.
That doesn't seem to have happened, as the default files persisted on many (if not all) servers for us at least.
Out of curiosity, what is the contents of ea4_config_files in /var/cpanel/elevate on the server
"ea4_config_files" : {},
(checked on 7x servers, all have the same value)
I've sent you leapp-upgrade.log for 1x machine.
Thank you for this report and the additional information. We were able to replicate this and I believe that I see the source of the issue. It is currently being tracked internally as RE-499.
@lsthompson TLDR: If you move those ini.rpmsave files back in place post-upgrade, this is all our fix will end up doing. Sorry for the oversight/bug. Thank you for the additional information. This helped us understand the problem. We'll get it fixed going forward.
Thanks folks. @toddr - how does that work given their date stamps? Please ensure you have identified all causes before being confident of a fix. It seems fortunate that any rpmsave files existed in this instance - or no?
I would say intentional not fortunate. The entirety of the bug is that the .rpmsave files are not being put back.
Thanks, Todd
From: Luke S Thompson @.> Sent: Thursday, August 1, 2024 5:40:28 PM To: cpanel/elevate @.> Cc: Todd Rinaldo @.>; Mention @.> Subject: Re: [cpanel/elevate] [BUG] php.ini reverts to default values - ie. date.timezone, memory_limit & so on. (Issue #486)
Thanks folks. @toddrhttps://github.com/toddr - how does that work given their date stamps? Please ensure you have identified all causes before being confident of a fix. It seems fortunate that any rpmsave files existed in this instance - or no?
— Reply to this email directly, view it on GitHubhttps://github.com/cpanel/elevate/issues/486#issuecomment-2264138653, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAAX4ZB2KGKTAEV4323TKPDZPK2NZAVCNFSM6AAAAABLUFETFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRUGEZTQNRVGM. You are receiving this because you were mentioned.Message ID: @.***>
Thanks, but I don't see how that makes sense with a May 7th date on the rpmsave file variants? ELevate was this week.
Thanks, but I don't see how that makes sense with a May 7th date on the rpmsave file variants? ELevate was this week.
I believe the date stamp would be the date the file was last modified not when it was renamed.
I believe the date stamp would be the date the file was last modified not when it was renamed.
Ah cool, thanks for clarifying - I'd appreciate if you could please double-check / confirm this, too. :-)
EDIT: I think you are correct - restoring the rpmsave on the impacted servers, it did seem fairly consistent.
Hey @toddr - don't forget that Changelog.md
is missing v51 and v52, and version
is missing v52!
Hey @toddr - don't forget that
Changelog.md
is missing v51 and v52, andversion
is missing v52!
Release is currently at v50 right now
Describe the bug ELevate process does not seem to restore php.ini backups into the live locations, hence things like timezone are lost.
I thought that it was taking backups of the files and then restoring them? Server time is OK, it's PHP config that gets defaulted.
Keep in mind that many websites will not enter a failed state due to this, however heavy websites will perish.
To Reproduce Steps to reproduce the behavior:
See below diff check between the in-place files and the rpmsave/SOE (which ELevate did not produce):
Expected behavior php.ini backups for all versions being restored should bring the customisations back, avoiding impact to applications.