Easy Apache 4 Errors
I am in the process of upgrading our production server, and would like to get the new server running EA4 and ultimately PHP-FPM now, before it's serving live traffic, so it can be done without unnecessary downtime.
I ran the script /scripts/migrate_ea3_to_ea4 --run. It begins by printing some log messages. These include a block of red error messages from Apache's modsecurity, but the errors are from several days ago and shouldn't be relevant (unless the migrator fails out in the case of any recently logged errors).
It gets to the point of attempting to apply my current profile, then says: "profile could not install under easyapache4 due to errors". Unfortunately it doesn't give any hint what those errors might be (unless it's these unrelated modsec errors from days ago), nor where I can find out. The EA4 documentation also doesn't appear to mention a log file, and I didn't immediately see anything under /var/cpanel/logs or /usr/local/cpanel/logs, although I certainly may have missed it.
Anyway, at that point I am given the choice of other profiles, and I tried installing the default cpanel profile. The script then immediately exited with the message, "yum exited 256".
The system thinks I have now upgraded to ea4, but nothing is functional. Also it appears even if it were working, the only way to now migrate my profile would be to manually build a JSON file. Fortunately I was able to revert to a working ea3.
So the first question is, what "errors" are preventing the profile from being migrated, and how can I find/correct them? Second, what is this yum error and how should it be dealt with?
Thanks in advance.
-
Hi, Would you please put in a support ticket using the link in my signature? We'd love to check your server out to see what problems you're facing. We just improved the error and logging of the migration script, and that should be coming upstream shortly, so the interface will actually try to tell you what's wrong :P. Sorry for the problems you're facing, please feel free to open a ticket and put in the subject "Jacob P or Matt D", and we'll get it checked out. Thanks for testing out EA4! 0 -
Hi, Would you please put in a support ticket using the link in my signature? We'd love to check your server out to see what problems you're facing. We just improved the error and logging of the migration script, and that should be coming upstream shortly, so the interface will actually try to tell you what's wrong :P. Sorry for the problems you're facing, please feel free to open a ticket and put in the subject "Jacob P or Matt D", and we'll get it checked out. Thanks for testing out EA4!
Sounds good. I've created the support request with ATTN Jacob P or Matt D. Thanks.0 -
To update, this issue stemmed from the contents of the /etc/redhat-release file on this system: # cat /etc/redhat-release Derived from Red Hat Enterprise Linux 7.1 (Source)
It's actually a CentOS machine that encountered the issue reported at: [CentOS] os-release file doesn't match upstream? Thank you.0 -
I am now on CentOS 7.2. This issue is still occurring, preventing me from using EA4. The system has both /etc/redhat-release and /etc/centos-release. Both have the same content: "CentOS Linux release 7.2.1511 (Core)" EA4 still fails with "Yum exited 256" It doesn't appear that CentOS is planning to remove the redhat-release file, so for EA4 to work, it seems CPanel will have to make a change. Do you have any plans to do so? Edit: or can I work around this by simply removing redhat-release prior to running EA4? 0 -
Hi, We haven't seen this anymore, and I believe that CentOS has fixed this. Have you updated this system lately? I'd recommend running a yum update to get the latest packages, and then this redhat-release file should be fixed, allowing you to update. I hope this helps! 0 -
Hi, We haven't seen this anymore, and I believe that CentOS has fixed this. Have you updated this system lately? I'd recommend running a yum update to get the latest packages, and then this redhat-release file should be fixed, allowing you to update. I hope this helps!
I have run yum update and am up to date. The contents of /etc/redhat-release are: CentOS Linux release 7.2.1511 (Core) EA4 still does not function. Have you tested on CentOS 7.2? Are you certain this release file is the problem? I have this same problem on two different CentOS servers, both running this version. (And likewise when I tested back in November on 7.1, as described above.)0 -
Hi, Yes, we have tested this and it works without issues. What version of cPanel are you attempting to get this working with? While I installed this on 11.56.0.8, I believe 11.54 should work as well. [root@7 home]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) [root@7 home]# ps fuax | grep http root 3767 0.0 0.0 112652 2320 pts/5 S+ 14:08 0:00 \_ grep --color=auto http root 3712 0.0 0.0 193544 11728 ? Ss 14:08 0:00 /usr/sbin/httpd -k start nobody 3753 0.0 0.0 193544 4892 ? S 14:08 0:00 \_ /usr/sbin/httpd -k start nobody 3754 0.0 0.0 193544 4892 ? S 14:08 0:00 \_ /usr/sbin/httpd -k start nobody 3755 0.0 0.0 193544 4892 ? S 14:08 0:00 \_ /usr/sbin/httpd -k start nobody 3756 0.0 0.0 193544 4892 ? S 14:08 0:00 \_ /usr/sbin/httpd -k start nobody 3757 0.0 0.0 193544 4892 ? S 14:08 0:00 \_ /usr/sbin/httpd -k start
0 -
This was on 11.54.0.22, but I will upgrade to 11.56 now and try again. If it fails again can I open another ticket for you to have a look? 0 -
Same error. Here it is in detail: info [migrate_ea3_to_ea4] preserving last ea3 build Resolving Dependencies --> Running transaction check ---> Package ea-cpanel-tools.x86_64 0:1.0-3.1 will be installed ---> Package ea-profiles-cpanel.x86_64 0:1.0-21.1 will be installed ---> Package yum-plugin-universal-hooks.x86_64 0:0.1-7.7 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================== Package Arch Version Repository Size ======================================================================================================== Installing: ea-cpanel-tools x86_64 1.0-3.1 EA4 5.5 k ea-profiles-cpanel x86_64 1.0-21.1 EA4 6.7 k yum-plugin-universal-hooks x86_64 0.1-7.7 EA4 7.6 k Transaction Summary ======================================================================================================== Install 3 Packages Total download size: 20 k Installed size: 27 k Downloading packages: warning: /var/cache/yum/EA4/packages/ea-cpanel-tools-1.0-3.1.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 7e931c7c: NOKEY Public key for ea-cpanel-tools-1.0-3.1.x86_64.rpm is not installed (1/3): ea-cpanel-tools-1.0-3.1.x86_64.rpm | 5.5 kB 00:00:00 (2/3): yum-plugin-universal-hooks-0.1-7.7.x86_64.rpm | 7.6 kB 00:00:00 (3/3): ea-profiles-cpanel-1.0-21.1.x86_64.rpm | 6.7 kB 00:00:00 -------------------------------------------------------------------------------------------------------- Total 174 kB/s | 20 kB 00:00:00 Retrieving key from https://securedownloads.cpanel.net/cPanelPublicRPMKey.asc Importing GPG key 0x7E931C7C: Userid : "cPanel Public RPM Key " Fingerprint: 7fb6 9a06 2f33 4f25 10cc dffe 2378 b595 7e93 1c7c From : https://securedownloads.cpanel.net/cPanelPublicRPMKey.asc Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : ea-cpanel-tools-1.0-3.1.x86_64 1/3 Installing : yum-plugin-universal-hooks-0.1-7.7.x86_64 2/3 Installing : ea-profiles-cpanel-1.0-21.1.x86_64 3/3 Verifying : ea-profiles-cpanel-1.0-21.1.x86_64 1/3 Verifying : yum-plugin-universal-hooks-0.1-7.7.x86_64 2/3 Verifying : ea-cpanel-tools-1.0-3.1.x86_64 3/3 Installed: ea-cpanel-tools.x86_64 0:1.0-3.1 ea-profiles-cpanel.x86_64 0:1.0-21.1 yum-plugin-universal-hooks.x86_64 0:0.1-7.7 Complete! Installing profile "/etc/cpanel/ea4/profiles/custom/ea3_state_at_migration-1461805794.json". An error occurred while installing profile "yum exited 256 ". yum exited 256 Please select from the following options: 1) Revert to EasyApache 3 2) Abort. 3) Install the cPanel Default profile.
Now, prior to that, when the EA3 profile was converted, I did get these warnings:EasyApache 4 converted your EasyApache 3 profile, with warnings. "Cpanel::Easy::Apache::Access" ignored since it does not have an RPM. "Cpanel::Easy::Apache::Fastcgi" ignored since it does not have an RPM. "Cpanel::Easy::Apache::Frontpage" ignored since it does not have an RPM. "Cpanel::Easy::PHP4::4_9" ignored since it does not have an RPM. "Cpanel::Easy::PHP4::Bcmath" ignored since it does not have an RPM. "Cpanel::Easy::PHP4::Calendar" ignored since it does not have an RPM. "Cpanel::Easy::PHP4::FTP" ignored since it does not have an RPM. "Cpanel::Easy::PHP4::ForceCGIRedirect" ignored since it does not have an RPM. "Cpanel::Easy::PHP4::Iconv" ignored since it does not have an RPM. "Cpanel::Easy::PHP4::Imap" ignored since it does not have an RPM. "Cpanel::Easy::PHP4::MagicQuotes" ignored since it does not have an RPM. "Cpanel::Easy::PHP4::MysqlOfSystem" ignored since it does not have an RPM. "Cpanel::Easy::PHP4::Sockets" ignored since it does not have an RPM. "Cpanel::Easy::PHP4::Zlib" ignored since it does not have an RPM. "Cpanel::Easy::PHP5::Mysqli" ignored since it does not have an RPM.
Is that related? (And does this mean it's not possible to use any of those extensions with EA4? We've mostly switched to PDO, but I believe we do still make some use of MySQLi.) Edit: doesn't appear to be a problem with the profile, because even the default profile gives the same thing:Please select from the following options: 1) Revert to EasyApache 3 2) Abort. 3) Install the cPanel Default profile. 3 Installing profile "/etc/cpanel/ea4/profiles/cpanel/default.json". An error occurred while installing profile "yum exited 256 ". yum exited 256 Please select from the following options: 1) Revert to EasyApache 3 2) Abort.
0 -
Hi, Can you throw in another ticket on this so we can attempt to find the root cause? Thanks! 0 -
As an update for anyone else who might come across the same issues, we found that Yum plugins were not enabled on this system. Enabling Yum plugins (setting 'plugins=1' in '/etc/yum.conf') allowed EA4 to be installed without issues. 0 -
As an update for anyone else who might come across the same issues, we found that Yum plugins were not enabled on this system. Enabling Yum plugins (setting 'plugins=1' in '/etc/yum.conf') allowed EA4 to be installed without issues.
I have cPanel 11.56, CloudLinux Server release 6.7 and yum plugins is set to "1" in /etc/yum.conf, but still experiencing the same issue. ========= Installing profile "/etc/cpanel/ea4/profiles/custom/ea3_state_at_migration-1462683968.json". An error occurred while installing profile "yum exited 256". ========= I also tried " /scripts/migrate_ea3_to_ea4 --install_profile " and also default cPanel profile, but no luck. Any thoughts ? Regards, Harish0 -
Morning Harish, If this is a CloudLinux system, are you using CloudLinux's EA4 migration script, or cPanel's located in '/scripts'? 0 -
As an update for anyone else who might come across the same issues, we found that Yum plugins were not enabled on this system. Enabling Yum plugins (setting 'plugins=1' in '/etc/yum.conf') allowed EA4 to be installed without issues.
I'm having this problem going from EasyApache 3 to EasyApache 4 with WHM 56/Centos 6.7. 'plugins=1' is in '/etc/yum.conf' but it still throws the error when I execute '/scripts/migrate_ea3_to_ea4--run'0 -
Hi mcpacific, Would you please throw in a ticket so that we might investigate this? Thanks! 0
Please sign in to leave a comment.
Comments
15 comments