Welcome to Centmin Mod Community
Register Now

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

    859
    172
    43
    Jun 30, 2017
    Ratings:
    +264
    Local Time:
    9:23 PM
    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

    55,802
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    10:23 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    859
    172
    43
    Jun 30, 2017
    Ratings:
    +264
    Local Time:
    9:23 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    Should be 124.00stable
     
  4. Jon Snow

    Jon Snow Active Member

    859
    172
    43
    Jun 30, 2017
    Ratings:
    +264
    Local Time:
    9:23 PM
    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

    55,802
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    10:23 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. Jon Snow

    Jon Snow Active Member

    859
    172
    43
    Jun 30, 2017
    Ratings:
    +264
    Local Time:
    9:23 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    That solved it!