Skip to main content

Issues after interrupted update

Comments

23 comments

  • cPRex Jurassic Moderator
    Hey there! If you don't have accounts on the server, and you still see issues after running "/scripts/upcp --force" then it may just be easier to create a new system. I personally would always worry about lingering issues that may not be obvious, but could pop up later.
    0
  • maverickws
    Hi @cPRex thank you for your quick reply. I have two accounts on this server (test accounts) one has a staging version of our website and the other has the development version of our WHMCS. Ofc I can always back them up and restore them afterwards, I was just thinking of trying to fix the problems well to get a hold of how to get around it. I think I had ran /scripts/upcp --force but I will run it again.
    0
  • cPRex Jurassic Moderator
    If you still get the mpm error, you can try running EasyApache in WHM to make sure one is selected. That would also install any packages that are a dependency of it as well.
    0
  • maverickws
    Ok so I had done this before but I did it again. Originally it was set as MPM Prefork, I had changed it to MPM Event which we use on all our servers. Now I went back and changed from MPM Event back to MPM Prefork ... figuring it will install what is required. Provision process started. [2021-10-29 20:09:30 +0100] info [xml-api] ================================================================================ [2021-10-29 20:09:30 +0100] info [xml-api] Package Arch Version Repo Size [2021-10-29 20:09:30 +0100] info [xml-api] ================================================================================ [2021-10-29 20:09:30 +0100] info [xml-api] Installing: [2021-10-29 20:09:30 +0100] info [xml-api] ea-apache24-mod_cgi x86_64 2.4.51-1.2.3.cpanel EA4 49 k [2021-10-29 20:09:30 +0100] info [xml-api] ea-apache24-mod_mpm_prefork x86_64 2.4.51-1.2.3.cpanel EA4 51 k [2021-10-29 20:09:30 +0100] info [xml-api] Removing: [2021-10-29 20:09:30 +0100] info [xml-api] ea-apache24-mod_cgid x86_64 2.4.51-1.2.3.cpanel @EA4 40 k [2021-10-29 20:09:30 +0100] info [xml-api] ea-apache24-mod_http2 x86_64 2.4.51-1.2.3.cpanel @EA4 258 k [2021-10-29 20:09:30 +0100] info [xml-api] ea-apache24-mod_mpm_event x86_64 2.4.51-1.2.3.cpanel @EA4 72 k [2021-10-29 20:09:30 +0100] info [xml-api] ea-apache24-mod_proxy_hcheck x86_64 2.4.51-1.2.3.cpanel @EA4 36 k [2021-10-29 20:09:30 +0100] info [xml-api] Transaction Summary [2021-10-29 20:09:30 +0100] info [xml-api] ================================================================================ [2021-10-29 20:09:30 +0100] info [xml-api] Install 2 Packages [2021-10-29 20:09:30 +0100] info [xml-api] Remove 4 Packages [2021-10-29 20:09:30 +0100] info [xml-api] Total download size: 100 k [2021-10-29 20:09:30 +0100] info [xml-api] Downloading Packages: [2021-10-29 20:09:30 +0100] info [xml-api] (1/2): ea-apache24-mod_cgi-2.4.51-1.2.3.cpanel. 98 kB/s | 49 kB 00:00 [2021-10-29 20:09:30 +0100] info [xml-api] (2/2): ea-apache24-mod_mpm_prefork-2.4.51-1.2.3 101 kB/s | 51 kB 00:00 [2021-10-29 20:09:30 +0100] info [xml-api] -------------------------------------------------------------------------------- [2021-10-29 20:09:30 +0100] info [xml-api] Total 90 kB/s | 100 kB 00:01 [2021-10-29 20:09:30 +0100] info [xml-api] Running transaction check [2021-10-29 20:09:30 +0100] info [xml-api] Transaction check succeeded. [2021-10-29 20:09:30 +0100] info [xml-api] Running transaction test [2021-10-29 20:09:30 +0100] info [xml-api] Transaction test succeeded. [2021-10-29 20:09:30 +0100] info [xml-api] Running transaction [2021-10-29 20:09:30 +0100] info [xml-api] Preparing : 1/1 [2021-10-29 20:09:30 +0100] info [xml-api] Installing : ea-apache24-mod_mpm_prefork-2.4.51-1.2.3.cpanel.x86_ 1/6 [2021-10-29 20:09:30 +0100] info [xml-api] Installing : ea-apache24-mod_cgi-2.4.51-1.2.3.cpanel.x86_64 2/6 [2021-10-29 20:09:30 +0100] info [xml-api] Erasing : ea-apache24-mod_cgid-2.4.51-1.2.3.cpanel.x86_64 3/6 [2021-10-29 20:09:30 +0100] info [xml-api] Erasing : ea-apache24-mod_mpm_event-2.4.51-1.2.3.cpanel.x86_64 4/6 [2021-10-29 20:09:30 +0100] info [xml-api] Erasing : ea-apache24-mod_proxy_hcheck-2.4.51-1.2.3.cpanel.x86 5/6 [2021-10-29 20:09:30 +0100] info [xml-api] Erasing : ea-apache24-mod_http2-2.4.51-1.2.3.cpanel.x86_64 6/6 [2021-10-29 20:09:30 +0100] info [xml-api] Running scriptlet: ea-apache24-mod_http2-2.4.51-1.2.3.cpanel.x86_64 6/6 [2021-10-29 20:09:30 +0100] info [xml-api] Verifying : ea-apache24-mod_cgi-2.4.51-1.2.3.cpanel.x86_64 1/6 [2021-10-29 20:09:30 +0100] info [xml-api] Verifying : ea-apache24-mod_mpm_prefork-2.4.51-1.2.3.cpanel.x86_ 2/6 [2021-10-29 20:09:30 +0100] info [xml-api] Verifying : ea-apache24-mod_cgid-2.4.51-1.2.3.cpanel.x86_64 3/6 [2021-10-29 20:09:30 +0100] info [xml-api] Verifying : ea-apache24-mod_http2-2.4.51-1.2.3.cpanel.x86_64 4/6 [2021-10-29 20:09:30 +0100] info [xml-api] Verifying : ea-apache24-mod_mpm_event-2.4.51-1.2.3.cpanel.x86_64 5/6 [2021-10-29 20:09:30 +0100] info [xml-api] Verifying : ea-apache24-mod_proxy_hcheck-2.4.51-1.2.3.cpanel.x86 6/6 [2021-10-29 20:09:30 +0100] info [xml-api] Installed: [2021-10-29 20:09:30 +0100] info [xml-api] ea-apache24-mod_cgi-2.4.51-1.2.3.cpanel.x86_64 [2021-10-29 20:09:30 +0100] info [xml-api] ea-apache24-mod_mpm_prefork-2.4.51-1.2.3.cpanel.x86_64 [2021-10-29 20:09:30 +0100] info [xml-api] Removed: [2021-10-29 20:09:30 +0100] info [xml-api] ea-apache24-mod_cgid-2.4.51-1.2.3.cpanel.x86_64 [2021-10-29 20:09:30 +0100] info [xml-api] ea-apache24-mod_http2-2.4.51-1.2.3.cpanel.x86_64 [2021-10-29 20:09:30 +0100] info [xml-api] ea-apache24-mod_mpm_event-2.4.51-1.2.3.cpanel.x86_64 [2021-10-29 20:09:30 +0100] info [xml-api] ea-apache24-mod_proxy_hcheck-2.4.51-1.2.3.cpanel.x86_64 [2021-10-29 20:09:30 +0100] info [xml-api] Complete! [2021-10-29 20:09:30 +0100] info [xml-api] Last metadata expiration check: 0:13:36 ago on Fri Oct 29 19:55:53 2021. [2021-10-29 20:09:30 +0100] info [xml-api] Dependencies resolved. [2021-10-29 20:09:30 +0100] info [xml-api] Nothing to do. [2021-10-29 20:09:30 +0100] info [xml-api] Complete! [2021-10-29 20:09:30 +0100] info [xml-api] The downloaded packages were saved in cache until the next successful transaction. [2021-10-29 20:09:30 +0100] info [xml-api] You can remove cached packages by executing 'dnf clean packages'. Provision process finished.
    But the issue persists. Is there a way to actually force the reinstallation of Apache? Thank you. EDIT: other than "dnf reinstall ea-apache24" because that actually does nothing and the issuer persists as well.
    0
  • cPRex Jurassic Moderator
    It's interesting that it's installing prefork just fine in that output, but you're still getting the same error. Could you create a support ticket with our team so we can check this out? If you're able to do that, please post the number here so I can follow along on my end.
    0
  • maverickws
    Hi @cPRex ofc I don't mind doing that at all, just if you don't mind me making a question before that I found out one probable cause for the issue: the httpd.conf file is completely empty. 0 bytes empty. I wonder if is there any way to restore or recreate the file? I see this would be a plausible motive for it not starting I guess. EDIT: I was looking into it I probably can even recreate the httpd.conf file, taking another httpd.conf file from another server all I have to take in consideration would be the php-fpm handlers that are located at opt/cpanel .... php-fpm since each .sock is owned by the user of the account it belongs to. But still, if there was some script that could recreate the file it would be so much better.
    0
  • cPRex Jurassic Moderator
    That would definitely be an issue! Try this: /scripts/rebuildhttpdconf
    0
  • maverickws
    Ok so I did run that, it gives an OK, but nothing happens: [root@dev-cpanel ~]# /scripts/rebuildhttpdconf Built /etc/apache2/conf/httpd.conf OK [root@dev-cpanel ~]# ls -la /etc/apache2/conf total 84 drwxr-xr-x 2 root root 83 Oct 29 20:41 . drwxr-xr-x 6 root root 103 Oct 29 20:15 .. -rw------- 1 root root 0 Oct 29 20:41 httpd.conf -rw------- 1 root root 2 Oct 29 19:24 httpd.conf.datastore -rw-r--r-- 1 root root 13064 Oct 27 06:03 magic -rw-r--r-- 1 root root 61489 Oct 29 19:55 mime.types [root@dev-cpanel ~]# cat /etc/apache2/conf/httpd.conf.datastore {}[root@dev-cpanel ~]#
    I was wondering if manually creating the httpd.conf will create any issue if I leave the httpd.conf.datastore as is?
    0
  • cPRex Jurassic Moderator
    That's definitely odd, and seems like there's something else going on with the server. I'd recommend a ticket with our team, or a reinstall like you mentioned earlier.
    0
  • maverickws
    Ok so in the meanwhile I did as I mentioned, I took the httpd.conf from another cPanel server and edited the hostname / IP and virtual hosts to match what is on this server. [root@dev-cpanel ~]# systemctl status httpd ? httpd.service - Apache web server managed by cPanel EasyApache Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: active (running) since Fri 2021-10-29 21:00:49 WEST; 1s ago Process: 6926 ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose (code=exited, status=0/SUCCESS) Main PID: 6969 (httpd) Tasks: 358 (limit: 23543) Memory: 82.2M CGroup: /system.slice/httpd.service ??6969 /usr/sbin/httpd -k start ??6970 /usr/local/cpanel/bin/splitlogs --dir=/etc/apache2/logs/domlogs --main=dev-cpanel.domain.io --suffix=-bytes_log --sslport=444 ??6971 /usr/local/cpanel/bin/splitlogs --dir=/etc/apache2/logs/domlogs --main=dev-cpanel.domain.io --mainout=/etc/apache2/logs/access_log --sslport=444 ??6972 /usr/sbin/httpd -k start ??6973 /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/bin/leechprotect ??6974 /usr/sbin/httpd -k start ??6976 Passenger watchdog ??6980 Passenger core ??7000 /usr/sbin/httpd -k start ??7001 /usr/sbin/httpd -k start ??7002 /usr/sbin/httpd -k start ??7003 /usr/sbin/httpd -k start ??7004 /usr/sbin/httpd -k start ??7005 /usr/sbin/httpd -k start Oct 29 21:00:49 dev-cpanel.domain.io systemd[1]: Starting Apache web server managed by cPanel EasyApache... Oct 29 21:00:49 dev-cpanel.domain.io systemd[1]: httpd.service: Can't open PID file /run/apache2/httpd.pid (yet?) after start: No such file or directory Oct 29 21:00:49 dev-cpanel.domain.io systemd[1]: Started Apache web server managed by cPanel EasyApache.
    I was able to start httpd. If you don't mind (because here it's Friday 8PM) and there's a long weekend ahead (Monday is an holiday) and to give access to you guys at cPanel I have to go and make changes to the firewalls etc... and I'm the last guy here today, I will open a ticket Tuesday morning and reference this issue. I really just want to wrap this up and leave! in the meanwhile got httpd running so that's ok, Tuesday you guys can have a field day on the server, that OK? EDIT: and I really must because for some reason the AutoSSL isn't working either it always says it can't resolve the domain of the WHMCS development instance. The DNS is externally managed and is returning just fine... *shrug* Thank you for all your time and feedback! Have a great weekend ahead.
    0
  • cPRex Jurassic Moderator
    Whatever works best for you - we'll be here!
    0
  • maverickws
    Hi @cPRex hope you had a nice weekend. Opened the ticket 94379902, thank you.
    0
  • cPanelAnthony
    Thanks for the update! I will follow the ticket and update this thread once a solution is reached.
    0
  • maverickws
    Conclusion: There were some corrupted templates at var/cpanel. After moving them away and rebuilding it came out OK. Problem solved, thank you guys for the support, super as always!
    0
  • cPanelAnthony
    Thanks for the update! I'm glad to hear you got this worked out.
    0
  • Edrick Smith

    Hi we are getting this error on half of the sites
    SORRY!
    If you are the owner of this website, please contact your hosting provider: C47 Hosting
    It is possible you have reached this page because:

    0
  • cPRex Jurassic Moderator

    Edrick Smith - it's best to make a new topic for new issues.

    Usually the "Sorry" page is because of a mismatch between the DNS settings for the domain and the IP address that is configured on the server.  Has anything changed on the system recently that would have caused this to appear across multiple sites?

    0
  • Edrick Smith

    No the issue started after the Apache issue

    0
  • cPRex Jurassic Moderator

    What Apache issue was that?  This thread is three years old, so there wouldn't be any active Apache issues from that same time period.

    Please provide all the details you have about this problem, including any errors from the logs.

    0
  • Edrick Smith

    Sorry I do not know why it showed up on this ticket I have an open ticket from this morning are you able to see the other ticket

    0
  • cPRex Jurassic Moderator

    I do see that ticket and I've given it priority status since the sites are not working properly. 

    0
  • Edrick Smith

    Sorry no idea how my post ended up on a public forum I was replying (or so I thought) to my ticket 😋

    0
  • cPRex Jurassic Moderator

    All good!

    0

Please sign in to leave a comment.