ISPConfig panel freeze - not fixed by reboot or ispconfig_update.sh --force

Discussion in 'General' started by dan-v, Mar 11, 2025.

  1. dan-v

    dan-v Member

    I need help !

    While creating new websites, my ISPConfig panel suddenly froze. Following a reboot, access to panel fails with PR_END_OF_FILE_ERROR.
    Inspection reveals that apache2 service has not restarted.

    ispconfig_update.sh --force runs without incident (ISPConfig SSL recreated) until the very end where it reports:

    Code:
    Updating Crontab
    Restarting services ...
    Job for apache2.service failed because the control process exited with error code.
    See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
    Update finished.
    
    The panel remains not accessible after that (same error, Apache not running - it resists another reboot).
    I have no idea what triggered the incident.
    I can't guess at the root cause or fix from "systemctl status apache2.service" output (att. 1) or apache error log (att. 2).
    What should I do ?
     

    Attached Files:

    Last edited: Mar 12, 2025
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. dan-v

    dan-v Member

    Thanks. I have run the indicated script. Other than apache2.service not loading, the output (attached) does not seem to report other anomalies that I can see.

    As to disabling the 1 website and 2 subdomains that I was creating using the panel when Apache walked out on me, I can't very well do that using the panel since Apache is not running. That means tinkering manually with the Apache configuration files, that are normally managed by ISPConfig, correct ? I do not really know where to look, nor if it is safe to make any changes there. Please advise.

    Note: since the system broke when I was using the panel and not doing (or having done) anything special otherwise, this probably means that there is a bug somewhere, right ?
     

    Attached Files:

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Disable the site by removing the symlink in /etc/apache2/sites-enabled/ and restart Apache.

    No, probably not. It's more likely a system configuration issue on your server. What you see happens when config or an SSL cert is modified or removed outside of ISPConfig without the affected service being restarted. When you then use ISPConfig and ISPConfig restarts the service, then you wills ee the effects of the external modification, which might have had happened hours or days ago. Also, take care to not disable config tests in ISPConfig.
     
  5. dan-v

    dan-v Member

    Thx. It worked. I actually isolated the offending website and was able to keep the others. The panel works and can see them.
    Can I recreate the website using the panel despite it still being present in the sites-available directory ? Or should I purge that, too ?
    BTW, I didn't do any of those 2 things. Never. Just FYI
    And I don't even know how to do this. Could I have done it inadvertently ?
     
    Last edited: Mar 12, 2025
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    You say recreate, is the site not listed in ISPConfig anymore? If its still in ISPConfig, all you do is to disable active checkbox, save, and then enable it again.
     
  7. dan-v

    dan-v Member

    Oh ! OK simple. Thx
     
  8. dan-v

    dan-v Member

    This is not working.

    After doing the disable-save-enable-save cycle, the panel gets inop : none of the menu items work (including logout) and the panel cannot show any website, I am basically stuck on the website page. Any attempt to get the panel to show a website, or clicking any menu item, results in a short wait (with the clock-like icon turning) and then you are back to the website menu, still inop
     
  9. dan-v

    dan-v Member

    And after a reboot, Apache is dead again
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Disable the affected site again as you did before an restart Apache. Then check under System > Server config > web that config test is not disabled. If its enabled and this happens, then there is no working config that ISPConfig can roll back to, in this case its best that you delete that site and recreate it.
     
  11. dan-v

    dan-v Member

    Yes, config test is enabled.
    And, yes, I also deleted the offending website. Apache is running again (and did not try to re-create the problem website, for now).
    But the panel fails at enabling Let's Encrypt SSL, for any website. The ssl directory remains empty after a "save" with Let's Encrypt generation enabled. The panel initially reports it OK, then reverts to show SSL not enabled (true).
    Something is seriously borken, I guess
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Has been answered a few hundred times in the forum already. Please use search function:

    https://forum.howtoforge.com/threads/lets-encrypt-error-faq.74179/
     
  13. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You should read the "Read before posting" article, carefully, and examine all checks the script makes. Then you can fix all the issues in one go.
    For example, the common issues script reports in Version Check, the PHP versions, which are not correct for Debian 12. See the Read before posting article.
     
  14. dan-v

    dan-v Member

    Yes, sorry, I too quickly held the previous incident responsible for the SSL apparent change in behavior. My bad. I fixed it by making sure I had DNS straightened out for all domains/subdomains of the site and it worked.

    Now another different problem is emerging. After having successfuly created The Let's Encrypt certificate for a website, call it website.domain.com which has an alias: alias.domain.com, I cannot access these websites because an incorrect certificate is being fed to my browser. I have checked that the ssl direcory in the website.domain.com root does contains the appropriate certificates .crt and .key : they are here, and they are valid for both website.domain.com and alias.domain.com. The panel also reports that the Let's Encrypt certificates are OK : both boxes are ticked.

    Nevertheless accessing either website.domain.com or alias.domain.com, I am fed a bogus certificate, that contains neither of these addresses. What could be wrong ?
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

  16. dan-v

    dan-v Member

    That's not it, till. All my websites have Let'sEncrypt certificates. Checked 2 ways : the panel 's Let's Encrypt boxes are checked, and the ssl directory in each website's root checks out, with certificates that show domains and subdomains included.

    I checked the latter via openssl x509
    Code:
    for i in $*
    do
        printf "%15s : " "$i "
        folder="/var/www/$i"
        if [[  -L "$folder" && -d "$folder/ssl" ]]; then
            aliases=`openssl x509 -in $folder/ssl/*.crt -text -noout -ext subjectAltName | tail -1 -`
            aliases=`echo $aliases | sed -e 's/DNS://g' -e 's/,//g'`
            for j in $aliases
            do
                printf "%s " $j
            done
            echo
        else
            echo ERROR, domain $i not found or broken
        fi
    done
    
     
    Last edited: Mar 14, 2025
  17. till

    till Super Moderator Staff Member ISPConfig Developer

    The chapter is not about having an SSL cert only. It lists several possibilities which may cause such behavior.
     
  18. dan-v

    dan-v Member

    I read the chapter carefully and, as far as I can see, there are no possibilities mentioned (other than attempting to access to a website without certificate) that could explain receiving the wrong certificate. I may be wrong but I have not been able to find it.

    The problem has resisted an ISPConfig update.

    Attempting the browser connection (that results in receiving the wrong certificate) does not generate an error in any of the apache2 logs, nor in the target website's log.

    For that matter, the certificate received doe not match any of the certificates present in web*/ssl directories: all of these have multiple domain aliases, and the certificate received only has a top-level one (admittedly one of my domains, but not the domain requested, hence the error)

    I am attaching the htf report for what it's worth, but I could not detect any significant anomaly in there either
     

    Attached Files:

    Last edited: Mar 14, 2025
  19. till

    till Super Moderator Staff Member ISPConfig Developer

    That#s the text from chapter 2:

    2. When visiting domain B, the content of domain A is showing!
    This problem can have 2 causes:
    - You have HTTPS enabled for domain A but not for domain B, will visiting domain B over HTTPS. It is Apache's default behaviour to show the first website in the list that has HTTPS enabled.
    - domain A is listening on * while domain B is listening on a specific IP, or vice versa. Make sure all your webs are listening on a specific IP or *.

    As you can see, it lists two reasons why such behavior can happen.

    You might also want to check if any of the vhost files in /etc/apache2/sites-available/ folder is saved with a .err file ending.

    An ISPConfig update does not alter any websites, so updating ISPConfig can not make any difference here.
     
  20. dan-v

    dan-v Member

    All my domains are listening on *, so I discarded that scenario out of hand. Sorry for not having reported it.

    But, yes, good guess, I do have one site-available with a .err ending (along with one of the same site without the .err ending). Both files have the same timestamp, but the .err is longer. A difff shows that the .err file has the <VirtualHost *:443> section in it, when the regular file only has the <VirtualHost *:80>.

    I am guessing this explains the problem. But how to fix ?
     
    Last edited: Mar 14, 2025

Share This Page