Join the community today
Register Now

Letsencrypt acme.sh cronjob error

Discussion in 'Add Ons' started by fly, Jun 26, 2020.

  1. fly

    fly Member

    109
    16
    18
    Jul 27, 2019
    Ratings:
    +28
    Local Time:
    9:11 PM
    Sorry to bump an old thread, but having another issue with LE again. When I run the cron manually, I get the following error:

    Code:
    [Thu Jun 25 17:42:49 CDT 2020] Your cert is in  /root/.acme.sh/website.org/website.org.cer
    [Thu Jun 25 17:42:49 CDT 2020] Your cert key is in  /root/.acme.sh/website.org/website.org.key
    [Thu Jun 25 17:42:49 CDT 2020] The intermediate CA cert is in  /root/.acme.sh/website.org/ca.cer
    [Thu Jun 25 17:42:49 CDT 2020] And the full chain certs is there:  /root/.acme.sh/website.org/fullchain.cer
    [Thu Jun 25 17:42:49 CDT 2020] Installing cert to:/root/.acme.sh/website.org/website.org.cer
    cat: /root/.acme.sh/website.org/website.org.cer: input file is output file
    [Thu Jun 25 17:42:49 CDT 2020] Error renew website.org.
    [Thu Jun 25 17:42:49 CDT 2020] ===End cron===
    
    centminmod and acmetool are up to date.

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,531
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    11:11 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what acme.sh client version are you using ? output for command
    Code (Text):
    acme.sh --version


    when was last time you updated acme.sh client ? when you do centmin.sh menu option 2, 22 or nv runs it automatically updates acme.sh client before running it via addons/acmetool.sh acmeupdate command
    Code (Text):
    /usr/local/src/centminmod/addons/acmetool.sh acmeupdate

    Code (Text):
    /usr/local/src/centminmod/addons/acmetool.sh acmeupdate
    -------------------------------------------------
    acmetool.sh is in beta testing phase
    please read & provide bug reports &
    feedback for this tool via the forums
    https://centminmod.com/acmetool
    -------------------------------------------------
    continue [y/n] ? y
    -----------------------------------------------------
    updating acme.sh client...
    -----------------------------------------------------
    Cloning into 'acme.sh'...
    [Fri Jun 26 13:30:43 UTC 2020] It is recommended to install socat first.
    [Fri Jun 26 13:30:43 UTC 2020] We use socat for standalone server if you use standalone mode.
    [Fri Jun 26 13:30:43 UTC 2020] If you don't use standalone mode, just ignore this warning.
    [Fri Jun 26 13:30:43 UTC 2020] Installing to /root/.acme.sh
    [Fri Jun 26 13:30:43 UTC 2020] Installed to /root/.acme.sh/acme.sh
    [Fri Jun 26 13:30:43 UTC 2020] Installing alias to '/root/.bashrc'
    [Fri Jun 26 13:30:43 UTC 2020] OK, Close and reopen your terminal to start using acme.sh
    [Fri Jun 26 13:30:43 UTC 2020] Installing alias to '/root/.cshrc'
    [Fri Jun 26 13:30:43 UTC 2020] Installing alias to '/root/.tcshrc'
    [Fri Jun 26 13:30:43 UTC 2020] Installing cron job
    20 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
    [Fri Jun 26 13:30:43 UTC 2020] Good, bash is found, so change the shebang to use bash as preferred.
    [Fri Jun 26 13:30:43 UTC 2020] OK
    https://github.com/acmesh-official/acme.sh
    v2.8.7
    -----------------------------------------------------
    check acme auto renew cronjob setup: 
    -----------------------------------------------------
    20 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
    -----------------------------------------------------
    acme.sh updated
    -----------------------------------------------------
    

    or upgrade directly via acme.sh upgrade command
    Code (Text):
    acme.sh --upgrade

    Code (Text):
    acme.sh --upgrade
    [Fri Jun 26 13:28:41 UTC 2020] Installing from online archive.
    [Fri Jun 26 13:28:41 UTC 2020] Downloading https://github.com/Neilpang/acme.sh/archive/master.tar.gz
    [Fri Jun 26 13:28:42 UTC 2020] Extracting master.tar.gz
    [Fri Jun 26 13:28:42 UTC 2020] It is recommended to install socat first.
    [Fri Jun 26 13:28:42 UTC 2020] We use socat for standalone server if you use standalone mode.
    [Fri Jun 26 13:28:42 UTC 2020] If you don't use standalone mode, just ignore this warning.
    [Fri Jun 26 13:28:42 UTC 2020] Installing to /root/.acme.sh
    [Fri Jun 26 13:28:42 UTC 2020] Installed to /root/.acme.sh/acme.sh
    [Fri Jun 26 13:28:42 UTC 2020] Good, bash is found, so change the shebang to use bash as preferred.
    [Fri Jun 26 13:28:42 UTC 2020] OK
    [Fri Jun 26 13:28:42 UTC 2020] Install success!
    [Fri Jun 26 13:28:42 UTC 2020] Upgrade success!
    

    Code (Text):
    acme.sh --version
    https://github.com/acmesh-official/acme.sh
    v2.8.7
    
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,531
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    11:11 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    also what was exact command you ran ?

    manual cronjob run for acme.sh is
    Code (Text):
    "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh"