Welcome to Centmin Mod Community
Register Now

Error while running centmin.sh command

Discussion in 'Install & Upgrades or Pre-Install Questions' started by drabhaydaga, Jun 30, 2021.

  1. drabhaydaga

    drabhaydaga New Member

    28
    3
    3
    Nov 24, 2018
    Ratings:
    +3
    Local Time:
    3:21 AM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.19.7
    • PHP Version Installed: 7.4.15
    • MariaDB MySQL Version Installed: 10.2.xx
    • When was last time updated Centmin Mod code base ? : 30/06/2021
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      Code (Text):
      cat /etc/centminmod/custom_config.inc
      

      Post output in CODE tags.

      Code (Text):
      MARCH_TARGETNATIVE='n'
      LETSENCRYPT_DETECT='y'
      PHPFINFO='y'
      


      i am trying to shift my droplet of DO

      i took snapshot of current droplet and shifted

      but when i was trying to login via putty it was showing connection time out i tried with all isp so i thought there must me some error in original droplet so i tried to login the original one i shown following error when running centmin.sh command

      Code (Text):
      /usr/local/src/centminmod ~
      inc/nginx_configure.inc: line 3801: syntax error near unexpected token `}'
      inc/nginx_configure.inc: line 3801: `}'
      
      inc/cpcheck.inc: line 175: [: missing `]'
      


      also when trying to upgrade nginx to 1.21.0 getting following error

      Code (Text):
      inc/nginx_upgrade.inc: line 691: funct_nginxconfigure: command not found
      
      Wed Jun 30 08:03:23 UTC 2021
      Error: 127, Nginx configure failed
      
      report errors on the forums at community.centminmod.com/forums/8/
      with info asked at community.centminmod.com/threads/17778/
      
      


      and when running nginx -t

      Code (Text):
      nginx: [warn] the "http2_max_requests" directive is obsolete, use the "keepalive_requests" directive instead in /usr/local/nginx/conf/conf.d/shipping.spinefitmedical.com.ssl.conf:22
      nginx: [warn] the "http2_max_field_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /usr/local/nginx/conf/conf.d/spinefitkorea.com.ssl.conf:20
      nginx: [warn] the "http2_max_header_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /usr/local/nginx/conf/conf.d/spinefitkorea.com.ssl.conf:21
      nginx: [warn] the "http2_max_requests" directive is obsolete, use the "keepalive_requests" directive instead in /usr/local/nginx/conf/conf.d/spinefitkorea.com.ssl.conf:22
      nginx: [warn] the "http2_max_field_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /usr/local/nginx/conf/conf.d/spinefitmedical.com.ssl.conf:20
      nginx: [warn] the "http2_max_header_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /usr/local/nginx/conf/conf.d/spinefitmedical.com.ssl.conf:21
      nginx: [warn] the "http2_max_requests" directive is obsolete, use the "keepalive_requests" directive instead in /usr/local/nginx/conf/conf.d/spinefitmedical.com.ssl.conf:22
      nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
      nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
      
      
      
    plz let me know where i am wrong ??

     
    Last edited: Jun 30, 2021
  2. eva2000

    eva2000 Administrator Staff Member

    53,229
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    7:51 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what is output from command for both servers
    Code (Text):
    cmupdate

    could be you snapshotted a bugged old server Centmin Mod Nginx config and brought it over to the new server. So ideally you fix the old server before you do the snapshot/transfer.
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,229
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    7:51 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    For old server, what version are you on for Centmin Mod as inc/nginx_configure.inc in Centmin Mod 123.09beta01 latest code only has 3712 from lines centminmod/centminmod

    On old server run cmupdate and run centmin.sh menu once and exit to apply the updates and see if centmin.sh subsequent runs have issues
     
  4. drabhaydaga

    drabhaydaga New Member

    28
    3
    3
    Nov 24, 2018
    Ratings:
    +3
    Local Time:
    3:21 AM
    i am using 123.09beta01

    i run cmupdate

    Code (Text):
    cmupdate
    No local changes to save
    Already up-to-date.
    


    and run centmin.sh

    Code (Text):
    inc/nginx_configure.inc: line 3801: syntax error near unexpected token `}'
    inc/nginx_configure.inc: line 3801: `}'
    
    inc/cpcheck.inc: line 175: [: missing `]'
    
     
  5. drabhaydaga

    drabhaydaga New Member

    28
    3
    3
    Nov 24, 2018
    Ratings:
    +3
    Local Time:
    3:21 AM
    i did clean Centmin Mod code replacement using below SSH commands

    Code (Text):
    branchname=123.09beta01
    cd /usr/local/src
    rm -rf centminmod*
    git clone -b ${branchname} --depth=1 https://github.com/centminmod/centminmod.git centminmod
    cd centminmod
    ./centmin.sh
    


    now it seams error has been resolved

    but why i am not able to access via ssh via putty ??

    i am jst able to access via internal console of digital ocean seams to be some error ?? or dont knw what i am doing wrong ??

    i have already shifted 3 droplets bt this specific 1 droplet is having issues
     
    Last edited: Jul 1, 2021
  6. drabhaydaga

    drabhaydaga New Member

    28
    3
    3
    Nov 24, 2018
    Ratings:
    +3
    Local Time:
    3:21 AM
    and when trying to cmupdate command following error screenshot.png
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,229
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    7:51 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    maybe your VPS network connectivity or local DNS resolver isn't working?

    what do you get for these commands
    Code (Text):
    dig +short A github.com

    Code (Text):
    ping -c4 github.com

    Code (Text):
    cat /etc/resolv.conf
     
  8. eva2000

    eva2000 Administrator Staff Member

    53,229
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    7:51 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    also check status of CSF Firewall and LFD daemon and post output for these commands
    Code (Text):
    service csf status | sed -e "s|$(hostname)|hostname|g"

    Code (Text):
    service lfd status | sed -e "s|$(hostname)|hostname|g"

    for posting code or output from commands to keep the formatting, you might want to use CODE tags for code How to use forum BBCODE code tags :)
     
  9. drabhaydaga

    drabhaydaga New Member

    28
    3
    3
    Nov 24, 2018
    Ratings:
    +3
    Local Time:
    3:21 AM
    screenshot.png
     
  10. drabhaydaga

    drabhaydaga New Member

    28
    3
    3
    Nov 24, 2018
    Ratings:
    +3
    Local Time:
    3:21 AM
  11. eva2000

    eva2000 Administrator Staff Member

    53,229
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    7:51 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Your ping and dig commands return no service/errors suggest dns resolver issues. You can try rebooting the server to see if that fits VPS level issues if the DNS resolvers in /etc/resolv.conf are meant to be correct or also try adding
    Code (Text):
    nameserver 8.8.8.8

    and retry the ping and dig commands

    Instead of image screenshots for output, for posting code or output from commands to keep the formatting, you might want to use CODE tags for code How to use forum BBCODE code tags