Welcome to Centmin Mod Community
Register Now

[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:
    +161
    Local Time:
    2:45 PM
    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?
     
    • Like Like x 1
  2. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +161
    Local Time:
    2:45 PM
    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?
     
    • Like Like x 1
  3. Matt

    Matt Moderator Staff Member

    663
    307
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +416
    Local Time:
    7:45 AM
    1.7.1
    MariaDB 10
    What's the output of
    Code:
    which mail
    on your server?
     
  4. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +161
    Local Time:
    2:45 PM
    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 Moderator Staff Member

    663
    307
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +416
    Local Time:
    7:45 AM
    1.7.1
    MariaDB 10
    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

    28,348
    6,438
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,533
    Local Time:
    4:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  7. Matt

    Matt Moderator Staff Member

    663
    307
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +416
    Local Time:
    7:45 AM
    1.7.1
    MariaDB 10
    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.
     
    • Like Like x 2
  8. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +161
    Local Time:
    2:45 PM
    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

    28,348
    6,438
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,533
    Local Time:
    4:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    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'