Want to subscribe to topics you're interested in?
Become a Member

Install cmupdate "inc/cpcheck.inc: line 681: postconf: command not found"

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Kuro, May 27, 2019.

  1. Kuro

    Kuro Member

    109
    13
    18
    Feb 8, 2018
    Ratings:
    +25
    Local Time:
    3:15 PM
    1.15.10
    10.3
    Hi Eva.
    Looks like it had something wrong after I suddenly rebooted my VPS
    upload_2019-5-27_19-2-12.png
    681 cmd
    upload_2019-5-27_19-0-50.png
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed:123.09beta01
    • Nginx Version Installed: 1.17.0
    • PHP Version Installed: 7.3.5
    • MariaDB MySQL Version Installed: 10.2.xx


     
  2. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    6:15 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    postconf command belows to postfix yum package so if that command is missing, it means you somehow removed postfix MTA mail server !

    what's output for this command to trace yum history commands for postfix
    Code (Text):
    yum history info postfix


    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 :)
     
  3. Kuro

    Kuro Member

    109
    13
    18
    Feb 8, 2018
    Ratings:
    +25
    Local Time:
    3:15 PM
    1.15.10
    10.3
    yes :D
    https://pastebin.com/rP0aMp8k
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    6:15 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    very first yum history info postfix transaction id = 41 shows that you using mysql 5.7 (not centmin mod default) so when you yum removed mysql 5.7, you also removed postfix MTA mailserver as it's a dependency /linked - so you wiped your Postfix mailserver and hence no postconf command and no functioning mail server for outbound emails either !

    so you changed from Centmin Mod default MariaDB 10 to Oracle MySQL 5.7 ? but that change wiped your postfix MTA mailserver ! and also removed pure-ftpd FTP server too !! You've screwed up your server ! Without knowing what else you may have messed up, best to just backup all your data files/databases and restore on a fresh CentOS 7 + fresh Centmin Mod 123.09beta01 installation using the default MariaDB 10.3 MySQL server instead.
    Code (Text):
    yum history info postfix
    Loaded plugins: fastestmirror, priorities, versionlock
    Transaction ID : 41
    Begin time     : Thu May 23 20:17:14 2019
    Begin rpmdb    : 814:2e56b4a5444c7b09dd8de49d10740ece0fb440fa
    End time       :            20:17:20 2019 (6 seconds)
    End rpmdb      : 803:b0c351a4aa113cb26197dd5698ae874aa1b769ce
    User           : root <root>
    Return-Code    : Success
    Command Line   : remove mysql-community-client.x86_64 mysql-community-common.x86_64 mysql-community-devel.x86_64 mysql-community-libs.x86_64 mysql-community-libs-compat.x86_64 mysql-community-server.x86_64 mysql57-community-release.noarch
    Transaction performed with:
        Installed     rpm-4.11.3-35.el7.x86_64                      @anaconda
        Installed     yum-3.4.3-161.el7.centos.noarch               @anaconda
        Installed     yum-plugin-fastestmirror-1.1.31-50.el7.noarch @anaconda
    Packages Altered:
        Erase mysql-community-common-5.7.26-1.el7.x86_64      @mysql57-community
        Erase mysql-community-libs-5.7.26-1.el7.x86_64        @mysql57-community
        Erase mysql-community-libs-compat-5.7.26-1.el7.x86_64 @mysql57-community
        Erase mysql57-community-release-el7-11.noarch         @/mysql57-community-release-el7-11.noarch
        Erase mytop-1.7-10.b737f60.el7.noarch                 @epel
        Erase net-snmp-1:5.7.2-37.el7.x86_64                  @base
        Erase net-snmp-devel-1:5.7.2-37.el7.x86_64            @base
        Erase perl-DBD-MySQL-4.023-6.el7.x86_64               @base
        Erase postfix-2:2.10.1-7.el7.x86_64                   @anaconda
        Erase postfix-perl-scripts-2:2.10.1-7.el7.x86_64      @base
        Erase pure-ftpd-1.0.47-2.el7.x86_64                   @epel
    Scriptlet output:
       1 warning: /etc/postfix/main.cf saved as /etc/postfix/main.cf.rpmsave
       2 warning: /etc/pure-ftpd/pure-ftpd.conf saved as /etc/pure-ftpd/pure-ftpd.conf.rpmsave
    

    from that transaction id = 41 i see the yum command that you ran was
    Code (Text):
    yum remove mysql-community-client.x86_64 mysql-community-common.x86_64 mysql-community-devel.x86_64 mysql-community-libs.x86_64 mysql-community-libs-compat.x86_64 mysql-community-server.x86_64 mysql57-community-release.noarch
     
  5. Kuro

    Kuro Member

    109
    13
    18
    Feb 8, 2018
    Ratings:
    +25
    Local Time:
    3:15 PM
    1.15.10
    10.3
    Code:
    [19:11][root@hls ~]# yum remove mysql-community-client.x86_64 mysql-community-common.x86_64 mysql-community-devel.x86_64 mysql-community-libs.x86_64 mysql-community-libs-compat.x86_64 mysql-community-server.x86_64 mysql57-community-release.noarch
    Loaded plugins: fastestmirror, priorities, versionlock
    No Match for argument: mysql-community-client.x86_64
    No Match for argument: mysql-community-common.x86_64
    No Match for argument: mysql-community-devel.x86_64
    No Match for argument: mysql-community-libs.x86_64
    No Match for argument: mysql-community-libs-compat.x86_64
    No Match for argument: mysql-community-server.x86_64
    No Match for argument: mysql57-community-release.noarch
    No Packages marked for removal
    [19:31][root@hls ~]# centmin
    /usr/local/src/centminmod ~
    
    inc/cpcheck.inc: line 681: postconf: command not found
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    
     
  6. Kuro

    Kuro Member

    109
    13
    18
    Feb 8, 2018
    Ratings:
    +25
    Local Time:
    3:15 PM
    1.15.10
    10.3
    At first I installed MySQL to work with Nodejs. Then I installed Centminmod (forgot to remove mysql before install centimmod) and got MariaDB error so I removed it and installed it manually. (I don't see any option to reinstall it)
     
  7. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    6:15 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    no i meant, that yum remove command was run on your system and yum history recorded that the command was ran on Thu May 23 20:17:14 2019 server time, that is why you have postconf issues as your yum remove command ran on Thu May 23 20:17:14 2019 server time, removed Oracle MySQL 5.7 yum packages and it's dependency packages for postfix and pure-ftpd and other yum packages messing up your server. Centmin Mod does not install Oracle MySQL 5.7 so you or someone with access to your server installed it after Centmin Mod was installed.
    Code (Text):
    yum history info postfix
    Loaded plugins: fastestmirror, priorities, versionlock
    Transaction ID : 41
    Begin time     : Thu May 23 20:17:14 2019
    Begin rpmdb    : 814:2e56b4a5444c7b09dd8de49d10740ece0fb440fa
    End time       :            20:17:20 2019 (6 seconds)
    End rpmdb      : 803:b0c351a4aa113cb26197dd5698ae874aa1
    

    you can find when Oracle MySQL 5.7 was installed via yum history info command again
    Code (Text):
    yum history info mysql-community-common mysql57-community-release mysql-community-libs mysql-community-libs-compat
    

    In that case yes you're messed up your Centmin Mod install as Centmin Mod needs virgin CentOS install without any conflicting packages like Oracle MySQL 5.7.

    Without knowing what else you may have messed up, best to just backup all your data files/databases and restore on a fresh CentOS 7 + fresh Centmin Mod 123.09beta01 installation using the default MariaDB 10.3 MySQL server instead.