acme.sh is not being run

Discussion in 'General' started by Rimas, Oct 25, 2023.

  1. Rimas

    Rimas New Member

    Hi, I'm trying to set up a website on a newly installed server, and when I check the "Let's Encrypt SSL" checkbox, it is being automatically unchecked a minute later.
    The Error FAQ suggests to check logs for acme.sh, but none of the logfiles mentioned in it exist. Additionally, after I disable the server.sh cronjob and run the command manually, here's the output I see:
    Code:
    PHP Warning:  Trying to access array offset on value of type null in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 851
    setquota: Not setting block grace time on /dev/mapper/ubuntu--vg-lv--0 because softlimit is not exceeded.
    setquota: Not setting inode grace time on /dev/mapper/ubuntu--vg-lv--0 because softlimit is not exceeded.
    PHP Warning:  Undefined array key "hostname" in /usr/local/ispconfig/server/lib/app.inc.php on line 324
    PHP Warning:  Undefined array key "hostname" in /usr/local/ispconfig/server/lib/app.inc.php on line 324
    finished server.php.
    As you can see, there's no output regarding acme.sh whatsoever, which makes me suspect that acme is not being run at all. Could it be related to the missing array indices?

    Context info:
    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 22.04.3 LTS
    [INFO] uptime:  13:35:30 up 15 min,  2 users,  load average: 0.19, 0.25, 0.24
    [INFO] memory:
                   total        used        free      shared  buff/cache   available
    Mem:           7.7Gi       1.7Gi       5.0Gi        19Mi       994Mi       5.7Gi
    Swap:          4.0Gi          0B       4.0Gi
    [INFO] systemd failed services status:
      UNIT                      LOAD   ACTIVE SUB    DESCRIPTION
    ● snap.lxd.activate.service loaded failed failed Service for snap application lxd.activate
    
    LOAD   = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB    = The low-level unit activation state, values depend on unit type.
    1 loaded units listed.
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.11
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 8.1.24
    [INFO] php-cgi (used for cgi php in default vhost!) is version 8.1.24
    
    ##### PORT CHECK #####
    
    [WARN] Port 143 (IMAP server) seems NOT to be listening
    [WARN] Port 993 (IMAP server SSL) seems NOT to be listening
    [WARN] Port 110 (POP3 server) seems NOT to be listening
    [WARN] Port 995 (POP3 server SSL) seems NOT to be listening
    [WARN] Port 465 (SMTP server SSL) seems NOT to be listening
    
    ##### MAIL SERVER CHECK #####
    
    [WARN] I found no "submission" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer port 587 for smtp connections you have to enable this.
    [WARN] I found no "smtps" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer SSL for smtp (not TLS) connections you have to enable this.
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
            Apache 2 (PID 4813)
    [INFO] I found the following mail server(s):
            Postfix (PID 1676)
    [WARN] I could not determine which pop3 server is running.
    [WARN] I could not determine which imap server is running.
    [INFO] I found the following ftp server(s):
            PureFTP (PID 948)
    
    ##### LISTENING PORTS #####
    (only           ()
    Local           (Address)
    ***.***.***.***:53              (611/systemd-resolve)
    [localhost]:25          (1676/master)
    [anywhere]:21           (948/pure-ftpd)
    [anywhere]:22           (720/sshd:)
    [anywhere]:111          (1/init)
    [anywhere]:3306         (791/mariadbd)
    [localhost]:11211               (630/memcached)
    [anywhere]:2812         (856/monit)
    *:*:*:*::*:25           (1676/master)
    *:*:*:*::*:443          (4813/apache2)
    *:*:*:*::*:21           (948/pure-ftpd)
    *:*:*:*::*:22           (720/sshd:)
    [localhost]11           (1/init)
    *:*:*:*::*:80           (4813/apache2)
    *:*:*:*::*:3306         (791/mariadbd)
    *:*:*:*::*:8081         (4813/apache2)
    *:*:*:*::*:8080         (4813/apache2)
    *:*:*:*::*:6556         (839/xinetd)
    *:*:*:*::*:2812         (856/monit)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination        
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination        
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination        
    
    
    
    
    ##### LET'S ENCRYPT #####
    acme.sh is installed in /root/.acme.sh/acme.sh
     
    Last edited: Oct 25, 2023
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    That's not the case, you just missed enabling debug mode. Enable debug mode, check the let's encrypt checkbox in the website again and then run server.sh and post the output.
     
    Rimas likes this.
  3. Rimas

    Rimas New Member

    Uh, you're right. Thank you! :)
     

Share This Page