Learn about Centmin Mod LEMP Stack today
Become a Member

[Solved] Bug Install times for sub-components are 0s on install

Discussion in 'AlmaLinux 8 & Rocky Linux 8 Beta Testing' started by pjrobertson, Oct 20, 2023.

  1. pjrobertson

    pjrobertson New Member

    20
    4
    3
    Feb 7, 2021
    Ratings:
    +8
    Local Time:
    4:35 AM
    I thought I would make a new thread for this. I have reinstalled CMM multiple times, and the install appears correct, but the times are still 0. I think this is a bug with reporting the times - see the end of the installer log and the error:

    Code:
    tail: option used in invalid context -- 1
    
    Installer log here: https://gist.github.com/pjrobertson/c237d98963a514c899277d64704e60a3

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    4:35 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    How are you reinstalling Centmin Mod? You need to reload and reinstall your OS first i.e. AlmaLinux or Rocky Linux needs reinstalling before you attempt a new Centmin Mod install.

    I ask as the log shows that Centmin Mod github repo already exists on the server so you had previously installed Centmin Mod on the server it seems
    Code (Text):
    git clone Centmin Mod repo...
    fatal: destination path 'centminmod' already exists and is not an empty directory.
    

    That would cause the time calculation routines to error as there would be more than 1 version of the logged times files on the server so tail -1 command would have issues

    fresh install with 1 version of
    Code (Text):
    ls -lah /root/centminlogs/firstyum_installtime_020623-102137.log
    -rw-r--r-- 1 root root 55 Jun  2 10:34 /root/centminlogs/firstyum_installtime_020623-102137.log
    
    tail -1 /root/centminlogs/firstyum_installtime_*.log
    Total Curl Installer YUM or DNF Time: 91.5251 seconds
    

    replicate a 2nd version if you accidentally ran Centmin Mod installer more than once on an existing Centmin Mod install (which shouldn't work anyway - guess need to add a check for that :))
    Code (Text):
    cp -a /root/centminlogs/firstyum_installtime_020623-102137.log /root/centminlogs/firstyum_installtime_020623-102138.log
    
    tail -1 /root/centminlogs/firstyum_installtime_*.log
    tail: option used in invalid context -- 1
    
     
  3. pjrobertson

    pjrobertson New Member

    20
    4
    3
    Feb 7, 2021
    Ratings:
    +8
    Local Time:
    4:35 AM
    Makes perfect sense! I guess this thread title can be changed to:

    CMM should warn if trying to run the installer more than once (on an existing install).

    A check for that sounds good :D
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    4:35 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Just added a check to private 130.00beta01 installer :)
     
  5. pjrobertson

    pjrobertson New Member

    20
    4
    3
    Feb 7, 2021
    Ratings:
    +8
    Local Time:
    4:35 AM
    Great, thanks! This can be marked as 'solved' now I think :)