Learn about Centmin Mod LEMP Stack today
Become a Member

Featured CentOS 7.x How to help test .08 CentOS 7 Betas with Github code ?

Discussion in 'Beta release code' started by eva2000, Jul 11, 2014.

  1. eva2000

    eva2000 Administrator Staff Member

    44,160
    10,066
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,556
    Local Time:
    7:09 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    test server is basically same as non-test server. Set up 1 and then do same steps to setup another :)
    I doubt updating Centmin Mod was the cause of high cpu loads given what you explained. See my reply at My service got suspended due CMM updates | Centmin Mod Community
     
  2. sepulchre

    sepulchre Member

    163
    22
    18
    Dec 22, 2014
    Ratings:
    +28
    Local Time:
    11:09 AM
    Yeah, but then this poor student needs to spend another penny for a VPS, which of course must have at least 2gb... :p
    And then you must have the time to work on 2 servers... And so on. I am playing it safe :D
    This is exactly what I did. Literally. Used that codes and used the menu only, no other commands or file edits.
    But I remembered later, I forgot to mention during that time, I installed 1 Xenforo add-on which deals with Caching, see bd Cache..
    So, yeah, it might be that. But this is all I did. Anyway, now is everything fine again. (will respond to you on my thread, too)
     
  3. eva2000

    eva2000 Administrator Staff Member

    44,160
    10,066
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,556
    Local Time:
    7:09 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Virtualbox Oracle VM VirtualBox is free to download and use and you install it on your own local PC. Think of it has having VPS guest servers you can create and destroy on your own local pc. You can install any linux os in isolation as guest servers. Example of CentOS 7.0 install on Virtualbox CentOS 7.x - CentOS 7.0 Install on VirtualBOX Guest Server | Centmin Mod Community Virtualbox uses snapshots to save guest server states as backups, so you can revert to a previous state so if you mess up, just revert the snapshot.

    example from my CentOS 7 testing

    virtualbox_centos7_snapshots.png
     
    • Informative Informative x 1
  4. AlekseY

    AlekseY Member

    47
    4
    8
    Feb 18, 2015
    Ratings:
    +7
    Local Time:
    12:09 PM
    Last edited: Apr 20, 2015
  5. eva2000

    eva2000 Administrator Staff Member

    44,160
    10,066
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,556
    Local Time:
    7:09 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    the answer is in the log
    Code:
    [WARNING] Sorry, cleartext sessions are not accepted on this server.
    pure-ftpd setup i made requires Explicit TLS/SSL enabled with PASV enabled. What FTP client you using ? try filezilla as per images and instructions posted at Centmin Mod .08 beta + pure-ftpd virtual FTP user support | Centmin Mod Community (at bottom of first post there's also a list under Compatible FTP clients for SSL/TLS for compatible FTP clients as not all FTP clients are compatible)

    Using Filezilla FTP Client with FTP Explicit TLS/SSL

    2235_filezilla_pureftpd_ftp_explicit_tls_ssl_00.png

    Transfer mode = Passive

    2236_filezilla_pureftpd_ftp_explicit_tls_ssl_01.png
     
  6. AlekseY

    AlekseY Member

    47
    4
    8
    Feb 18, 2015
    Ratings:
    +7
    Local Time:
    12:09 PM
    eva2000,
    Yummy FTP for Mac
    chose SSL/TSL.
    does not work ((

    through client Filezila - OK
     
  7. Sebastian B.

    Sebastian B. New Member

    25
    4
    3
    Aug 23, 2014
    Ratings:
    +4
    Local Time:
    11:09 AM
    1.7.2
    5.5
    Still the build brakes my virtual machines.
    HOSTS(RAM): KVM(1GB), ESXI(1GB, 10GB)
    Before I started to install Centminmod I made a fresh install of Centos 7.1 (and 7.0) and updatet it. I serval times reboted it to be sure its after the CMM install. After the installation I reboot the machine and I end in the rescue mode with the error (2.1836 EXT4-fs (loop0): VFS: Can'T find ext4 filesystem). I tried this serval times always the same. The interesting part is if I give the same vm more ram (about 10GB I tested) CMM works like a charm. So I assume its something with the memcache or this would be my first path to look at
     
  8. eva2000

    eva2000 Administrator Staff Member

    44,160
    10,066
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,556
    Local Time:
    7:09 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    That info is useful it might be related to lines 731-742 of centmin.sh for centos 7.x - with less than 2GB of memory, centmin.sh attempts to create a 2GB disk based /tmp disk. But CentOS 7 after centmin mod install occupies ~7.5GB of disk space. So that's 9.5GB total. You have 10GB KVM so probably run out of disk space. Try creating KVM instances with minimum 16GB disk space and a see.

    Lines 708-718 of centmin.sh, allows for >8GB memory detection which instead of 2GB disk based /tmp, creates tmpfs ram disk based /tmp so that is why when you raise to 10GB memory, you do not have problems
     
  9. Sebastian B.

    Sebastian B. New Member

    25
    4
    3
    Aug 23, 2014
    Ratings:
    +4
    Local Time:
    11:09 AM
    1.7.2
    5.5
    No its just Ram. The machine got enough diskspace that should not be the problem (about 50GB)
     
  10. eva2000

    eva2000 Administrator Staff Member

    44,160
    10,066
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,556
    Local Time:
    7:09 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    problem is VM disk free space not host system disk free space. Have you actually tried with 16GB disk sized VM yet ?

    I updated .08 beta 02 CentOS 7 Beta Branch - update centmin.sh /tmp creation routine for .08 beta | Centmin Mod Community with also a 1GB memory detection routine for a 1GB /tmp on disk as being smallest size instead of 2GB /tmp on disk for <2GB memory detection. That would give 7.5+1 = ~8.5GB used disk space in theory instead of 9.5GB.

    you can also try these on 1GB VM the following commands manually and post the output and errors you get at each step/cmd

    Code:
           rm -rf /tmp
           dd if=/dev/zero of=/home/usertmp_donotdelete bs=1024 count=1000000
           echo Y | mkfs.ext4 /home/usertmp_donotdelete
           mkdir -p /tmp
           mount -t ext4 -o loop,rw,noexec,nosuid /home/usertmp_donotdelete /tmp
           chmod 1777 /tmp
           echo "/home/usertmp_donotdelete /tmp ext4 loop,rw,noexec,nosuid 0 0" >> /etc/fstab
           rm -rf /var/tmp
           ln -s /tmp /var/tmp 
    could be related to mount with -o loop

    also output from these 2 commands

    Code:
    losetup -f
    losetup -a
    also what kernel you using ?
    Code:
    uname -r
    also check these 2 commands
    Code:
    yum -y install virt-what
    virt-what
     
    Last edited: Apr 26, 2015
  11. sannin

    sannin New Member

    14
    0
    1
    Jul 25, 2014
    Ratings:
    +1
    Local Time:
    7:09 PM
    1.7.3
    MariaDB 10
    Hey, i am getting this error while trying to install:

    inflating: centminmod-123.08centos7beta02/tools/centminmod_packager.sh
    inflating: centminmod-123.08centos7beta02/tools/cminfo.sh
    inflating: centminmod-123.08centos7beta02/tools/cmupdate.sh
    ./centmin.sh: line 758: syntax error near unexpected token `fi'
    ./centmin.sh: line 758: `fi'
    tail: cannot open ‘/root/centminlogs/centminmod_yumtimes_*.log’ for reading: No such file or directory
    tail: cannot open ‘/root/centminlogs/*_install.log’ for reading: No such file or directory

    Created command shortcuts:
    * type cmdir to change to Centmin Mod install directory
    at /usr/local/src/centminmod-123.08centos7beta02
    * type centmin call and run centmin.sh
    at /usr/local/src/centminmod-123.08centos7beta02/centmin.sh
     
  12. eva2000

    eva2000 Administrator Staff Member

    44,160
    10,066
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,556
    Local Time:
    7:09 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    good to wrap output in CODE tags in future ;)

    fixed the typo and updated .08 beta 02 update centmin.sh fix misplaced curly bracket for .08 beta · centminmod/centminmod@637e629 · GitHub misplaced curly brace from previous update update /tmp creation routine in centmin.sh correct log path · centminmod/centminmod@2c1502b · GitHub :)
     
  13. Sebastian B.

    Sebastian B. New Member

    25
    4
    3
    Aug 23, 2014
    Ratings:
    +4
    Local Time:
    11:09 AM
    1.7.2
    5.5
    We are talking past each other or I'm just stupid :p
    The part is the VM got 50GB Space so about 45GB free space after centos install. But I create auto partition on install. So maybe there is a problem?

    I will try the commands later

     
  14. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    1:39 PM
    1.9.x
    5.5
     
  15. eva2000

    eva2000 Administrator Staff Member

    44,160
    10,066
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,556
    Local Time:
    7:09 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  16. AlekseY

    AlekseY Member

    47
    4
    8
    Feb 18, 2015
    Ratings:
    +7
    Local Time:
    12:09 PM
  17. eva2000

    eva2000 Administrator Staff Member

    44,160
    10,066
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,556
    Local Time:
    7:09 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    if site is html based, then you need to edit staticfiles.conf or create a separate staticfiles_ssl.conf if you have non-ssl sites sharing same server and comment out staticfiles.conf and use staticfiles_ssl.conf include in your ssl vhost conf file

    and add to html context location the HSTS header

    Code:
    add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
    so

    Code:
        location ~* \.(html|htm|txt)$ {
            add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
            add_header Cache-Control "public, must-revalidate, proxy-revalidate";
            access_log off;
            expires 1d;
            break;
            }
     
  18. AlekseY

    AlekseY Member

    47
    4
    8
    Feb 18, 2015
    Ratings:
    +7
    Local Time:
    12:09 PM
    eva2000,
    the problem was: dont see add_header Public-Key-Pins
     
  19. eva2000

    eva2000 Administrator Staff Member

    44,160
    10,066
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,556
    Local Time:
    7:09 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Public key pinning is left to end user to do SSL - Public Key Pinning HPKP | Centmin Mod Community as it's experimental and according to Mozilla isn't recommended for production sites yet
     
    • Agree Agree x 1
  20. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    5:09 AM
    latest
    10
    Can exec be enabled somehow? It's required by eww image optimizer and seems to be disabled for 08 beta