Welcome to Centmin Mod Community
Register Now

Feedback Centminmod is slow

Discussion in 'AlmaLinux 8 & Rocky Linux 8 Beta Testing' started by Kuro, Jul 16, 2023.

  1. Kuro

    Kuro Member

    109
    13
    18
    Feb 8, 2018
    Ratings:
    +25
    Local Time:
    4:39 PM
    1.15.10
    10.3
    130.00beta01.b372 #Sun Jul 16 08:08:25 UTC 2023
    almalinux 8.8
    Code:
    curl -4sL https://centminmod.com/installer-el8x-81-edge-mold.sh -o installer-el8x-81-edge-mold.sh; bash installer-el8x-81-edge-mold.sh
    Every time I execute a certain command, after 2-3 minutes it shows the result. For example, "centmin", or every time you log in to the VPS. New server, I reinstalled Centminmod 2 times

    [​IMG]
    [​IMG]


    upload_2023-7-16_16-33-2.png
     
    Last edited: Jul 16, 2023
  2. Kuro

    Kuro Member

    109
    13
    18
    Feb 8, 2018
    Ratings:
    +25
    Local Time:
    4:39 PM
    1.15.10
    10.3
    [​IMG]
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    7:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Run these command to run centmin.sh in debug mode and saved contents to /root/centminlogs/centmin-debug.txt. wait until you return to command prompt for completion of debug mode
    Code (Text):
    cmupdate
    cd /usr/local/src/centminmod
    echo 24 | bash -x centmin.sh 2>&1 | sed -e "s|$(hostname -f)|hostname|g" -e "s|$(hostname -s)|hostname|g" | tee /root/centminlogs/centmin-debug.txt
    

    Then check output for other sensitive info to mask and remove and then post the contents of /root/centminlogs/centmin-debug.txt to pastebin.com or gist.github.com and share the link here or private message me with the link

    Most likely issue is your server's network connectivity or dns lookup in /etc/resolv.conf try using 8.8.8.8 and 8.8.4.4 for nameservers for DNS
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    7:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Might want to check the Centmin Mod initial installation log too if it's recent install.

    Troubleshooting Initial Install



    To troubleshoot initial installation, you need to check the initial install log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    Example for 123.09beta01 and newer list /root/centminlogs files in date ascending order and grep for installer_*
    Code (Text):
    ls -lahrt /root/centminlogs | grep installer_*
    

    example output returns install log at /root/centminlogs both a the full log and minimal log (smaller in size with some stuff filtered out)
    Code (Text):
    ls -lahrt /root/centminlogs | grep installer_*
    -rw-r--r-- 1 root root 4.3M Jul 12 09:06 installer_120718-083445.log
    -rw-r--r-- 1 root root 826K Jul 12 10:20 installer_120718-083445_minimal.log
    


    Example for 123.08stable list /root/centminlogs files in date ascending order and grep for install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    

    example output returns install log at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    -rw-r--r--  1 root root 2.2M Oct 11 01:40 centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    in SSH use cat to ouput contents of /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log. Clear your SSH client window/buffer so only output is the contents of the file

    for 123.08stable
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    for 123.09beta01 and newer
    Code (Text):
    cat /root/centminlogs/installer_120718-083445_minimal.log
    


    Installer Summary Links Log



    As at December 25th, 2021, added a new /root/centminlogs/installer_summary_links.log summary log which is a text file that links to the initial install's important log files for easier referencing and troubleshooting. Example contents of /root/centminlogs/installer_summary_links.log:

    Code (Text):
    Full initial install log: /root/centminlogs/installer_071221-010436.log
    Minimal initial install log: /root/centminlogs/installer_071221-010436_minimal.log
    Initial install time stats: /root/centminlogs/install_time_stats_071221-010436.log
    Initial install nginx configure options: /root/centminlogs/nginx-configure-071221-010927.log
    Initial install sar stats:
    /root/centminlogs/sar-b-installstats.log
    /root/centminlogs/sar-d-installstats.log
    /root/centminlogs/sar-r-installstats.log
    /root/centminlogs/sar-q-installstats.log
    /root/centminlogs/sar-u-installstats.log


    Then copy and paste into Pastebin.com or Gists entry. If your SSH window scroll buffer isn't that large to get the whole contents of the install log, you can download file manually and copy and paste contents. But makes sure it's sanitised version of the contents of the initial install log as outlined at How to troubleshoot Centmin Mod initial install issues

    Sharing Logs Via Dropbox



    You can also share the relevant required log files outlined above via Dropbox send via email feature at https://community.centminmod.com/threads/using-dropbox-to-share-server-files.22327/

    Upgrading Centmin Mod Code to Latest Version



    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS This is heart of Centmin Mod where the code is the engine that runs centmin.sh shell based menu and all the automation you're accustomed to.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at Upgrade - How to upgrade Centmin Mod | Centmin Mod Community
    So essentially, you can upgrade from .07 to .08 in place, but not everything is upgraded as some things like server initial environment setup isn't changed i.e. how swap, tmp setup and allocation are created etc. The main parts from part 2 above are what in place upgrades do i.e. Nginx and PHP-FPM compilation and config/settings parameters and MariaDB version from 5.5 to 10.0.x. If you want the full environment changed including tmp and swap setup to .08's configuration, then you would need a fresh OS install and fresh .08 initial install. You can think of it like upgrading Windows 7 to Windows 8. An in place upgrade will upgrade code but won't change your computer environment from when you installed Windows 7 i.e. disk configuration and partition sizes won't change from when you initially installed Windows 7. Only way to change that would be fresh Windows 8 install.
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    7:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. Kuro

    Kuro Member

    109
    13
    18
    Feb 8, 2018
    Ratings:
    +25
    Local Time:
    4:39 PM
    1.15.10
    10.3
    centmin-debug.txt
    https://cdn.discordapp.com/attachments/1109865486633685042/1130148399723839619/centmin-debug.txt
    in /etc/resolv.conf
    upload_2023-7-16_21-47-2.png
     
  7. Kuro

    Kuro Member

    109
    13
    18
    Feb 8, 2018
    Ratings:
    +25
    Local Time:
    4:39 PM
    1.15.10
    10.3
    The network is fine, but Centminmod related tasks are slow.
    VPS SGP
    upload_2023-7-16_21-52-43.png
     
  8. Kuro

    Kuro Member

    109
    13
    18
    Feb 8, 2018
    Ratings:
    +25
    Local Time:
    4:39 PM
    1.15.10
    10.3
    This is the four time I reinstalled, but the result is still the same. the only 2 commands I ran:
    Code:
    yum -y update
    curl -4sL https://centminmod.com/installer-el8x-81-edge.sh -o installer-el8x-81-edge.sh; bash installer-el8x-81-edge.sh
    I haven't installed anything yet.
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    7:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what output do you get for these commands with existing /etc/resolv.conf in place

    Code (Text):
    time curl -4sL -w "\n DNS Lookup: %{time_namelookup}\n SSL Handshake (time_appconnect): %{time_appconnect}\n TCP Connect time: %{time_connect}\n Pre-Transfer Negotiations: %{time_pretransfer}\n Redirect Time: %{time_redirect}\n TTFB (includes pre-transfer): %{time_starttransfer}\n Total time: %{time_total}\n Size: %{size_download}\n
    " https://nginx.org/en/download.html 2>&1 | tail -10
    

    Code (Text):
    wget -q https://github.com/centminmod/get-php-versions/raw/master/get-php-ver.sh -O /usr/local/bin/getphpver && chmod +x /usr/local/bin/getphpver
    time getphpver "$(php-config --version | awk -F '.' '{print $1$2}')"
    

    Code (Text):
    time curl -sk4 -w "\n DNS Lookup: %{time_namelookup}\n SSL Handshake (time_appconnect): %{time_appconnect}\n TCP Connect time: %{time_connect}\n Pre-Transfer Negotiations: %{time_pretransfer}\n Redirect Time: %{time_redirect}\n TTFB (includes pre-transfer): %{time_starttransfer}\n Total time: %{time_total}\n Size: %{size_download}\n
    " https://raw.githubusercontent.com/centminmod/centminmod/130.00beta01/giturl.txt
    

    Code (Text):
    ping -c4 github.com
    

    Code (Text):
    cd /usr/local/src/centminmod
    export GIT_TRACE=1
    export GIT_TRACE_PACKET=1
    export GIT_TRACE_PERFORMANCE=1
    time git fetch -v
    

    Then try swapping out 1.1.1.1 nameserver for 8.8.4.4 and try logging out of SSH and logging in to see if speed of login and speed of running centmin.sh menu command is faster and re-run those commands above to compare
     
  10. Kuro

    Kuro Member

    109
    13
    18
    Feb 8, 2018
    Ratings:
    +25
    Local Time:
    4:39 PM
    1.15.10
    10.3
    Code:
    DNS Lookup: 0.004108
     SSL Handshake (time_appconnect): 0.473226
     TCP Connect time: 0.156068
     Pre-Transfer Negotiations: 0.473340
     Redirect Time: 0.000000
     TTFB (includes pre-transfer): 0.624856
     Total time: 0.624918
     Size: 10400
    
    
    real    0m0.634s
    user    0m0.018s
    sys     0m0.006s
    
    Code:
    real    0m0.017s
    user    0m0.010s
    sys     0m0.013s
    
    Code:
    https://github.com/centminmod/centminmod.git
     DNS Lookup: 0.005167
     SSL Handshake (time_appconnect): 0.109743
     TCP Connect time: 0.053331
     Pre-Transfer Negotiations: 0.109860
     Redirect Time: 0.000000
     TTFB (includes pre-transfer): 0.470671
     Total time: 0.470710
     Size: 44
    
    
    real    0m0.481s
    user    0m0.012s
    sys     0m0.013s
    
    Code:
    PING github.com (20.205.243.166) 56(84) bytes of data.
    64 bytes from 20.205.243.166 (20.205.243.166): icmp_seq=1 ttl=118 time=2.01 ms
    64 bytes from 20.205.243.166 (20.205.243.166): icmp_seq=2 ttl=118 time=1.88 ms
    64 bytes from 20.205.243.166 (20.205.243.166): icmp_seq=3 ttl=118 time=1.90 ms
    64 bytes from 20.205.243.166 (20.205.243.166): icmp_seq=4 ttl=118 time=1.84 ms
    
    --- github.com ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3004ms
    rtt min/avg/max/mdev = 1.844/1.909/2.011/0.081 ms
    
    Code:
    16:47:00.951643 read-cache.c:2481       performance: 0.000127740 s:  read cache .git/index
    16:47:00.951954 run-command.c:655       trace: run_command: GIT_DIR=.git git remote-https origin https://githu b.com/centminmod/centminmod.git
    16:47:00.954269 git.c:750               trace: exec: git-remote-https origin https://github.com/centminmod/cen tminmod.git
    16:47:00.954326 run-command.c:655       trace: run_command: git-remote-https origin https://github.com/centmin mod/centminmod.git
    16:47:01.307236 pkt-line.c:80           packet:          git< # service=git-upload-pack
    16:47:01.307283 pkt-line.c:80           packet:          git< 0000
    16:47:01.307288 pkt-line.c:80           packet:          git< version 2
    16:47:01.307293 pkt-line.c:80           packet:          git< agent=git/github-a47f90135dd9
    16:47:01.307297 pkt-line.c:80           packet:          git< ls-refs=unborn
    16:47:01.307300 pkt-line.c:80           packet:          git< fetch=shallow wait-for-done filter
    16:47:01.307303 pkt-line.c:80           packet:          git< server-option
    16:47:01.307307 pkt-line.c:80           packet:          git< object-format=sha1
    16:47:01.307310 pkt-line.c:80           packet:          git< 0000
    16:47:01.307456 pkt-line.c:80           packet:        fetch< version 2
    16:47:01.307498 pkt-line.c:80           packet:        fetch< agent=git/github-a47f90135dd9
    16:47:01.307502 pkt-line.c:80           packet:        fetch< ls-refs=unborn
    16:47:01.307505 pkt-line.c:80           packet:        fetch< fetch=shallow wait-for-done filter
    16:47:01.307508 pkt-line.c:80           packet:        fetch< server-option
    16:47:01.307527 pkt-line.c:80           packet:        fetch< object-format=sha1
    16:47:01.307530 pkt-line.c:80           packet:        fetch< 0000
    16:47:01.307537 pkt-line.c:80           packet:        fetch> command=ls-refs
    16:47:01.307561 pkt-line.c:80           packet:        fetch> agent=git/2.39.3
    16:47:01.307570 pkt-line.c:80           packet:        fetch> object-format=sha1
    16:47:01.307575 pkt-line.c:80           packet:        fetch> 0001
    16:47:01.307580 pkt-line.c:80           packet:        fetch> peel
    16:47:01.307583 pkt-line.c:80           packet:        fetch> symrefs
    16:47:01.307586 pkt-line.c:80           packet:        fetch> unborn
    16:47:01.307592 pkt-line.c:80           packet:        fetch> ref-prefix refs/heads/130.00beta01
    16:47:01.307612 pkt-line.c:80           packet:        fetch> ref-prefix refs/refs/heads/130.00beta01
    16:47:01.307625 pkt-line.c:80           packet:        fetch> ref-prefix refs/tags/refs/heads/130.00beta01
    16:47:01.307629 pkt-line.c:80           packet:        fetch> ref-prefix refs/heads/refs/heads/130.00beta01
    16:47:01.307638 pkt-line.c:80           packet:        fetch> ref-prefix refs/remotes/refs/heads/130.00beta01
    16:47:01.307642 pkt-line.c:80           packet:        fetch> ref-prefix refs/remotes/refs/heads/130.00beta01/ HEAD
    16:47:01.307645 pkt-line.c:80           packet:        fetch> ref-prefix refs/heads/130.00beta01
    16:47:01.307651 pkt-line.c:80           packet:        fetch> ref-prefix refs/tags/
    16:47:01.307654 pkt-line.c:80           packet:        fetch> 0000
    16:47:01.308524 pkt-line.c:80           packet:          git< command=ls-refs
    16:47:01.308548 pkt-line.c:80           packet:          git< agent=git/2.39.3
    16:47:01.308552 pkt-line.c:80           packet:          git< object-format=sha1
    16:47:01.308556 pkt-line.c:80           packet:          git< 0001
    16:47:01.308560 pkt-line.c:80           packet:          git< peel
    16:47:01.308564 pkt-line.c:80           packet:          git< symrefs
    16:47:01.308574 pkt-line.c:80           packet:          git< unborn
    16:47:01.308578 pkt-line.c:80           packet:          git< ref-prefix refs/heads/130.00beta01
    16:47:01.308583 pkt-line.c:80           packet:          git< ref-prefix refs/refs/heads/130.00beta01
    16:47:01.308591 pkt-line.c:80           packet:          git< ref-prefix refs/tags/refs/heads/130.00beta01
    16:47:01.308596 pkt-line.c:80           packet:          git< ref-prefix refs/heads/refs/heads/130.00beta01
    16:47:01.308600 pkt-line.c:80           packet:          git< ref-prefix refs/remotes/refs/heads/130.00beta01
    16:47:01.308607 pkt-line.c:80           packet:          git< ref-prefix refs/remotes/refs/heads/130.00beta01/ HEAD
    16:47:01.308612 pkt-line.c:80           packet:          git< ref-prefix refs/heads/130.00beta01
    16:47:01.308615 pkt-line.c:80           packet:          git< ref-prefix refs/tags/
    16:47:01.308619 pkt-line.c:80           packet:          git< 0000
    POST git-upload-pack (458 bytes)
    16:47:01.571184 pkt-line.c:80           packet:          git> 0002
    16:47:01.571323 pkt-line.c:80           packet:        fetch< b447d77a1eed3dcbb58e0bc458162156a2480bfd refs/he ads/130.00beta01
    16:47:01.571376 pkt-line.c:80           packet:        fetch< a9ec735278390b68633becfa8a78120ccd151991 refs/he ads/130.00beta01-appstream-mariadb
    16:47:01.571384 pkt-line.c:80           packet:        fetch< 4bdd50542e2efd49518e66054dc16bab09d244bf refs/ta gs/123.06 peeled:388e6e81a5095352ff18cb76d4a3b16df79559c6
    16:47:01.571391 pkt-line.c:80           packet:        fetch< 21bc9e22eeb5e274307a7d5c5bc9c222268842d3 refs/ta gs/123.07 peeled:78df2f6663c04b4e2da3ab45bcbc4ea608000ec8
    16:47:01.571398 pkt-line.c:80           packet:        fetch< 0000
    16:47:01.571460 pkt-line.c:80           packet:        fetch< 0002
    16:47:01.571755 run-command.c:655       trace: run_command: git rev-list --objects --stdin --not --all --quiet  --alternate-refs
    From https://github.com/centminmod/centminmod
     = [up to date]      130.00beta01 -> origin/130.00beta01
    16:47:01.580185 trace.c:411             performance: 0.625979482 s: git command: /usr/libexec/git-core/git rem ote-https origin https://github.com/centminmod/centminmod.git
    16:47:01.581267 run-command.c:1524      run_processes_parallel: preparing to run up to 1 tasks
    16:47:01.581352 run-command.c:1551      run_processes_parallel: done
    16:47:01.581379 run-command.c:655       trace: run_command: git maintenance run --auto --no-quiet
    16:47:01.583788 git.c:460               trace: built-in: git maintenance run --auto --no-quiet
    16:47:01.584136 trace.c:411             performance: 0.000457650 s: git command: /usr/libexec/git-core/git mai ntenance run --auto --no-quiet
    16:47:01.584453 trace.c:411             performance: 0.633286403 s: git command: git fetch -v
    
    real    0m0.638s
    user    0m0.019s
    sys     0m0.025s
    
    Changed but still slow
     
  11. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    7:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Those all look fine time-wise. Run this command
    Code (Text):
    cminfo debug-menuexit
    

    then share output or /root/centminlogs/debug-menuexit.txt masking private info first

    this is similar to the previous debug run just adds timestamps to every step so can more easily see where the slowness is
     
  12. Kuro

    Kuro Member

    109
    13
    18
    Feb 8, 2018
    Ratings:
    +25
    Local Time:
    4:39 PM
    1.15.10
    10.3
    Thanks, problem solved after I moved to another location (sgp to hkg)
     
  13. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    5:39 PM
    Mainline
    10.2
    What hosting is this?
     
  14. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    7:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Interesting, I wonder if it was due to 1.1.1.1 DNS resolver? Or just network connectivity from Singapore.

    From logs seem to have been Hosthatch
     
  15. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    5:39 PM
    Mainline
    10.2
    Nice, very clean website and using premium data centers.
    And it's cheap.

    Not sure how reliable they are :)