Want more timely Centmin Mod News Updates?
Become a Member

Permission Denied when trying to run acmetool

Discussion in 'Domains, DNS, Email & SSL Certificates' started by Jon Snow, Oct 4, 2023.

  1. Jon Snow

    Jon Snow Active Member

    738
    150
    43
    Jun 30, 2017
    Ratings:
    +215
    Local Time:
    11:53 AM
    Nginx 1.13.9
    MariaDB 10.1.31
    I'm using this guide:
    https://centminmod.com/letsencrypt-acmetool-https.html

    Code (Text):
    cd /usr/local/src/centminmod/addons
    ./acmetool.sh issue http2.centminmod.com lived


    But I'm running into an issue each time and it isn't working:
    Code (Text):
    /root/.acme.sh/acme.sh: line 3466: /usr/local/src/centminmod/tools/pre-acme-hooks.sh: Permission denied
    
    Error when run pre hook.
    _on_before_issue.


    The only thing I did different with this server is followed @eva2000's method of installing centminmod:
    https://pastebin.com/JJjXmbx5

    It's in a pastebin because when I try to wrap it with CodeB, Cloudflare blocks it.

     
    Last edited: Oct 4, 2023
  2. eva2000

    eva2000 Administrator Staff Member

    51,987
    11,976
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,473
    Local Time:
    12:53 AM
    Nginx 1.25.x
    MariaDB 10.x
    Which version on Centmin Mod 124.00stable or 130.00beta01?

    what are the permissions on /usr/local/src/centminmod/tools/pre-acme-hooks.sh
    Code (Text):
    ls -lAh /usr/local/src/centminmod/tools/pre-acme-hooks.sh
     
  3. Jon Snow

    Jon Snow Active Member

    738
    150
    43
    Jun 30, 2017
    Ratings:
    +215
    Local Time:
    11:53 AM
    Nginx 1.13.9
    MariaDB 10.1.31
    Should be 124.00stable
     
  4. Jon Snow

    Jon Snow Active Member

    738
    150
    43
    Jun 30, 2017
    Ratings:
    +215
    Local Time:
    11:53 AM
    Nginx 1.13.9
    MariaDB 10.1.31
    Just saw your edit.

    Here it is:
    Code (Text):
    ls -lAh /usr/local/src/centminmod/tools/pre-acme-hooks.sh
    -rw-r--r-- 1 root root 4.2K Oct  3 23:30 /usr/local/src/centminmod/tools/pre-acme-hooks.sh
     
  5. eva2000

    eva2000 Administrator Staff Member

    51,987
    11,976
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,473
    Local Time:
    12:53 AM
    Nginx 1.25.x
    MariaDB 10.x
  6. Jon Snow

    Jon Snow Active Member

    738
    150
    43
    Jun 30, 2017
    Ratings:
    +215
    Local Time:
    11:53 AM
    Nginx 1.13.9
    MariaDB 10.1.31
    That solved it!