Discover Centmin Mod today
Register Now

(RESOLVED)Get strange EOF error when run centmin

Discussion in 'Install & Upgrades or Pre-Install Questions' started by EckyBrazzz, Oct 20, 2019.

  1. EckyBrazzz

    EckyBrazzz Active Member

    917
    190
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +363
    Local Time:
    6:22 AM
    Latest
    Latest
    Suddenly I get a strange error when I start Cenmin menu
    Code (Text):
    /etc/centminmod/custom_config.inc: line 93: unexpected EOF while looking for matching `''
    /etc/centminmod/custom_config.inc: line 95: syntax error: unexpected end of file
    /etc/centminmod/custom_config.inc: line 93: unexpected EOF while looking for matching `''
    /etc/centminmod/custom_config.inc: line 95: syntax error: unexpected end of file
    
    /etc/centminmod/custom_config.inc: line 93: unexpected EOF while looking for matching `''
    /etc/centminmod/custom_config.inc: line 95: syntax error: unexpected end of file
    


    These lines are

    Code (Text):
    
    >90#####################################################
    >91# MariaDB
    >92MARIADB_INSTALLTENTWO='n'       # MariaDB 10.2 YUM default install if set to yes
    >92MARIADB_INSTALLTENTHREE='y'     # MariaDB 10.3 YUM default install if set to yes
    >93MARIADB_INSTALLTENFOUR='n'      # MariaDB 10.4 YUM default install if set to yes
    >94#####################################################
    >95
    


    added >90 to indicate line number, so these are NOT in the file;)
    Can't see anything wrong here

     
  2. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:22 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Errrors occur everytime you run centmin.sh or only once and subsequent runs are without or with errors ?
    How do you edit your persistent config file /etc/centminmod/custom_config.inc ? on windows pc and upload to server or via Centmin Mod server's own text editors like vi, vim or nano ?

    You can try running centmin.sh menu option 24 in debug mode logged to debug.txt text file in /root/centminlogs directory by running these 3 commands
    Code (Text):
    cd /usr/local/src/centminmod
    echo 24 | bash -x centmin.sh 2>&1 | awk '{ print strftime("%Y-%m-%d %H:%M:%S"), $0; fflush(); }' | tee /root/centminlogs/debug.txt && echo "debug log saved at /root/centminlogs/debug.txt"
    sed -i "s|$(hostname)|hostname|g" /root/centminlogs/debug.txt
    

    Then copy the contents of /root/centminlogs/debug.txt into a pastebin.com or gist.github.com shared link - with an sensitive info masked. At least server hostname will be replaced with word hostname instead via last sed replacement line.
     
  3. EckyBrazzz

    EckyBrazzz Active Member

    917
    190
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +363
    Local Time:
    6:22 AM
    Latest
    Latest
    Error occur everytime I run centmin.sh
    Edit persistent config file /etc/centminmod/custom_config.inc with nano directly on server. But only added a line way in top of the existing one.

    Never had any trouble when doing that.
     
    Last edited by a moderator: Oct 20, 2019
  4. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:22 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    backup your /etc/centminmod/custom_config.inc and then empty it out and see if centmin.sh menu runs error free
    Code (Text):
    cd /etc/centminmod/
    cp -a /etc/centminmod/custom_config.inc /etc/centminmod/custom_config.inc-backup1
    echo > /etc/centminmod/custom_config.inc
    cmdir
    ./centmin.sh
    
     
  5. EckyBrazzz

    EckyBrazzz Active Member

    917
    190
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +363
    Local Time:
    6:22 AM
    Latest
    Latest
    Already tried to empty it filled it with what I catch with the old one the cat still errors.

    Now with empty file no errors.

    Obs private gist removed also;), but urgent issue with servers offline.:(
     
  6. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:22 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+