Join the community today
Become a Member

Install How to troubleshoot Centmin Mod initial install issues

Discussion in 'Install & Upgrades or Pre-Install Questions' started by eva2000, May 29, 2014.

Thread Status:
Not open for further replies.
  1. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    7:19 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Centmin Mod is provided as is without support. I only work on Centmin Mod in my free time. So users feel free to help each other out which is the ideal goal of this community forum :)

    Centmin Mod Logs



    However, to properly troubleshoot and diagnose Centmin Mod initial install issues start a new thread in Install & Upgrades or Pre-Install Questions forums and share/look at the initial install logs which are automatically created when you run initial install menu option #1 or when you run any of the CLI install methods (from 1.2.3-eva2000.07 beta and onwards). These install logs are automatically created as per FAQ 7 outline at Centmin Mod FAQ - Menu based Nginx installer. If this is a nginx only centmin.sh menu option 4 issue, use this guide/steps instead at Install - Nginx - How to troubleshoot Nginx installs/upgrades.

    For 123.08stable and older, logs would be formatted as centminmod_1.2.3-eva2000.07_230514-155845_install.log.

    For example in 123.09beta01 and higher, initial install log listed below is at /root/centminlogs/installer_120718-075613.log and there's an minimal installer log at /root/centminlogs/installer_120718-083445_minimal.log which strips some of the entries for unimportant stuff
    Code (Text):
    ls -lhrt /root/centminlogs/
    total 12M
    -rw-r--r-- 1 root root  11K Jul 12 08:00 centminmod_123.09beta01.b035_120718-080010_yuminstall_centos7.log
    -rw-r--r-- 1 root root  12K Jul 12 08:00 centminmod_yumtimes_120718-080010.log
    -rw-r--r-- 1 root root   37 Jul 12 08:00 centminmod_profiletimes_120718-080010.log
    -rw-r--r-- 1 root root 2.2K Jul 12 08:00 cmm-login-git-checks_120718-080056.log
    -rw-r--r-- 1 root root  78K Jul 12 08:01 centminmod_downloadtimes_120718-080010.log
    -rw-r--r-- 1 root root 1.3K Jul 12 08:01 securedtmp.log
    -rw-r--r-- 1 root root  584 Jul 12 08:01 patch_opensslpatches_120718-080010.log
    -rw-r--r-- 1 root root   44 Jul 12 08:02 centminmod_opensslinstalltime_120718-080010.log
    -rw-r--r-- 1 root root    8 Jul 12 08:02 patch_patchnginx_120718-080010.log
    -rw-r--r-- 1 root root 2.1K Jul 12 08:03 gcc_native.log
    -rw-r--r-- 1 root root 7.7K Jul 12 08:03 nginx-configure-120718-080010.log
    -rw-r--r-- 1 root root 2.7M Jul 12 08:05 centminmod_ngxinstalltime_120718-080010.log
    -rw-r--r-- 1 root root 9.5K Jul 12 08:06 setio_innodbstatus-before-120718-080646.log
    -rw-r--r-- 1 root root  784 Jul 12 08:06 centminmod_setio_120718-080646.log
    -rw-r--r-- 1 root root 9.5K Jul 12 08:06 setio_innodbstatus-after-120718-080646.log
    -rw-r--r-- 1 root root 2.3K Jul 12 08:07 gcc_php_native.log
    -rw-r--r-- 1 root root   58 Jul 12 08:10 centminmod_phpinstalltime_120718-080010.log
    -rw-r--r-- 1 root root  470 Jul 12 08:10 zendopcache_passfile.txt
    -rw-r--r-- 1 root root  28K Jul 12 08:13 centminmod_123.09beta01.b035_120718-080010_yum-log.log
    -rw-r--r-- 1 root root  125 Jul 12 08:13 install.utc.time.log
    -rw-r--r-- 1 root root 4.2M Jul 12 08:13 centminmod_123.09beta01.b035_120718-080010_install.log
    -rw-r--r-- 1 root root 4.3M Jul 12 08:13 installer_120718-075613.log
    -rw-r--r-- 1 root root 826K Jul 12 08:13 installer_120718-083445_minimal.log
    -rw-r--r-- 1 root root    8 Jul 12 08:13 getcmtime_installtime_120718-075613.log
    -rw-r--r-- 1 root root   56 Jul 12 08:13 firstyum_installtime_120718-075613.log
    -rw-r--r-- 1 root root  793 Jul 12 08:13 install_time_stats_120718-075613.log
    -rw-r--r-- 1 root root 4.7K Jul 12 08:13 sar-u-installstats.log
    -rw-r--r-- 1 root root 4.2K Jul 12 08:13 sar-q-installstats.log
    -rw-r--r-- 1 root root 6.5K Jul 12 08:13 sar-r-installstats.log
    -rw-r--r-- 1 root root 5.9K Jul 12 08:13 sar-d-installstats.log
    -rw-r--r-- 1 root root 3.7K Jul 12 08:13 sar-b-installstats.log
    -rw-r--r-- 1 root root 2.2K Jul 12 08:13 yum-timedhosts.txt
    

    For downloading the install log you can compress it via gzip first. Change installer_120718-075613.log to name of your installer_*.log
    Code (Text):
    cd /root/centminlogs
    pigz -11k installer_120718-075613.log
    pigz -11k installer_120718-083445_minimal.log
    

    end result is a .gz compressed copy of your log file to download. Uncompressed size = 4.3MB while gzip compressed copy is just 208KB ! and minimal log from 826KB to 95KB in size
    Code (Text):
    ls -lah /root/centminlogs/installer*
    -rw-r--r-- 1 root root 4.3M Jul 12 09:06 /root/centminlogs/installer_120718-083445.log
    -rw-r--r-- 1 root root 208K Jul 12 09:06 /root/centminlogs/installer_120718-083445.log.gz
    -rw-r--r-- 1 root root 826K Jul 12 09:06 /root/centminlogs/installer_120718-083445_minimal.log
    -rw-r--r-- 1 root root  95K Jul 12 10:20 /root/centminlogs/installer_120718-083445_minimal.log.gz
    



    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


    Sharing logs and errors


    You can use Pastebin.com or Gists to share a sanitised version of the contents of the install or error messages if you need for them to be properly formatted or if error message or logs are very long and not able to be posted here on the community. When I mean sanitised, the install log now contains some generated passwords which you may want to remove from the log prior to sharing in public. To find the passwords, you can search for the words within install.log with the added semi-colon included:
    Code:
    password:
    Then remove those passwords from the log.

    Server Logs


    Server logs include Nginx, PHP-FPM, MariaDB MySQL error logs as well as others. You can find your Centmin Mod install/menu logs at FAQ 7 and server logs at FAQ 19 at Centmin Mod FAQ - Menu based Nginx installer (most up to date info in FAQ so always read that first). Spoiler tag below has info too but may not be up to date.

    Some of Centmin Mod's installed software will have their own access and error logs which maybe useful for diagnosing errors or give info, notes, or warning notices.

    Note: There's no support provided by me for diagnosing such errors which may occur for various reasons including misconfiguration of installed php/mysql scripts or applications.

    In SSH2 telnet you can use tail command to view the last X number of lines in the file.

    For example for viewing last 10 lines in the file for:

    For Nginx access and error logs:
    Code:
      tail -10 /usr/local/nginx/logs/access.log
      tail -10 /usr/local/nginx/logs/error.log
    
    For specific domainname.com access and error log:
    Code:
      tail -10 /home/nginx/domains/domainname.com/log/access.log
      tail -10 /home/nginx/domains/domainname.com/log/error.log
    
    For other system error logs located at /var/log:

    list /var/log files in ascending time order so the most recently modified files are at the bottom
    Code:
      ls -lhrt /var/log
    
    Code:
    total 2.7M
    -rw------- 1 root  root    0 Aug 29 15:33 tallylog
    -rw------- 1 root  root    0 Aug 29 15:33 spooler
    drwx------ 3 root  root 4.0K Aug 29 15:35 samba
    drwxr-xr-x 2 root  root 4.0K Aug 29 15:35 mail
    -rw-r--r-- 1 root  500     0 Oct  8 18:13 dmesg.old
    -rw------- 1 root  500     0 Oct  8 18:13 boot.log
    -rw-r--r-- 1 root  500     0 Oct  8 18:14 dmesg
    drwx------ 2 root  root 4.0K Oct  8 18:14 httpd
    drwxr-xr-x 2 root  root 4.0K Oct  8 19:08 php-fpm
    -rw-rw---- 1 mysql root 2.3K Oct  9 12:38 mysqld.log
    -rw------- 1 root  root 9.2K Oct 26 10:48 yum.log
    -rw------- 1 root  utmp  94K Nov  7 22:59 btmp
    drwxr-xr-x 2 root  root 4.0K Nov  8 00:00 sa
    -rw------- 1 root  root 269K Nov  8 21:39 messages
    -rw------- 1 root  root 110K Nov  8 23:08 secure
    -rw-rw-r-- 1 root  utmp  43K Nov  8 23:08 wtmp
    -rw-r--r-- 1 root  root 144K Nov  8 23:08 lastlog
    -rw------- 1 root  root  69K Nov  8 23:08 lfd.log
    -rw------- 1 root  root 332K Nov  8 23:08 maillog
    -rw------- 1 root  500  1.6M Nov  8 23:10 cron
    
    For PHP-FPM error log:
    Code:
      tail -10 /var/log/php-fpm/www-error.log
    
    and/or
    Code:
      /var/log/php-fpm/www-php.error.log
    
    For MySQL / MariaDB error log:
    Code:
      tail -10 /var/log/mysqld.log
    
    For CSF firewall LFD log:
    Code:
      tail -10 /var/log/lfd.log
    
    For Mail log:
    Code:
      tail -10 /var/log/maillog
    
    For Cron job logs:
    Code:
      tail -10 /var/log/cron
    

    Nginx Pagespeed Troubleshooting


    Full details at Nginx PageSpeed - Nginx Pagespeed Troubleshooting steps | Centmin Mod Community

    Also share relevant info including:
    • VPS type ? Xen, KVM, OpenVZ, VMWare ?
    • Amount of memory ?
    • which build of Centmin Mod .07 stable or .08 beta ?
    • Nginx version used ? Output from command
    Code:
    nginx -V
     
    Last edited: Dec 25, 2021
  2. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    7:19 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    Additional Notes


    • Most common initial install error will be with broken download urls due to changes in the download url location or for YUM repos the release RPM version number is updated. You can see all download urls Centmin Mod looks for at /inc/downloadlinks.inc for 123.08stable and /inc/downloadlinks.inc for 123.09beta01.
     
    Last edited: Oct 5, 2016
  3. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    7:19 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    123.09beta01 additional installer log



    On July 12, 2018 updated Centmin Mod 123.09beta01 to extend the initial installer logging into log file /root/centminlogs/installer_*.log where * is date timestamp and also a minimal installer log which is less verbose and smaller at /root/centminlogs/installer_*_minimal.log

    You can use Pastebin.com or Gists to share a sanitised version of the contents of the install or error messages if you need for them to be properly formatted or if error message or logs are very long and not able to be posted here on the community. When I mean sanitised, the install log now contains some generated passwords which you may want to remove from the log prior to sharing in public.
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    7:19 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    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
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    7:19 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
Thread Status:
Not open for further replies.