Get the most out of your Centmin Mod LEMP stack
Become a Member

Nginx Nginx error : unknown log format

Discussion in 'Install & Upgrades or Pre-Install Questions' started by pamamolf, May 16, 2017.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    1:46 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7.3 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: i.e. 1.13.0
    • PHP Version Installed: i.e. 5.6.30 or 7.0.15
    • MariaDB MySQL Version Installed: i.e. 10.0.21 or 10.1.21
    • When was last time updated Centmin Mod code base ? : i.e. run centmin.sh menu option 23 submenu option 2

    Hello :)

    I just install latest Centminmod and when i try to restart Nginx i got this:

    Code:
    nginx[22063]: Starting nginx: nginx: [emerg] unknown log format "buffer=256k" in /usr/local/nginx/conf/conf.d/virtual.conf:6
    
    nginx[22063]: [FAILED]
    I was not even create a vhost .....or touch any files....


    Thanks
     
  2. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    7:46 AM
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    1:46 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Yes :)

    I just remove all the extras for this log line and it works but i post it here so George will take care of it :)
     
  4. Inforit

    Inforit Premium Member Premium Member

    52
    15
    8
    Jul 30, 2014
    Ratings:
    +22
    Local Time:
    11:46 AM
    nginx/1.7.3
    MariaDB 5.5
    Has same problem, thanks for solution.

     
  5. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    7:46 AM
    I wonder if it's just affecting that virtual file? Would it affect specific sites config files?
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,895
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    9:46 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    my boo boo, made a change yesterday should read as
    Code (Text):
    access_log              /var/log/nginx/localhost.access.log     combined buffer=8k flush=1m;
    

    fixed in 123.09beta01 update done just now
    for fail2ban you need to remove the extras manually though
    Code (Text):
    access_log              /var/log/nginx/localhost.access.log;