Welcome to Centmin Mod Community
Become a Member

Syntax Error

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Meirami, Oct 1, 2018.

  1. Meirami

    Meirami Member

    104
    13
    18
    Dec 21, 2017
    Ratings:
    +36
    Local Time:
    8:14 PM
    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.15.4
    • PHP Version Installed: 7.2.10
    • MariaDB MySQL Version Installed: 10.1.36
    • When was last time updated Centmin Mod code base ? :fresh install
    • Persistent Config:
      Code (Text):
      PHPFINFO='y'
      LETSENCRYPT_DETECT=y
      


    I installed centmin with this command:
    Code:
    yum -y update; curl -O https://centminmod.com/betainstaller72.sh && chmod 0700 betainstaller72.sh && bash betainstaller72.sh
    Just before end, there were syntax error:
    Code:
    (standard_in) 2: syntax error
    ---------------------------------------------------------------------------
    Total Curl Installer YUM or DNF Time: 321.7144 seconds
    I looked through logs for errors and here are the results:
    Code (Text):
    centminmod_123.09beta01.b060_300918-150500_install.log:198:curl: (6) Could not resolve host: apt.sw.be; Unknown error
    centminmod_123.09beta01.b060_300918-150500_install.log:199:error: http://apt.sw.be/RPM-GPG-KEY.dag.txt: import read failed(2).
    centminmod_123.09beta01.b060_300918-150500_install.log:4575:/opt/openssl/share/man/man3/ERR_clear_error.3
    
    centminmod_123.09beta01.b060_300918-150500_install.log:19470:/svr-setup/memcache-3.0.8/memcache_pool.h:45:47: fatal error: ext/standard/php_smart_str_public.h: No such file or directory
    centminmod_123.09beta01.b060_300918-150500_install.log:19475:/svr-setup/memcache-3.0.8/memcache_pool.c:38:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
    centminmod_123.09beta01.b060_300918-150500_install.log:19485:/svr-setup/memcache-3.0.8/memcache_pool.h:45:47: fatal error: ext/standard/php_smart_str_public.h: No such file or directory
    centminmod_123.09beta01.b060_300918-150500_install.log:21803:mcrypt-1.0.1/tests/mcrypt_decrypt_error.phpt
    
    centminmod_123.09beta01.b060_300918-150500_yuminstall_centos7.log:46:curl: (6) Could not resolve host: apt.sw.be; Unknown error
    centminmod_123.09beta01.b060_300918-150500_yuminstall_centos7.log:47:error: http://apt.sw.be/RPM-GPG-KEY.dag.txt: import read failed(2).
    centminmod_123.09beta01.b060_300918-150500_yum-log.log:300:Sep 30 15:00:29 Installed: libgpg-error-devel-1.12-3.el7.x86_64
    
    installer_300918-145724.log:1130:checking whether the C locale is free of encoding errors... no
    
    installer_300918-145724.log:2369:curl: (6) Could not resolve host: apt.sw.be; Unknown error
    installer_300918-145724.log:2370:error: http://apt.sw.be/RPM-GPG-KEY.dag.txt: import read failed(2).
    installer_300918-145724.log:6746:/opt/openssl/share/man/man3/ERR_clear_error.3
    
    installer_300918-145724.log:21641:/svr-setup/memcache-3.0.8/memcache_pool.h:45:47: fatal error: ext/standard/php_smart_str_public.h: No such file or directory
    installer_300918-145724.log:21646:/svr-setup/memcache-3.0.8/memcache_pool.c:38:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
    installer_300918-145724.log:21656:/svr-setup/memcache-3.0.8/memcache_pool.h:45:47: fatal error: ext/standard/php_smart_str_public.h: No such file or directory
    installer_300918-145724.log:23974:mcrypt-1.0.1/tests/mcrypt_decrypt_error.phpt
    
    centminmod_downloadtimes_300918-150500.log:198:curl: (6) Could not resolve host: apt.sw.be; Unknown error
    centminmod_downloadtimes_300918-150500.log:199:error: http://apt.sw.be/RPM-GPG-KEY.dag.txt: import read failed(2).
    centminmod_yumtimes_300918-150500.log:49:curl: (6) Could not resolve host: apt.sw.be; Unknown error
    centminmod_yumtimes_300918-150500.log:50:error: http://apt.sw.be/RPM-GPG-KEY.dag.txt: import read failed(2).
    installer_300918-145724_minimal.log:706:  CC       strerror_r.o
    installer_300918-145724_minimal.log:1290:curl: (6) Could not resolve host: apt.sw.be; Unknown error
    installer_300918-145724_minimal.log:1291:error: http://apt.sw.be/RPM-GPG-KEY.dag.txt: import read failed(2).
    installer_300918-145724_minimal.log:4121:Checking for strerror... Yes.
    
    installer_300918-145724_minimal.log:9070:/svr-setup/memcache-3.0.8/memcache_pool.h:45:47: fatal error: ext/standard/php_smart_str_public.h: No such file or directory
    installer_300918-145724_minimal.log:9075:/svr-setup/memcache-3.0.8/memcache_pool.c:38:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
    installer_300918-145724_minimal.log:9085:/svr-setup/memcache-3.0.8/memcache_pool.h:45:47: fatal error: ext/standard/php_smart_str_public.h: No such file or directory
    installer_300918-145724_minimal.log:10870:mcrypt-1.0.1/tests/mcrypt_decrypt_error.phpt
    

    Errors were found by running
    Code:
    grep -rn 'error' |grep -v Werror |grep -v error.log

    I also searched for syntax error. Once it was ok to ignore that error.

    Is it ok to start using my VPS and forget syntax error or should I do fresh install again?
     
  2. eva2000

    eva2000 Administrator Staff Member

    36,323
    7,979
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,287
    Local Time:
    3:14 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Can be ignored and doesn't affect centmin mod install - it's to do with calculated timings of centmin mod initial install reported times AFAIK. Just having pinpointed the culprit yet
     
    • Like Like x 1
  3. eva2000

    eva2000 Administrator Staff Member

    36,323
    7,979
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,287
    Local Time:
    3:14 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    FYI, I have found the install time calculation that causes syntax error it's related to calculation for github download time which seems to report 0 seconds now as variables turn up empty - but debug log shows the variables exist so still need to figure it out

    Calculation is for difference between getcmendtime and getcmstarttime variables to calculate github download times and shows at this part
    Code (Text):
    + [[ ! -f /usr/local/src/centminmod ]]
    ++ TZ=UTC
    ++ date +%s.%N
    + getcmstarttime=1538421320.690713393
    + echo 'git clone Centmin Mod repo...'
    git clone Centmin Mod repo...
    + git clone -b 123.09beta01 --depth=5 https://github.com/centminmod/centminmod.git centminmod
    Cloning into 'centminmod'...
    
    real    0m2.517s
    user    0m0.335s
    sys     0m0.207s
    ++ TZ=UTC
    ++ date +%s.%N
    + getcmendtime=1538421323.208688127
    

    but for whatever reason those 2 variables turn up empty at final calculation
    Code (Text):
      GETCMTIME=$(echo "$getcmendtime - $getcmstarttime" | bc)
      echo "$GETCMTIME" > "/root/centminlogs/getcmtime_installtime_${DT}.log"
      GETCMTIME=$(printf "%0.4f\n" $GETCMTIME)
      echo "$GETCMTIME" >> "/root/centminlogs/getcmtime_installtime_${DT}.log"
    

    shows as empty variable minus empty variable
    Code (Text):
    ++ echo ' - '
    ++ bc
    (standard_in) 2: syntax error
    + GETCMTIME=
    + echo ''
    ++ printf '%0.4f\n'
    + GETCMTIME=0.0000
    + echo 0.0000
    

    Code (Text):
    echo " - " | bc 
    (standard_in) 2: syntax error
    

    but should in fact when calculated
    Code (Text):
    echo "$getcmendtime - $getcmstarttime" | bc
    2.517974734
    
     
    • Informative Informative x 1
  4. eva2000

    eva2000 Administrator Staff Member

    36,323
    7,979
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,287
    Local Time:
    3:14 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    • Like Like x 1
  5. Meirami

    Meirami Member

    104
    13
    18
    Dec 21, 2017
    Ratings:
    +36
    Local Time:
    8:14 PM
    Did fresh install. Everything was ok.
     
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    36,323
    7,979
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,287
    Local Time:
    3:14 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Glad to hear :)
     
..