Join the community today
Become a Member

[Solved] 123.07beta21

Discussion in 'Bug Reports' started by dorobo, Jun 11, 2014.

  1. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    9:56 AM
    latest
    latest
    Since I'm running out of disk space, I'm receiving diskalert but mail is not found

    Code:
    /etc/cron.daily/diskalert:
    
    /etc/cron.daily/diskalert: line 31: mail: command not found
    I think

    yum -y install mailx


    should also be included in centminmod?
     
  2. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    9:56 AM
    latest
    latest
    In line 842 of centmin.sh

    Code:
    if [[ ! -f /etc/init.d/postfix ]];
    it installs this

    Code:
    yum -y -q install sendmail mailx sendmail-cf
    otherwise it skips. but then if it skips then it doesn't get to install mailx thus this error in my installation

    /etc/cron.daily/diskalert: line 31: mail: command not found

    is that correct?
     
  3. Matt

    Matt Well-Known Member

    925
    414
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +669
    Local Time:
    2:56 AM
    1.5.15
    MariaDB 10.2
    What's the output of
    Code:
    which mail
    on your server?
     
  4. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    9:56 AM
    latest
    latest
    Code:
    # which mail
    /usr/bin/which: no mail in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
     
  5. Matt

    Matt Well-Known Member

    925
    414
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +669
    Local Time:
    2:56 AM
    1.5.15
    MariaDB 10.2
    So nothing has been installed then by the looks of it. I'm just doing a fresh install on the latest beta to test myself.
     
  6. eva2000

    eva2000 Administrator Staff Member

    53,461
    12,128
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,668
    Local Time:
    11:56 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  7. Matt

    Matt Well-Known Member

    925
    414
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +669
    Local Time:
    2:56 AM
    1.5.15
    MariaDB 10.2
    OK, so clean install on DigitalOcean CentOS 6.5 64bit

    Code:
    [root@test centmin-v1.2.3mod]# which mail
    /usr/bin/which: no mail in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    [root@test centmin-v1.2.3mod]# 
    Based on the check in the script:
    Code:
    if [[ "$SENDMAIL_INSTALL" = [yY] ]];
    then
    
            if [[ ! -f /etc/init.d/postfix ]]; then
                    echo "*************************************************"
                    cecho "* Installing sendmail" $boldgreen
                    echo "*************************************************"
                    yum${CACHESKIP} -y -q install sendmail mailx sendmail-cf
                    chkconfig --levels 235 sendmail on
                    funct_sendmailmc
                    #/etc/init.d/sendmail start
                    echo "*************************************************"
                    cecho "* sendmail installed" $boldgreen
                    echo "*************************************************"
    
            else
    
                    postfixsetup
            fi
    
            echo "*************************************************"
            cecho "Postfix already detected, sendmail install aborted" $boldgreen
            echo "*************************************************"
    
    fi
    Code:
    [root@test centmin-v1.2.3mod]# ls /etc/init.d/postfix
    /etc/init.d/postfix
    [root@test centmin-v1.2.3mod]# 
    Postfix isn't running by default and no mail option. So yes, mailx should still be installed even if postfix is detected during the startup.

    EDIT: @eva2000 beat me to it.
     
  8. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    9:56 AM
    latest
    latest
    If you have the time, could you kindly also test this in a clean install on digital ocean to confirm that this is a bug?

    Note: UNATTENDED='n' <-- should be n to reproduce the error

    https://community.centminmod.com/th...beta-21-to-stable-status.124/page-3#post-1663

    Python won't download with error too many redirects. I've tried this on a couple of VPSes and it strangely doesn't download. But when wgetting directly in the command line it works.
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,461
    12,128
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,668
    Local Time:
    11:56 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    read the full .07 release line for centmin.sh particularly the comment ;)

    In .07 betas basically with the new installer.sh and CLI command line methods now in place, UNATTENDED='n' isn't being developed actively so there will be bugs if you try UNATTENDED='n'